crypto: caam - add support for cmac(aes)
authorIuliana Prodan <iuliana.prodan@nxp.com>
Mon, 21 Jan 2019 13:22:42 +0000 (15:22 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Feb 2019 06:42:03 +0000 (14:42 +0800)
commit87870cfb4b5a93c70e2dc32d0349af0625bd5546
treea73c5f4b200674b9b8a58abab2035ffb0b0f9b36
parent7e33d4d48974e06745514a68c8b1670e5006a4dd
crypto: caam - add support for cmac(aes)

Add cmac(aes) keyed hash offloading support.

Similar to xcbc implementation, driver must make sure there are still
some bytes buffered when ahash_final() is called. This way HW is able to
decide whether padding is needed and which key to derive (L -> K1 / K2)
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>
drivers/crypto/caam/caamhash.c
drivers/crypto/caam/caamhash_desc.c
drivers/crypto/caam/caamhash_desc.h