diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2019-01-15 15:43:15 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-01-25 18:41:51 +0800 |
commit | c139c72e2beb3e3db5148910b3962b7322e24374 (patch) | |
tree | a8b90241f54ba1cd844a34f8ae3d4d022216998e /drivers/crypto/ccree/cc_request_mgr.c | |
parent | 1ffbe1347e93138cacbd5d929a73aa79a014bbac (diff) |
crypto: ccree - unmap buffer before copying IV
We were copying the last ciphertext block into the IV field
for CBC before removing the DMA mapping of the output buffer
with the result of the buffer sometime being out-of-sync cache
wise and were getting intermittent cases of bad output IV.
Fix it by moving the DMA buffer unmapping before the copy.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Fixes: 00904aa0cd59 ("crypto: ccree - fix iv handling")
Cc: <stable@vger.kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccree/cc_request_mgr.c')
0 files changed, 0 insertions, 0 deletions