Searched refs:keyFactory (Results 1 – 9 of 9) sorted by relevance
59 KeyFactory keyFactory = KeyFactory.getInstance(PRIVATE_KEY_TYPE_RSA); in privateKeyFromByteArray() local61 return (RSAPrivateKey) keyFactory.generatePrivate(privateKeySpec); in privateKeyFromByteArray()
709 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local711 (SecretKeySpec) keyFactory.getKeySpec( in engineWrap()726 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local728 keyFactory.getKeySpec(key, PKCS8EncodedKeySpec.class); in engineWrap()742 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local744 keyFactory.getKeySpec(key, X509EncodedKeySpec.class); in engineWrap()803 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local805 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in engineUnwrap()814 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local816 return keyFactory.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap()
123 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey() local125 return keyFactory.generateSecret(ks); in buildCharArrayKey()
300 KeyFactory keyFactory; in deserializePublicKey() local302 keyFactory = KeyFactory.getInstance(PUBLIC_KEY_FACTORY_ALGORITHM); in deserializePublicKey()308 return keyFactory.generatePublic(publicKeySpec); in deserializePublicKey()
412 KeyFactory keyFactory = KeyFactory.getInstance(EC_ALG); in decodePublicKey() local414 return keyFactory.generatePublic(new ECPublicKeySpec(new ECPoint(x, y), EC_PARAM_SPEC)); in decodePublicKey()
366 KeyFactory keyFactory = KeyFactory.getInstance("EC"); in decodePrivateKey() local367 return keyFactory.generatePrivate(new ECPrivateKeySpec(priv, SecureBox.EC_PARAM_SPEC)); in decodePrivateKey()
144 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in createKey() local145 return (PrivateKey) keyFactory.generatePrivate(keySpec); in createKey()
617 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in getPrivateKey() local618 return keyFactory.generatePrivate(privateKeySpec); in getPrivateKey()
5667 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in parsePublicKey() local5668 return keyFactory.generatePublic(keySpec); in parsePublicKey()5677 final KeyFactory keyFactory = KeyFactory.getInstance("EC"); in parsePublicKey() local5678 return keyFactory.generatePublic(keySpec); in parsePublicKey()5687 final KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in parsePublicKey() local5688 return keyFactory.generatePublic(keySpec); in parsePublicKey()