RFR: 8333867: SHA3 performance can be improved [v2]

Andrey Turbanov aturbanov at openjdk.org
Fri Jun 14 05:58:12 UTC 2024


On Wed, 12 Jun 2024 14:08:43 GMT, Ferenc Rakoczi <duke at openjdk.org> wrote:

>> This PR removes some unnecessary conversions between byte arrays and long arrays during SHA3 digest computations.
>
> Ferenc Rakoczi has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix clone(), accept review suggestions.

src/java.base/share/classes/sun/security/provider/SHA3.java line 152:

> 150:      */
> 151:     void implReset() {
> 152:         Arrays.fill(state,0L);

Suggestion:

        Arrays.fill(state, 0L);

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19632#discussion_r1639301465



More information about the security-dev mailing list