mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
crypto: api - add a helper to (un)register a array of templates
This patch add a helper to (un)register a array of templates. The following patches will use this helper to simplify the code. Signed-off-by: Xiongfeng Wang <xiongfeng.wang@linaro.org> Reviewed-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
747bd2a36c
commit
9572442dcf
@@ -143,7 +143,9 @@ extern const struct crypto_type crypto_blkcipher_type;
|
||||
void crypto_mod_put(struct crypto_alg *alg);
|
||||
|
||||
int crypto_register_template(struct crypto_template *tmpl);
|
||||
int crypto_register_templates(struct crypto_template *tmpls, int count);
|
||||
void crypto_unregister_template(struct crypto_template *tmpl);
|
||||
void crypto_unregister_templates(struct crypto_template *tmpls, int count);
|
||||
struct crypto_template *crypto_lookup_template(const char *name);
|
||||
|
||||
int crypto_register_instance(struct crypto_template *tmpl,
|
||||
|
Reference in New Issue
Block a user