Re: RFR: 8298249: Excessive memory allocation in CipherInputStream AEAD decryption

2022-12-14 Thread Daniel Jeliński
On Thu, 8 Dec 2022 16:33:06 GMT, Daniel Jeliński wrote: > This patch modifies `CipherInputStream` to avoid pointless memory allocations > when decrypting data using AEAD ciphers. > > `Cipher.update` on AEAD decryption does not output any data; instead, all > data is buffered and returned in on

Re: RFR: 8298249: Excessive memory allocation in CipherInputStream AEAD decryption

2022-12-14 Thread Valerie Peng
On Thu, 8 Dec 2022 16:33:06 GMT, Daniel Jeliński wrote: > This patch modifies `CipherInputStream` to avoid pointless memory allocations > when decrypting data using AEAD ciphers. > > `Cipher.update` on AEAD decryption does not output any data; instead, all > data is buffered and returned in on

Re: RFR: 8298249: Excessive memory allocation in CipherInputStream AEAD decryption

2022-12-14 Thread Anthony Scarpino
On Thu, 8 Dec 2022 16:33:06 GMT, Daniel Jeliński wrote: > This patch modifies `CipherInputStream` to avoid pointless memory allocations > when decrypting data using AEAD ciphers. > > `Cipher.update` on AEAD decryption does not output any data; instead, all > data is buffered and returned in on

Re: RFR: 8298249: Excessive memory allocation in CipherInputStream AEAD decryption

2022-12-13 Thread Valerie Peng
On Thu, 8 Dec 2022 16:33:06 GMT, Daniel Jeliński wrote: > This patch modifies `CipherInputStream` to avoid pointless memory allocations > when decrypting data using AEAD ciphers. > > `Cipher.update` on AEAD decryption does not output any data; instead, all > data is buffered and returned in on

RFR: 8298249: Excessive memory allocation in CipherInputStream AEAD decryption

2022-12-08 Thread Daniel Jeliński
This patch modifies `CipherInputStream` to avoid pointless memory allocations when decrypting data using AEAD ciphers. `Cipher.update` on AEAD decryption does not output any data; instead, all data is buffered and returned in one shot from `doFinal` call. On the other hand, the value returned b