mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
deee2289b9
commit
ef5d590c9b
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue