diff options
author | Tudor Ambarus <[email protected]> | 2019-11-15 13:49:06 +0000 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2019-11-22 18:48:37 +0800 |
commit | 61b0dd664fa1873501297efbb12e5684aff074d4 (patch) | |
tree | f35120081e5dc14cd9635aff0577fccb0886a525 /tools/perf/util/trace-event-scripting.c | |
parent | d1d787bcebfe122a5bd443ae565696661e2e9656 (diff) |
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions