crypto: qce - Add MAC failed error checking
authorThara Gopinath <thara.gopinath@linaro.org>
Thu, 29 Apr 2021 15:07:01 +0000 (11:07 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 14 May 2021 11:07:55 +0000 (19:07 +0800)
commita9ca8eacb3204208863b9175baae8ac7ee6b2a64
treef4a10d42c5d023894ab00f2a9ef94096239f6426
parentb7c3635e56d6561436af59b9876faa7cc8389644
crypto: qce - Add MAC failed error checking

MAC_FAILED gets set in the status register if authenthication fails
for ccm algorithms(during decryption). Add support to catch and flag
this error.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/common.c