Home
last modified time | relevance | path

Searched refs:keyFactory (Results 1 – 7 of 7) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DIkeCertUtils.java55 KeyFactory keyFactory = KeyFactory.getInstance(PRIVATE_KEY_TYPE_RSA); in privateKeyFromByteArray() local
57 return (RSAPrivateKey) keyFactory.generatePrivate(privateKeySpec); in privateKeyFromByteArray()
/packages/modules/Wifi/framework/java/android/net/wifi/
DParcelUtil.java79 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in readPrivateKey() local
80 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(userKeyBytes)); in readPrivateKey()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayload.java365 KeyFactory keyFactory; in getCurveSharedKey() local
370 keyFactory = in getCurveSharedKey()
398 keyFactory.generatePublic(new X509EncodedKeySpec(x509EncodedPubKeyBytes)); in getCurveSharedKey()
/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/
DUtils.java72 KeyFactory keyFactory = KeyFactory.getInstance("EC"); in getP256PubKeyFromBytes() local
73 return keyFactory.generatePublic(keySpec); in getP256PubKeyFromBytes()
/packages/services/Car/service/src/com/android/car/
DFastPairGattServer.java379 KeyFactory keyFactory = KeyFactory.getInstance("EC"); in calculateAntiSpoofing() local
391 PrivateKey privateKey = keyFactory.generatePrivate(ecPrivateKeySpec); in calculateAntiSpoofing()
392 PublicKey publicKey = keyFactory.generatePublic(ecPublicKeySpec); in calculateAntiSpoofing()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCredentialHelper.java238 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in setPrivateKey() local
239 mUserKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(bytes)); in setPrivateKey()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java576 final KeyFactory keyFactory =
578 privateKey1 = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(privateKey));