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=IvDEHuDuQDNtdaJO+jj3KeKVb7ufNDlJE5hmBCdrAa9nfvDtotVNIqPG0O1+CtPhgjnz GxcFnYBXvCEWU/q0rfwojYQLD3IXbKBRsq9MDAXaUi8mojf0n/ISFajzENJK39pTYB5UV wgUDnkrsnjv/UiCFGJ0v4NuyiSLJG5oEzdqPIA/JUeHNsyqbqrhCJqkb2RP3xT77rIVQV JfyXndjaN3+9ONjxJlf1kvMmHnc0x4nN/vSQYAp1BUs0zgD/UccBNYPH1fDzEvSJcaw+r DGbPNfC300vTaGNdiDiY5+FoVTK8B2pw9Pk5DRuWtMXAiCLlSw6HevZcBE2TkZz5tdQ== 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:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:X-TERRACE-SPAMMARK: X-TERRACE-SUPERWHITEIP:X-TERRACE-SID:X-TERRACE-CLASSID; bh=1KQwmcwphZq919r47d7b00A/kdgyKtkTtdtloI9GrsI=; b=MpuRC911XuT/fxinyywey+yiLHiMSvZMdf7aaGkeut43vQTABXFKJXWDlJfsMKisXCuR 1kUiltcgV7hLmVzAwBrvx/kjkvhTTb+WVAViX9SgqiGjv3OwBI/R/ZFeCq3gzdxZouSj3 rSVRgQ226/WUAqajLaAp7RUbLgCDmqWl4NMJ2BzKBFM3RUz2zuEjXbCbfFtwOX7Ub85yL oaL/MryuKnn4XSiq2EgyNnd95OL5Woqy4k+Kn/wuSWBPtWZYi1il5Vvr5nBC+GpHiJQyW 3Ysq81YXn3npLQwyDEXO05OC6/PlX5oeCJzbct9W+Sy9L056GOqiIN1A+PCOWnkbzrQ== 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 0D2A7606A329 for ; Mon, 30 Nov 2026 06:28:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0D2A7606A329 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 1796020044.138318.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 3/4] xfrm: add ARIA CBC and CTR support X-TERRACE-DUMMYSUBJECT: Terrace Spam system * Date: Mon, 30 Nov 2026 06:27:21 +0000 Message-ID: <20261130062722.7504-4-his1415@pribit.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261130062722.7504-1-his1415@pribit.com> References: <20261130062722.7504-1-his1415@pribit.com> 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:8.65) (by Terrace) X-TERRACE-SUPERWHITEIP: pribit_com_packetgoOS X-TERRACE-SID: 1796020044.138318.139660747404864.prod-dose-smtp-1 X-TERRACE-CLASSID: Terrace Spam system The kernel crypto API already provides ARIA implementations, but XFRM does not have algorithm descriptors for them. Consequently, ARIA cannot be selected for ESP through XFRM. Add XFRM algorithm descriptors for CBC and RFC3686 CTR modes using the existing cbc(aria) and rfc3686(ctr(aria)) crypto algorithms. The CBC and CTR modes have been tested with IPsec using strongSwan. Signed-off-by: Hong In-su --- net/xfrm/xfrm_algo.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index 70434495f23f..98ef2c48982a 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c @@ -512,6 +512,32 @@ static struct xfrm_algo_desc ealg_list[] = { .sadb_alg_maxbits = 256 } }, +{ + .name = "cbc(aria)", + + .uinfo = { + .encr = { + .geniv = "echainiv", + .blockbits = 128, + .defkeybits = 128, + } + }, + + .pfkey_supported = 0, +}, +{ + .name = "rfc3686(ctr(aria))", + + .uinfo = { + .encr = { + .geniv = "seqiv", + .blockbits = 128, + .defkeybits = 160, /* 128-bit key + 32-bit nonce */ + } + }, + + .pfkey_supported = 0, +}, { .name = "cbc(twofish)", .compat = "twofish", -- 2.43.0