aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2019-01-03 20:16:10 -0800
committerHerbert Xu <[email protected]>2019-01-11 14:16:57 +0800
commit394a9e044702e6a8958a5e89d2a291605a587a2a (patch)
treedf5baadd680fa2fe9f49839765d049086e210a8a /tools/perf/scripts/python/bin
parent1bb64d867cfe84cc3c255d8fdeff0b4d86341519 (diff)
crypto: cfb - add missing 'chunksize' property
Like some other block cipher mode implementations, the CFB implementation assumes that while walking through the scatterlist, a partial block does not occur until the end. But the walk is incorrectly being done with a blocksize of 1, as 'cra_blocksize' is set to 1 (since CFB is a stream cipher) but no 'chunksize' is set. This bug causes incorrect encryption/decryption for some scatterlist layouts. Fix it by setting the 'chunksize'. Also extend the CFB test vectors to cover this bug as well as cases where the message length is not a multiple of the block size. Fixes: a7d85e06ed80 ("crypto: cfb - add support for Cipher FeedBack mode") Cc: <[email protected]> # v4.17+ Cc: James Bottomley <[email protected]> Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions