/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyGeneratorTest.java | 137 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 …]
|
D | KeyFactoryTest.java | 134 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 …]
|
D | SecretKeyFactoryTest.java | 121 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()
|
D | KeyInfoTest.java | 165 KeyGenerator keyGenerator = KeyGenerator.getInstance("AES", "AndroidKeyStore"); in testUnlockedDeviceRequiredKey() local 166 keyGenerator.init(new KeyGenParameterSpec.Builder( in testUnlockedDeviceRequiredKey() 171 SecretKey key = keyGenerator.generateKey(); in testUnlockedDeviceRequiredKey()
|
D | KeyGenParameterSpecTest.java | 417 KeyGenerator keyGenerator = KeyGenerator.getInstance( in testBuilderSetUidGenerateKeyThrowsException() local 419 keyGenerator.init( in testBuilderSetUidGenerateKeyThrowsException() 423 assertThrows(ProviderException.class, keyGenerator::generateKey); in testBuilderSetUidGenerateKeyThrowsException()
|
D | KeyAttestationTest.java | 1901 KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm, "AndroidKeyStore"); in generateKey() local 1902 keyGenerator.init(spec); in generateKey() 1903 keyGenerator.generateKey(); in generateKey()
|
D | KeyPairGeneratorTest.java | 1735 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/ |
D | AbstractUserAuthenticationMacTest.java | 38 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createUserAuthenticationKey() local 40 keyGenerator.init(builder.build()); in createUserAuthenticationKey() 41 keyGenerator.generateKey(); in createUserAuthenticationKey()
|
D | AbstractUserAuthenticationAeadCipherTest.java | 44 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createUserAuthenticationKey() local 46 keyGenerator.init(builder.build()); in createUserAuthenticationKey() 47 keyGenerator.generateKey(); in createUserAuthenticationKey()
|
D | AbstractUserAuthenticationCipherTest.java | 43 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createUserAuthenticationKey() local 45 keyGenerator.init(builder.build()); in createUserAuthenticationKey() 46 keyGenerator.generateKey(); in createUserAuthenticationKey()
|
D | Utils.java | 42 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/ |
D | Utils.java | 205 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/ |
D | DesCipherPerformanceTest.java | 109 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()
|
D | AesCipherPerformanceTest.java | 107 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()
|
D | RsaCipherPerformanceTest.java | 114 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()
|
D | PerformanceTestBase.java | 235 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/ |
D | LskfBoundKeysTest.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 | UnlockedDeviceRequiredKeysTest.java | 174 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local 179 keyGenerator.init(new KeyGenParameterSpec.Builder(KEY_NAME, in createKey() 185 keyGenerator.generateKey(); in createKey()
|
D | FingerprintBoundKeysTest.java | 187 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/ |
D | AuthenticationBoundKeyTestActivity.java | 239 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local 241 keyGenerator.init(builder.build()); in createKey() 242 keyGenerator.generateKey(); in createKey()
|