🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24468

Re: [PATCH ipsec-next v4 0/4] xfrm: add ARIA CBC, CTR and GCM support

#24468
From: Antony Antony
Date: Mon, 30 Nov 2026 07:46
87 lines
10391 bytes
On Mon, Nov 30, 2026 at 06:27:18AM +0000, Hong In-su wrote:
> 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

Is ARIA supported in upstream strongSwan? I couldn't find it.

Also, where are the IKEv2 Code Points to negotiate ARIA in IKEv2?
I have only seen an expired Informational draft
(draft-nsri-ipsecme-aria-ipsec-00), and no push to make it a standard
RFC or get IANA IKEv2 Code Point?

Also noticed the ARIA AEAD is not part of TLS 1.3; it is defined only for
TLS 1.2 (RFC 6209). I wonder why it is being extended to IPsec now?

Without an IETF-assigned IKEv2 code point, interoperation would be
hard. Are you planning to get a code point? 


>   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: <aw0p2zjsQtSZeCyG@bern>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373989-linux-kernel-netdev=dewy.ru
References: <20261130062722.7504-1-his1415@pribit.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373989-linux-kernel-netdev=dewy.ru
From: antony@phenome.org (Antony Antony)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH ipsec-next v4 0/4] xfrm: add ARIA CBC, CTR and GCM support
Date: Mon, 30 Nov 2026 08:46:35 +0100
Organization: Usenet Network
Message-ID: <aw0p2zjsQtSZeCyG@bern>
References: <20261130062722.7504-1-his1415@pribit.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1368227"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:N1QuC0XBu43YuE3E9wAu2pwMVMI= sha256:tckf/OD9T8tyeo1Muv9/JnMIAu+2prfUXVUwv3fKzsI=
	sha1:Z1ODr9T3cNfZSAhoHu+Hs8vXI54= sha256:Q+g+IHaZLuXT33RJWeZajJ8RMOIebwvxn0ERnmOdQ4w=
Content-Disposition: inline
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 4C9A5125FC8; Mon, 30 Nov 2026 10:47:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 cHO5S92DWyqu;
	Mon, 30 Nov 2026 10:46:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-373989-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=phenome.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 5A5A0125FC5; Mon, 30 Nov 2026 10:46:54 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 1B0B4215AF; Mon, 30 Nov 2026 07:46:52 +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=1796024810;
	b=W4iL9xXi3cNx1jGfRsni2/+bI5yetMotZSS4z5SVFvXXJn2qYPadOCLF4QjiAtkHEMbI
	 Nwm+4Vyj867TNiLfCI6McpGS4PQ535cJk/cgRR7RDA4+YrsEeULUeoNJEU610Hql9lDGD
	 Hx9/773u1RnBKCllGr3h02i0mYhEAJ5zP42SriuPV/NYgylY2ol3se95aoaho/meYtFqi
	 9pVIue/Ye1wKovN+10+QZ3HlU+/MfvQkpjt3Jz0ZB3UoRCx0kHxvr/vt3+gX8Y3VJ43QY
	 VDPBRI81I9Eo+GiJjobEeUWSbenOXk0sU6FxUmpqrKZ+TaL+LDEYTA+dHfkSF2ucnAg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796024810;
	h=X-Original-To:Received:DMARC-Filter:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To;
	bh=V/82+t43zo0JlkjDbseeDp2YRXsxOC3V7bAbpd3rk5k=;
	b=iKvdWdfRUq1flbxFSATHWrDJpJ2/M2iyq0bWH1gGoUYRMTZFCYfpznwkDKnCUpjBWatV
	 xlBbFvEHET8lSSa3cqwgVYSsge9fm7ckSqn2UtJuADe/mgu9sH120Lgr286/+Au87tpV7
	 ngIIMO79qpBN40awafmFmtH1490jB8QasWui4MDVUhDS/qlj7x1h45i1aj3qnZ6Nc9PiQ
	 BSjBIznzuX0KcKcY20a8Wb0Lh2IlU+S4MsfJYWLTByGXZnmdbeDZDhKv/J5nWYL5fEyZu
	 slZq92mJFWQcJAby5orsPctUnBDfyQOgLMT4vp0ORALZB6CzZxVXhgP9AtQb8U9DgMA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=fail header.from=phenome.org;
	spf=none smtp.mailfrom=hal.phenome.org;
	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 B8B89606A325;
	Mon, 30 Nov 2026 07:46:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.132.42.103
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796024805;
	b=dTLO64Li4qm/SVuCKG2wXXEkp/VLslx0wcxfHLAR0j1AuJaqeZspIhNTFz6uN1dfV9Nz
	 LnhEgEifo+55Lhd9POBuVEJAhebYvaQQF4xIFbPh1e/V1SryEbwJnQK9kIs2gK+dgku/W
	 8yTOSPYIagQRaauHh8a+0VsesgOdy6vlio8T+oKT4VUjkAFxmlMyPBpxh+L8FJQU4jtN7
	 /LFtprg3pf/TbFmi9QvbOVqiwYUfteNbEoZeOC6pM51KLE/UwJj5Zm+d2r50kAFVSPrYK
	 Zqr4Q35Asg3y2uhnbyila3uOqULZj2MZM8dhvMADx5DCCmztqOASlborIwjaRkstsKg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796024805;
	h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=V/82+t43zo0JlkjDbseeDp2YRXsxOC3V7bAbpd3rk5k=;
	b=Tl8t9SILP/BP/1shwkWf9EbD11F58M/IqTa4I6KmDRg7Zz9D69HppX1PeD6WQL+43qwl
	 DuJIP/WibqRanFmvCkY+iOBlM6/n9YaHaN5Rl+KaGe9FLvHGo+2FeOCCiAv8+ySjsuze2
	 sY5fbnx3d8YJrp6rYbLzZCL7FTc6GxAd72BmN6RvITXMY0epB/0u11Vv8U4ufNVxD0D4Y
	 OOUhThSTHahtTotGETtwg+QkLtA1CFH7Us3GkqPyWnnjRtNHfgtbRK5xwi8QOHRWRjZn6
	 /xQdBYcttUnG5okSAY5QDJtc3IzI0t76dsssT4RMSCKvs/rsDSzyn99VIEmCY3YDWZA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=fail header.from=phenome.org;
	spf=none smtp.mailfrom=hal.phenome.org;
	arc=none smtp.remote-ip=91.132.42.103
X-Received: from hal.phenome.org (hal.connected.by.freedominter.net [91.132.42.103])
	(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 E9FF8606A320;
	Mon, 30 Nov 2026 07:46:43 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E9FF8606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=phenome.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=hal.phenome.org
X-Received: by hal.phenome.org (Postfix, from userid 0)
	id 7C6BB1011AC; Mon, 30 Nov 2026 08:46:35 +0100 (CET)
X-Cc: steffen.klassert@secunet.com, herbert@gondor.apana.org.au,
	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,
	Antony Antony <antony@phenome.org>
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-In-Reply-To: <20261130062722.7504-1-his1415@pribit.com>