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()
DTransparentSecretKey.java37 public String getAlgorithm() { in getAlgorithm() method in TransparentSecretKey
DKeyInfoTest.java84 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues()
153 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testLimitedUseKey()
DAndroidKeyStoreTest.java2043 String cipher = privateKey.getAlgorithm() + "/NONE/NOPADDING"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
2209 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2214 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2218 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2286 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2291 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2295 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2356 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
2360 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
2364 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
[all …]
DECDSASignatureTest.java103 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
256 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
DRSASignatureTest.java98 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testMaxMessageSizeWhenNoDigestUsed()
DKeyAgreementTest.java272 KeyFactory factory = KeyFactory.getInstance(kp.getPrivate().getAlgorithm(), in generateEphemeralAndroidKeyPair()
DSecretKeyFactoryTest.java87 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
DKeyGeneratorTest.java124 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
752 assertEquals(algorithm, key.getAlgorithm()); in testGenerateHonorsRequestedAuthorizationsHelper()
DKeyPairGeneratorTest.java189 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
390 assertEquals(algorithm, keyPair.getPrivate().getAlgorithm()); in testGenerateHonorsRequestedAuthorizationsHelper()
1916 assertEquals(expectedKeyAlgorithm, keyPair.getPublic().getAlgorithm()); in assertGeneratedKeyPairAndSelfSignedCertificate()
1976 if ("EC".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1981 } else if ("RSA".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
2008 fail("Unsupported key algorithm: " + privateKey.getAlgorithm()); in assertUsableForTLSPeerAuthentication()
DSignatureTest.java373 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
469 keyPair.getPrivate().getAlgorithm(), "AndroidKeyStore"); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
719 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testSmallMsgKat()
DKeyAttestationTest.java1813 assertEquals(KM_ALGORITHM_RSA, keyDetailsList.getAlgorithm().intValue()); in checkRsaKeyDetails()
1814 assertNull(nonKeyDetailsList.getAlgorithm()); in checkRsaKeyDetails()
1860 assertEquals(KM_ALGORITHM_EC, keyDetailsList.getAlgorithm().intValue()); in checkEcKeyDetails()
1861 assertNull(nonKeyDetailsList.getAlgorithm()); in checkEcKeyDetails()
DKeyFactoryTest.java106 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
/cts/tests/tests/keystore/src/android/keystore/cts/performance/
DPerformanceTestBase.java175 + "/" + getAlgorithm() in KeystoreMeasurable()
180 + "/" + getAlgorithm() in KeystoreMeasurable()
206 String getAlgorithm() { in getAlgorithm() method in PerformanceTestBase.KeystoreMeasurable
207 return mGenerator.getAlgorithm(); in getAlgorithm()
295 String getAlgorithm() { in getAlgorithm() method in PerformanceTestBase.KeystoreKeyGenerator
DDesCipherPerformanceTest.java111 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesEncryptMeasurable()
139 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesDecryptMeasurable()
DEcdsaSignaturePerformanceTest.java113 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcSignMeasurable()
141 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcVerifyMeasurable()
DAesCipherPerformanceTest.java109 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesEncryptMeasurable()
137 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesDecryptMeasurable()
DRsaCipherPerformanceTest.java116 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaEncryptMeasurable()
144 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaDecryptMeasurable()
DRsaSignaturePerformanceTest.java146 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreRsaSignMeasurable()
174 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreRsaVerifyMeasurable()
DHmacMacPerformanceTest.java93 mMac = Mac.getInstance(getAlgorithm()); in KeystoreHmacMacMeasurable()
/cts/tests/tests/keystore/src/android/keystore/cts/util/
DTestUtils.java211 KeyFactory factory = KeyFactory.getInstance(kp.getPrivate().getAlgorithm(), in assertImplementedByKeyMintAfter()
289 assertEquals(publicKey.getAlgorithm(), privateKey.getAlgorithm()); in assertKeyPairSelfConsistent()
290 String keyAlgorithm = publicKey.getAlgorithm(); in assertKeyPairSelfConsistent()
389 keystorePublicKey.getAlgorithm(), x509Cert.getPublicKey().getAlgorithm()); in assertKeyStoreKeyPair()
471 return KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore") in getKeyInfo()
474 return (KeyInfo) SecretKeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore") in getKeyInfo()
662 if (!originalPublicKey.getAlgorithm().equalsIgnoreCase(originalPrivateKey.getAlgorithm())) { in importIntoAndroidKeyStore()
664 + " Public: " + originalPublicKey.getAlgorithm() in importIntoAndroidKeyStore()
665 + ", private: " + originalPrivateKey.getAlgorithm()); in importIntoAndroidKeyStore()
791 if (keyAlgorithm.equalsIgnoreCase(keyPair.getPublic().getAlgorithm())) { in getKeyPairForKeyAlgorithm()
[all …]
/cts/tests/security/src/android/keystore/cts/
DEatAttestation.java118 if (teeEnforced != null && teeEnforced.getAlgorithm() != null) { in getAttestationSecurityLevel()
120 } else if (softwareEnforced != null && softwareEnforced.getAlgorithm() != null) { in getAttestationSecurityLevel()
DCertificateUtils.java59 String keyAlgorithm = keyPair.getPrivate().getAlgorithm(); in createCertificate()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertSelectionDelegateTest.java113 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanSelectKeychainKeypairs()
DDirectDelegatedCertInstallerTest.java139 assertThat(obtainedKey.getAlgorithm()).isEqualTo("RSA"); in testInstallKeyPair()

12