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/
DSecretKeyFactoryTest.java49 private static String[] EXPECTED_ALGORITHMS = { field in SecretKeyFactoryTest
60 EXPECTED_ALGORITHMS = ObjectArrays.concat(EXPECTED_ALGORITHMS, "DESede");
75 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
94 for (String algorithm : EXPECTED_ALGORITHMS) { in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
146 for (String algorithm : EXPECTED_ALGORITHMS) { in testTranslateKeyWithNullKeyThrowsInvalidKeyException()
160 for (String algorithm : EXPECTED_ALGORITHMS) { in testTranslateKeyRejectsNonAndroidKeystoreKeys()
175 for (String algorithm : EXPECTED_ALGORITHMS) { in testTranslateKeyAcceptsAndroidKeystoreKeys()
201 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException()
215 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateSecretRejectsSecretKeySpec()
229 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateSecretRejectsKeyInfo()
DKeyGeneratorTest.java53 static String[] EXPECTED_ALGORITHMS = { field in KeyGeneratorTest
69 EXPECTED_ALGORITHMS = ObjectArrays.concat(EXPECTED_ALGORITHMS, "DESede");
99 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
112 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateWithoutInitThrowsIllegalStateException()
126 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithKeySizeThrowsUnsupportedOperationException()
143 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException()
159 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithNullAlgParamsThrowsInvalidAlgorithmParameterException()
175 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException()
199 (useStrongbox ? EXPECTED_STRONGBOX_ALGORITHMS : EXPECTED_ALGORITHMS)) { in testInitWithAlgParamsAndNullSecureRandomHelper()
217 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnsupportedAlgParamsTypeThrowsInvalidAlgorithmParameterException()
[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 …]
DCipherTest.java97 private static String[] EXPECTED_ALGORITHMS = BASE_EXPECTED_ALGORITHMS; field in CipherTest
101 EXPECTED_ALGORITHMS = ObjectArrays
320 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
336 for (String algorithm : EXPECTED_ALGORITHMS) { in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
373 for (String algorithm : EXPECTED_ALGORITHMS) { in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting()
399 for (String algorithm : EXPECTED_ALGORITHMS) { in testEmptyPlaintextEncryptsAndDecrypts()
449 for (String algorithm : EXPECTED_ALGORITHMS) { in testEncryptsAndDecryptsInterrupted()
545 for (String algorithm : EXPECTED_ALGORITHMS) { in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
606 for (String algorithm : EXPECTED_ALGORITHMS) { in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
651 for (String algorithm : EXPECTED_ALGORITHMS) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
[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 …]
DKeyPairGeneratorTest.java115 private static final String[] EXPECTED_ALGORITHMS = { field in KeyPairGeneratorTest
146 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
216 for (String algorithm : EXPECTED_ALGORITHMS) { in testDefaultKeySize()
231 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownBlockModeFails()
245 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownEncryptionPaddingFails()
259 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownSignaturePaddingFails()
273 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitWithUnknownDigestFails()
287 for (String algorithm : EXPECTED_ALGORITHMS) { in testInitRandomizedEncryptionRequiredButViolatedFails()
316 for (String algorithm : EXPECTED_ALGORITHMS) { in testGenerateHonorsRequestedAuthorizationsHelper()
DAndroidKeyStoreTest.java2387 for (String algorithm : KeyGeneratorTest.EXPECTED_ALGORITHMS) { in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC()
2489 for (String algorithm : KeyGeneratorTest.EXPECTED_ALGORITHMS) { in testKeyStore_ImportSupportedSizes_HMAC()