RFR: 8334999: RISC-V: implement AES single block encryption/decryption intrinsics [v3]

ArsenyBochkarev duke at openjdk.org
Sun Jul 14 15:00:04 UTC 2024


On Tue, 9 Jul 2024 05:28:13 GMT, Fei Yang <fyang at openjdk.org> wrote:

>> ArsenyBochkarev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Left a note on a side effect of generate_vle32_pack2
>
> Changes requested by fyang (Reviewer).

As for comparison with the openssl version: first of all, thanks for the sources, @RealFYang! The main difference that I see is that they introduced three different different versions of encryption depending on the key sizes, which allows them to skip a couple of instructions, like when I did `vaesem_vv(res, vzero)` followed by `vxor_vv(res, res, vtemp1)`. So I thought it'll be more efficient to replace the current version by something openssl-lookalike. The only problem I see is increasing code size a bit. Please let me know if we are not interested in this change for some reason

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

PR Comment: https://git.openjdk.org/jdk/pull/19960#issuecomment-2227377554


More information about the hotspot-dev mailing list