/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 | TestUtils.java | 110 assertEquals(publicKey.getAlgorithm(), privateKey.getAlgorithm()); in assertKeyPairSelfConsistent() 111 String keyAlgorithm = publicKey.getAlgorithm(); in assertKeyPairSelfConsistent() 185 keystorePublicKey.getAlgorithm(), x509Cert.getPublicKey().getAlgorithm()); in assertKeyStoreKeyPair() 267 return KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore") in getKeyInfo() 270 return (KeyInfo) SecretKeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore") in getKeyInfo() 458 if (!originalPublicKey.getAlgorithm().equalsIgnoreCase(originalPrivateKey.getAlgorithm())) { in importIntoAndroidKeyStore() 460 + " Public: " + originalPublicKey.getAlgorithm() in importIntoAndroidKeyStore() 461 + ", private: " + originalPrivateKey.getAlgorithm()); in importIntoAndroidKeyStore() 576 if (keyAlgorithm.equalsIgnoreCase(keyPair.getPublic().getAlgorithm())) { in getKeyPairForKeyAlgorithm() 585 if (keyAlgorithm.equalsIgnoreCase(key.getAlgorithm())) { in getKeyForKeyAlgorithm() [all …]
|
D | ECDSASignatureTest.java | 58 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize() 100 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
|
D | AndroidKeyStoreTest.java | 1957 String cipher = privateKey.getAlgorithm() + "/NONE/NOPADDING"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING() 2120 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA() 2125 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA() 2129 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA() 2218 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC() 2223 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC() 2227 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC() 2310 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES() 2314 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES() 2318 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES() [all …]
|
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 | 790 assertEquals(KM_ALGORITHM_RSA, keyDetailsList.getAlgorithm().intValue()); in checkRsaKeyDetails() 791 assertNull(nonKeyDetailsList.getAlgorithm()); in checkRsaKeyDetails() 835 assertEquals(KM_ALGORITHM_EC, keyDetailsList.getAlgorithm().intValue()); in checkEcKeyDetails() 836 assertNull(nonKeyDetailsList.getAlgorithm()); in checkEcKeyDetails()
|
D | KeyGeneratorTest.java | 94 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList() 502 assertEquals(algorithm, key.getAlgorithm()); in testGenerateHonorsRequestedAuthorizations()
|
D | KeyPairGeneratorTest.java | 147 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList() 327 assertEquals(algorithm, keyPair.getPrivate().getAlgorithm()); in testGenerateHonorsRequestedAuthorizations() 1318 assertEquals(expectedKeyAlgorithm, keyPair.getPublic().getAlgorithm()); in assertGeneratedKeyPairAndSelfSignedCertificate() 1377 if ("EC".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication() 1382 } else if ("RSA".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication() 1409 fail("Unsupported key algorithm: " + privateKey.getAlgorithm()); in assertUsableForTLSPeerAuthentication()
|
D | SecretKeyFactoryTest.java | 78 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
|
D | CipherTest.java | 311 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList() 607 if ((params != null) && ("OAEP".equalsIgnoreCase(params.getAlgorithm()))) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore() 660 && (!"GCM".equalsIgnoreCase(params.getAlgorithm()))) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
|
D | KeyFactoryTest.java | 82 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
|
D | SignatureTest.java | 346 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList() 682 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testSmallMsgKat()
|
D | MacTest.java | 200 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
|
D | KeyStoreTest.java | 173 String algorithm = service.getAlgorithm(); in keyStores() 450 String algorithm = service.getAlgorithm(); in test_KeyStore_create()
|
D | BlockCipherTestBase.java | 122 assertEquals(getTransformation(), mCipher.getAlgorithm()); in testGetAlgorithm()
|
/cts/tests/security/src/android/keystore/cts/ |
D | CertificateUtils.java | 59 String keyAlgorithm = keyPair.getPrivate().getAlgorithm(); in createCertificate()
|
D | AuthorizationList.java | 400 public Integer getAlgorithm() { in getAlgorithm() method in AuthorizationList
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | KeyManagementTest.java | 126 assertEquals(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm(), "RSA"); in testCanInstallAndRemoveValidRsaKeypair() 152 assertEquals(KeyChain.getPrivateKey(mActivity, grant).getAlgorithm(), "RSA"); in testCanInstallWithAutomaticAccess() 188 assertEquals(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm(), "RSA"); in testCanInstallCertChain()
|