RFR: 8255557: Decouple GCM from CipherCore [v4]
Anthony Scarpino
ascarpino at openjdk.java.net
Wed Jun 2 18:55:30 UTC 2021
On Fri, 21 May 2021 00:05:17 GMT, Valerie Peng <valeriep at openjdk.org> wrote:
>> Anthony Scarpino has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fix perf problem by reorganizing doLastBlock()
>
> src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java line 1442:
>
>> 1440: throw new ShortBufferException("Output buffer too small, must" +
>> 1441: "be at least " + (len - tagLenBytes) + " bytes long");
>> 1442: }
>
> This looks like a half-baked save/restore functionality?
This one forgot to restore the saved object
> src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java line 1475:
>
>> 1473:
>> 1474: // Length of the input
>> 1475: ByteBuffer tag;
>
> Is the comment obsolete? I don't quite follow how it's related to 'tag'.
sounds obsolete
-------------
PR: https://git.openjdk.java.net/jdk/pull/4072
More information about the security-dev
mailing list