Re: [PATCH 0/3] crypto: caam - IV-related fixes

2018-04-20 Thread Herbert Xu
On Wed, Mar 28, 2018 at 03:39:16PM +0300, Horia Geantă wrote:
> This patch set fixes several issues related to IV handling:
> -in some cases IV direction is incorrect
> -IVs need to be DMA mapped (when they are not provided directly
> as "immediate" values in the descriptors); however, crypto API does not
> guarantee the IV buffers to be DMAable
> -in-place ablkcipher decryption needs special handling since ciphertext
> will be overwritten by the time we want to update the IV with the last
> ciphertext block
> 
> Horia Geantă (3):
>   crypto: caam - fix DMA mapping dir for generated IV
>   crypto: caam - fix IV DMA mapping and updating
>   crypto: caam/qi - fix IV DMA mapping and updating
> 
>  drivers/crypto/caam/caamalg.c| 231 
> +--
>  drivers/crypto/caam/caamalg_qi.c | 227 +++---
>  2 files changed, 219 insertions(+), 239 deletions(-)

All applied.  Thanks.
-- 
Email: Herbert Xu 
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


[PATCH 0/3] crypto: caam - IV-related fixes

2018-03-28 Thread Horia Geantă
This patch set fixes several issues related to IV handling:
-in some cases IV direction is incorrect
-IVs need to be DMA mapped (when they are not provided directly
as "immediate" values in the descriptors); however, crypto API does not
guarantee the IV buffers to be DMAable
-in-place ablkcipher decryption needs special handling since ciphertext
will be overwritten by the time we want to update the IV with the last
ciphertext block

Horia Geantă (3):
  crypto: caam - fix DMA mapping dir for generated IV
  crypto: caam - fix IV DMA mapping and updating
  crypto: caam/qi - fix IV DMA mapping and updating

 drivers/crypto/caam/caamalg.c| 231 +--
 drivers/crypto/caam/caamalg_qi.c | 227 +++---
 2 files changed, 219 insertions(+), 239 deletions(-)

-- 
2.16.2