Re: [PATCH] crypto: algif_aead - copy AAD from src to dst

2017-08-09 Thread Herbert Xu
On Sun, Jul 30, 2017 at 02:32:58PM +0200, Stephan Müller wrote: > Use the NULL cipher to copy the AAD and PT/CT from the TX SGL > to the RX SGL. This allows an in-place crypto operation on the > RX SGL for encryption, because the TX data is always smaller or > equal to the RX data (the RX data will

[PATCH] crypto: algif_aead - copy AAD from src to dst

2017-07-30 Thread Stephan Müller
Use the NULL cipher to copy the AAD and PT/CT from the TX SGL to the RX SGL. This allows an in-place crypto operation on the RX SGL for encryption, because the TX data is always smaller or equal to the RX data (the RX data will hold the tag). For decryption, a per-request TX SGL is created which w