Skip to content

Commit

Permalink
fixed bc-test-data
Browse files Browse the repository at this point in the history
re-added dilithium in composite signatures.
  • Loading branch information
royb committed Jul 2, 2024
1 parent 9b5f7ed commit 4abf695
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,18 +192,6 @@ public void testDecodingAndVerificationExternal()
throw new IllegalStateException("Input file has unexpected format.");
}
String oid = lineParts[0];
// TODO: dilithium has moved on - samples need to be replaced.
if (oid.equals("2.16.840.1.114027.80.8.1.6")
|| oid.equals("2.16.840.1.114027.80.8.1.7")
|| oid.equals("2.16.840.1.114027.80.8.1.8")
|| oid.equals("2.16.840.1.114027.80.8.1.9")
|| oid.equals("2.16.840.1.114027.80.8.1.10")
|| oid.equals("2.16.840.1.114027.80.8.1.11")
|| oid.equals("2.16.840.1.114027.80.8.1.12")
|| oid.equals("2.16.840.1.114027.80.8.1.13"))
{
continue;
}
String signatureValueBase64 = lineParts[1];
String publicKeyBase64 = lineParts[2];
String messageBase64 = lineParts[3];
Expand All @@ -219,7 +207,6 @@ public void testDecodingAndVerificationExternal()
count++;
}

// TODO: Dilithium based samples need to be replaced
assertEquals(compositeSignaturesOIDs.length - 8, count);
assertEquals(compositeSignaturesOIDs.length, count);
}
}

0 comments on commit 4abf695

Please sign in to comment.