Skip to content

Commit

Permalink
kernel: crypto: add kmod-crypto-chacha20poly1305
Browse files Browse the repository at this point in the history
Needed by strongSwan IPsec VPN for strongswan-mod-chapoly. Not to be confused with
kmod-crypto-LIB-chacha20poly1305, which is an 8-byte nonce version used
by wireguard.

Signed-off-by: Xu Wang <xwang1498@gmx.com>
  • Loading branch information
xwang1498 authored and stintel committed Jun 3, 2022
1 parent 4e1916f commit 197b672
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions package/kernel/linux/modules/crypto.mk
Expand Up @@ -101,6 +101,18 @@ endef
$(eval $(call KernelPackage,crypto-ccm))


define KernelPackage/crypto-chacha20poly1305
TITLE:=ChaCha20-Poly1305 AEAD support, RFC7539 (used by strongSwan IPsec VPN)
DEPENDS:=+kmod-crypto-aead +kmod-crypto-manager
KCONFIG:=CONFIG_CRYPTO_CHACHA20POLY1305
FILES:=$(LINUX_DIR)/crypto/chacha20poly1305.ko
AUTOLOAD:=$(call AutoLoad,09,chacha20poly1305)
$(call AddDepends/crypto)
endef

$(eval $(call KernelPackage,crypto-chacha20poly1305))


define KernelPackage/crypto-cmac
TITLE:=Support for Cipher-based Message Authentication Code (CMAC)
DEPENDS:=+kmod-crypto-hash
Expand Down

0 comments on commit 197b672

Please sign in to comment.