aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2017-08-14 14:28:14 +0100
committerHerbert Xu <[email protected]>2017-08-22 14:45:47 +0800
commit4de437265eaac18f880d827f8e105b10de9b87a3 (patch)
tree515a04444d78e010c1bb6a7320d55eccdeeaa56c /lib
parentdea3eb8b452e36cf2dd572b0a797915ccf452ae6 (diff)
crypto: chacha20 - fix handling of chunked input
Commit 9ae433bc79f9 ("crypto: chacha20 - convert generic and x86 versions to skcipher") ported the existing chacha20 code to use the new skcipher API, and introduced a bug along the way. Unfortunately, the tcrypt tests did not catch the error, and it was only found recently by Tobias. Stefan kindly diagnosed the error, and proposed a fix which is similar to the one below, with the exception that 'walk.stride' is used rather than the hardcoded block size. This does not actually matter in this case, but it's a better example of how to use the skcipher walk API. Fixes: 9ae433bc79f9 ("crypto: chacha20 - convert generic and x86 ...") Cc: <[email protected]> # v4.11+ Cc: Steffen Klassert <[email protected]> Reported-by: Tobias Brunner <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions