@@ -555,9 +555,12 @@ public static void main(String[] args)
555
555
{
556
556
derOutput (aDir , sigAlgNames [alg ] + "-" + sigAlgorithms [alg ] + "_seed_priv.der" , ((MLDSAPrivateKey )taKp .getPrivate ()).getPrivateKey (true ));
557
557
derOutput (aDir , sigAlgNames [alg ] + "-" + sigAlgorithms [alg ] + "_expandedkey_priv.der" , ((MLDSAPrivateKey )taKp .getPrivate ()).getPrivateKey (false ));
558
+ derOutput (aDir , sigAlgNames [alg ] + "-" + sigAlgorithms [alg ] + "_both_priv.der" , taKp .getPrivate ());
559
+ }
560
+ else
561
+ {
562
+ derOutput (aDir , sigAlgNames [alg ] + "-" + sigAlgorithms [alg ] + "_priv.der" , taKp .getPrivate ());
558
563
}
559
-
560
- derOutput (aDir , sigAlgNames [alg ] + "-" + sigAlgorithms [alg ] + "_priv.der" , taKp .getPrivate ());
561
564
562
565
sigParams .put (sigAlgNames [alg ], new PKIXPair (taKp .getPrivate (), taCert ));
563
566
}
@@ -582,9 +585,12 @@ public static void main(String[] args)
582
585
{
583
586
derOutput (aDir , kemAlgNames [alg ].toLowerCase (Locale .ROOT ) + "-" + kemAlgorithms [alg ] + "_seed_priv.der" , ((MLKEMPrivateKey )eeKp .getPrivate ()).getPrivateKey (true ));
584
587
derOutput (aDir , kemAlgNames [alg ].toLowerCase (Locale .ROOT ) + "-" + kemAlgorithms [alg ] + "_expandedkey_priv.der" , ((MLKEMPrivateKey )eeKp .getPrivate ()).getPrivateKey (false ));
588
+ derOutput (aDir , kemAlgNames [alg ].toLowerCase (Locale .ROOT ) + "-" + kemAlgorithms [alg ] + "_both_priv.der" , eeKp .getPrivate ());
589
+ }
590
+ else
591
+ {
592
+ derOutput (aDir , kemAlgNames [alg ].toLowerCase (Locale .ROOT ) + "-" + kemAlgorithms [alg ] + "_priv.der" , eeKp .getPrivate ());
585
593
}
586
-
587
- derOutput (aDir , kemAlgNames [alg ].toLowerCase (Locale .ROOT ) + "-" + kemAlgorithms [alg ] + "_priv.der" , eeKp .getPrivate ());
588
594
589
595
kemSampleOutput (aDir , kemAlgNames [alg ].toLowerCase (Locale .ROOT ) + "-" + kemAlgorithms [alg ], eeKp );
590
596
0 commit comments