File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
java/org/bouncycastle/jcajce/provider/test
jdk17/org/bouncycastle/jcacje/provider/test Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -770,8 +770,7 @@ else if (tcId.contains("87"))
770770 privKey = keyFactory .generatePrivate (new PKCS8EncodedKeySpec (new PrivateKeyInfo (
771771 new AlgorithmIdentifier (new ASN1ObjectIdentifier (oidMap .get (tcId ))), new DEROctetString (sk )).getEncoded ()));
772772 certPubKey = cert .getPublicKey ();
773- // TODO: the test vectors are out of date
774- // x5cpk = certPubKey.getEncoded();
773+ x5cpk = certPubKey .getEncoded ();
775774 byte [] pkEncoded = SubjectPublicKeyInfo .getInstance (pubKey .getEncoded ()).getPublicKeyData ().getBytes ();
776775 TestCase .assertTrue (Arrays .areEqual (pkEncoded , pk ));
777776 byte [] skEncoded = PrivateKeyInfo .getInstance (privKey .getEncoded ()).getPrivateKey ().getOctets ();
Original file line number Diff line number Diff line change 66import org .bouncycastle .test .PrintTestResult ;
77
88
9- public class AllTests21
9+ public class AllTests17
1010 extends TestCase
1111{
1212 public static void main (String [] args )
@@ -16,7 +16,7 @@ public static void main(String[] args)
1616
1717 public static Test suite ()
1818 {
19- TestSuite suite = new TestSuite ("JDK21 Provider Tests" );
19+ TestSuite suite = new TestSuite ("JDK17 Provider Tests" );
2020 suite .addTestSuite (NTRUKEMTest .class );
2121 suite .addTestSuite (SNTRUPrimeKEMTest .class );
2222 suite .addTestSuite (MLKEMTest .class );
You can’t perform that action at this time.
0 commit comments