crypto: caam - keep both virtual and dma key addresses
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 31 Jul 2019 13:08:10 +0000 (16:08 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Aug 2019 05:11:49 +0000 (15:11 +1000)
commita2fb864c042b00debc7696d4459d8058ec7c8013
treefa78e4d9cbd62a980b75311b6d9db9dfbd4dc58d
parentd28a43edf3caff971b58d75c83ad00487152e448
crypto: caam - keep both virtual and dma key addresses

Update alginfo struct to keep both virtual and dma key addresses,
so that descriptors have them at hand.
One example where this is needed is in the xcbc(aes) shared descriptors,
which are updated in current patch.
Another example is the upcoming fix for DKP.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@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
drivers/crypto/caam/desc_constr.h