Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyGeneratorTest.java137 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testGenerateWithoutInitThrowsIllegalStateException() local
139 keyGenerator.generateKey(); in testGenerateWithoutInitThrowsIllegalStateException()
152 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithKeySizeThrowsUnsupportedOperationException() local
155 keyGenerator.init(keySizeBits); in testInitWithKeySizeThrowsUnsupportedOperationException()
170 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException() local
173 keyGenerator.init(keySizeBits, rng); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException()
187 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithNullAlgParamsThrowsInvalidAlgorithmParameterException() local
189 keyGenerator.init((AlgorithmParameterSpec) null); in testInitWithNullAlgParamsThrowsInvalidAlgorithmParameterException()
204 KeyGenerator keyGenerator = getKeyGenerator(algorithm); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException() local
206 keyGenerator.init((AlgorithmParameterSpec) null, rng); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException()
[all …]
DKeyFactoryTest.java134 KeyPairGenerator keyGenerator = in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() local
136 keyGenerator.initialize(new KeyGenParameterSpec.Builder("test1", purposes) in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
144 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
184 KeyPairGenerator keyGenerator = in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo() local
186 keyGenerator.initialize(new KeyGenParameterSpec.Builder("test1", 0).build()); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo()
187 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo()
213 KeyPairGenerator keyGenerator = in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec() local
215 keyGenerator.initialize(new KeyGenParameterSpec.Builder("test1", 0).build()); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
216 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
239 KeyPairGenerator keyGenerator = in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec() local
[all …]
DSecretKeyFactoryTest.java121 KeyGenerator keyGenerator = in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local
123 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", purposes) in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
131 SecretKey key = keyGenerator.generateKey(); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
190 KeyGenerator keyGenerator = in testTranslateKeyAcceptsAndroidKeystoreKeys() local
193 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", in testTranslateKeyAcceptsAndroidKeystoreKeys()
199 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", in testTranslateKeyAcceptsAndroidKeystoreKeys()
203 SecretKey key = keyGenerator.generateKey(); in testTranslateKeyAcceptsAndroidKeystoreKeys()
247 KeyGenerator keyGenerator = in testGenerateSecretRejectsKeyInfo() local
249 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", 0).build()); in testGenerateSecretRejectsKeyInfo()
250 SecretKey keystoreKey = keyGenerator.generateKey(); in testGenerateSecretRejectsKeyInfo()
DKeyInfoTest.java165 KeyGenerator keyGenerator = KeyGenerator.getInstance("AES", "AndroidKeyStore"); in testUnlockedDeviceRequiredKey() local
166 keyGenerator.init(new KeyGenParameterSpec.Builder( in testUnlockedDeviceRequiredKey()
171 SecretKey key = keyGenerator.generateKey(); in testUnlockedDeviceRequiredKey()
DKeyGenParameterSpecTest.java417 KeyGenerator keyGenerator = KeyGenerator.getInstance( in testBuilderSetUidGenerateKeyThrowsException() local
419 keyGenerator.init( in testBuilderSetUidGenerateKeyThrowsException()
423 assertThrows(ProviderException.class, keyGenerator::generateKey); in testBuilderSetUidGenerateKeyThrowsException()
DKeyAttestationTest.java1901 KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm, "AndroidKeyStore"); in generateKey() local
1902 keyGenerator.init(spec); in generateKey()
1903 keyGenerator.generateKey(); in generateKey()
DKeyPairGeneratorTest.java1735 KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance( in testGenerateWithFarsiLocaleHelper() local
1738 keyGenerator.initialize(new KeyGenParameterSpec.Builder( in testGenerateWithFarsiLocaleHelper()
1745 keyGenerator.generateKeyPair(); in testGenerateWithFarsiLocaleHelper()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/
DAbstractUserAuthenticationMacTest.java38 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createUserAuthenticationKey() local
40 keyGenerator.init(builder.build()); in createUserAuthenticationKey()
41 keyGenerator.generateKey(); in createUserAuthenticationKey()
DAbstractUserAuthenticationAeadCipherTest.java44 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createUserAuthenticationKey() local
46 keyGenerator.init(builder.build()); in createUserAuthenticationKey()
47 keyGenerator.generateKey(); in createUserAuthenticationKey()
DAbstractUserAuthenticationCipherTest.java43 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createUserAuthenticationKey() local
45 keyGenerator.init(builder.build()); in createUserAuthenticationKey()
46 keyGenerator.generateKey(); in createUserAuthenticationKey()
DUtils.java42 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createBiometricBoundKey() local
47 keyGenerator.init(new KeyGenParameterSpec.Builder(keyName, in createBiometricBoundKey()
55 keyGenerator.generateKey(); in createBiometricBoundKey()
62 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createTimeBoundSecretKey_deprecated() local
67 keyGenerator.init(new KeyGenParameterSpec.Builder(keyName, in createTimeBoundSecretKey_deprecated()
75 keyGenerator.generateKey(); in createTimeBoundSecretKey_deprecated()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/util/
DUtils.java205 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createTimeBoundSecretKey_deprecated() local
210 keyGenerator.init(new KeyGenParameterSpec.Builder(keyName, in createTimeBoundSecretKey_deprecated()
218 keyGenerator.generateKey(); in createTimeBoundSecretKey_deprecated()
225 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createTimeBoundSecretKey() local
230 keyGenerator.init(new KeyGenParameterSpec.Builder(keyName, in createTimeBoundSecretKey()
238 keyGenerator.generateKey(); in createTimeBoundSecretKey()
255 KeyGenerator keyGenerator = KeyGenerator in generateBiometricBoundKey() local
257 keyGenerator.init(builder.build()); in generateBiometricBoundKey()
261 keyGenerator.generateKey(); in generateBiometricBoundKey()
/cts/tests/tests/keystore/src/android/keystore/cts/performance/
DDesCipherPerformanceTest.java109 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreDesEncryptMeasurable() argument
110 super(keyGenerator, "encrypt", keySize, messageSize); in KeystoreDesEncryptMeasurable()
137 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreDesDecryptMeasurable() argument
138 super(keyGenerator, "decrypt", keySize, messageSize); in KeystoreDesDecryptMeasurable()
DAesCipherPerformanceTest.java107 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreAesEncryptMeasurable() argument
108 super(keyGenerator, "encrypt", keySize, messageSize); in KeystoreAesEncryptMeasurable()
135 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreAesDecryptMeasurable() argument
136 super(keyGenerator, "decrypt", keySize, messageSize); in KeystoreAesDecryptMeasurable()
DRsaCipherPerformanceTest.java114 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreRsaEncryptMeasurable() argument
115 super(keyGenerator, "encrypt", keySize, messageSize); in KeystoreRsaEncryptMeasurable()
142 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreRsaDecryptMeasurable() argument
143 super(keyGenerator, "decrypt", keySize, messageSize); in KeystoreRsaDecryptMeasurable()
DPerformanceTestBase.java235 KeystoreKeyPairGenMeasurable(KeystoreKeyGenerator keyGenerator, int keySize) in KeystoreKeyPairGenMeasurable() argument
237 super(keyGenerator, "keygen", keySize); in KeystoreKeyPairGenMeasurable()
258 KeystoreSecretKeyGenMeasurable(KeystoreKeyGenerator keyGenerator, int keySize) in KeystoreSecretKeyGenMeasurable() argument
260 super(keyGenerator, "keygen", keySize); in KeystoreSecretKeyGenMeasurable()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DLskfBoundKeysTest.java117 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local
122 keyGenerator.init(new KeyGenParameterSpec.Builder(KEY_NAME, in createKey()
130 keyGenerator.generateKey(); in createKey()
DUnlockedDeviceRequiredKeysTest.java174 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local
179 keyGenerator.init(new KeyGenParameterSpec.Builder(KEY_NAME, in createKey()
185 keyGenerator.generateKey(); in createKey()
DFingerprintBoundKeysTest.java187 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local
192 keyGenerator.init(new KeyGenParameterSpec.Builder(KEY_NAME, in createKey()
201 keyGenerator.generateKey(); in createKey()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DAuthenticationBoundKeyTestActivity.java239 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local
241 keyGenerator.init(builder.build()); in createKey()
242 keyGenerator.generateKey(); in createKey()