]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: adiantum - propagate CRYPTO_ALG_ASYNC flag to instance
authorEric Biggers <ebiggers@google.com>
Wed, 5 Dec 2018 00:46:54 +0000 (16:46 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:56 +0000 (18:24 +0800)
commit2d3179e6eed9d2951f58ce6a071caff69e256417
treeee526e1b701dc4cd5c943231ad633f2a70b2a749
parenta1c3fcd4f87b023dbe2448d9f3d67659c855112a
crypto: adiantum - propagate CRYPTO_ALG_ASYNC flag to instance

If the stream cipher implementation is asynchronous, then the Adiantum
instance must be flagged as asynchronous as well.  Otherwise someone
asking for a synchronous algorithm can get an asynchronous algorithm.

There are no asynchronous xchacha12 or xchacha20 implementations yet
which makes this largely a theoretical issue, but it should be fixed.

Fixes: 33db6e130867 ("crypto: adiantum - add Adiantum support")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/adiantum.c