diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-08-14 14:28:14 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-08-22 14:45:47 +0800 |
commit | 21d8dbe613a078662dd6f0fb834bb29673b237b5 (patch) | |
tree | 83660865753ad8c75144123c9aa54488cb166533 /crypto/ecb.c | |
parent | aa0bfc9cee13677f110cfb870f7b5d9cd60cf5a7 (diff) | |
download | linux-crypto-21d8dbe613a078662dd6f0fb834bb29673b237b5.tar.gz linux-crypto-21d8dbe613a078662dd6f0fb834bb29673b237b5.zip |
crypto: chacha20 - fix handling of chunked input
Commit baef71ce346b ("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: baef71ce346b ("crypto: chacha20 - convert generic and x86 ...")
Cc: <stable@vger.kernel.org> # v4.11+
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Reported-by: Tobias Brunner <tobias@strongswan.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecb.c')
0 files changed, 0 insertions, 0 deletions