On Thu, 20 May 2021 19:46:51 GMT, Valerie Peng <valer...@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 1163: > >> 1161: r = doUpdate(buffer, 0, bufLen, out, outOfs); >> 1162: bufLen -= r; >> 1163: inOfs += r; > > Would bufLen >= blockSize? Regardless, 'inOfs' should not be touched as 'in' > is not used in the above doUpdate() call. removing it ------------- PR: https://git.openjdk.java.net/jdk/pull/4072