aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/internal/hash.h5
1 files changed, 5 insertions, 0 deletions
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(
110 struct shash_instance, alg); 110 struct shash_instance, alg);
111} 111}
112 112
113static inline void *shash_instance_ctx(struct shash_instance *inst)
114{
115 return crypto_instance_ctx(shash_crypto_instance(inst));
116}
117
113static inline struct shash_instance *shash_alloc_instance( 118static inline struct shash_instance *shash_alloc_instance(
114 const char *name, struct crypto_alg *alg) 119 const char *name, struct crypto_alg *alg)
115{ 120{