Searched refs:keyPairGenerator (Results 1 – 4 of 4) sorted by relevance
139 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(EC_ALG); in genKeyPair() local142 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()
231 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("EC"); in verifyRsaSha256Signature_throwsIfWrongKeyType() local232 keyPairGenerator.initialize(new ECGenParameterSpec("secp256r1")); in verifyRsaSha256Signature_throwsIfWrongKeyType()233 PublicKey publicKey = keyPairGenerator.generateKeyPair().getPublic(); in verifyRsaSha256Signature_throwsIfWrongKeyType()
420 final KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA"); in generateRandomCertAndKeyPair() local421 keyPairGenerator.initialize(512); in generateRandomCertAndKeyPair()422 final KeyPair keyPair = keyPairGenerator.generateKeyPair(); in generateRandomCertAndKeyPair()
927 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("EC"); in genRandomPublicKey() local928 keyPairGenerator.initialize(new ECGenParameterSpec("secp256r1")); in genRandomPublicKey()929 return keyPairGenerator.generateKeyPair().getPublic(); in genRandomPublicKey()