Home
last modified time | relevance | path

Searched refs:generateKeyPair (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyPairGeneratorTest.java221 KeyPair keyPair = generator.generateKeyPair(); in testDefaultKeySize()
336 KeyPair keyPair = generator.generateKeyPair(); in testGenerateHonorsRequestedAuthorizationsHelper()
392 KeyPair keyPair = generator.generateKeyPair(); in testGenerate_EC_LegacySpec()
438 keyPair = generator.generateKeyPair(); in testGenerate_EC_LegacySpec()
484 keyPair = generator.generateKeyPair(); in testGenerate_EC_LegacySpec()
531 KeyPair keyPair = generator.generateKeyPair(); in testGenerate_RSA_LegacySpec()
602 generator.generateKeyPair(), in replacesOldEntryWithSameAliasHelper()
630 generator.generateKeyPair(), in replacesOldEntryWithSameAliasHelper()
665 KeyPair keyPair1 = generator.generateKeyPair(); in doesNotReplaceOtherEntriesHelper()
691 KeyPair keyPair2 = generator.generateKeyPair(); in doesNotReplaceOtherEntriesHelper()
[all …]
DKeyFactoryTest.java119 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
161 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo()
189 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
214 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec()
234 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGetKeySpecWithKeystorePublicKeyAcceptsTransparentKeySpec()
295 KeyPair keyPair = keyGenerator.generateKeyPair(); in testTranslateKeyAcceptsAndroidKeystoreKeys()
454 KeyPair keyPair = keyGenerator.generateKeyPair(); in testGeneratePrivateAndPublicRejectKeyInfo()
DEcdsaSignaturePerformanceTest.java111 mKey = generateKeyPair(); in initialSetUp()
139 mKey = generateKeyPair(); in initialSetUp()
DRsaCipherPerformanceTest.java115 mKey = generateKeyPair(); in initialSetUp()
143 mKey = generateKeyPair(); in initialSetUp()
DPerformanceTestBase.java218 KeyPair generateKeyPair() throws Exception { in generateKeyPair() method in PerformanceTestBase.KeystoreMeasurable
219 return mGenerator.getKeyPairGenerator().generateKeyPair(); in generateKeyPair()
237 generateKeyPair(); in measure()
DRsaSignaturePerformanceTest.java138 mKey = generateKeyPair(); in initialSetUp()
166 mKey = generateKeyPair(); in initialSetUp()
DKeyAttestationTest.java225 generateKeyPair(KEY_ALGORITHM_EC, spec); in testEcAttestation_NoChallenge()
263 generateKeyPair(KEY_ALGORITHM_EC, builder.build()); in testEcAttestation_DeviceLocked()
289 generateKeyPair(KEY_ALGORITHM_EC, spec); in testEcAttestation_KeyStoreExceptionWhenRequestingUniqueId()
393 generateKeyPair(KEY_ALGORITHM_RSA, spec); in testRsaAttestation_NoChallenge()
432 generateKeyPair(KEY_ALGORITHM_RSA, builder.build()); in testRsaAttestation_DeviceLocked()
550 generateKeyPair(KEY_ALGORITHM_RSA, builder.build()); in testRsaAttestation()
609 generateKeyPair(KEY_ALGORITHM_EC, builder.build()); in testEcAttestation()
1169 private void generateKeyPair(String algorithm, KeyGenParameterSpec spec) in generateKeyPair() method in KeyAttestationTest
1175 keyPairGenerator.generateKeyPair(); in generateKeyPair()
DAttestationPerformanceTest.java106 mKeyGen.getKeyPairGenerator().generateKeyPair(); in initialSetUp()
DKeyInfoTest.java57 KeyPair keyPair = keyPairGenerator.generateKeyPair(); in testImmutabilityViaGetterReturnValues()
DImportWrappedKeyTest.java416 return kpg.generateKeyPair(); in genKeyPair()
DAndroidKeyStoreTest.java1912 kpg.generateKeyPair(); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
/cts/tests/security/src/android/keystore/cts/
DKeyGenerationUtils.java49 AttestedKeyPair generated = dpm.generateKeyPair( in generateKeyWithIdFlagsExpectingSuccess()
66 () -> dpm.generateKeyPair(admin, "RSA", buildRsaKeySpecWithKeyAttestation(ALIAS), in generateKeyWithDeviceIdAttestationExpectingFailure()
/cts/tests/tests/identity/src/android/security/identity/cts/
DX509CertificateSigningTest.java76 KeyPair keyToSignKeyPair = kpg.generateKeyPair(); in testSigning()
82 KeyPair keyToSignWithKeyPair = kpg.generateKeyPair(); in testSigning()
DEphemeralKeyTest.java144 mEphemeralKeyPair = kpg.generateKeyPair(); in TestReader()
DUtilUnitTests.java266 return kpg.generateKeyPair(); in coseGenerateKeyPair()
DReaderAuthTest.java80 return kpg.generateKeyPair(); in createReaderKey()
DUtil.java1251 KeyPair keyPair = kpg.generateKeyPair(); in createEphemeralKeyPair()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java321 AttestedKeyPair generated = mDevicePolicyManager.generateKeyPair( in testCanGenerateRSAKeyPair()
333 AttestedKeyPair generated = mDevicePolicyManager.generateKeyPair( in testCanGenerateRSAKeyPairUsingStrongBox()
354 AttestedKeyPair generated = mDevicePolicyManager.generateKeyPair( in testCanGenerateECKeyPair()
366 AttestedKeyPair generated = mDevicePolicyManager.generateKeyPair( in testCanGenerateECKeyPairUsingStrongBox()
459 AttestedKeyPair generated = mDevicePolicyManager.generateKeyPair( in generateKeyAndCheckAttestation()
670 mDevicePolicyManager.generateKeyPair(getWho(), "EC", spec, 0); in testCanSetKeyPairCert()
701 mDevicePolicyManager.generateKeyPair(getWho(), "EC", spec, 0); in testCanSetKeyPairCertChain()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DDirectDelegatedCertInstallerTest.java205 AttestedKeyPair generated = mDpm.generateKeyPair( in testGenerateKeyPairWithoutDeviceIdAttestation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DProtectedConfirmationTest.java146 kpg.generateKeyPair(); in createKey()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DKeyChainTestActivity.java94 mDevicePolicyManager.generateKeyPair( in doInBackground()
/cts/tests/tests/net/src/android/net/cts/
DIkev2VpnTest.java520 final KeyPair keyPair = keyPairGenerator.generateKeyPair(); in generateRandomCertAndKeyPair()
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java968 mDevicePolicyManager.generateKeyPair(mComponent, "RSA", spec, 0); in testGenerateKeyPair_failIfNotProfileOwner()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSecurityLoggingTest.java506 final KeyPair keyPair = generator.generateKeyPair(); in generateKey()