Home
last modified time | relevance | path

Searched refs:kpg (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DCurve25519Test.java77 KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC", "AndroidKeyStore"); in x25519KeyAgreementTest() local
88 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() local
134 KeyPair secondKeyPair = kpg.generateKeyPair(); in x25519KeyImportAndAgreementTest()
158 KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC", "AndroidKeyStore"); in ed25519KeyGenerationAndSigningTest() local
166 kpg.initialize(keySpec); in ed25519KeyGenerationAndSigningTest()
168 KeyPair kp = kpg.generateKeyPair(); in ed25519KeyGenerationAndSigningTest()
[all …]
DKeyAgreementTest.java144 KeyPairGenerator kpg = in testInit_withNonEcKey_fails() local
146 kpg.initialize( in testInit_withNonEcKey_fails()
148 KeyPair rsaKeyPair = kpg.genKeyPair(); in testInit_withNonEcKey_fails()
220 KeyPairGenerator kpg = in testDoPhase_withDifferentCurveKey_fails_withX25519AndSecp224() local
225 kpg.initialize(specBuilder.build()); in testDoPhase_withDifferentCurveKey_fails_withX25519AndSecp224()
227 KeyPair kp = kpg.generateKeyPair(); in testDoPhase_withDifferentCurveKey_fails_withX25519AndSecp224()
261 KeyPairGenerator kpg = in generateEphemeralAndroidKeyPair() local
268 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 …]
DImportWrappedKeyTest.java325 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); in testKeyStore_ImportWrappedKey_RSA() local
328 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() local
407 kpg.initialize(keySize); in testKeyStore_ImportWrappedKey_EC()
408 KeyPair kp = kpg.generateKeyPair(); in testKeyStore_ImportWrappedKey_EC()
670 KeyPairGenerator kpg = in genKeyPair() local
672 kpg.initialize( in genKeyPair()
679 return kpg.generateKeyPair(); in genKeyPair()
DAndroidKeyStoreTest.java2027 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA", "AndroidKeyStore"); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local
2028 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()
/cts/tests/tests/identity/src/android/security/identity/cts/
DX509CertificateSigningTest.java70 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in testSigning() local
73 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()
DEphemeralKeyTest.java142 KeyPairGenerator kpg = KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_EC); in TestReader() local
144 kpg.initialize(ecSpec); in TestReader()
145 mEphemeralKeyPair = kpg.generateKeyPair(); in TestReader()
DReaderAuthTest.java74 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in createReaderKey() local
80 kpg.initialize(builder.build()); in createReaderKey()
81 return kpg.generateKeyPair(); in createReaderKey()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DProtectedConfirmationTest.java178 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in createKey() local
189 kpg.initialize(builder.build()); in createKey()
190 kpg.generateKeyPair(); in createKey()
/cts/tests/tests/keystore/src/android/keystore/cts/util/
DTestUtils.java205 KeyPairGenerator kpg = in assertImplementedByKeyMintAfter() local
207 kpg.initialize( in assertImplementedByKeyMintAfter()
210 KeyPair kp = kpg.generateKeyPair(); in assertImplementedByKeyMintAfter()