summaryrefslogtreecommitdiff
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2016-08-29 14:52:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-15 08:27:53 +0200
commitf973851a595969f2a57f81e3c915cc116ae5a74f (patch)
tree950b8548f78fbb093b58db54bf7181e0c4c927ff /lib/mpi/mpicoder.c
parentf964b3b368b59cc03e26d3f5b5226432b22d9a0d (diff)
crypto: caam - fix IV loading for authenc (giv)decryption
commit 8b18e2359aff2ab810aba84cebffc9da07fef78f upstream. For algorithms that implement IV generators before the crypto ops, the IV needed for decryption is initially located in req->src scatterlist, not in req->iv. Avoid copying the IV into req->iv by modifying the (givdecrypt) descriptors to load it directly from req->src. aead_givdecrypt() is no longer needed and goes away. Fixes: 479bcc7c5b9e ("crypto: caam - Convert authenc to new AEAD interface") Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions