mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-13 21:34:34 +00:00
[GH-ISSUE #263] Build failure on kernels < 5.5: missing/incompatible ChaCha API #147
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-linux-kernel-module#147
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @saqie1393 on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/263
Build failure on kernels < 5.5: missing/incompatible ChaCha API
AWG 3.0 currently fails to build on older Linux kernels because the code assumes the following ChaCha library API:
However, on kernels before 5.5,
<crypto/chacha.h>is either unavailable or exposes a different/skcipher-oriented API such as:For example, on Linux 3.19:
The following AWG files depend on the missing API:
Examples:
and:
in
header_protection.handheader_protection.c.I also verified that the Linux 3.19 kernel headers do not provide:
Expected behavior
AWG 3.0 should either:
The compatibility layer would need to provide equivalents for:
Environment
The current
compat.hcontains many old-kernel compatibility definitions, but there does not appear to be a compatibility implementation for the ChaCha library API required by the AWG 3.0 header-protection code.Could you please advise whether a compatibility patch for ChaCha on kernels <5.5 is planned or provide the recommended implementation?