diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-08 06:46:23 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-08 07:00:38 -0400 |
commit | 619a6ebd2547f3a8ec2fbc5245daaa1f2056eb32 (patch) | |
tree | 4b32cd84e9eb31c1068a7397ffa9e29f5cc79ec1 /include/crypto | |
parent | 7d6f56400a695af497a8b7c23ea0ff9c3d9d99f4 (diff) |
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')
-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 e2ab35a74c62..fa5c9fb7ce5a 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, | |||
53 | 53 | ||
54 | int crypto_register_shash(struct shash_alg *alg); | 54 | int crypto_register_shash(struct shash_alg *alg); |
55 | int crypto_unregister_shash(struct shash_alg *alg); | 55 | int crypto_unregister_shash(struct shash_alg *alg); |
56 | 56 | int shash_register_instance(struct crypto_template *tmpl, | |
57 | struct shash_instance *inst); | ||
57 | void shash_free_instance(struct crypto_instance *inst); | 58 | void shash_free_instance(struct crypto_instance *inst); |
58 | 59 | ||
59 | int crypto_init_shash_spawn(struct crypto_shash_spawn *spawn, | 60 | int crypto_init_shash_spawn(struct crypto_shash_spawn *spawn, |