crypto: skcipher - unify the crypto_has_skcipher*() functions
authorEric Biggers <ebiggers@google.com>
Fri, 25 Oct 2019 19:41:09 +0000 (12:41 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Nov 2019 05:38:32 +0000 (13:38 +0800)
commitd3ca75a8b3d77f2788e6c119ea7c3e3a1ab1e1ca
tree2893d3f77cd6490674522ff2b70a3a8e110320ef
parent8d68e7e1ec4d71f2950a5f750785d62bb7b74b6e
crypto: skcipher - unify the crypto_has_skcipher*() functions

crypto_has_skcipher() and crypto_has_skcipher2() do the same thing: they
check for the availability of an algorithm of type skcipher, blkcipher,
or ablkcipher, which also meets any non-type constraints the caller
specified.  And they have exactly the same prototype.

Therefore, eliminate the redundancy by removing crypto_has_skcipher()
and renaming crypto_has_skcipher2() to crypto_has_skcipher().

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/skcipher.c
include/crypto/skcipher.h