diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2016-08-29 13:52:14 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-08-31 16:50:42 +0200 |
commit | 8b18e2359aff2ab810aba84cebffc9da07fef78f (patch) | |
tree | bc19822bcae40d8fbbc9696847ff9cf522db8e59 /crypto | |
parent | crypto: cryptd - Use correct tfm object for AEAD tracking (diff) | |
download | linux-8b18e2359aff2ab810aba84cebffc9da07fef78f.tar.xz linux-8b18e2359aff2ab810aba84cebffc9da07fef78f.zip |
crypto: caam - fix IV loading for authenc (giv)decryption
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.
Cc: <stable@vger.kernel.org> # 4.3+
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>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions