Searched refs:keyFactory (Results 1 – 6 of 6) sorted by relevance
539 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local541 (SecretKeySpec) keyFactory.getKeySpec( in engineWrap()556 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local558 keyFactory.getKeySpec(key, PKCS8EncodedKeySpec.class); in engineWrap()572 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local574 keyFactory.getKeySpec(key, X509EncodedKeySpec.class); in engineWrap()629 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local631 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in engineUnwrap()640 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local642 return keyFactory.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap()
174 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm); in getAndroidKeyStorePublicKey() local175 publicKey = keyFactory.generatePublic(new X509EncodedKeySpec(x509EncodedForm)); in getAndroidKeyStorePublicKey()
142 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in createKey() local143 return (PrivateKey) keyFactory.generatePrivate(keySpec); in createKey()
188 KeyFactory keyFactory = KeyFactory.getInstance(algorithm);189 userKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(bytes));
4043 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in parsePublicKey() local4044 return keyFactory.generatePublic(keySpec); in parsePublicKey()4053 final KeyFactory keyFactory = KeyFactory.getInstance("EC"); in parsePublicKey() local4054 return keyFactory.generatePublic(keySpec); in parsePublicKey()4063 final KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in parsePublicKey() local4064 return keyFactory.generatePublic(keySpec); in parsePublicKey()
1448 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey() local1450 return keyFactory.generateSecret(ks); in buildCharArrayKey()