Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyGeneratorTest.java114 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 …]
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()
DDesCipherPerformanceTest.java92 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreDesEncryptMeasurable() argument
93 super(keyGenerator, "encrypt", keySize, messageSize); in KeystoreDesEncryptMeasurable()
120 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreDesDecryptMeasurable() argument
121 super(keyGenerator, "decrypt", keySize, messageSize); in KeystoreDesDecryptMeasurable()
DAesCipherPerformanceTest.java100 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreAesEncryptMeasurable() argument
101 super(keyGenerator, "encrypt", keySize, messageSize); in KeystoreAesEncryptMeasurable()
128 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreAesDecryptMeasurable() argument
129 super(keyGenerator, "decrypt", keySize, messageSize); in KeystoreAesDecryptMeasurable()
DRsaCipherPerformanceTest.java108 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreRsaEncryptMeasurable() argument
109 super(keyGenerator, "encrypt", keySize, messageSize); in KeystoreRsaEncryptMeasurable()
136 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreRsaDecryptMeasurable() argument
137 super(keyGenerator, "decrypt", keySize, messageSize); in KeystoreRsaDecryptMeasurable()
DPerformanceTestBase.java230 KeystoreKeyPairGenMeasurable(KeystoreKeyGenerator keyGenerator, int keySize) in KeystoreKeyPairGenMeasurable() argument
232 super(keyGenerator, "keygen", keySize); in KeystoreKeyPairGenMeasurable()
253 KeystoreSecretKeyGenMeasurable(KeystoreKeyGenerator keyGenerator, int keySize) in KeystoreSecretKeyGenMeasurable() argument
255 super(keyGenerator, "keygen", keySize); in KeystoreSecretKeyGenMeasurable()
DKeyAttestationTest.java1164 KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm, "AndroidKeyStore"); in generateKey() local
1165 keyGenerator.init(spec); in generateKey()
1166 keyGenerator.generateKey(); in generateKey()
DKeyPairGeneratorTest.java1488 KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance( in testGenerateWithFarsiLocaleHelper() local
1491 keyGenerator.initialize(new KeyGenParameterSpec.Builder( in testGenerateWithFarsiLocaleHelper()
1498 keyGenerator.generateKeyPair(); in testGenerateWithFarsiLocaleHelper()
/cts/hostsidetests/appsecurity/test-apps/AuthBoundKeyApp/src/com/android/cts/authboundkey/
DAuthBoundKeyAppTest.java48 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/
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.java161 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local
166 keyGenerator.init(new KeyGenParameterSpec.Builder(KEY_NAME, in createKey()
175 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()