summaryrefslogtreecommitdiff
path: root/crypto/hash.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-01-24 20:50:26 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2007-02-07 09:21:01 +1100
commit20867a155ead71e24ccca8dd80d136e9c95815e5 (patch)
treef01be0ea56eb26d0cfbeb0ef0269be34deba7792 /crypto/hash.c
parentd9a91492c748af0c5e4fdc3537f628a063646660 (diff)
downloadlinux-crypto-20867a155ead71e24ccca8dd80d136e9c95815e5.tar.gz
linux-crypto-20867a155ead71e24ccca8dd80d136e9c95815e5.zip
[CRYPTO] api: Allow multiple frontends per backend
This patch adds support for multiple frontend types for each backend algorithm by passing the type and mask through to the backend type init function. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/hash.c')
-rw-r--r--crypto/hash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/hash.c b/crypto/hash.c
index cdec23d8..12c4514f 100644
--- a/crypto/hash.c
+++ b/crypto/hash.c
@@ -16,12 +16,13 @@
#include "internal.h"
-static unsigned int crypto_hash_ctxsize(struct crypto_alg *alg)
+static unsigned int crypto_hash_ctxsize(struct crypto_alg *alg, u32 type,
+ u32 mask)
{
return alg->cra_ctxsize;
}
-static int crypto_init_hash_ops(struct crypto_tfm *tfm)
+static int crypto_init_hash_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
{
struct hash_tfm *crt = &tfm->crt_hash;
struct hash_alg *alg = &tfm->__crt_alg->cra_hash;