Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/pm/parsing/
DFrameworkParsingPackageUtils.java153 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in parsePublicKey() local
154 return keyFactory.generatePublic(keySpec); in parsePublicKey()
163 final KeyFactory keyFactory = KeyFactory.getInstance("EC"); in parsePublicKey() local
164 return keyFactory.generatePublic(keySpec); in parsePublicKey()
173 final KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in parsePublicKey() local
174 return keyFactory.generatePublic(keySpec); in parsePublicKey()
/frameworks/base/core/java/android/net/vcn/persistablebundleutils/
DCertUtils.java59 KeyFactory keyFactory = KeyFactory.getInstance(PRIVATE_KEY_TYPE_RSA); in privateKeyFromByteArray() local
61 return (RSAPrivateKey) keyFactory.generatePrivate(privateKeySpec); in privateKeyFromByteArray()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreCipherSpiBase.java731 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local
733 (SecretKeySpec) keyFactory.getKeySpec( in engineWrap()
748 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local
750 keyFactory.getKeySpec(key, PKCS8EncodedKeySpec.class); in engineWrap()
764 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local
766 keyFactory.getKeySpec(key, X509EncodedKeySpec.class); in engineWrap()
826 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local
828 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in engineUnwrap()
837 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local
839 return keyFactory.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DPasswordUtils.java123 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey() local
125 return keyFactory.generateSecret(ks); in buildCharArrayKey()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtils.java302 KeyFactory keyFactory; in deserializePublicKey() local
304 keyFactory = KeyFactory.getInstance(PUBLIC_KEY_FACTORY_ALGORITHM); in deserializePublicKey()
310 return keyFactory.generatePublic(publicKeySpec); in deserializePublicKey()
/frameworks/base/libs/securebox/tests/src/com/android/security/
DSecureBoxTest.java368 KeyFactory keyFactory = KeyFactory.getInstance("EC"); in decodePrivateKey() local
369 return keyFactory.generatePrivate(new ECPrivateKeySpec(priv, SecureBox.EC_PARAM_SPEC)); in decodePrivateKey()
/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/libs/securebox/src/com/android/security/
DSecureBox.java421 KeyFactory keyFactory = KeyFactory.getInstance(EC_ALG); in decodePublicKey() local
423 return keyFactory.generatePublic(new ECPublicKeySpec(new ECPoint(x, y), EC_PARAM_SPEC)); in decodePublicKey()
/frameworks/base/core/java/android/net/
DIkev2VpnProfile.java726 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in getPrivateKey() local
727 return keyFactory.generatePrivate(privateKeySpec); in getPrivateKey()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java5723 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in parsePublicKey() local
5724 return keyFactory.generatePublic(keySpec); in parsePublicKey()
5733 final KeyFactory keyFactory = KeyFactory.getInstance("EC"); in parsePublicKey() local
5734 return keyFactory.generatePublic(keySpec); in parsePublicKey()
5743 final KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in parsePublicKey() local
5744 return keyFactory.generatePublic(keySpec); in parsePublicKey()