RFR: 8296507: GCM using more memory than necessary with in-place operations [v2]

Anthony Scarpino ascarpino at openjdk.org
Mon Nov 21 18:20:15 UTC 2022


On Fri, 18 Nov 2022 05:19:31 GMT, Anthony Scarpino <ascarpino at openjdk.org> wrote:

>> src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java line 694:
>> 
>>> 692:         int originalOutOfs = 0;
>>> 693: 
>>> 694:         // True if op is in-place array decryption with the input & output
>> 
>> // Setting `inPlaceArray` to true turns off combined intrinsic processing.
>
> yeah that's better

Actually the replacement isn't entirely accurate.  This only applies to decryption and for buffers that don't overlap where input is ahead of output.  That's why the comment is so wordy

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

PR: https://git.openjdk.org/jdk/pull/11121



More information about the security-dev mailing list