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 …]
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 …]
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()
193 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException()
207 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateSecretRejectsSecretKeySpec()
221 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateSecretRejectsKeyInfo()
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.java63 private static final String[] EXPECTED_ALGORITHMS = { field in CipherTest
238 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
254 for (String algorithm : EXPECTED_ALGORITHMS) { in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
291 for (String algorithm : EXPECTED_ALGORITHMS) { in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting()
317 for (String algorithm : EXPECTED_ALGORITHMS) { in testEmptyPlaintextEncryptsAndDecrypts()
362 for (String algorithm : EXPECTED_ALGORITHMS) { in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
407 for (String algorithm : EXPECTED_ALGORITHMS) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
519 for (String algorithm : EXPECTED_ALGORITHMS) { in testCiphertextGeneratedByAndroidKeyStoreDecryptsByHighestPriorityProvider()
579 for (String algorithm : EXPECTED_ALGORITHMS) { in testMaxSizedPlaintextSupported()
658 for (String algorithm : EXPECTED_ALGORITHMS) { in testLargerThanMaxSizedPlaintextRejected()
[all …]
DKeyPairGeneratorTest.java113 private static final String[] EXPECTED_ALGORITHMS = { field in KeyPairGeneratorTest
144 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
214 for (String algorithm : EXPECTED_ALGORITHMS) { in testDefaultKeySize()
229 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownBlockModeFails()
243 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownEncryptionPaddingFails()
257 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownSignaturePaddingFails()
271 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownDigestFails()
285 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitRandomizedEncryptionRequiredButViolatedFails()
307 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateHonorsRequestedAuthorizations()
DAndroidKeyStoreTest.java2417 for (String algorithm : KeyGeneratorTest.EXPECTED_ALGORITHMS) { in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC()
2519 for (String algorithm : KeyGeneratorTest.EXPECTED_ALGORITHMS) { in testKeyStore_ImportSupportedSizes_HMAC()