/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() 107 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSmallKeyRejected()
|
D | SignatureTest.java | 51 static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; field in SignatureTest 339 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList() 366 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning() 382 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying() 397 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testValidSignatureGeneratedForEmptyMessage() 426 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptySignatureDoesNotVerify() 449 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() 480 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider() 525 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore() 570 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEntropyConsumption() [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 | CipherTest.java | 70 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; field in CipherTest 304 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList() 322 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 359 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting() 384 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptyPlaintextEncryptsAndDecrypts() 464 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired() 525 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore() 570 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore() 682 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByHighestPriorityProvider() 743 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMaxSizedPlaintextSupported() [all …]
|
D | ECDSASignatureTest.java | 53 assertSame(Security.getProvider(SignatureTest.EXPECTED_PROVIDER_NAME), in assertNONEwithECDSATruncatesInputToFieldSize() 95 assertSame(Security.getProvider(SignatureTest.EXPECTED_PROVIDER_NAME), in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
|
D | KeyGeneratorTest.java | 49 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; field in KeyGeneratorTest 87 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList() 535 return KeyGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in getKeyGenerator()
|
D | BlockCipherTestBase.java | 54 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; field in BlockCipherTestBase 127 Provider expectedProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testGetProvider() 1254 mCipher = Cipher.getInstance(getTransformation(), EXPECTED_PROVIDER_NAME); in createCipher()
|
D | KeyPairGeneratorTest.java | 111 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; field in KeyPairGeneratorTest 140 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
|
D | TestUtils.java | 72 static final String EXPECTED_PROVIDER_NAME = "AndroidKeyStore"; field in TestUtils
|