diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-09 11:32:55 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-09 11:32:55 +0800 |
commit | ef5d590c9b9a00b017683006fe4cf959b9532336 (patch) | |
tree | 2df0311b2744e2f3de58603df8c2e9726facfac2 /include | |
parent | deee2289b932d512035f579b8f8e178796564ba1 (diff) | |
download | op-kernel-dev-ef5d590c9b9a00b017683006fe4cf959b9532336.zip op-kernel-dev-ef5d590c9b9a00b017683006fe4cf959b9532336.tar.gz |
crypto: shash - Add shash_instance_ctx
This patch adds the helper shash_instance_ctx which is the shash
analogue of crypto_instance_ctx.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/internal/hash.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h index 3af34ca..069b93e 100644 --- a/include/crypto/internal/hash.h +++ b/include/crypto/internal/hash.h @@ -110,6 +110,11 @@ static inline struct shash_instance *shash_instance( struct shash_instance, alg); } +static inline void *shash_instance_ctx(struct shash_instance *inst) +{ + return crypto_instance_ctx(shash_crypto_instance(inst)); +} + static inline struct shash_instance *shash_alloc_instance( const char *name, struct crypto_alg *alg) { |