Searched refs:keyFactory (Results 1 – 7 of 7) sorted by relevance
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()
365 KeyFactory keyFactory; in getCurveSharedKey() local370 keyFactory = in getCurveSharedKey()398 keyFactory.generatePublic(new X509EncodedKeySpec(x509EncodedPubKeyBytes)); in getCurveSharedKey()
72 KeyFactory keyFactory = KeyFactory.getInstance("EC"); in getP256PubKeyFromBytes() local73 return keyFactory.generatePublic(keySpec); in getP256PubKeyFromBytes()
379 KeyFactory keyFactory = KeyFactory.getInstance("EC"); in calculateAntiSpoofing() local391 PrivateKey privateKey = keyFactory.generatePrivate(ecPrivateKeySpec); in calculateAntiSpoofing()392 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));