crypto: caam/qi - return -EBADMSG for ICV check failure
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 29 Jan 2018 08:38:35 +0000 (10:38 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Feb 2018 15:26:53 +0000 (23:26 +0800)
commitcb3078f35b16b5346a90317d2d4ce2a577429d8a
treea85f919b8ff3a73d7eddfc966e9928ef890a46e5
parentdc7bcef5e956257c9cfb19a9a8d32b824b78ef64
crypto: caam/qi - return -EBADMSG for ICV check failure

Crypto drivers are expected to return -EBADMSG in case of
ICV check (authentication) failure.

In this case it also makes sense to suppress the error message
in the QI dequeue callback.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi.c
drivers/crypto/caam/qi.c