Re: RFR: 8255557: Decouple GCM from CipherCore [v2]

2021-05-24 Thread Anthony Scarpino
On Mon, 24 May 2021 18:15:17 GMT, Valerie Peng wrote: >> src.array() throws an exception if it's read only > > Other files seem to use src.hasArray() call which also checked for read only. > Maybe that's what you meant to use? Yes, I could use hasArray(). I hadn't started using that until late

Re: RFR: 8255557: Decouple GCM from CipherCore [v2]

2021-05-24 Thread Valerie Peng
On Mon, 24 May 2021 16:34:51 GMT, Anthony Scarpino wrote: >> src/java.base/share/classes/com/sun/crypto/provider/GCTR.java line 203: >> >>> 201: // allocating and copying for direct bytebuffers >>> 202: if (!src.isDirect() && !dst.isDirect() && >>> 203: !src.isReadOn

Re: RFR: 8255557: Decouple GCM from CipherCore [v2]

2021-05-24 Thread Anthony Scarpino
On Mon, 17 May 2021 22:42:40 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - review comment updates >> - Fixed the lack of overlap detection with GCMEncrypt.update() > > src/java.base/share

Re: RFR: 8255557: Decouple GCM from CipherCore [v2]

2021-05-20 Thread Valerie Peng
On Mon, 17 May 2021 21:58:48 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - review comment updates >> - Fixed the lack of overlap detection with GCMEncrypt.update() > > src/java.base/share

Re: RFR: 8255557: Decouple GCM from CipherCore [v2]

2021-05-19 Thread Valerie Peng
On Mon, 17 May 2021 21:41:37 GMT, Anthony Scarpino wrote: >> Hi, >> >> I need a review of this rather large change to GCM. GCM will no longer use >> CipherCore, and AESCrypt to handle it's buffers and other objects. It is >> also a major code redesign limits the amount of data copies and m

Re: RFR: 8255557: Decouple GCM from CipherCore [v2]

2021-05-17 Thread Anthony Scarpino
> Hi, > > I need a review of this rather large change to GCM. GCM will no longer use > CipherCore, and AESCrypt to handle it's buffers and other objects. It is > also a major code redesign limits the amount of data copies and make some > performance-based decisions. > > Thanks > > Tony An