aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/algapi.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index c9bff92a9e0e..1d15a926041e 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -136,7 +136,16 @@ static inline void crypto_set_spawn(struct crypto_spawn *spawn,
136struct crypto_attr_type *crypto_get_attr_type(struct rtattr **tb); 136struct crypto_attr_type *crypto_get_attr_type(struct rtattr **tb);
137int crypto_check_attr_type(struct rtattr **tb, u32 type); 137int crypto_check_attr_type(struct rtattr **tb, u32 type);
138const char *crypto_attr_alg_name(struct rtattr *rta); 138const char *crypto_attr_alg_name(struct rtattr *rta);
139struct crypto_alg *crypto_attr_alg(struct rtattr *rta, u32 type, u32 mask); 139struct crypto_alg *crypto_attr_alg2(struct rtattr *rta,
140 const struct crypto_type *frontend,
141 u32 type, u32 mask);
142
143static inline struct crypto_alg *crypto_attr_alg(struct rtattr *rta,
144 u32 type, u32 mask)
145{
146 return crypto_attr_alg2(rta, NULL, type, mask);
147}
148
140int crypto_attr_u32(struct rtattr *rta, u32 *num); 149int crypto_attr_u32(struct rtattr *rta, u32 *num);
141void *crypto_alloc_instance2(const char *name, struct crypto_alg *alg, 150void *crypto_alloc_instance2(const char *name, struct crypto_alg *alg,
142 unsigned int head); 151 unsigned int head);