summaryrefslogtreecommitdiff
path: root/tools/thermal
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2019-11-15 16:49:06 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-11-22 13:48:37 +0300
commit61b0dd664fa1873501297efbb12e5684aff074d4 (patch)
treef35120081e5dc14cd9635aff0577fccb0886a525 /tools/thermal
parentd1d787bcebfe122a5bd443ae565696661e2e9656 (diff)
downloadlinux-61b0dd664fa1873501297efbb12e5684aff074d4.tar.xz
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 'tools/thermal')
0 files changed, 0 insertions, 0 deletions