Re: [dpdk-dev] [PATCH] crypto/openssl: fix out-of-place encryption

2020-04-17 Thread Akhil Goyal
> > > > Hi Pablo, > > > > > When authenticating after encrypting, if the operation is > > > out-of-place, the destination buffer is the one that will get > > > authenticated. > > > If the cipher offset is higher than the authentication offset, it > > > means that part of the text to authenticate

Re: [dpdk-dev] [PATCH] crypto/openssl: fix out-of-place encryption

2020-04-16 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev On Behalf Of Akhil Goyal > Sent: Wednesday, April 15, 2020 8:23 PM > To: De Lara Guarch, Pablo ; Doherty, Declan > > Cc: Zhang, Roy Fan ; dev@dpdk.org; > akhil.go...@intel.com; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH]

Re: [dpdk-dev] [PATCH] crypto/openssl: fix out-of-place encryption

2020-04-15 Thread Akhil Goyal
Hi Pablo, > When authenticating after encrypting, if the operation > is out-of-place, the destination buffer is the one > that will get authenticated. > If the cipher offset is higher than the authentication > offset, it means that part of the text to authenticate > will be plaintext, so this need

[dpdk-dev] [PATCH] crypto/openssl: fix out-of-place encryption

2020-04-14 Thread Pablo de Lara
When authenticating after encrypting, if the operation is out-of-place, the destination buffer is the one that will get authenticated. If the cipher offset is higher than the authentication offset, it means that part of the text to authenticate will be plaintext, so this needs to get copied to the