aboutsummaryrefslogtreecommitdiff
path: root/java/com/google/security/wycheproof/testcases/RsaKeyTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/google/security/wycheproof/testcases/RsaKeyTest.java')
-rw-r--r--java/com/google/security/wycheproof/testcases/RsaKeyTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/java/com/google/security/wycheproof/testcases/RsaKeyTest.java b/java/com/google/security/wycheproof/testcases/RsaKeyTest.java
index b761dae..bfe5249 100644
--- a/java/com/google/security/wycheproof/testcases/RsaKeyTest.java
+++ b/java/com/google/security/wycheproof/testcases/RsaKeyTest.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;
@@ -1454,6 +1456,9 @@ public class RsaKeyTest extends TestCase {
checkKeyPair(keypair, keySizeInBits);
}
+ @ExcludedTest(
+ providers = {ProviderType.BOUNCY_CASTLE},
+ comment = "KeyPairGenerator.RSA is removed")
public void testKeyGeneration() throws Exception {
testKeyGenerationSize(1024);
testKeyGenerationSize(2048);
@@ -1466,6 +1471,9 @@ public class RsaKeyTest extends TestCase {
* Such a failure does not need to be a bug, since several encoding for the same key are
* possible.
*/
+ @ExcludedTest(
+ providers = {ProviderType.BOUNCY_CASTLE},
+ comment = "KeyFactory.RSA is removed")
public void testEncodeDecodePublic() throws Exception {
KeyFactory kf = KeyFactory.getInstance("RSA");
byte[] encoded = TestUtil.hexToBytes(ENCODED_PUBLIC_KEY);
@@ -1483,6 +1491,9 @@ public class RsaKeyTest extends TestCase {
* This test has mostly "defense in depth" characteristic, since applications should
* never accept unauthenticated public keys.
*/
+ @ExcludedTest(
+ providers = {ProviderType.BOUNCY_CASTLE},
+ comment = "KeyFactory.RSA is removed")
public void testModifiedPublicKeyDecoding() throws Exception {
KeyFactory kf = KeyFactory.getInstance("RSA");
int cnt = 0;