aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-07 02:07:37 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-07 06:55:28 -0400
commit70ec7bb91ad0d6cce84c8e17f8cbb608dda7b18c (patch)
treef8423c8e2a51b42c78ea63913a9e3654877555ca /include
parentf2ac72e8268d9559c3114d5a22679f91f80a2238 (diff)
crypto: api - Add crypto_alloc_instance2
This patch adds a new argument to crypto_alloc_instance which sets aside some space before the instance for use by algorithms such as shash that place type-specific data before crypto_alg. For compatibility the function has been renamed so that existing users aren't affected. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r--include/crypto/algapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index ce010a346420..99bb29723130 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -132,6 +132,8 @@ int crypto_check_attr_type(struct rtattr **tb, u32 type);
132const char *crypto_attr_alg_name(struct rtattr *rta); 132const char *crypto_attr_alg_name(struct rtattr *rta);
133struct crypto_alg *crypto_attr_alg(struct rtattr *rta, u32 type, u32 mask); 133struct crypto_alg *crypto_attr_alg(struct rtattr *rta, u32 type, u32 mask);
134int crypto_attr_u32(struct rtattr *rta, u32 *num); 134int crypto_attr_u32(struct rtattr *rta, u32 *num);
135void *crypto_alloc_instance2(const char *name, struct crypto_alg *alg,
136 unsigned int head);
135struct crypto_instance *crypto_alloc_instance(const char *name, 137struct crypto_instance *crypto_alloc_instance(const char *name,
136 struct crypto_alg *alg); 138 struct crypto_alg *alg);
137 139