/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | RSACipherTest.java | 36 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()
|
D | SecretKeyFactoryTest.java | 47 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()
|
D | KeyFactoryTest.java | 61 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()
|
D | RSASignatureTest.java | 40 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()
|
D | SignatureTest.java | 56 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 …]
|
D | CipherTest.java | 71 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 …]
|
D | MacTest.java | 46 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()
|
D | ECDSASignatureTest.java | 59 assertSame(Security.getProvider(SignatureTest.EXPECTED_PROVIDER_NAME), in assertNONEwithECDSATruncatesInputToFieldSize() 101 assertSame(Security.getProvider(SignatureTest.EXPECTED_PROVIDER_NAME), in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
|
D | KeyGeneratorTest.java | 51 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()
|
D | PerformanceTestBase.java | 329 super(algorithm, TestUtils.EXPECTED_PROVIDER_NAME); in AndroidKeystoreKeyGenerator()
|
D | BlockCipherTestBase.java | 54 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()
|
D | KeyPairGeneratorTest.java | 116 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; field in KeyPairGeneratorTest 145 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
|
D | TestUtils.java | 80 static final String EXPECTED_PROVIDER_NAME = "AndroidKeyStore"; field in TestUtils
|