summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-11-29 12:27:04 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-12-08 11:59:46 +0800
commit772075958f4dcf8fa26c02cb7f30e6228f213098 (patch)
tree529aed7453d87066eee1f56868c0465902b75d78 /crypto/testmgr.c
parent67d9a2e93f686bd4ec5ee4d62b28ee5259059eae (diff)
downloadlinux-crypto-772075958f4dcf8fa26c02cb7f30e6228f213098.tar.gz
linux-crypto-772075958f4dcf8fa26c02cb7f30e6228f213098.zip
crypto: algif_skcipher - Fix stream cipher chaining
Unlike algif_aead which is always issued in one go (thus limiting the maximum size of the request), algif_skcipher has always allowed unlimited input data by cutting them up as necessary and feeding the fragments to the underlying algorithm one at a time. However, because of deficiencies in the API, this has been broken for most stream ciphers such as arc4 or chacha. This is because they have an internal state in addition to the IV that must be preserved in order to continue processing. Fix this by using the new skcipher state API. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
0 files changed, 0 insertions, 0 deletions