Skip to content

Commit 7d2e736

Browse files
committed
added test of test vectors to test body
1 parent 827bbce commit 7d2e736

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

prov/src/test/java/org/bouncycastle/jcajce/provider/test/CompositeSignaturesTest.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ public void setUp()
121121
Security.addProvider(new BouncyCastleProvider());
122122
}
123123

124+
public void testTestVectors()
125+
throws Exception
126+
{
127+
List<Map<String, Object>> testVectors = readTestVectorsFromJson("pqc/crypto/composite", "testvectors.json");
128+
compositeSignaturesTest(testVectors);
129+
}
130+
124131
public void testKeyPairGeneration()
125132
throws Exception
126133
{
@@ -722,11 +729,7 @@ public void compositeSignaturesTest(List<Map<String, Object>> testVectors)
722729
{
723730
//Ignore IOException
724731
}
725-
System.err.println(tcId);
726-
// if (tcId.equals("id-MLDSA65-RSA4096-PSS-SHA512"))
727-
// {
728-
// continue;
729-
// }
732+
730733
if (tcId.contains("id-ML-DSA"))
731734
{
732735
KeyFactory kFact = KeyFactory.getInstance("ML-DSA", "BC");

0 commit comments

Comments
 (0)