Files
openwrt/package/kernel
Julius Bairaktaris 02e70c7548 kernel: crypto: add ARM64 CE AES, CCM and GHASH modules for qualcommax
The Cortex-A53 cores of IPQ807x, IPQ60xx and IPQ50xx implement the ARMv8
Crypto Extensions; /proc/cpuinfo reports "aes pmull sha1 sha2" on all
three. SHA-1 and SHA-256 use them through the library arch backends, but
AES and GHASH run on aes-generic and ghash-generic, so IPsec, mac80211
software crypto and every other in-kernel AES user is bound to the C
code.

Package the arm64 CE drivers the way the arm CE GHASH module and the
former arm64 CE SHA modules are packaged, as aarch64-ce variants of the
kmods they accelerate, and use them for qualcommax:

- kmod-crypto-ctr: aes-ce-cipher and aes-ce-blk, the AES cipher and its
  ECB/CBC/CTR/XTS modes. kmod-crypto-ccm and kmod-crypto-gcm both
  depend on kmod-crypto-ctr.
- kmod-crypto-ccm: aes-ce-ccm, which links against both modules above.
- kmod-crypto-ghash: ghash-ce, which registers gcm(aes) and
  rfc4106(gcm(aes)).

The AES drivers check the AES hwcap at load and register nothing
without it; the GHASH driver registers gcm(aes) only with PMULL and a
NEON ghash otherwise.

On a Xiaomi AX3600 (IPQ8071A), ESP in transport mode terminated on the
router, one TCP stream, median of 3 runs of 20 s, router receive/send:

  rfc4106(gcm(aes))          120/106 -> 374/314 Mbit/s
  cbc(aes) + hmac(sha256)    146/126 -> 321/264 Mbit/s
  rfc4309(ccm(aes))           94/83  -> 356/287 Mbit/s

Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/26632
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-11-16 11:56:07 +01:00
..
2026-10-31 23:24:46 +01:00
2026-08-31 08:56:24 +02:00
2026-10-15 00:43:02 +02:00
2026-11-09 10:36:38 +01:00
2026-11-09 10:36:38 +01:00
2026-11-09 10:36:38 +01:00
2026-11-09 10:36:38 +01:00