Skip to content
Snippets Groups Projects
Commit ef5d590c authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent deee2289
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment