Searched refs:keyGenerator (Results 1 – 9 of 9) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyGeneratorTest.java | 114 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testGenerateWithoutInitThrowsIllegalStateException() local 116 keyGenerator.generateKey(); in testGenerateWithoutInitThrowsIllegalStateException() 128 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithKeySizeThrowsUnsupportedOperationException() local 131 keyGenerator.init(keySizeBits); in testInitWithKeySizeThrowsUnsupportedOperationException() 145 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException() local 148 keyGenerator.init(keySizeBits, rng); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException() 161 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithNullAlgParamsThrowsInvalidAlgorithmParameterException() local 163 keyGenerator.init((AlgorithmParameterSpec) null); in testInitWithNullAlgParamsThrowsInvalidAlgorithmParameterException() 177 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException() local 179 keyGenerator.init((AlgorithmParameterSpec) null, rng); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException() [all …]
|
D | KeyFactoryTest.java | 109 KeyPairGenerator keyGenerator = in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() local 111 keyGenerator.initialize(new KeyGenParameterSpec.Builder("test1", purposes) in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 119 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 158 KeyPairGenerator keyGenerator = in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo() local 160 keyGenerator.initialize(new KeyGenParameterSpec.Builder("test1", 0).build()); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo() 161 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo() 186 KeyPairGenerator keyGenerator = in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec() local 188 keyGenerator.initialize(new KeyGenParameterSpec.Builder("test1", 0).build()); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec() 189 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec() 211 KeyPairGenerator keyGenerator = in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec() local [all …]
|
D | SecretKeyFactoryTest.java | 111 KeyGenerator keyGenerator = in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local 113 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", purposes) in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 121 SecretKey key = keyGenerator.generateKey(); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 177 KeyGenerator keyGenerator = in testTranslateKeyAcceptsAndroidKeystoreKeys() local 180 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", in testTranslateKeyAcceptsAndroidKeystoreKeys() 186 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", in testTranslateKeyAcceptsAndroidKeystoreKeys() 190 SecretKey key = keyGenerator.generateKey(); in testTranslateKeyAcceptsAndroidKeystoreKeys() 231 KeyGenerator keyGenerator = in testGenerateSecretRejectsKeyInfo() local 233 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", 0).build()); in testGenerateSecretRejectsKeyInfo() 234 SecretKey keystoreKey = keyGenerator.generateKey(); in testGenerateSecretRejectsKeyInfo()
|
D | KeyAttestationTest.java | 880 KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm, "AndroidKeyStore"); in generateKey() local 881 keyGenerator.init(spec); in generateKey() 882 keyGenerator.generateKey(); in generateKey()
|
D | KeyPairGeneratorTest.java | 1428 KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance( in testGenerateWithFarsiLocaleHelper() local 1431 keyGenerator.initialize(new KeyGenParameterSpec.Builder( in testGenerateWithFarsiLocaleHelper() 1438 keyGenerator.generateKeyPair(); in testGenerateWithFarsiLocaleHelper()
|
/cts/hostsidetests/appsecurity/test-apps/AuthBoundKeyApp/src/com/android/cts/authboundkey/ |
D | AuthBoundKeyAppTest.java | 48 KeyGenerator keyGenerator = KeyGenerator.getInstance( in testGenerateAuthBoundKey() local 50 keyGenerator.init(new KeyGenParameterSpec.Builder( in testGenerateAuthBoundKey() 57 keyGenerator.generateKey(); in testGenerateAuthBoundKey()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | ScreenLockBoundKeysTest.java | 117 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local 122 keyGenerator.init(new KeyGenParameterSpec.Builder(KEY_NAME, in createKey() 130 keyGenerator.generateKey(); in createKey()
|
D | FingerprintBoundKeysTest.java | 157 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local 162 keyGenerator.init(new KeyGenParameterSpec.Builder(KEY_NAME, in createKey() 171 keyGenerator.generateKey(); in createKey()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | AuthenticationBoundKeyTestActivity.java | 229 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local 231 keyGenerator.init(builder.build()); in createKey() 232 keyGenerator.generateKey(); in createKey()
|