Home
last modified time | relevance | path

Searched refs:keyPairGenerator (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DSecureBox.java139 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(EC_ALG); in genKeyPair() local
142 keyPairGenerator.initialize(new ECGenParameterSpec(EC_P256_OPENSSL_NAME)); in genKeyPair()
143 return keyPairGenerator.generateKeyPair(); in genKeyPair()
148 keyPairGenerator.initialize(new ECGenParameterSpec(EC_P256_COMMON_NAME)); in genKeyPair()
149 return keyPairGenerator.generateKeyPair(); in genKeyPair()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
DCertUtilsTest.java231 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("EC"); in verifyRsaSha256Signature_throwsIfWrongKeyType() local
232 keyPairGenerator.initialize(new ECGenParameterSpec("secp256r1")); in verifyRsaSha256Signature_throwsIfWrongKeyType()
233 PublicKey publicKey = keyPairGenerator.generateKeyPair().getPublic(); in verifyRsaSha256Signature_throwsIfWrongKeyType()
/frameworks/base/tests/net/java/android/net/
DIkev2VpnProfileTest.java420 final KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA"); in generateRandomCertAndKeyPair() local
421 keyPairGenerator.initialize(512); in generateRandomCertAndKeyPair()
422 final KeyPair keyPair = keyPairGenerator.generateKeyPair(); in generateRandomCertAndKeyPair()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java927 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("EC"); in genRandomPublicKey() local
928 keyPairGenerator.initialize(new ECGenParameterSpec("secp256r1")); in genRandomPublicKey()
929 return keyPairGenerator.generateKeyPair().getPublic(); in genRandomPublicKey()