From: Herbert Xu Date: Thu, 9 Jul 2009 03:32:55 +0000 (+0800) Subject: crypto: shash - Add shash_instance_ctx X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef5d590c9b9a00b017683006fe4cf959b9532336;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h index 3af34ca8e8bc..069b93e1a8ec 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) {