Home
last modified time | relevance | path

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

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreCipherSpiBase.java539 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local
541 (SecretKeySpec) keyFactory.getKeySpec( in engineWrap()
556 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local
558 keyFactory.getKeySpec(key, PKCS8EncodedKeySpec.class); in engineWrap()
572 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local
574 keyFactory.getKeySpec(key, X509EncodedKeySpec.class); in engineWrap()
629 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local
631 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in engineUnwrap()
640 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local
642 return keyFactory.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap()
DAndroidKeyStoreProvider.java174 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm); in getAndroidKeyStorePublicKey() local
175 publicKey = keyFactory.generatePublic(new X509EncodedKeySpec(x509EncodedForm)); in getAndroidKeyStorePublicKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java142 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in createKey() local
143 return (PrivateKey) keyFactory.generatePrivate(keySpec); in createKey()
/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java188 KeyFactory keyFactory = KeyFactory.getInstance(algorithm);
189 userKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(bytes));
/frameworks/base/core/java/android/content/pm/
DPackageParser.java4043 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in parsePublicKey() local
4044 return keyFactory.generatePublic(keySpec); in parsePublicKey()
4053 final KeyFactory keyFactory = KeyFactory.getInstance("EC"); in parsePublicKey() local
4054 return keyFactory.generatePublic(keySpec); in parsePublicKey()
4063 final KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in parsePublicKey() local
4064 return keyFactory.generatePublic(keySpec); in parsePublicKey()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java1448 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey() local
1450 return keyFactory.generateSecret(ks); in buildCharArrayKey()