diff options
author | Romain Izard <romain.izard.pro@gmail.com> | 2017-10-31 16:25:23 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-11-03 15:11:26 +0100 |
commit | 91308019ecb46047b81d3c769cf5bf6b129ddf02 (patch) | |
tree | 7f456e91e54f9394650786cc75c94a6cfd1d8cbd /kernel | |
parent | hwrng: core - Reset user selected rng by writing "" to rng_current (diff) | |
download | linux-91308019ecb46047b81d3c769cf5bf6b129ddf02.tar.xz linux-91308019ecb46047b81d3c769cf5bf6b129ddf02.zip |
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 'kernel')
0 files changed, 0 insertions, 0 deletions