Home
last modified time | relevance | path

Searched refs:keyFactory (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyFactoryTest.java120 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() local
121 KeyInfo keyInfo = keyFactory.getKeySpec(keyPair.getPrivate(), KeyInfo.class); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
162 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo() local
164 keyFactory.getKeySpec(keyPair.getPublic(), KeyInfo.class); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo()
191 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec() local
193 keyFactory.getKeySpec(keyPair.getPrivate(), transparentKeySpecClass); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
198 keyFactory.getKeySpec(keyPair.getPrivate(), PKCS8EncodedKeySpec.class); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
217 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec() local
219 keyFactory.getKeySpec(publicKey, X509EncodedKeySpec.class); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec()
237 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyAcceptsTransparentKeySpec() local
[all …]
DSecretKeyFactoryTest.java122 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local
123 KeyInfo keyInfo = (KeyInfo) keyFactory.getKeySpec(key, KeyInfo.class); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
148 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyWithNullKeyThrowsInvalidKeyException() local
150 keyFactory.translateKey(null); in testTranslateKeyWithNullKeyThrowsInvalidKeyException()
163 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyRejectsNonAndroidKeystoreKeys() local
165 keyFactory.translateKey(key); in testTranslateKeyRejectsNonAndroidKeystoreKeys()
192 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyAcceptsAndroidKeystoreKeys() local
193 assertSame(key, keyFactory.translateKey(key)); in testTranslateKeyAcceptsAndroidKeystoreKeys()
203 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException() local
205 keyFactory.generateSecret(null); in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException()
[all …]
DKeyInfoTest.java63 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues() local
64 KeyInfo info = keyFactory.getKeySpec(key, KeyInfo.class); in testImmutabilityViaGetterReturnValues()
131 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testLimitedUseKey() local
132 KeyInfo info = keyFactory.getKeySpec(key, KeyInfo.class); in testLimitedUseKey()
DSignatureTest.java442 KeyFactory keyFactory = KeyFactory.getInstance( in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey() local
444 KeyInfo info = keyFactory.getKeySpec(keyPair.getPrivate(), KeyInfo.class); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
458 info = keyFactory.getKeySpec(keyPair.getPrivate(), KeyInfo.class); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
466 info = keyFactory.getKeySpec(entry.getPrivateKey(), KeyInfo.class); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
/cts/hostsidetests/appsecurity/test-apps/AuthBoundKeyApp/src/com/android/cts/authboundkey/
DAuthBoundKeyAppTest.java65 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm(), in testGenerateAuthBoundKey() local
67 KeyInfo info = (KeyInfo) keyFactory.getKeySpec(key, KeyInfo.class); in testGenerateAuthBoundKey()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java1067 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in onReceivedClientCertRequest() local
1068 PrivateKey key = keyFactory.generatePrivate( in onReceivedClientCertRequest()