[GH-ISSUE #210] compat: header protection fails to build on kernels < 5.5 #123

Open
opened 2026-10-13 21:06:46 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @Ser9ei on GitHub (Aug 8, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/210

On kernels before 5.5, <crypto/chacha.h> is either missing or provides a different skcipher-oriented API (struct chacha_ctx, crypto_chacha_init, …) without the library interface required by AWG 3.0 header protection:

  • chacha_init(u32 *state, const u32 *key, const u8 *iv)
  • chacha20_crypt(u32 *state, u8 *dst, const u8 *src, unsigned int bytes)
  • struct chacha_state { u32 x[...]; }

As a result, the module fails to build on older kernels.

Originally created by @Ser9ei on GitHub (Aug 8, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/210 On kernels before 5.5, <crypto/chacha.h> is either missing or provides a different skcipher-oriented API (struct chacha_ctx, crypto_chacha_init, …) without the library interface required by AWG 3.0 header protection: - chacha_init(u32 *state, const u32 *key, const u8 *iv) - chacha20_crypt(u32 *state, u8 *dst, const u8 *src, unsigned int bytes) - struct chacha_state { u32 x[...]; } As a result, the module fails to build on older kernels.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#123
No description provided.