X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fcrypto%2Finternal%2Faead.h;h=da3864991d4c50b33a4145c57444d8a70a0db14a;hb=eade3e4f1abe67c334563df478b34713464eccd6;hp=5554cdd8d6c17344f049f138e57027defc050dc1;hpb=dc847d5b4aa852c41b56c21bdc759fee13cc8f68;p=karo-tx-linux.git diff --git a/include/crypto/internal/aead.h b/include/crypto/internal/aead.h index 5554cdd8d6c1..da3864991d4c 100644 --- a/include/crypto/internal/aead.h +++ b/include/crypto/internal/aead.h @@ -80,6 +80,12 @@ static inline u32 aead_request_flags(struct aead_request *req) return req->base.flags; } +static inline struct aead_request *aead_request_cast( + struct crypto_async_request *req) +{ + return container_of(req, struct aead_request, base); +} + static inline void crypto_set_aead_spawn( struct crypto_aead_spawn *spawn, struct crypto_instance *inst) {