]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: skcipher - Fix corner case in crypto_lookup_skcipher
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Apr 2015 08:34:47 +0000 (16:34 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 05:34:38 +0000 (21:34 -0800)
commitf08d961e3af91be344dfe8648469e89d1ce21751
tree14fb6809499892a3a3339f368e9854d0ae2923af
parentfaef04cb278f3f96a76119995dca69b68698a59d
crypto: skcipher - Fix corner case in crypto_lookup_skcipher

Orabug: 25243093

When the user explicitly states that they don't care whether the
algorithm has been tested (type = CRYPTO_ALG_TESTED and mask = 0),
there is a corner case where we may erroneously return ENOENT.

This patch fixes it by correcting the logic in the test.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 26739535206e819946b0740347c09c94c4e48ba9)
Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
crypto/ablkcipher.c