summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-07 08:30:33 +0400
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-07 08:30:33 +0400
commitf2ac72e8268d9559c3114d5a22679f91f80a2238 (patch)
treee52b3b65b62b48f8a77c9a522d9e55f04bcf6259 /include/crypto
parentfd09d7facb7cf3a884979eb5f843338ce1ce9b43 (diff)
downloadlinux-f2ac72e8268d9559c3114d5a22679f91f80a2238.tar.xz
crypto: api - Add new template create function
This patch introduces the template->create function intended to replace the existing alloc function. The intention is for create to handle the registration directly, whereas currently the caller of alloc has to handle the registration. This allows type-specific code to be run prior to registration. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/algapi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index 010545436efa..ce010a346420 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -52,6 +52,7 @@ struct crypto_template {
struct crypto_instance *(*alloc)(struct rtattr **tb);
void (*free)(struct crypto_instance *inst);
+ int (*create)(struct crypto_template *tmpl, struct rtattr **tb);
char name[CRYPTO_MAX_ALG_NAME];
};