8356051: Update SignatureUtil.java with the new KnownOIDs

Reviewed-by: rhalade
This commit is contained in:
Weijun Wang 2025-05-02 00:25:19 +00:00
parent 494ef6cb8c
commit c514f135cc

View File

@ -198,7 +198,7 @@ public class SignatureUtil {
static {
try {
sha512 = new AlgorithmId(ObjectIdentifier.of(KnownOIDs.SHA_512));
shake256 = new AlgorithmId(ObjectIdentifier.of(KnownOIDs.SHAKE256));
shake256 = new AlgorithmId(ObjectIdentifier.of(KnownOIDs.SHAKE256_512));
shake256$512 = new AlgorithmId(
ObjectIdentifier.of(KnownOIDs.SHAKE256_LEN),
new DerValue((byte) 2, new byte[]{2, 0})); // int 512