File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,12 @@ int crypto_grab_kpp(struct crypto_kpp_spawn *spawn,
104
104
}
105
105
EXPORT_SYMBOL_GPL (crypto_grab_kpp );
106
106
107
+ int crypto_has_kpp (const char * alg_name , u32 type , u32 mask )
108
+ {
109
+ return crypto_type_has_alg (alg_name , & crypto_kpp_type , type , mask );
110
+ }
111
+ EXPORT_SYMBOL_GPL (crypto_has_kpp );
112
+
107
113
static void kpp_prepare_alg (struct kpp_alg * alg )
108
114
{
109
115
struct crypto_alg * base = & alg -> base ;
Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ struct kpp_alg {
104
104
*/
105
105
struct crypto_kpp * crypto_alloc_kpp (const char * alg_name , u32 type , u32 mask );
106
106
107
+ int crypto_has_kpp (const char * alg_name , u32 type , u32 mask );
108
+
107
109
static inline struct crypto_tfm * crypto_kpp_tfm (struct crypto_kpp * tfm )
108
110
{
109
111
return & tfm -> base ;
You can’t perform that action at this time.
0 commit comments