Home
last modified time | relevance | path

Searched refs:EXPECTED_ALGORITHMS (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyGeneratorTest.java49 static final String[] EXPECTED_ALGORITHMS = { field in KeyGeneratorTest
82 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
95 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateWithoutInitThrowsIllegalStateException()
109 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithKeySizeThrowsUnsupportedOperationException()
126 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException()
142 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithNullAlgParamsThrowsInvalidAlgorithmParameterException()
158 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException()
173 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithAlgParamsAndNullSecureRandom()
188 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnsupportedAlgParamsTypeThrowsInvalidAlgorithmParameterException()
202 for (String algorithm : EXPECTED_ALGORITHMS) { in testDefaultKeySize()
[all …]
DSecretKeyFactoryTest.java47 private static final String[] EXPECTED_ALGORITHMS = { field in SecretKeyFactoryTest
67 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
86 for (String algorithm : EXPECTED_ALGORITHMS) { in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
138 for (String algorithm : EXPECTED_ALGORITHMS) { in testTranslateKeyWithNullKeyThrowsInvalidKeyException()
152 for (String algorithm : EXPECTED_ALGORITHMS) { in testTranslateKeyRejectsNonAndroidKeystoreKeys()
167 for (String algorithm : EXPECTED_ALGORITHMS) { in testTranslateKeyAcceptsAndroidKeystoreKeys()
183 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException()
197 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateSecretRejectsSecretKeySpec()
211 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateSecretRejectsKeyInfo()
DKeyFactoryTest.java63 private static final String[] EXPECTED_ALGORITHMS = { field in KeyFactoryTest
79 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
98 for (String algorithm : EXPECTED_ALGORITHMS) { in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
156 for (String algorithm : EXPECTED_ALGORITHMS) { in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo()
175 for (String algorithm : EXPECTED_ALGORITHMS) { in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
209 for (String algorithm : EXPECTED_ALGORITHMS) { in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec()
229 for (String algorithm : EXPECTED_ALGORITHMS) { in testGetKeySpecWithKeystorePublicKeyAcceptsTransparentKeySpec()
261 for (String algorithm : EXPECTED_ALGORITHMS) { in testTranslateKeyWithNullKeyThrowsInvalidKeyException()
275 for (String algorithm : EXPECTED_ALGORITHMS) { in testTranslateKeyRejectsNonAndroidKeystoreKeys()
290 for (String algorithm : EXPECTED_ALGORITHMS) { in testTranslateKeyAcceptsAndroidKeystoreKeys()
[all …]
DMacTest.java48 private static final String[] EXPECTED_ALGORITHMS = { field in MacTest
197 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
212 for (String algorithm : EXPECTED_ALGORITHMS) { in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider()
229 for (String algorithm : EXPECTED_ALGORITHMS) { in testMacGeneratedForEmptyMessage()
250 for (String algorithm : EXPECTED_ALGORITHMS) { in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
271 for (String algorithm : EXPECTED_ALGORITHMS) { in testMacGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
293 for (String algorithm : EXPECTED_ALGORITHMS) { in testMacGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
318 for (String algorithm : EXPECTED_ALGORITHMS) { in testSmallMsgKat()
353 for (String algorithm : EXPECTED_ALGORITHMS) { in testLargeMsgKat()
374 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitFailsWhenNotAuthorizedToSign()
[all …]
DCipherTest.java62 private static final String[] EXPECTED_ALGORITHMS = { field in CipherTest
236 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
252 for (String algorithm : EXPECTED_ALGORITHMS) { in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
289 for (String algorithm : EXPECTED_ALGORITHMS) { in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting()
315 for (String algorithm : EXPECTED_ALGORITHMS) { in testEmptyPlaintextEncryptsAndDecrypts()
360 for (String algorithm : EXPECTED_ALGORITHMS) { in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
405 for (String algorithm : EXPECTED_ALGORITHMS) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
505 for (String algorithm : EXPECTED_ALGORITHMS) { in testCiphertextGeneratedByAndroidKeyStoreDecryptsByHighestPriorityProvider()
565 for (String algorithm : EXPECTED_ALGORITHMS) { in testMaxSizedPlaintextSupported()
644 for (String algorithm : EXPECTED_ALGORITHMS) { in testLargerThanMaxSizedPlaintextRejected()
[all …]
DKeyPairGeneratorTest.java112 private static final String[] EXPECTED_ALGORITHMS = { field in KeyPairGeneratorTest
143 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
213 for (String algorithm : EXPECTED_ALGORITHMS) { in testDefaultKeySize()
228 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownBlockModeFails()
242 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownEncryptionPaddingFails()
256 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownSignaturePaddingFails()
270 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownDigestFails()
284 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitRandomizedEncryptionRequiredButViolatedFails()
306 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateHonorsRequestedAuthorizations()
DAndroidKeyStoreTest.java2401 for (String algorithm : KeyGeneratorTest.EXPECTED_ALGORITHMS) { in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC()
2501 for (String algorithm : KeyGeneratorTest.EXPECTED_ALGORITHMS) { in testKeyStore_ImportSupportedSizes_HMAC()