Home
last modified time | relevance | path

Searched refs:getAlgorithm (Results 1 – 17 of 17) 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()
DTransparentSecretKey.java37 public String getAlgorithm() { in getAlgorithm() method in TransparentSecretKey
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 …]
DECDSASignatureTest.java58 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
100 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
DAndroidKeyStoreTest.java1932 String cipher = privateKey.getAlgorithm() + "/NONE/NOPADDING"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
2095 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2100 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2104 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2193 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2198 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2202 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_EC()
2286 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
2290 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
2294 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES()
[all …]
DKeyInfoTest.java60 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues()
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.java146 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
326 assertEquals(algorithm, keyPair.getPrivate().getAlgorithm()); in testGenerateHonorsRequestedAuthorizations()
1289 assertEquals(expectedKeyAlgorithm, keyPair.getPublic().getAlgorithm()); in assertGeneratedKeyPairAndSelfSignedCertificate()
1348 if ("EC".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1353 } else if ("RSA".equalsIgnoreCase(privateKey.getAlgorithm())) { in assertUsableForTLSPeerAuthentication()
1380 fail("Unsupported key algorithm: " + privateKey.getAlgorithm()); in assertUsableForTLSPeerAuthentication()
DSecretKeyFactoryTest.java70 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
DCipherTest.java239 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
439 if ((params != null) && ("OAEP".equalsIgnoreCase(params.getAlgorithm()))) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
480 && (!"GCM".equalsIgnoreCase(params.getAlgorithm()))) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
DKeyFactoryTest.java82 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
DSignatureTest.java346 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
683 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testSmallMsgKat()
DMacTest.java200 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
DBlockCipherTestBase.java119 assertEquals(getTransformation(), mCipher.getAlgorithm()); in testGetAlgorithm()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DKeyManagementTest.java90 assertEquals(retrievedKey.getAlgorithm(), "RSA"); in testCanInstallValidRsaKeypair()
/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 …]