RFR: 8267125: AES Galois CounterMode (GCM) interleaved implementation using AVX512 + VAES instructions [v2]
Vladimir Kozlov
kvn at openjdk.java.net
Fri Jun 11 17:58:50 UTC 2021
On Fri, 11 Jun 2021 17:19:37 GMT, Smita Kamath <svkamath at openjdk.org> wrote:
>> src/hotspot/share/opto/library_call.cpp line 547:
>>
>>> 545:
>>> 546: case vmIntrinsics::_galoisCounterMode_AESCrypt:
>>> 547: return inline_galoisCounterMode_AESCrypt(intrinsic_id());
>>
>> You don't need to pass `intrinsic_id()` for this implementation unless you plan to add decrypt intrinsic later.
>
> Thanks for your comments Vladimir. The intrinsic is called for encrypt as well as decrypt operation.
Only one intrinsic is declared in this change: `_galoisCounterMode_AESCrypt`. Other AES intrinsics have 2 that is why they have to pass intrinsic_id(). See lines before this.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4019
More information about the security-dev
mailing list