RFR: 8267125: AES Galois CounterMode (GCM) interleaved implementation using AVX512 + VAES instructions [v8]

Valerie Peng valeriep at openjdk.java.net
Mon Aug 9 18:04:36 UTC 2021


On Mon, 9 Aug 2021 15:49:07 GMT, Smita Kamath <svkamath at openjdk.org> wrote:

>> I would like to submit AES-GCM optimization for x86_64 architectures supporting AVX3+VAES (Evex encoded AES). This optimization interleaves AES and GHASH operations.
>> Performance gain of ~1.5x - 2x for message sizes 8k and above.
>
> Smita Kamath has updated the pull request incrementally with one additional commit since the last revision:
> 
>   rewiew update

src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java line 1652:

> 1650:                 outOfs += resultLen;
> 1651:                 len += resultLen;
> 1652:             }

Seems redundant since DecryptOp.doFinal(..) already has this check?

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

PR: https://git.openjdk.java.net/jdk/pull/4019



More information about the security-dev mailing list