Searched refs:keyFactory (Results 1 – 10 of 10) sorted by relevance
153 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in parsePublicKey() local154 return keyFactory.generatePublic(keySpec); in parsePublicKey()163 final KeyFactory keyFactory = KeyFactory.getInstance("EC"); in parsePublicKey() local164 return keyFactory.generatePublic(keySpec); in parsePublicKey()173 final KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in parsePublicKey() local174 return keyFactory.generatePublic(keySpec); in parsePublicKey()
59 KeyFactory keyFactory = KeyFactory.getInstance(PRIVATE_KEY_TYPE_RSA); in privateKeyFromByteArray() local61 return (RSAPrivateKey) keyFactory.generatePrivate(privateKeySpec); in privateKeyFromByteArray()
731 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local733 (SecretKeySpec) keyFactory.getKeySpec( in engineWrap()748 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local750 keyFactory.getKeySpec(key, PKCS8EncodedKeySpec.class); in engineWrap()764 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local766 keyFactory.getKeySpec(key, X509EncodedKeySpec.class); in engineWrap()826 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local828 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in engineUnwrap()837 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local839 return keyFactory.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap()
123 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey() local125 return keyFactory.generateSecret(ks); in buildCharArrayKey()
302 KeyFactory keyFactory; in deserializePublicKey() local304 keyFactory = KeyFactory.getInstance(PUBLIC_KEY_FACTORY_ALGORITHM); in deserializePublicKey()310 return keyFactory.generatePublic(publicKeySpec); in deserializePublicKey()
368 KeyFactory keyFactory = KeyFactory.getInstance("EC"); in decodePrivateKey() local369 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()
421 KeyFactory keyFactory = KeyFactory.getInstance(EC_ALG); in decodePublicKey() local423 return keyFactory.generatePublic(new ECPublicKeySpec(new ECPoint(x, y), EC_PARAM_SPEC)); in decodePublicKey()
726 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in getPrivateKey() local727 return keyFactory.generatePrivate(privateKeySpec); in getPrivateKey()
5723 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in parsePublicKey() local5724 return keyFactory.generatePublic(keySpec); in parsePublicKey()5733 final KeyFactory keyFactory = KeyFactory.getInstance("EC"); in parsePublicKey() local5734 return keyFactory.generatePublic(keySpec); in parsePublicKey()5743 final KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in parsePublicKey() local5744 return keyFactory.generatePublic(keySpec); in parsePublicKey()