diff --git a/java/com/google/security/wycheproof/testcases/AesGcmTest.java b/java/com/google/security/wycheproof/testcases/AesGcmTest.java index 68c5f0f..37045d2 100644 --- a/java/com/google/security/wycheproof/testcases/AesGcmTest.java +++ b/java/com/google/security/wycheproof/testcases/AesGcmTest.java @@ -409,6 +409,10 @@ public class AesGcmTest { } /** Encryption and decryption with large arrays should be copy-safe. */ + @NoPresubmitTest( + providers = {ProviderType.BOUNCY_CASTLE}, + bugs = {"b/64378943"} + ) @Test public void testLargeArrayAlias() throws Exception { byte[] ptVector = new byte[8192]; @@ -484,6 +488,10 @@ public class AesGcmTest { * * @see https://bugs.openjdk.java.net/browse/JDK-8181386 */ + @NoPresubmitTest( + providers = {ProviderType.BOUNCY_CASTLE, ProviderType.OPENJDK}, + bugs = {"b/64378943"} + ) @Test public void testByteBufferShiftedAlias() throws Exception { byte[] ptVector = new byte[8192]; diff --git a/java/com/google/security/wycheproof/testcases/DhTest.java b/java/com/google/security/wycheproof/testcases/DhTest.java index a908e0f..41e504f 100644 --- a/java/com/google/security/wycheproof/testcases/DhTest.java +++ b/java/com/google/security/wycheproof/testcases/DhTest.java @@ -349,6 +349,10 @@ public class DhTest { * https://docs.oracle.com/javase/7/docs/api/java/security/KeyPairGenerator.html an implementation * of the Java platform is only required to support 1024 bit keys. */ + @NoPresubmitTest( + providers = {ProviderType.OPENJDK, ProviderType.BOUNCY_CASTLE}, + bugs = {"b/33190860", "b/33190677"} + ) @SlowTest(providers = {ProviderType.BOUNCY_CASTLE, ProviderType.SPONGY_CASTLE}) @Test public void testDefaultKeyPairGenerator() throws Exception { diff --git a/java/com/google/security/wycheproof/testcases/DhiesTest.java b/java/com/google/security/wycheproof/testcases/DhiesTest.java index c004022..10e9693 100644 --- a/java/com/google/security/wycheproof/testcases/DhiesTest.java +++ b/java/com/google/security/wycheproof/testcases/DhiesTest.java @@ -187,10 +187,19 @@ public class DhiesTest { *
This test tries to verify this. */ + @NoPresubmitTest( + providers = {ProviderType.BOUNCY_CASTLE}, + bugs = {"b/30424901: won't fix, all BC ECIES modes are banned"} + ) @Test public void testByteBufferAlias() throws Exception { byte[] message = "Hello".getBytes("UTF-8"); diff --git a/java/com/google/security/wycheproof/testcases/JsonKeyWrapTest.java b/java/com/google/security/wycheproof/testcases/JsonKeyWrapTest.java index ef940ec..a1ddcb1 100644 --- a/java/com/google/security/wycheproof/testcases/JsonKeyWrapTest.java +++ b/java/com/google/security/wycheproof/testcases/JsonKeyWrapTest.java @@ -233,10 +233,20 @@ public class JsonKeyWrapTest { assertEquals(1, exceptions.size()); } } + + @NoPresubmitTest( + providers = {ProviderType.BOUNCY_CASTLE}, + bugs = {"b/77572633"} + ) @Test public void testAesWrap() throws Exception { testKeywrap("kw_test.json", "AESWRAP", "HMACSHA256", false); } + + @NoPresubmitTest( + providers = {ProviderType.BOUNCY_CASTLE}, + bugs = {"b/77572633"} + ) @Test public void testAesRFC5649Wrap() throws Exception { testKeywrap("kwp_test.json", "AESRFC5649WRAP", "HMACSHA256", false); diff --git a/java/com/google/security/wycheproof/testcases/JsonSignatureTest.java b/java/com/google/security/wycheproof/testcases/JsonSignatureTest.java index e907891..38dcb4f 100644 --- a/java/com/google/security/wycheproof/testcases/JsonSignatureTest.java +++ b/java/com/google/security/wycheproof/testcases/JsonSignatureTest.java @@ -332,6 +332,10 @@ public class JsonSignatureTest { } // Testing DSA signatures. + @NoPresubmitTest( + providers = {ProviderType.OPENJDK}, + bugs = {"b/33446454"} + ) @ExcludedTest( providers = {ProviderType.CONSCRYPT}, comment = "Conscrypt does not support DSA.") diff --git a/java/com/google/security/wycheproof/testcases/RsaKeyTest.java b/java/com/google/security/wycheproof/testcases/RsaKeyTest.java index 3eecc70..f208e42 100644 --- a/java/com/google/security/wycheproof/testcases/RsaKeyTest.java +++ b/java/com/google/security/wycheproof/testcases/RsaKeyTest.java @@ -1536,6 +1536,10 @@ public class RsaKeyTest { * implementation of the Java platform is required to implement RSA with both 1024 and 2048 bit * key sizes. Hence a 2048 bit default should not lead to compatibility problems. */ + @NoPresubmitTest( + providers = {ProviderType.OPENJDK}, + bugs = {"b/33190530"} + ) @Test public void testDefaultKeySize() throws Exception { KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA"); @@ -1640,6 +1644,10 @@ public class RsaKeyTest { }; // TODO(bleichen): This test is only needed as long as there are open issues. + @NoPresubmitTest( + providers = {ProviderType.OPENJDK}, + bugs = {"b/32656910"} + ) @Test public void testProblematicPublicKeyDecoding() throws Exception { KeyFactory kf = KeyFactory.getInstance("RSA");