summaryrefslogtreecommitdiffstats
path: root/include/crypto/internal/aead.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto/internal/aead.h')
-rw-r--r--include/crypto/internal/aead.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/internal/aead.h b/include/crypto/internal/aead.h
index 4137330f01ab..f068d74da9f6 100644
--- a/include/crypto/internal/aead.h
+++ b/include/crypto/internal/aead.h
@@ -52,6 +52,11 @@ static inline struct aead_instance *aead_instance(struct crypto_instance *inst)
return container_of(&inst->alg, struct aead_instance, alg.base);
}
+static inline struct aead_instance *aead_alg_instance(struct crypto_aead *aead)
+{
+ return aead_instance(crypto_aead_alg_instance(aead));
+}
+
static inline void *aead_instance_ctx(struct aead_instance *inst)
{
return crypto_instance_ctx(aead_crypto_instance(inst));