Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=35.216.61.236 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796020094; b=vE4yCCsAQGsLrK2/xV+FAw9ifhCGm0LepzauHt9D9SACHj5NAtdoA7yl5bL/jjlVqjYh 4aLnQhfGKyBh7l95xAob+lUVY2BF50m+OWI3qvz1UCmH22NNQB0cia1ZnDKiLabSSYcfW GCS6IF26cGVpYkC+nnNzImEII00r82PdgSQPoypD7PuDizvl/InlxF66fPTyGsuW9Zenn 6Z2dF4eO9nfwlvlFoNpwfuzQfCNve8PhQuybnFgOzknAUxZ28cB1F48ArbRZQCec81rDK /KpmipmhRpJj/E5K1SjELK6Lti6ai4gj7dgjbSvo7ToTS3gdHmGUzpgxEebCxmztv3Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796020094; h=DMARC-Filter:Received-SPF:Received:From:To:Cc:Subject: X-TERRACE-DUMMYSUBJECT:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:X-TERRACE-SPAMMARK:X-TERRACE-SUPERWHITEIP: X-TERRACE-SID:X-TERRACE-CLASSID; bh=TcVgWcnmZXpZ6qTjRlCHGsDalh87hMzksYSoBW+B++E=; b=ngoM6rNTS8YSA5H1nLxf1aLYoR78kPsnSZPydCrNWNgMib3RvS2d40KkPYaiTNT2vqsP iF9G1pbJdpfZv7tVmyPKBF4qsch6hFopy0tZEB+Bp8Oe4Ty7Drii0s5WYi7qJbjijhInv RKnEhjRq1PaS+l+C8a5FpxXXpMwyVTmxPd6+UWTAYNpcBu44RkdTgozHYQMQ100y0xU78 6ChDlrszcp3zzAxPW9OlgyM+dPhh86MlwFjc0YEiVZfHpf0LL7NknQwNZBr7twq/6/+Q0 UxKQEK8fLuqKHdVQPHR9hxyhSV2i02U20HdtaZeheXOpcCQgVyCB3jyZz3jc8+CSlOQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=pribit.com; spf=pass smtp.mailfrom=pribit.com; arc=none smtp.remote-ip=35.216.61.236 Received: from prod-dose-smtp-1.daouoffice.com (prod-dose-smtp-1.daouoffice.com [35.216.61.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE4D1606A325 for ; Mon, 30 Nov 2026 06:28:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EE4D1606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pribit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pribit.com Received-SPF: SoftFail client-ip="106.245.249.210" envelope-from="his1415@pribit.com" Received: from [106.245.249.210] ([106.245.249.210]) by prod-dose-smtp-1.daouoffice.com ([10.37.10.8]) with ESMTP id 1796020042.612433.139660747404864.prod-dose-smtp-1 for <>; Mon, 30 Nov 2026 15:27:22 +0900 (KST) From: Hong In-su To: steffen.klassert@secunet.com, herbert@gondor.apana.org.au Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, sd@queasysnail.net, andrew+netdev@lunn.ch, csh0052@gmail.com, oss-drivers@corigine.com, linux-crypto@vger.kernel.org, netdev@vger.kernel.org, ipsec@lists.linux.dev, linux-kernel@vger.kernel.org, his1415@pribit.com Subject: [PATCH ipsec-next v4 0/4] xfrm: add ARIA CBC, CTR and GCM support X-TERRACE-DUMMYSUBJECT: Terrace Spam system * Date: Mon, 30 Nov 2026 06:27:18 +0000 Message-ID: <20261130062722.7504-1-his1415@pribit.com> X-Mailer: git-send-email 2.43.0 X-Mailing-List: ipsec@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TERRACE-SPAMMARK: NO (SR:13.44) (by Terrace) X-TERRACE-SUPERWHITEIP: pribit_com_packetgoOS X-TERRACE-SID: 1796020042.612433.139660747404864.prod-dose-smtp-1 X-TERRACE-CLASSID: Terrace Spam system This series adds ARIA CBC, CTR and GCM support to XFRM, allowing the existing crypto API implementations to be used for IPsec ESP. Following the Sashiko review of v3, this revision adds two preparatory patches before the XFRM changes. The first patch prevents the NFP IPsec offload driver from treating unrecognized encryption algorithms without a SADB algorithm ID as the NULL cipher. It returns -EOPNOTSUPP to allow fallback to software crypto. The second patch adds crypto API test vectors for rfc3686(ctr(aria)) and rfc4106(gcm(aria)). The XFRM changes in patches 3 and 4 are unchanged from v3. Testing: - CBC and CTR were previously tested with strongSwan. - GCM was previously tested with strongSwan using 256-bit ARIA keys and 64-bit, 96-bit and 128-bit ICVs. - The new RFC3686 and RFC4106 test vectors cover all three ARIA key lengths (128, 192 and 256 bits) and all three supported ICV lengths for GCM. - Both algorithms passed the crypto API self-tests under QEMU x86_64 with CONFIG_CRYPTO_SELFTESTS and CONFIG_CRYPTO_SELFTESTS_FULL enabled. - The complete v4 series was build-tested and boot-tested. - The NFP change was compile-tested only, as I do not have access to NFP hardware. - All four patches passed checkpatch.pl --strict. Changes in v4: - Add a preparatory NFP offload fix. - Add RFC3686 and RFC4106 ARIA test vectors. - No changes to the XFRM patches. Changes in v3: - Change the target tree from net-next to ipsec-next. - Remove the CBC compatibility alias. - Add ARIA GCM support in a separate patch. Changes in v2: - Remove the CTR compatibility alias. - Change the CBC default key length to 128 bits. - Clarify that the CTR key length includes the 32-bit nonce. Previous versions: v3: https://lore.kernel.org/netdev/20261127020448.55891-1-his1415@pribit.com/ v2: https://lore.kernel.org/netdev/20260916023135.26043-1-his1415@pribit.com/ v1: https://lore.kernel.org/netdev/20260909054530.7861-1-his1415@pribit.com/ Hong In-su (4): nfp: reject unsupported IPsec encryption algorithms crypto: testmgr - add ARIA RFC3686 and RFC4106 test vectors xfrm: add ARIA CBC and CTR support xfrm: add ARIA GCM support crypto/testmgr.c | 17 ++ crypto/testmgr.h | 266 ++++++++++++++++++ .../net/ethernet/netronome/nfp/crypto/ipsec.c | 5 + net/xfrm/xfrm_algo.c | 62 ++++ 4 files changed, 350 insertions(+) base-commit: 4d12fa4df5c15cebc587644e84b8f972874e66f1 -- 2.43.0