Searched refs:keyFactory (Results 1 – 9 of 9) sorted by relevance
603 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local605 (SecretKeySpec) keyFactory.getKeySpec( in engineWrap()620 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local622 keyFactory.getKeySpec(key, PKCS8EncodedKeySpec.class); in engineWrap()636 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap() local638 keyFactory.getKeySpec(key, X509EncodedKeySpec.class); in engineWrap()693 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local695 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in engineUnwrap()704 KeyFactory keyFactory = KeyFactory.getInstance(wrappedKeyAlgorithm); in engineUnwrap() local706 return keyFactory.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap()
192 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm); in getAndroidKeyStorePublicKey() local193 publicKey = keyFactory.generatePublic(new X509EncodedKeySpec(x509EncodedForm)); in getAndroidKeyStorePublicKey()
277 KeyFactory keyFactory; in deserializePublicKey() local279 keyFactory = KeyFactory.getInstance(PUBLIC_KEY_FACTORY_ALGORITHM); in deserializePublicKey()285 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()
79 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in readPrivateKey() local80 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(userKeyBytes)); in readPrivateKey()
125 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey() local127 return keyFactory.generateSecret(ks); in buildCharArrayKey()
362 KeyFactory keyFactory = KeyFactory.getInstance("EC"); in decodePrivateKey() local363 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()
5419 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in parsePublicKey() local5420 return keyFactory.generatePublic(keySpec); in parsePublicKey()5429 final KeyFactory keyFactory = KeyFactory.getInstance("EC"); in parsePublicKey() local5430 return keyFactory.generatePublic(keySpec); in parsePublicKey()5439 final KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in parsePublicKey() local5440 return keyFactory.generatePublic(keySpec); in parsePublicKey()