Home
last modified time | relevance | path

Searched refs:getAlgorithm (Results 1 – 21 of 21) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DCountingSecureRandom.java47 public String getAlgorithm() { in getAlgorithm() method in CountingSecureRandom
48 return mDelegate.getAlgorithm(); in getAlgorithm()
DTestUtils.java91 assertEquals(publicKey.getAlgorithm(), privateKey.getAlgorithm()); in assertKeyPairSelfConsistent()
92 String keyAlgorithm = publicKey.getAlgorithm(); in assertKeyPairSelfConsistent()
166 keystorePublicKey.getAlgorithm(), x509Cert.getPublicKey().getAlgorithm()); in assertKeyStoreKeyPair()
248 return KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore") in getKeyInfo()
251 return (KeyInfo) SecretKeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore") in getKeyInfo()
439 if (!originalPublicKey.getAlgorithm().equalsIgnoreCase(originalPrivateKey.getAlgorithm())) { in importIntoAndroidKeyStore()
441 + " Public: " + originalPublicKey.getAlgorithm() in importIntoAndroidKeyStore()
442 + ", private: " + originalPrivateKey.getAlgorithm()); in importIntoAndroidKeyStore()
556 if (keyAlgorithm.equalsIgnoreCase(keyPair.getPublic().getAlgorithm())) { in getKeyPairForKeyAlgorithm()
565 if (keyAlgorithm.equalsIgnoreCase(key.getAlgorithm())) { in getKeyForKeyAlgorithm()
[all …]
DTransparentSecretKey.java37 public String getAlgorithm() { in getAlgorithm() method in TransparentSecretKey
DECDSASignatureTest.java58 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
100 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
DAndroidKeyStoreTest.java1942 String cipher = privateKey.getAlgorithm() + "/NONE/NOPADDING"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
2105 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2110 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2114 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2203 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2208 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2212 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2296 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
2300 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
2304 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
[all …]
DKeyInfoTest.java60 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues()
DKeyAttestationTest.java732 assertEquals(KM_ALGORITHM_RSA, keyDetailsList.getAlgorithm().intValue()); in checkRsaKeyDetails()
733 assertNull(nonKeyDetailsList.getAlgorithm()); in checkRsaKeyDetails()
777 assertEquals(KM_ALGORITHM_EC, keyDetailsList.getAlgorithm().intValue()); in checkEcKeyDetails()
778 assertNull(nonKeyDetailsList.getAlgorithm()); in checkEcKeyDetails()
DRSASignatureTest.java82 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testMaxMessageSizeWhenNoDigestUsed()
DKeyGeneratorTest.java85 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
493 assertEquals(algorithm, key.getAlgorithm()); in testGenerateHonorsRequestedAuthorizations()
DKeyPairGeneratorTest.java147 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
327 assertEquals(algorithm, keyPair.getPrivate().getAlgorithm()); in testGenerateHonorsRequestedAuthorizations()
1316 assertEquals(expectedKeyAlgorithm, keyPair.getPublic().getAlgorithm()); in assertGeneratedKeyPairAndSelfSignedCertificate()
1375 if ("EC".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1380 } else if ("RSA".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1407 fail("Unsupported key algorithm: " + privateKey.getAlgorithm()); in assertUsableForTLSPeerAuthentication()
DSecretKeyFactoryTest.java70 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
DCipherTest.java241 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
441 if ((params != null) && ("OAEP".equalsIgnoreCase(params.getAlgorithm()))) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
494 && (!"GCM".equalsIgnoreCase(params.getAlgorithm()))) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
DAuthorizationList.java352 public Integer getAlgorithm() { in getAlgorithm() method in AuthorizationList
DKeyFactoryTest.java82 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
DSignatureTest.java346 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
682 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testSmallMsgKat()
DMacTest.java200 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
DKeyStoreTest.java171 String algorithm = service.getAlgorithm(); in keyStores()
447 String algorithm = service.getAlgorithm(); in test_KeyStore_create()
DBlockCipherTestBase.java122 assertEquals(getTransformation(), mCipher.getAlgorithm()); in testGetAlgorithm()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DKeyManagementTest.java100 assertEquals(KeyChain.getPrivateKey(getActivity(), alias).getAlgorithm(), "RSA"); in testCanInstallAndRemoveValidRsaKeypair()
126 assertEquals(KeyChain.getPrivateKey(getActivity(), grant).getAlgorithm(), "RSA"); in testCanInstallWithAutomaticAccess()
156 assertEquals(KeyChain.getPrivateKey(getActivity(), alias).getAlgorithm(), "RSA"); in testCanInstallCertChain()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex31161 public final java.lang.String getAlgorithm()
31237 public final java.lang.String getAlgorithm()
32060 public abstract java.lang.String getAlgorithm()
32108 public final java.lang.String getAlgorithm()
32259 public java.lang.String getAlgorithm()
32988 public final java.lang.String getAlgorithm()
33384 public final java.lang.String getAlgorithm()
33553 public java.lang.String getAlgorithm()
33837 public final java.lang.String getAlgorithm()
33987 public java.lang.String getAlgorithm()
[all …]
Dclasses.out.dex46797 public java.lang.String getAlgorithm()