/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | PerformanceTestBase.java | 170 + "/" + 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
|
D | CountingSecureRandom.java | 47 public String getAlgorithm() { in getAlgorithm() method in CountingSecureRandom 48 return mDelegate.getAlgorithm(); in getAlgorithm()
|
D | TestUtils.java | 112 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()
|
D | DesCipherPerformanceTest.java | 94 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesEncryptMeasurable() 122 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesDecryptMeasurable()
|
D | AesCipherPerformanceTest.java | 102 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesEncryptMeasurable() 130 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesDecryptMeasurable()
|
D | EcdsaSignaturePerformanceTest.java | 106 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcSignMeasurable() 134 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcVerifyMeasurable()
|
D | RsaCipherPerformanceTest.java | 110 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaEncryptMeasurable() 138 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaDecryptMeasurable()
|
D | RsaSignaturePerformanceTest.java | 133 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreRsaSignMeasurable() 161 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreRsaVerifyMeasurable()
|
D | ECDSASignatureTest.java | 58 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize() 100 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
|
D | TransparentSecretKey.java | 37 public String getAlgorithm() { in getAlgorithm() method in TransparentSecretKey
|
D | AndroidKeyStoreTest.java | 1918 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 …]
|
D | HmacMacPerformanceTest.java | 88 mMac = Mac.getInstance(getAlgorithm()); in KeystoreHmacMacMeasurable()
|
D | KeyInfoTest.java | 60 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues()
|
D | RSASignatureTest.java | 82 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testMaxMessageSizeWhenNoDigestUsed()
|
D | KeyAttestationTest.java | 1085 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()
|
D | KeyPairGeneratorTest.java | 149 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()
|
D | KeyGeneratorTest.java | 102 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList() 705 assertEquals(algorithm, key.getAlgorithm()); in testGenerateHonorsRequestedAuthorizationsHelper()
|
D | SecretKeyFactoryTest.java | 78 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
|
D | CipherTest.java | 323 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()
|
D | SignatureTest.java | 346 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList() 682 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testSmallMsgKat()
|
D | KeyFactoryTest.java | 82 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
|
/cts/tests/security/src/android/keystore/cts/ |
D | CertificateUtils.java | 59 String keyAlgorithm = keyPair.getPrivate().getAlgorithm(); in createCertificate()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | CertSelectionDelegateTest.java | 110 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanSelectKeychainKeypairs()
|
D | DirectDelegatedCertInstallerTest.java | 183 assertThat(obtainedKey.getAlgorithm()).isEqualTo("RSA"); in testInstallKeyPair()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | KeyManagementTest.java | 126 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()
|