mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
crypto: api - Remove unused crypto_type lookup function
The lookup function in crypto_type was only used for the implicit IV generators which have been completely removed from the crypto API. This patch removes the lookup function as it is now useless. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -485,20 +485,14 @@ struct crypto_alg *crypto_find_alg(const char *alg_name,
|
|||||||
const struct crypto_type *frontend,
|
const struct crypto_type *frontend,
|
||||||
u32 type, u32 mask)
|
u32 type, u32 mask)
|
||||||
{
|
{
|
||||||
struct crypto_alg *(*lookup)(const char *name, u32 type, u32 mask) =
|
|
||||||
crypto_alg_mod_lookup;
|
|
||||||
|
|
||||||
if (frontend) {
|
if (frontend) {
|
||||||
type &= frontend->maskclear;
|
type &= frontend->maskclear;
|
||||||
mask &= frontend->maskclear;
|
mask &= frontend->maskclear;
|
||||||
type |= frontend->type;
|
type |= frontend->type;
|
||||||
mask |= frontend->maskset;
|
mask |= frontend->maskset;
|
||||||
|
|
||||||
if (frontend->lookup)
|
|
||||||
lookup = frontend->lookup;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return lookup(alg_name, type, mask);
|
return crypto_alg_mod_lookup(alg_name, type, mask);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(crypto_find_alg);
|
EXPORT_SYMBOL_GPL(crypto_find_alg);
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ struct crypto_type {
|
|||||||
int (*init_tfm)(struct crypto_tfm *tfm);
|
int (*init_tfm)(struct crypto_tfm *tfm);
|
||||||
void (*show)(struct seq_file *m, struct crypto_alg *alg);
|
void (*show)(struct seq_file *m, struct crypto_alg *alg);
|
||||||
int (*report)(struct sk_buff *skb, struct crypto_alg *alg);
|
int (*report)(struct sk_buff *skb, struct crypto_alg *alg);
|
||||||
struct crypto_alg *(*lookup)(const char *name, u32 type, u32 mask);
|
|
||||||
void (*free)(struct crypto_instance *inst);
|
void (*free)(struct crypto_instance *inst);
|
||||||
|
|
||||||
unsigned int type;
|
unsigned int type;
|
||||||
|
|||||||
Reference in New Issue
Block a user