Home
last modified time | relevance | path

Searched refs:keyGenerator (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyGeneratorTest.java106 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testGenerateWithoutInitThrowsIllegalStateException() local
108 keyGenerator.generateKey(); in testGenerateWithoutInitThrowsIllegalStateException()
120 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithKeySizeThrowsUnsupportedOperationException() local
123 keyGenerator.init(keySizeBits); in testInitWithKeySizeThrowsUnsupportedOperationException()
137 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException() local
140 keyGenerator.init(keySizeBits, rng); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException()
153 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithNullAlgParamsThrowsInvalidAlgorithmParameterException() local
155 keyGenerator.init((AlgorithmParameterSpec) null); in testInitWithNullAlgParamsThrowsInvalidAlgorithmParameterException()
169 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException() local
171 keyGenerator.init((AlgorithmParameterSpec) null, rng); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException()
[all …]
DKeyFactoryTest.java109 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 …]
DSecretKeyFactoryTest.java111 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()
DKeyAttestationTest.java869 KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm, "AndroidKeyStore"); in generateKey() local
870 keyGenerator.init(spec); in generateKey()
871 keyGenerator.generateKey(); in generateKey()
DKeyPairGeneratorTest.java1155 KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance( in testGenerateWithFarsiLocale() local
1158 keyGenerator.initialize(new KeyGenParameterSpec.Builder( in testGenerateWithFarsiLocale()
1164 keyGenerator.generateKeyPair(); in testGenerateWithFarsiLocale()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DScreenLockBoundKeysTest.java117 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local
122 keyGenerator.init(new KeyGenParameterSpec.Builder(KEY_NAME, in createKey()
130 keyGenerator.generateKey(); in createKey()
DFingerprintBoundKeysTest.java133 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local
138 keyGenerator.init(new KeyGenParameterSpec.Builder(KEY_NAME, in createKey()
144 keyGenerator.generateKey(); in createKey()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DAuthenticationBoundKeyTestActivity.java229 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local
231 keyGenerator.init(builder.build()); in createKey()
232 keyGenerator.generateKey(); in createKey()