diff --git a/include/crypto/internal/aead.h b/include/crypto/internal/aead.h index ba52c37b8c40e4d6c3261d2f733fc9e4b79f4979..4b2547186519f80e00729144dd8edafab238b5ef 100644 --- a/include/crypto/internal/aead.h +++ b/include/crypto/internal/aead.h @@ -15,12 +15,19 @@ #include #include +#include #include struct rtattr; struct aead_instance { - struct aead_alg alg; + union { + struct { + char head[offsetof(struct aead_alg, base)]; + struct crypto_instance base; + } s; + struct aead_alg alg; + }; }; struct crypto_aead_spawn {