Searched refs:keyFactory (Results 1 – 8 of 8) sorted by relevance
158 return keyFactory() in generatePublicKey()175 return keyFactory() in generatePrivateKey()199 private static KeyFactory keyFactory() throws NoSuchProviderException { in keyFactory() method in EllipticCurveDiffieHellmanExchange
55 KeyFactory keyFactory = KeyFactory.getInstance(PRIVATE_KEY_TYPE_RSA); in privateKeyFromByteArray() local57 return (RSAPrivateKey) keyFactory.generatePrivate(privateKeySpec); in privateKeyFromByteArray()
79 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in readPrivateKey() local80 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(userKeyBytes)); in readPrivateKey()
366 KeyFactory keyFactory; in getCurveSharedKey() local371 keyFactory = in getCurveSharedKey()399 keyFactory.generatePublic(new X509EncodedKeySpec(x509EncodedPubKeyBytes)); in getCurveSharedKey()
72 KeyFactory keyFactory = KeyFactory.getInstance("EC"); in getP256PubKeyFromBytes() local73 return keyFactory.generatePublic(keySpec); in getP256PubKeyFromBytes()
709 KeyFactory keyFactory = KeyFactory.getInstance("EC"); in calculateAntiSpoofing() local721 PrivateKey privateKey = keyFactory.generatePrivate(ecPrivateKeySpec); in calculateAntiSpoofing()722 PublicKey publicKey = keyFactory.generatePublic(ecPublicKeySpec); in calculateAntiSpoofing()
238 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in setPrivateKey() local239 mUserKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(bytes)); in setPrivateKey()
576 final KeyFactory keyFactory =578 privateKey1 = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(privateKey));