summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/caam
diff options
context:
space:
mode:
authorRomain Izard <romain.izard.pro@gmail.com>2017-10-31 16:25:23 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-11-03 22:11:26 +0800
commit91308019ecb46047b81d3c769cf5bf6b129ddf02 (patch)
tree7f456e91e54f9394650786cc75c94a6cfd1d8cbd /drivers/crypto/caam
parent142a27f0a731ddcf467546960a5585970ca98e21 (diff)
downloadlinux-91308019ecb46047b81d3c769cf5bf6b129ddf02.tar.bz2
crypto: atmel-aes - properly set IV after {en,de}crypt
Certain cipher modes like CTS expect the IV (req->info) of ablkcipher_request (or equivalently req->iv of skcipher_request) to contain the last ciphertext block when the {en,de}crypt operation is done. Fix this issue for the Atmel AES hardware engine. The tcrypt test case for cts(cbc(aes)) is now correctly passed. In the case of in-place decryption, copy the ciphertext in an intermediate buffer before decryption. Signed-off-by: Romain Izard <romain.izard.pro@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam')
0 files changed, 0 insertions, 0 deletions