RFR: 8354305: SHAKE128 and SHAKE256 MessageDigest algorithms [v3]

Weijun Wang weijun at openjdk.org
Mon Apr 28 18:10:45 UTC 2025


On Mon, 28 Apr 2025 14:48:34 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Add 2 `MessageDigest` algorithms.
>
> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   test alias usage

I mainly don't like the current [hardcoded branches](https://github.com/openjdk/jdk/blob/c54fc08aa3c63e4b26dc5edb2436844dfd3bab7c/src/java.base/share/classes/sun/security/pkcs/PKCS7.java#L754) (and [this one](https://github.com/openjdk/jdk/blob/c54fc08aa3c63e4b26dc5edb2436844dfd3bab7c/src/java.base/share/classes/sun/security/ec/ed/EdDSAParameters.java#L126)) currently inside JDK. I understand they are primarily used as a component of another algorithm and not directly used by end users. There will be more such code when we support preHash ML-DSA and SLH-DSA etc.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24576#issuecomment-2836073545


More information about the security-dev mailing list