RFR: 8371820: Further AES performance improvements for key schedule generation [v4]
Martin Doerr
mdoerr at openjdk.org
Wed Nov 19 09:13:42 UTC 2025
On Tue, 18 Nov 2025 21:48:12 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:
>> This fix simplifies the hotspot intrinsics for some platforms and optimizes the key computation for encryption. We can save the `genInvRoundKeys` computation when we only do encryption.
>>
>> The micro:org.openjdk.bench.javax.crypto.AESReinit benchmark results are improved by 17% for ppc64 and 26% for x86_64.
>
> Martin Doerr has updated the pull request incrementally with one additional commit since the last revision:
>
> Remove K from AES_Crypt
@vnkozlov: May I ask you to take a look at the C2 part? I had to adapt the library_call code to the new Java implementation which stores the key in "sessionKe" and "sessionKd", now. I think the hotspot part is also more comprehensive this way because it makes it clear which key is used for what.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28299#issuecomment-3551612586
More information about the security-dev
mailing list