Skip to content

Commit 4abf695

Browse files
author
royb
committed
fixed bc-test-data
re-added dilithium in composite signatures.
1 parent 9b5f7ed commit 4abf695

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

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

+1-14
Original file line numberDiff line numberDiff line change
@@ -192,18 +192,6 @@ public void testDecodingAndVerificationExternal()
192192
throw new IllegalStateException("Input file has unexpected format.");
193193
}
194194
String oid = lineParts[0];
195-
// TODO: dilithium has moved on - samples need to be replaced.
196-
if (oid.equals("2.16.840.1.114027.80.8.1.6")
197-
|| oid.equals("2.16.840.1.114027.80.8.1.7")
198-
|| oid.equals("2.16.840.1.114027.80.8.1.8")
199-
|| oid.equals("2.16.840.1.114027.80.8.1.9")
200-
|| oid.equals("2.16.840.1.114027.80.8.1.10")
201-
|| oid.equals("2.16.840.1.114027.80.8.1.11")
202-
|| oid.equals("2.16.840.1.114027.80.8.1.12")
203-
|| oid.equals("2.16.840.1.114027.80.8.1.13"))
204-
{
205-
continue;
206-
}
207195
String signatureValueBase64 = lineParts[1];
208196
String publicKeyBase64 = lineParts[2];
209197
String messageBase64 = lineParts[3];
@@ -219,7 +207,6 @@ public void testDecodingAndVerificationExternal()
219207
count++;
220208
}
221209

222-
// TODO: Dilithium based samples need to be replaced
223-
assertEquals(compositeSignaturesOIDs.length - 8, count);
210+
assertEquals(compositeSignaturesOIDs.length, count);
224211
}
225212
}

0 commit comments

Comments
 (0)