Article View: linux.kernel.netdev
Article #24425[PATCH ipsec-next v4 0/4] xfrm: add ARIA CBC, CTR and GCM support
From: Hong In-su
Date: Mon, 30 Nov 2026 06:27
Date: Mon, 30 Nov 2026 06:27
68 lines
10295 bytes
10295 bytes
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
Technical Details
Message-ID:
<20261130062722.7504-1-his1415@pribit.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373913-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373913-linux-kernel-netdev=dewy.ru
From: his1415@pribit.com (Hong In-su)
Newsgroups: linux.kernel.netdev
Subject: [PATCH ipsec-next v4 0/4] xfrm: add ARIA CBC, CTR and GCM support
Date: Mon, 30 Nov 2026 06:27:18 +0000
Organization: Usenet Network
Message-ID: <20261130062722.7504-1-his1415@pribit.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1353527"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6vSR2wcUmJdzOJC191GqSiBbpWo= sha256:gw0nBRLWudO7B2EuZAZwVvSFQ+xsYZzlHSb0+XLSnp0=
sha1:CmwRfHT3kej/zXJmy8go2snnBPM= sha256:UT7Gx3yT/6XnSd84sRcnTQFKezQNu0QjKIjE1jz0j4s=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id C81B4125FC4; Mon, 30 Nov 2026 09:29:34 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id TJNUMs733lhE;
Mon, 30 Nov 2026 09:29:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-373913-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pribit.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 6B5F9125FC7; Mon, 30 Nov 2026 09:29:28 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 935116005F3; Mon, 30 Nov 2026 06:29:27 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796020159;
b=xlwufjcrsh/E7jDa/D21h4BlrDv3gMUOBztw+1vRi0swcjX+1kPWONVYopIasT9MEuDc
RdVKpYb/6YbGYSDcWEOohf0yHF5gbP5LdkkdGZSfuNVgSB7AqHhGgavfg8xJi+LaxO122
5u59yN0jRNB2WFo/AZzVZiIaYH3zxgzqkpE582FAcGI1jYrWIGu3Wl65FpEXsWu9Ui5Ki
a5r15x4a7HOXuAgTTBN0vfTKqW837yCzVGI4Ga0HDHfl+8rGF4bl/L/BU6BTkf4jTC2Aw
RNPvf1U3EBtXjFJkQUyEyDWeVtjGHkv/hAotaLO8ynS39vzG82aPYc5EjgnLMbec+kw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796020159;
h=X-Original-To:Received:DMARC-Filter:Received-SPF:Received:From:To:Cc:
Subject:X-TERRACE-DUMMYSUBJECT:Date:Message-ID:X-Mailer:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding:X-TERRACE-SPAMMARK:X-TERRACE-SUPERWHITEIP:
X-TERRACE-SID:X-TERRACE-CLASSID;
bh=TcVgWcnmZXpZ6qTjRlCHGsDalh87hMzksYSoBW+B++E=;
b=m0UUZha7NNLFaJZQSasU6/hbyLj03KYz9neU6EsLIX4KhaVKwEeWiEv00pJvXZZpA/jB
2H/slG02cXgV+AIeAn25ez62FbAIhLUBTEiMIzlb8Y+vjwvdlhpYvnCFfj1hOlHsNh/vN
Dr1F1ZG5xH63qynbxBduw9OXx00WhXmFKqKJzqZf3RNhs+a4FQY7wVvVCs2RD1RaZufgl
xZLzWo7kvcpWR9ZgXVSAruKR8J4DVSFkROPjyyvsH49TGjovz2nzR2r2Foq10/Uj6CcFh
0xu3GgiMg1jaCZ4U8aN0Ew0bZKpKbg92KycB91eq/dN+ZiaLacNp5sVSg2j7HS8CIcA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=pribit.com;
spf=pass smtp.mailfrom=pribit.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 6887B606A6B1;
Mon, 30 Nov 2026 06:29:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=35.216.61.236
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796020153;
b=J07teLqJY6szAOv4VFOM4pw7nSD2tfd1u8EpfImpuzgVR22fQkEU3LnDGAu5qLXCRjD2
hihw6SwP9GB6fEGQvJuH3mbwffKNzBRlfCPyIh0LbBi8pdtL6DNZupF0HTSioGASBCm2a
BlVkuarsiZU9Lr316Pdabw6YQRqnWtMUS6AZxv4lZAD2Cv8wUi4H5FI3e6bvvcp0IqPz3
JHZq5M0ULkjT7W/ktlck2Q8sWrgbeR62zr04x6meuWVPGxqgQNVw+fqm+pjFZI/fNNmhW
EtJhNuvFdn43CAfJ7vpGp2L+0prK+T6tGnHtgzxOq/qqI1uhZPieYMQr/aW01JPuwVg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796020153;
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=qkzUYno6TgzlNYiqmyGPw9xAKOpPDRpNy0CwqDoMifmGF0DbHxvA51V1VfcBJJqtfVMm
WmgUDQaOCf9xNWyWKP4S9GU00/RDWnUpeRg4CgYk9khoM1YCnpTrsIxM0FGLXAaX74NAa
a/V2e4a9lt2jJGixXCWG8fy8jJyhZZdfXibRKCZsnQWgVHEOkkTA6MLyrJWOkOi7s8OEs
fIcUejuq1d7W/8fRqoWw7oYIMqVEfgYIKVrhLM8dFKCXPNuIwzbmZc6wbKUUqB8ffjJHR
PM9wA785Oi4ETSwSPy0DzHNz8OlEgYIyO+QklM8YvA9wD1XwSJvw76jEMUWuBRNmstQ==
X-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
X-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 007E2606A320;
Mon, 30 Nov 2026 06:29:12 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 007E2606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pribit.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pribit.com
X-Received-SPF: SoftFail
client-ip="106.245.249.210" envelope-from="his1415@pribit.com"
X-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)
X-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
X-TERRACE-DUMMYSUBJECT: Terrace Spam system *
X-Mailer: git-send-email 2.43.0
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
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