Home
last modified time | relevance | path

Searched refs:getAlgorithm (Results 1 – 20 of 20) 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.java110 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 …]
DECDSASignatureTest.java58 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
100 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
DAndroidKeyStoreTest.java1957 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 …]
DKeyInfoTest.java60 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues()
DRSASignatureTest.java82 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testMaxMessageSizeWhenNoDigestUsed()
DKeyAttestationTest.java790 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()
DKeyGeneratorTest.java94 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
502 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()
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()
DSecretKeyFactoryTest.java78 String algLowerCase = service.getAlgorithm().toLowerCase(Locale.US); in testAlgorithmList()
DCipherTest.java311 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()
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.java173 String algorithm = service.getAlgorithm(); in keyStores()
450 String algorithm = service.getAlgorithm(); in test_KeyStore_create()
DBlockCipherTestBase.java122 assertEquals(getTransformation(), mCipher.getAlgorithm()); in testGetAlgorithm()
/cts/tests/security/src/android/keystore/cts/
DCertificateUtils.java59 String keyAlgorithm = keyPair.getPrivate().getAlgorithm(); in createCertificate()
DAuthorizationList.java400 public Integer getAlgorithm() { in getAlgorithm() method in AuthorizationList
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java126 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()