aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorRomain Izard <[email protected]>2017-10-31 16:25:23 +0100
committerHerbert Xu <[email protected]>2017-11-03 22:11:26 +0800
commit91308019ecb46047b81d3c769cf5bf6b129ddf02 (patch)
tree7f456e91e54f9394650786cc75c94a6cfd1d8cbd /drivers/fpga/fpga-mgr.c
parent142a27f0a731ddcf467546960a5585970ca98e21 (diff)
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions