Commit ef5d590c9b9a00b017683006fe4cf959b9532336
1 parent
deee2289b9
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
include/crypto/internal/hash.h
... | ... | @@ -110,6 +110,11 @@ |
110 | 110 | struct shash_instance, alg); |
111 | 111 | } |
112 | 112 | |
113 | +static inline void *shash_instance_ctx(struct shash_instance *inst) | |
114 | +{ | |
115 | + return crypto_instance_ctx(shash_crypto_instance(inst)); | |
116 | +} | |
117 | + | |
113 | 118 | static inline struct shash_instance *shash_alloc_instance( |
114 | 119 | const char *name, struct crypto_alg *alg) |
115 | 120 | { |