/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | CountingSecureRandom.java | 47 public String getAlgorithm() { in getAlgorithm() method in CountingSecureRandom 48 return mDelegate.getAlgorithm(); in getAlgorithm()
|
D | TransparentSecretKey.java | 37 public String getAlgorithm() { in getAlgorithm() method in TransparentSecretKey
|
D | KeyInfoTest.java | 84 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues() 153 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testLimitedUseKey()
|
D | AndroidKeyStoreTest.java | 2043 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 …]
|
D | ECDSASignatureTest.java | 103 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize() 256 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
|
D | RSASignatureTest.java | 98 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testMaxMessageSizeWhenNoDigestUsed()
|
D | KeyAgreementTest.java | 272 KeyFactory factory = KeyFactory.getInstance(kp.getPrivate().getAlgorithm(), in generateEphemeralAndroidKeyPair()
|
D | SecretKeyFactoryTest.java | 87 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
|
D | KeyGeneratorTest.java | 124 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList() 752 assertEquals(algorithm, key.getAlgorithm()); in testGenerateHonorsRequestedAuthorizationsHelper()
|
D | KeyPairGeneratorTest.java | 189 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()
|
D | SignatureTest.java | 373 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()
|
D | KeyAttestationTest.java | 1813 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()
|
D | KeyFactoryTest.java | 106 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
|
/cts/tests/tests/keystore/src/android/keystore/cts/performance/ |
D | PerformanceTestBase.java | 175 + "/" + 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
|
D | DesCipherPerformanceTest.java | 111 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesEncryptMeasurable() 139 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesDecryptMeasurable()
|
D | EcdsaSignaturePerformanceTest.java | 113 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcSignMeasurable() 141 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcVerifyMeasurable()
|
D | AesCipherPerformanceTest.java | 109 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesEncryptMeasurable() 137 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesDecryptMeasurable()
|
D | RsaCipherPerformanceTest.java | 116 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaEncryptMeasurable() 144 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaDecryptMeasurable()
|
D | RsaSignaturePerformanceTest.java | 146 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreRsaSignMeasurable() 174 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreRsaVerifyMeasurable()
|
D | HmacMacPerformanceTest.java | 93 mMac = Mac.getInstance(getAlgorithm()); in KeystoreHmacMacMeasurable()
|
/cts/tests/tests/keystore/src/android/keystore/cts/util/ |
D | TestUtils.java | 211 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/ |
D | EatAttestation.java | 118 if (teeEnforced != null && teeEnforced.getAlgorithm() != null) { in getAttestationSecurityLevel() 120 } else if (softwareEnforced != null && softwareEnforced.getAlgorithm() != null) { in getAttestationSecurityLevel()
|
D | CertificateUtils.java | 59 String keyAlgorithm = keyPair.getPrivate().getAlgorithm(); in createCertificate()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | CertSelectionDelegateTest.java | 113 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanSelectKeychainKeypairs()
|
D | DirectDelegatedCertInstallerTest.java | 139 assertThat(obtainedKey.getAlgorithm()).isEqualTo("RSA"); in testInstallKeyPair()
|