/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 | DesCipherPerformanceTest.java | 92 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()
|
D | AesCipherPerformanceTest.java | 100 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()
|
D | RsaCipherPerformanceTest.java | 108 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()
|
D | PerformanceTestBase.java | 230 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()
|
D | KeyAttestationTest.java | 1164 KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm, "AndroidKeyStore"); in generateKey() local 1165 keyGenerator.init(spec); in generateKey() 1166 keyGenerator.generateKey(); in generateKey()
|
D | KeyPairGeneratorTest.java | 1488 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/ |
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 | 161 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/ |
D | AuthenticationBoundKeyTestActivity.java | 229 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey() local 231 keyGenerator.init(builder.build()); in createKey() 232 keyGenerator.generateKey(); in createKey()
|