RFR: 8253821: Improve ByteBuffer performance with GCM [v3]

Valerie Peng valeriep at openjdk.java.net
Tue Nov 3 00:17:58 UTC 2020


On Fri, 23 Oct 2020 16:38:01 GMT, Anthony Scarpino <ascarpino at openjdk.org> wrote:

>> 8253821: Improve ByteBuffer performance with GCM
>
> Anthony Scarpino has updated the pull request incrementally with six additional commits since the last revision:
> 
>  - style
>  - style & comments
>  - full update
>  - remove old
>  - update
>  - outputsize

src/java.base/share/classes/com/sun/crypto/provider/GCTR.java line 153:

> 151:             while (processed > MAX_LEN) {
> 152:                 encrypt(in, offset, MAX_LEN, out, 0);
> 153:                 dst.get(out, 0, MAX_LEN);

Shouldn't this be "put" instead of "get"?

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

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



More information about the security-dev mailing list