crypto: caam - add support for xcbc(aes)
authorIuliana Prodan <Iuliana.Prodan@nxp.com>
Fri, 21 Dec 2018 15:59:10 +0000 (17:59 +0200)
committerIuliana Prodan <iuliana.prodan@nxp.com>
Wed, 8 May 2019 13:28:24 +0000 (16:28 +0300)
commit5336cc042748328848f1a9313149f4aa28845c2d
treea041c2d391df215277ca1f993cefcd0abe399789
parente870b8c77e610c80ba061ee448af0c2003c20f45
crypto: caam - add support for xcbc(aes)

Add xcbc(aes) offloading support.

Due to xcbc algorithm design and HW implementation in CAAM,
driver must still have some bytes to send to the crypto engine when
ahash_final() is called - such that HW correctly uses either K2 or K3
for the last block.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 12b8567f6fa489c098024fc75caba2f6b1390a92)

Removed is_mdha() function since it doesn't exist in BSP.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
drivers/crypto/caam/caamhash.c
drivers/crypto/caam/caamhash_desc.c
drivers/crypto/caam/caamhash_desc.h