aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/algapi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index c533c0a291af..6f9fb27b2071 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -69,5 +69,10 @@ static inline void *crypto_instance_ctx(struct crypto_instance *inst)
69 return inst->__ctx; 69 return inst->__ctx;
70} 70}
71 71
72static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm)
73{
74 return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher;
75}
76
72#endif /* _CRYPTO_ALGAPI_H */ 77#endif /* _CRYPTO_ALGAPI_H */
73 78