diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-08 11:21:37 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-08 12:58:29 +0200 |
commit | 942969992d86330c9700e2cd9afe8a6bea42df78 (patch) | |
tree | 4183f307974076a606c97bf5b5c333aa4021562b /crypto/shash.c | |
parent | crypto: api - Add new style spawn support (diff) | |
download | linux-942969992d86330c9700e2cd9afe8a6bea42df78.tar.xz linux-942969992d86330c9700e2cd9afe8a6bea42df78.zip |
crypto: shash - Add spawn support
This patch adds the functions needed to create and use shash
spawns, i.e., to use shash algorithms in a template.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/shash.c')
-rw-r--r-- | crypto/shash.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/shash.c b/crypto/shash.c index 8f9d8831e293..97f6c8ba103a 100644 --- a/crypto/shash.c +++ b/crypto/shash.c @@ -509,5 +509,14 @@ void shash_free_instance(struct crypto_instance *inst) } EXPORT_SYMBOL_GPL(shash_free_instance); +int crypto_init_shash_spawn(struct crypto_shash_spawn *spawn, + struct shash_alg *alg, + struct crypto_instance *inst) +{ + return crypto_init_spawn2(&spawn->base, &alg->base, inst, + &crypto_shash_type); +} +EXPORT_SYMBOL_GPL(crypto_init_shash_spawn); + MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Synchronous cryptographic hash type"); |