Home
last modified time | relevance | path

Searched refs:getAlgorithm (Results 1 – 25 of 29) sorted by relevance

12

/cts/tests/tests/keystore/src/android/keystore/cts/
DPerformanceTestBase.java170 + "/" + getAlgorithm() in KeystoreMeasurable()
175 + "/" + getAlgorithm() in KeystoreMeasurable()
201 String getAlgorithm() { in getAlgorithm() method in PerformanceTestBase.KeystoreMeasurable
202 return mGenerator.getAlgorithm(); in getAlgorithm()
290 String getAlgorithm() { in getAlgorithm() method in PerformanceTestBase.KeystoreKeyGenerator
DCountingSecureRandom.java47 public String getAlgorithm() { in getAlgorithm() method in CountingSecureRandom
48 return mDelegate.getAlgorithm(); in getAlgorithm()
DTestUtils.java112 assertEquals(publicKey.getAlgorithm(), privateKey.getAlgorithm()); in assertKeyPairSelfConsistent()
113 String keyAlgorithm = publicKey.getAlgorithm(); in assertKeyPairSelfConsistent()
187 keystorePublicKey.getAlgorithm(), x509Cert.getPublicKey().getAlgorithm()); in assertKeyStoreKeyPair()
269 return KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore") in getKeyInfo()
272 return (KeyInfo) SecretKeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore") in getKeyInfo()
460 if (!originalPublicKey.getAlgorithm().equalsIgnoreCase(originalPrivateKey.getAlgorithm())) { in importIntoAndroidKeyStore()
462 + " Public: " + originalPublicKey.getAlgorithm() in importIntoAndroidKeyStore()
463 + ", private: " + originalPrivateKey.getAlgorithm()); in importIntoAndroidKeyStore()
578 if (keyAlgorithm.equalsIgnoreCase(keyPair.getPublic().getAlgorithm())) { in getKeyPairForKeyAlgorithm()
587 if (keyAlgorithm.equalsIgnoreCase(key.getAlgorithm())) { in getKeyForKeyAlgorithm()
DDesCipherPerformanceTest.java94 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesEncryptMeasurable()
122 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesDecryptMeasurable()
DAesCipherPerformanceTest.java102 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesEncryptMeasurable()
130 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesDecryptMeasurable()
DEcdsaSignaturePerformanceTest.java106 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcSignMeasurable()
134 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcVerifyMeasurable()
DRsaCipherPerformanceTest.java110 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaEncryptMeasurable()
138 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaDecryptMeasurable()
DRsaSignaturePerformanceTest.java133 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreRsaSignMeasurable()
161 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreRsaVerifyMeasurable()
DECDSASignatureTest.java58 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
100 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
DTransparentSecretKey.java37 public String getAlgorithm() { in getAlgorithm() method in TransparentSecretKey
DAndroidKeyStoreTest.java1918 String cipher = privateKey.getAlgorithm() + "/NONE/NOPADDING"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
2083 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2088 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2092 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2181 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2186 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2190 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2273 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
2277 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
2281 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
[all …]
DHmacMacPerformanceTest.java88 mMac = Mac.getInstance(getAlgorithm()); in KeystoreHmacMacMeasurable()
DKeyInfoTest.java60 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues()
DRSASignatureTest.java82 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testMaxMessageSizeWhenNoDigestUsed()
DKeyAttestationTest.java1085 assertEquals(KM_ALGORITHM_RSA, keyDetailsList.getAlgorithm().intValue()); in checkRsaKeyDetails()
1086 assertNull(nonKeyDetailsList.getAlgorithm()); in checkRsaKeyDetails()
1130 assertEquals(KM_ALGORITHM_EC, keyDetailsList.getAlgorithm().intValue()); in checkEcKeyDetails()
1131 assertNull(nonKeyDetailsList.getAlgorithm()); in checkEcKeyDetails()
DKeyPairGeneratorTest.java149 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
337 assertEquals(algorithm, keyPair.getPrivate().getAlgorithm()); in testGenerateHonorsRequestedAuthorizationsHelper()
1668 assertEquals(expectedKeyAlgorithm, keyPair.getPublic().getAlgorithm()); in assertGeneratedKeyPairAndSelfSignedCertificate()
1727 if ("EC".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1732 } else if ("RSA".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1759 fail("Unsupported key algorithm: " + privateKey.getAlgorithm()); in assertUsableForTLSPeerAuthentication()
DKeyGeneratorTest.java102 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
705 assertEquals(algorithm, key.getAlgorithm()); in testGenerateHonorsRequestedAuthorizationsHelper()
DSecretKeyFactoryTest.java78 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
DCipherTest.java323 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
685 if ((params != null) && ("OAEP".equalsIgnoreCase(params.getAlgorithm()))) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
738 && (!"GCM".equalsIgnoreCase(params.getAlgorithm()))) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
DSignatureTest.java346 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
682 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testSmallMsgKat()
DKeyFactoryTest.java82 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
/cts/tests/security/src/android/keystore/cts/
DCertificateUtils.java59 String keyAlgorithm = keyPair.getPrivate().getAlgorithm(); in createCertificate()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertSelectionDelegateTest.java110 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanSelectKeychainKeypairs()
DDirectDelegatedCertInstallerTest.java183 assertThat(obtainedKey.getAlgorithm()).isEqualTo("RSA"); in testInstallKeyPair()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java126 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanInstallAndRemoveValidRsaKeypair()
156 assertThat(KeyChain.getPrivateKey(mActivity, grant).getAlgorithm()).isEqualTo("RSA"); in testCanInstallWithAutomaticAccess()
193 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanInstallCertChain()

12