Re: [PATCH] crypto: cavium/nitrox - check assoclen and authsize for gcm(aes) cipher

From: Herbert Xu
Date: Fri Oct 04 2019 - 11:42:19 EST


On Mon, Sep 16, 2019 at 06:42:06AM +0000, Nagadheeraj Rottela wrote:
> Check if device supports assoclen to solve hung task timeout error when
> extra tests are enabled. Return -EINVAL if assoclen is not supported.
> Check authsize to return -EINVAL if authentication tag size is invalid.
> Change blocksize to 1 to match with generic implementation.
>
> Signed-off-by: Nagadheeraj Rottela <rnagadheeraj@xxxxxxxxxxx>
> Reported-by: Mallesham Jatharakonda <mallesham.jatharakonda@xxxxxxxxxxxxxxxxxx>
> Suggested-by: Mallesham Jatharakonda <mallesham.jatharakonda@xxxxxxxxxxxxxxxxxx>
> Reviewed-by: Srikanth Jampala <jsrikanth@xxxxxxxxxxx>
> ---
> drivers/crypto/cavium/nitrox/nitrox_aead.c | 39 +++++++++++++++++++++++++++---
> 1 file changed, 36 insertions(+), 3 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt