aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/crypto.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-09-20 17:52:53 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2008-12-24 19:01:24 -0500
commit7b0bac64cd5b74d6f1147524c26216de13a501fd (patch)
treee9163f47d583f88d35fb8e5c9ca86ed2581c6efd /include/linux/crypto.h
parent4a7794860ba2b56693b1d89fd485fd08cdc763e3 (diff)
crypto: api - Rebirth of crypto_alloc_tfm
This patch reintroduces a completely revamped crypto_alloc_tfm. The biggest change is that we now take two crypto_type objects when allocating a tfm, a frontend and a backend. In fact this simply formalises what we've been doing behind the API's back. For example, as it stands crypto_alloc_ahash may use an actual ahash algorithm or a crypto_hash algorithm. Putting this in the API allows us to do this much more cleanly. The existing types will be converted across gradually. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r--include/linux/crypto.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index ea52cd944fd..ffaaa418cf5 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -546,7 +546,9 @@ struct crypto_attr_u32 {
546 * Transform user interface. 546 * Transform user interface.
547 */ 547 */
548 548
549struct crypto_tfm *crypto_alloc_tfm(const char *alg_name, u32 tfm_flags); 549struct crypto_tfm *crypto_alloc_tfm(const char *alg_name,
550 const struct crypto_type *frontend,
551 u32 type, u32 mask);
550struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask); 552struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask);
551void crypto_free_tfm(struct crypto_tfm *tfm); 553void crypto_free_tfm(struct crypto_tfm *tfm);
552 554