diff options
author | Daulet Zhanguzin <dauletz@google.com> | 2020-05-02 00:19:08 +0100 |
---|---|---|
committer | Daulet Zhanguzin <dauletz@google.com> | 2020-05-02 00:19:08 +0100 |
commit | a1e7be65ef316dcc591aec274b49ab83ec695419 (patch) | |
tree | 4056115cf0717464cf6c26a9d8c1bfff3543f8d3 /java/com/google/security/wycheproof/testcases/RsaSignatureTest.java | |
parent | 3fde40e7e37267a2f7b1e38b927e07239a9ea090 (diff) | |
download | wycheproof-a1e7be65ef316dcc591aec274b49ab83ec695419.tar.gz |
Remove deprecated BouncyCastle algorithms
Stop testing BouncyCastle for removed algorithms.
Bug: 67761667
Test: cts -m CtsLibcoreWycheproofBCTestCases
Test: cts -m CtsLibcoreWycheproofConscryptTestCases
Change-Id: I5256fe1c7fefa2bd44ab29603e1bf9e3df51631b
Diffstat (limited to 'java/com/google/security/wycheproof/testcases/RsaSignatureTest.java')
-rw-r--r-- | java/com/google/security/wycheproof/testcases/RsaSignatureTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/com/google/security/wycheproof/testcases/RsaSignatureTest.java b/java/com/google/security/wycheproof/testcases/RsaSignatureTest.java index 3d214fe..f9e97ba 100644 --- a/java/com/google/security/wycheproof/testcases/RsaSignatureTest.java +++ b/java/com/google/security/wycheproof/testcases/RsaSignatureTest.java @@ -16,6 +16,8 @@ package com.google.security.wycheproof; +import com.google.security.wycheproof.WycheproofRunner.ExcludedTest; +import com.google.security.wycheproof.WycheproofRunner.ProviderType; import java.math.BigInteger; import java.security.KeyFactory; import java.security.KeyPair; @@ -1074,6 +1076,9 @@ public class RsaSignatureTest extends TestCase { + "0000", }; + @ExcludedTest( + providers = {ProviderType.BOUNCY_CASTLE}, + comment = "KeyPairGenerator.RSA is removed") public void testBasic() throws Exception { String algorithm = "SHA256WithRSA"; String hashAlgorithm = "SHA-256"; @@ -1155,6 +1160,9 @@ public class RsaSignatureTest extends TestCase { } /** SunJCE threw an OutOfMemoryError with one of the signatures. */ + @ExcludedTest( + providers = {ProviderType.BOUNCY_CASTLE}, + comment = "KeyFactory.RSA is removed") public void testVectorsAll() throws Exception { testVectors(RSA_KEY1, ALGORITHM_KEY1, SIGNATURES_KEY1); } @@ -1187,6 +1195,9 @@ public class RsaSignatureTest extends TestCase { * https://groups.google.com/a/chromium.org/forum/#!topic/chromium-reviews/Jo5S7HtEABI claims that * 7% of the responses in the Online Certificate Status Protocol (OCSP) miss the NULL parameter */ + @ExcludedTest( + providers = {ProviderType.BOUNCY_CASTLE}, + comment = "KeyFactory.RSA is removed") public void testLegacySignatures() throws Exception { RSAPublicKeySpec key = RSA_KEY1; String algorithm = ALGORITHM_KEY1; |