Home
last modified time | relevance | path

Searched refs:EXPECTED_PROVIDER_NAME (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DRSACipherTest.java36 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; field in RSACipherTest
40 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
73 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
101 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
129 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
159 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
191 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
208 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", EXPECTED_PROVIDER_NAME); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
222 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingWithZeroMessage()
235 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", EXPECTED_PROVIDER_NAME); in testNoPaddingWithZeroMessage()
DSecretKeyFactoryTest.java47 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; field in SecretKeyFactoryTest
71 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
112 KeyGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
178 KeyGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testTranslateKeyAcceptsAndroidKeystoreKeys()
232 KeyGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testGenerateSecretRejectsKeyInfo()
250 return SecretKeyFactory.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in getKeyFactory()
DKeyFactoryTest.java61 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; field in KeyFactoryTest
75 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
110 KeyPairGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
159 KeyPairGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo()
187 KeyPairGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
212 KeyPairGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec()
232 KeyPairGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testGetKeySpecWithKeystorePublicKeyAcceptsTransparentKeySpec()
293 KeyPairGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testTranslateKeyAcceptsAndroidKeystoreKeys()
452 KeyPairGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testGeneratePrivateAndPublicRejectKeyInfo()
475 return KeyFactory.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in getKeyFactory()
DRSASignatureTest.java40 private static final String EXPECTED_PROVIDER_NAME = SignatureTest.EXPECTED_PROVIDER_NAME; field in RSASignatureTest
56 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMaxMessageSizeWhenNoDigestUsed()
108 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSmallKeyRejected()
DSignatureTest.java56 static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; field in SignatureTest
344 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
371 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning()
387 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying()
402 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testValidSignatureGeneratedForEmptyMessage()
431 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
487 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptySignatureDoesNotVerify()
510 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
541 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
586 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
[all …]
DCipherTest.java71 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; field in CipherTest
324 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
342 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
379 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting()
404 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptyPlaintextEncryptsAndDecrypts()
455 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEncryptsAndDecryptsInterrupted()
506 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEncryptsAndDecryptsUsingCipherStreams()
625 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
703 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
748 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
[all …]
DMacTest.java46 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; field in MacTest
193 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
210 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider()
227 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedForEmptyMessage()
248 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
269 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
291 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
DECDSASignatureTest.java59 assertSame(Security.getProvider(SignatureTest.EXPECTED_PROVIDER_NAME), in assertNONEwithECDSATruncatesInputToFieldSize()
101 assertSame(Security.getProvider(SignatureTest.EXPECTED_PROVIDER_NAME), in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
DKeyGeneratorTest.java51 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; field in KeyGeneratorTest
96 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
767 return KeyGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in getKeyGenerator()
DPerformanceTestBase.java329 super(algorithm, TestUtils.EXPECTED_PROVIDER_NAME); in AndroidKeystoreKeyGenerator()
DBlockCipherTestBase.java54 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; field in BlockCipherTestBase
129 Provider expectedProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testGetProvider()
1270 mCipher = Cipher.getInstance(getTransformation(), EXPECTED_PROVIDER_NAME); in createCipher()
DKeyPairGeneratorTest.java116 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; field in KeyPairGeneratorTest
145 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
DTestUtils.java80 static final String EXPECTED_PROVIDER_NAME = "AndroidKeyStore"; field in TestUtils