Add "SHA-384" as a known attribute

Ayman elmoussaoui.ayman01 at gmail.com
Fri Apr 4 15:24:06 UTC 2025


Hello,

Starting from JDK 19, SHA-384 is replacing SHA-256 as the default digest
algorithm in the jarsigner: https://bugs.openjdk.org/browse/JDK-8283475

This means that the string "SHA-384" is now written multiples times is the
MANIFEST files, this has been tackled in the past by adding the string
"SHA-256" as a KNOWN_NAME that shouldn't be duplicated in memory:
https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/util/jar/Attributes.java#L729

Is it possible to do the same with "SHA-384"?

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jdk-dev/attachments/20250404/fb006cdd/attachment-0001.htm>


More information about the jdk-dev mailing list