Skip to content

Commit

Permalink
crypto: shash - Add crypto_shash_ctx_aligned
Browse files Browse the repository at this point in the history
This patch adds crypto_shash_ctx_aligned which will be needed
by hmac after its conversion to shash.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
herbertx committed Jul 8, 2009
1 parent 619a6eb commit cde6263
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 @@ -123,5 +123,10 @@ static inline struct crypto_shash *crypto_spawn_shash(
return crypto_spawn_tfm2(&spawn->base);
}

static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm)
{
return crypto_tfm_ctx_aligned(&tfm->base);
}

#endif /* _CRYPTO_INTERNAL_HASH_H */

0 comments on commit cde6263

Please sign in to comment.