]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/crypto/algapi.h
Merge branch 'linus' into tracing/hw-branch-tracing
[karo-tx-linux.git] / include / crypto / algapi.h
index 986db68548f64727f04529442c832a6d54e088e3..010545436efa22593f4a124c9a68849f78a85872 100644 (file)
@@ -248,6 +248,11 @@ static inline struct crypto_hash *crypto_spawn_hash(struct crypto_spawn *spawn)
        return __crypto_hash_cast(crypto_spawn_tfm(spawn, type, mask));
 }
 
+static inline void *crypto_hash_ctx(struct crypto_hash *tfm)
+{
+       return crypto_tfm_ctx(&tfm->base);
+}
+
 static inline void *crypto_hash_ctx_aligned(struct crypto_hash *tfm)
 {
        return crypto_tfm_ctx_aligned(&tfm->base);