diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-08 10:46:23 (GMT) |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-08 11:00:38 (GMT) |
commit | 619a6ebd2547f3a8ec2fbc5245daaa1f2056eb32 (patch) | |
tree | 4b32cd84e9eb31c1068a7397ffa9e29f5cc79ec1 /include/crypto/internal/hash.h | |
parent | 7d6f56400a695af497a8b7c23ea0ff9c3d9d99f4 (diff) | |
download | linux-fsl-qoriq-619a6ebd2547f3a8ec2fbc5245daaa1f2056eb32.tar.xz |
crypto: shash - Add shash_register_instance
This patch adds shash_register_instance so that shash instances
can be registered without bypassing the shash checks applied to
normal algorithms.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/internal/hash.h')
-rw-r--r-- | include/crypto/internal/hash.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h index e2ab35a..fa5c9fb 100644 --- a/include/crypto/internal/hash.h +++ b/include/crypto/internal/hash.h @@ -53,7 +53,8 @@ int crypto_hash_walk_first_compat(struct hash_desc *hdesc, int crypto_register_shash(struct shash_alg *alg); int crypto_unregister_shash(struct shash_alg *alg); - +int shash_register_instance(struct crypto_template *tmpl, + struct shash_instance *inst); void shash_free_instance(struct crypto_instance *inst); int crypto_init_shash_spawn(struct crypto_shash_spawn *spawn, |