On Thu, 22 Jul 2021 22:41:03 GMT, Valerie Peng <valer...@openjdk.org> wrote:

>> This is able in-place, not about two separate buffers.. zeroing happens 
>> somewhere else for all decryption bad buffers
>
> Yes, I know. Basically, we are trying to optimize performance by trying to 
> write into the supplied buffers (out) as much as we can. But then when tag 
> verification failed, the "written" bytes are erased w/ 0. Ideal case would be 
> not to touch the output buffer until after the tag verification succeeds. 
> Isn't this the previous approach? Verify the tag first and then write out the 
> plain text afterwards.

With this new intrinsic doing both ghash and gctr at the same time, I cannot do 
the that ghash check first before the gctr op.  I wish I could

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

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

Reply via email to