Skip to content
Snippets Groups Projects
Commit 99bd99d3 authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 47309ea1
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment