Searched refs:kpg (Results 1 – 9 of 9) sorted by relevance
77 KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC", "AndroidKeyStore"); in x25519KeyAgreementTest() local88 kpg.initialize(firstKeySpec); in x25519KeyAgreementTest()89 KeyPair firstKeyPair = kpg.generateKeyPair(); in x25519KeyAgreementTest()95 kpg.initialize(secondKeySpec); in x25519KeyAgreementTest()96 KeyPair secondKeyPair = kpg.generateKeyPair(); in x25519KeyAgreementTest()133 KeyPairGenerator kpg = KeyPairGenerator.getInstance("XDH"); in x25519KeyImportAndAgreementTest() local134 KeyPair secondKeyPair = kpg.generateKeyPair(); in x25519KeyImportAndAgreementTest()158 KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC", "AndroidKeyStore"); in ed25519KeyGenerationAndSigningTest() local166 kpg.initialize(keySpec); in ed25519KeyGenerationAndSigningTest()168 KeyPair kp = kpg.generateKeyPair(); in ed25519KeyGenerationAndSigningTest()[all …]
144 KeyPairGenerator kpg = in testInit_withNonEcKey_fails() local146 kpg.initialize( in testInit_withNonEcKey_fails()148 KeyPair rsaKeyPair = kpg.genKeyPair(); in testInit_withNonEcKey_fails()220 KeyPairGenerator kpg = in testDoPhase_withDifferentCurveKey_fails_withX25519AndSecp224() local225 kpg.initialize(specBuilder.build()); in testDoPhase_withDifferentCurveKey_fails_withX25519AndSecp224()227 KeyPair kp = kpg.generateKeyPair(); in testDoPhase_withDifferentCurveKey_fails_withX25519AndSecp224()261 KeyPairGenerator kpg = in generateEphemeralAndroidKeyPair() local268 kpg.initialize(specBuilder.build()); in generateEphemeralAndroidKeyPair()270 KeyPair kp = kpg.generateKeyPair(); in generateEphemeralAndroidKeyPair()288 KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC"); // Use default provider in generateEphemeralServerKeyPair() local[all …]
325 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); in testKeyStore_ImportWrappedKey_RSA() local328 kpg.initialize(keySize); in testKeyStore_ImportWrappedKey_RSA()329 KeyPair kp = kpg.generateKeyPair(); in testKeyStore_ImportWrappedKey_RSA()404 KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC"); in testKeyStore_ImportWrappedKey_EC() local407 kpg.initialize(keySize); in testKeyStore_ImportWrappedKey_EC()408 KeyPair kp = kpg.generateKeyPair(); in testKeyStore_ImportWrappedKey_EC()670 KeyPairGenerator kpg = in genKeyPair() local672 kpg.initialize( in genKeyPair()679 return kpg.generateKeyPair(); in genKeyPair()
2027 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA", "AndroidKeyStore"); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local2028 assertNotNull(kpg); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()2029 kpg.initialize(new KeyPairGeneratorSpec.Builder(getContext()) in testKeyStore_Encrypting_RSA_NONE_NOPADDING()2037 kpg.generateKeyPair(); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
70 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in testSigning() local73 kpg.initialize(new KeyGenParameterSpec.Builder( in testSigning()77 KeyPair keyToSignKeyPair = kpg.generateKeyPair(); in testSigning()79 kpg.initialize(new KeyGenParameterSpec.Builder( in testSigning()83 KeyPair keyToSignWithKeyPair = kpg.generateKeyPair(); in testSigning()
142 KeyPairGenerator kpg = KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_EC); in TestReader() local144 kpg.initialize(ecSpec); in TestReader()145 mEphemeralKeyPair = kpg.generateKeyPair(); in TestReader()
74 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in createReaderKey() local80 kpg.initialize(builder.build()); in createReaderKey()81 return kpg.generateKeyPair(); in createReaderKey()
178 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in createKey() local189 kpg.initialize(builder.build()); in createKey()190 kpg.generateKeyPair(); in createKey()
205 KeyPairGenerator kpg = in assertImplementedByKeyMintAfter() local207 kpg.initialize( in assertImplementedByKeyMintAfter()210 KeyPair kp = kpg.generateKeyPair(); in assertImplementedByKeyMintAfter()