Skip to content

Commit cde6263

Browse files
committed
crypto: shash - Add crypto_shash_ctx_aligned
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>
1 parent 619a6eb commit cde6263

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎include/crypto/internal/hash.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,10 @@ static inline struct crypto_shash *crypto_spawn_shash(
123123
return crypto_spawn_tfm2(&spawn->base);
124124
}
125125

126+
static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm)
127+
{
128+
return crypto_tfm_ctx_aligned(&tfm->base);
129+
}
130+
126131
#endif /* _CRYPTO_INTERNAL_HASH_H */
127132

0 commit comments

Comments
 (0)