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

2021-06-01 Thread Anthony Scarpino
On Tue, 1 Jun 2021 18:54:19 GMT, Valerie Peng wrote: >> Yeah, I changed this code long ago, i suspect I didn't realize >> engineGetParameters() used it > > It seems that you still have not saved the specified 'random' into the > instance 'random' field? Did I miss something? yeah.. i think i g

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

2021-06-01 Thread Valerie Peng
On Fri, 21 May 2021 03:07:15 GMT, Anthony Scarpino wrote: >> yeah these checks are a bit all over the place.. I'll rework them > > So I think I only need to add a check to the engineDoFinal() that did not > have a check before. for engineUpdate(...) impl, the ArrayUtil.nullAndBoundsCheck() cal

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

2021-06-01 Thread Valerie Peng
On Mon, 24 May 2021 16:37:05 GMT, Anthony Scarpino wrote: >> src/java.base/share/classes/com/sun/crypto/provider/GHASH.java line 189: >> >>> 187: ct.position(ct.position()); >>> 188: return processed; >>> 189: } else if (!ct.isReadOnly()) { >> >> Maybe you meant

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

2021-05-24 Thread Valerie Peng
On Mon, 24 May 2021 16:54:39 GMT, Anthony Scarpino wrote: >> src/java.base/share/classes/com/sun/crypto/provider/GHASH.java line 338: >> >>> 336: public int doFinal(ByteBuffer src, ByteBuffer dst) { >>> 337: return doFinal(src, src.remaining()); >>> 338: } >> >> Have you consid

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

2021-05-24 Thread Anthony Scarpino
On Tue, 18 May 2021 18:38:40 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cleanup > > src/java.base/share/classes/com/sun/crypto/provider/GHASH.java line 338: > >> 336: public int doFi

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

2021-05-24 Thread Anthony Scarpino
On Tue, 18 May 2021 17:24:13 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cleanup > > src/java.base/share/classes/com/sun/crypto/provider/GHASH.java line 189: > >> 187: ct.posi

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

2021-05-20 Thread Anthony Scarpino
On Fri, 21 May 2021 02:51:05 GMT, Anthony Scarpino wrote: >> src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java >> line 402: >> >>> 400: } >>> 401: try { >>> 402: ArrayUtil.nullAndBoundsCheck(input, inputOffset, inputLen); >> >> Why is only

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

2021-05-20 Thread Anthony Scarpino
On Wed, 19 May 2021 19:20:20 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cleanup > > src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java > line 402: > >> 400:

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

2021-05-20 Thread Anthony Scarpino
On Tue, 18 May 2021 22:23:11 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cleanup > > src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java > line 225: > >> 223:

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

2021-05-20 Thread Anthony Scarpino
On Tue, 18 May 2021 22:46:58 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cleanup > > src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java > line 168: > >> 166:

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

2021-05-20 Thread Anthony Scarpino
On Tue, 18 May 2021 21:58:24 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cleanup > > src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java > line 149: > >> 147:

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

2021-05-20 Thread Anthony Scarpino
On Tue, 18 May 2021 20:33:22 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cleanup > > src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java > line 133: > >> 131:

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

2021-05-20 Thread Anthony Scarpino
On Tue, 18 May 2021 18:52:06 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cleanup > > src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java > line 75: > >> 73: pr

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

2021-05-20 Thread Anthony Scarpino
On Wed, 19 May 2021 18:17:27 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cleanup > > src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java > line 259: > >> 257:

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

2021-05-20 Thread Anthony Scarpino
On Wed, 19 May 2021 18:15:26 GMT, Valerie Peng wrote: >> Anthony Scarpino has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cleanup > > src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java > line 279: > >> 277:

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

2021-05-19 Thread Valerie Peng
On Tue, 18 May 2021 03:18:18 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 [v3]

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