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.java114 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local
115 KeyInfo keyInfo = (KeyInfo) keyFactory.getKeySpec(key, KeyInfo.class); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
140 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyWithNullKeyThrowsInvalidKeyException() local
142 keyFactory.translateKey(null); in testTranslateKeyWithNullKeyThrowsInvalidKeyException()
155 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyRejectsNonAndroidKeystoreKeys() local
157 keyFactory.translateKey(key); in testTranslateKeyRejectsNonAndroidKeystoreKeys()
184 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyAcceptsAndroidKeystoreKeys() local
185 assertSame(key, keyFactory.translateKey(key)); in testTranslateKeyAcceptsAndroidKeystoreKeys()
195 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException() local
197 keyFactory.generateSecret(null); in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException()
[all …]
DKeyInfoTest.java60 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues() local
61 KeyInfo info = keyFactory.getKeySpec(key, KeyInfo.class); in testImmutabilityViaGetterReturnValues()
/cts/tests/tests/security/src/android/security/cts/
DOpenSSLEarlyCCSTest.java264 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in serverBind() local
265 PrivateKey privateKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec( in serverBind()
DOpenSSLHeartbleedTest.java266 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in serverBind() local
267 PrivateKey privateKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec( in serverBind()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java1013 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in onReceivedClientCertRequest() local
1014 PrivateKey key = keyFactory.generatePrivate( in onReceivedClientCertRequest()