Home
last modified time | relevance | path

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

12

/cts/tests/tests/keystore/src/android/keystore/cts/
DCountingSecureRandom.java47 public String getAlgorithm() { in getAlgorithm() method in CountingSecureRandom
48 return mDelegate.getAlgorithm(); in getAlgorithm()
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
DTestUtils.java165 assertEquals(publicKey.getAlgorithm(), privateKey.getAlgorithm()); in assertKeyPairSelfConsistent()
166 String keyAlgorithm = publicKey.getAlgorithm(); in assertKeyPairSelfConsistent()
243 keystorePublicKey.getAlgorithm(), x509Cert.getPublicKey().getAlgorithm()); in assertKeyStoreKeyPair()
325 return KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore") in getKeyInfo()
328 return (KeyInfo) SecretKeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore") in getKeyInfo()
516 if (!originalPublicKey.getAlgorithm().equalsIgnoreCase(originalPrivateKey.getAlgorithm())) { in importIntoAndroidKeyStore()
518 + " Public: " + originalPublicKey.getAlgorithm() in importIntoAndroidKeyStore()
519 + ", private: " + originalPrivateKey.getAlgorithm()); in importIntoAndroidKeyStore()
634 if (keyAlgorithm.equalsIgnoreCase(keyPair.getPublic().getAlgorithm())) { in getKeyPairForKeyAlgorithm()
643 if (keyAlgorithm.equalsIgnoreCase(key.getAlgorithm())) { in getKeyForKeyAlgorithm()
DEcdsaSignaturePerformanceTest.java106 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcSignMeasurable()
134 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcVerifyMeasurable()
DAesCipherPerformanceTest.java102 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesEncryptMeasurable()
130 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesDecryptMeasurable()
DDesCipherPerformanceTest.java104 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesEncryptMeasurable()
132 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesDecryptMeasurable()
DTransparentSecretKey.java37 public String getAlgorithm() { in getAlgorithm() method in TransparentSecretKey
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.java64 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
106 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
DKeyInfoTest.java63 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues()
131 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testLimitedUseKey()
DHmacMacPerformanceTest.java88 mMac = Mac.getInstance(getAlgorithm()); in KeystoreHmacMacMeasurable()
DAndroidKeyStoreTest.java1918 String cipher = privateKey.getAlgorithm() + "/NONE/NOPADDING"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
2077 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2082 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2086 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2150 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2155 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2159 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2216 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
2220 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
2224 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
[all …]
DKeyAgreementTest.java165 KeyFactory factory = KeyFactory.getInstance(kp.getPrivate().getAlgorithm(), in generateEphemeralAndroidKeyPair()
DRSASignatureTest.java82 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testMaxMessageSizeWhenNoDigestUsed()
DSecretKeyFactoryTest.java78 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
DKeyGeneratorTest.java103 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
710 assertEquals(algorithm, key.getAlgorithm()); in testGenerateHonorsRequestedAuthorizationsHelper()
DKeyPairGeneratorTest.java152 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
340 assertEquals(algorithm, keyPair.getPrivate().getAlgorithm()); in testGenerateHonorsRequestedAuthorizationsHelper()
1668 assertEquals(expectedKeyAlgorithm, keyPair.getPublic().getAlgorithm()); in assertGeneratedKeyPairAndSelfSignedCertificate()
1728 if ("EC".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1733 } else if ("RSA".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1760 fail("Unsupported key algorithm: " + privateKey.getAlgorithm()); in assertUsableForTLSPeerAuthentication()
DKeyAttestationTest.java1231 assertEquals(KM_ALGORITHM_RSA, keyDetailsList.getAlgorithm().intValue()); in checkRsaKeyDetails()
1232 assertNull(nonKeyDetailsList.getAlgorithm()); in checkRsaKeyDetails()
1276 assertEquals(KM_ALGORITHM_EC, keyDetailsList.getAlgorithm().intValue()); in checkEcKeyDetails()
1277 assertNull(nonKeyDetailsList.getAlgorithm()); in checkEcKeyDetails()
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DParcelablePrivateKey.java63 public String getAlgorithm() { in getAlgorithm() method in ParcelablePrivateKey
64 return mPrivateKey.getAlgorithm(); in getAlgorithm()
/cts/tests/security/src/android/keystore/cts/
DEatAttestation.java116 if (teeEnforced != null && teeEnforced.getAlgorithm() != null) { in getAttestationSecurityLevel()
118 } else if (softwareEnforced != null && softwareEnforced.getAlgorithm() != null) { in getAttestationSecurityLevel()
DCertificateUtils.java59 String keyAlgorithm = keyPair.getPrivate().getAlgorithm(); in createCertificate()
/cts/hostsidetests/appsecurity/test-apps/AuthBoundKeyApp/src/com/android/cts/authboundkey/
DAuthBoundKeyAppTest.java65 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm(), in testGenerateAuthBoundKey()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertSelectionDelegateTest.java112 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanSelectKeychainKeypairs()
DDirectDelegatedCertInstallerTest.java139 assertThat(obtainedKey.getAlgorithm()).isEqualTo("RSA"); in testInstallKeyPair()

12