diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-11-15 13:49:06 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-11-22 18:48:37 +0800 |
commit | 61b0dd664fa1873501297efbb12e5684aff074d4 (patch) | |
tree | f35120081e5dc14cd9635aff0577fccb0886a525 /drivers/crypto/cavium | |
parent | d1d787bcebfe122a5bd443ae565696661e2e9656 (diff) | |
download | linux-61b0dd664fa1873501297efbb12e5684aff074d4.tar.gz linux-61b0dd664fa1873501297efbb12e5684aff074d4.tar.bz2 linux-61b0dd664fa1873501297efbb12e5684aff074d4.zip |
crypto: atmel-tdes - Set the IV after {en,de}crypt
The req->iv of the skcipher_request is expected to contain the
last ciphertext block when the {en,de}crypt operation is done.
In case of in-place decryption, copy the ciphertext in an
intermediate buffer before decryption.
This fixes the following tcrypt tests:
alg: skcipher: atmel-cbc-des encryption test failed (wrong output IV) on test vector 0, cfg="in-place"
00000000: fe dc ba 98 76 54 32 10
alg: skcipher: atmel-cbc-tdes encryption test failed (wrong output IV) on test vector 0, cfg="in-place"
00000000: 7d 33 88 93 0f 93 b2 42
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/cavium')
0 files changed, 0 insertions, 0 deletions