On Fri, 13 Nov 2020 21:00:20 GMT, Valerie Peng <valer...@openjdk.org> wrote:
>> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Code review comment update >> Major change to test to detect corruption with incremental buffers test > > src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java > line 560: > >> 558: System.arraycopy(buffer, 0, block, 0, blockSize); >> 559: buflen -= block.length; >> 560: return 0; > > Will bufLen > blockSize? Judging from the context of this method, > buffer.length should always <= blockSize and never be larger? If bufLen == > blockSize, perhaps we can just use buffer directly and no need to copy. This method is being removed ------------- PR: https://git.openjdk.java.net/jdk/pull/411