/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 | 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 | TestUtils.java | 165 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()
|
D | EcdsaSignaturePerformanceTest.java | 106 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcSignMeasurable() 134 mSignature = Signature.getInstance(getAlgorithm()); in KeystoreEcVerifyMeasurable()
|
D | AesCipherPerformanceTest.java | 102 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesEncryptMeasurable() 130 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesDecryptMeasurable()
|
D | DesCipherPerformanceTest.java | 104 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesEncryptMeasurable() 132 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesDecryptMeasurable()
|
D | TransparentSecretKey.java | 37 public String getAlgorithm() { in getAlgorithm() method in TransparentSecretKey
|
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 | 64 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize() 106 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
|
D | KeyInfoTest.java | 63 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues() 131 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testLimitedUseKey()
|
D | HmacMacPerformanceTest.java | 88 mMac = Mac.getInstance(getAlgorithm()); in KeystoreHmacMacMeasurable()
|
D | AndroidKeyStoreTest.java | 1918 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 …]
|
D | KeyAgreementTest.java | 165 KeyFactory factory = KeyFactory.getInstance(kp.getPrivate().getAlgorithm(), in generateEphemeralAndroidKeyPair()
|
D | RSASignatureTest.java | 82 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testMaxMessageSizeWhenNoDigestUsed()
|
D | SecretKeyFactoryTest.java | 78 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
|
D | KeyGeneratorTest.java | 103 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList() 710 assertEquals(algorithm, key.getAlgorithm()); in testGenerateHonorsRequestedAuthorizationsHelper()
|
D | KeyPairGeneratorTest.java | 152 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()
|
D | KeyAttestationTest.java | 1231 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/ |
D | ParcelablePrivateKey.java | 63 public String getAlgorithm() { in getAlgorithm() method in ParcelablePrivateKey 64 return mPrivateKey.getAlgorithm(); in getAlgorithm()
|
/cts/tests/security/src/android/keystore/cts/ |
D | EatAttestation.java | 116 if (teeEnforced != null && teeEnforced.getAlgorithm() != null) { in getAttestationSecurityLevel() 118 } else if (softwareEnforced != null && softwareEnforced.getAlgorithm() != null) { in getAttestationSecurityLevel()
|
D | CertificateUtils.java | 59 String keyAlgorithm = keyPair.getPrivate().getAlgorithm(); in createCertificate()
|
/cts/hostsidetests/appsecurity/test-apps/AuthBoundKeyApp/src/com/android/cts/authboundkey/ |
D | AuthBoundKeyAppTest.java | 65 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm(), in testGenerateAuthBoundKey()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | CertSelectionDelegateTest.java | 112 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanSelectKeychainKeypairs()
|
D | DirectDelegatedCertInstallerTest.java | 139 assertThat(obtainedKey.getAlgorithm()).isEqualTo("RSA"); in testInstallKeyPair()
|