Skip to content

Commit

Permalink
crypto: shash - Add shash_instance_ctx
Browse files Browse the repository at this point in the history
This patch adds the helper shash_instance_ctx which is the shash
analogue of crypto_instance_ctx.

Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Jul 9, 2009
1 parent deee228 commit ef5d590
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/crypto/internal/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ef5d590

Please sign in to comment.