diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-01-24 10:50:26 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2007-02-06 23:21:01 +0100 |
commit | 27d2a3300755387d2fec231d37944907ff992ce8 (patch) | |
tree | c42138c0160b8f0aa3d79860557514e73577e885 /crypto/hash.c | |
parent | [CRYPTO] api: Add type-safe spawns (diff) | |
download | linux-27d2a3300755387d2fec231d37944907ff992ce8.tar.xz linux-27d2a3300755387d2fec231d37944907ff992ce8.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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/hash.c b/crypto/hash.c index cdec23d885fe..12c4514f3478 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; |