Home
last modified time | relevance | path

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

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreCipherSpiBase.java603 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local
605 (SecretKeySpec) keyFactory.getKeySpec( in engineWrap()
620 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local
622 keyFactory.getKeySpec(key, PKCS8EncodedKeySpec.class); in engineWrap()
636 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local
638 keyFactory.getKeySpec(key, X509EncodedKeySpec.class); in engineWrap()
693 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local
695 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in engineUnwrap()
704 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local
706 return keyFactory.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap()
DAndroidKeyStoreProvider.java180 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm); in getAndroidKeyStorePublicKey() local
181 publicKey = keyFactory.generatePublic(new X509EncodedKeySpec(x509EncodedForm)); in getAndroidKeyStorePublicKey()
/frameworks/base/wifi/java/android/net/wifi/
DParcelUtil.java79 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in readPrivateKey() local
80 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(userKeyBytes)); in readPrivateKey()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DPasswordUtils.java125 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey() local
127 return keyFactory.generateSecret(ks); in buildCharArrayKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java144 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in createKey() local
145 return (PrivateKey) keyFactory.generatePrivate(keySpec); in createKey()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java5593 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in parsePublicKey() local
5594 return keyFactory.generatePublic(keySpec); in parsePublicKey()
5603 final KeyFactory keyFactory = KeyFactory.getInstance("EC"); in parsePublicKey() local
5604 return keyFactory.generatePublic(keySpec); in parsePublicKey()
5613 final KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in parsePublicKey() local
5614 return keyFactory.generatePublic(keySpec); in parsePublicKey()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java1670 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey() local
1672 return keyFactory.generateSecret(ks); in buildCharArrayKey()