From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796020153; b=3hk6OnkfjqblNcS7W4+SJgyLTsEjrrHJYVYgf28wc24oktbG/RKvafBdDbmy/tYWmujZ l8s0fl26k97jgnE8gjK53JB/OUC+qW10KR3jO8LR8Fo/DFZ5n0Hg7S6OlxyszxfwCL7b/ XlW1DmFWqid7tUZ4NwiAKbuWbYi6RanYN460cv8fx7mdxy7Jxqr0fFJ+rC5HQz5Bh1A9O WAbRQDrDKW2ZBuQzu07RGy1mYv0kNvWm5W25La6BnIQ5lN5/qThbVjZ34HeJ3icMix0k5 CXABK3KMuW5ecEVyg2/cNcanHZTVCu4PEjiQ/dK1wF0lqLUHRa46/o5lh2g/d/c8Jdg== 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: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=UxOjE7RdGjH+pzQMtRzLh5awP95uulBzD0fuBpVWbPf5BdQhbYiUmLHXaiyLbSfOGPnA ahUrh0kIfxOoPuMpWPW4fsguGjxpETyEVuO0b6bMM7qZNJU0Ld0NYjURFdlUHrMFA5kJd YNJnJCiuTpQUIsKdFdbNxXecbmHsJRbader0tDctaFd2lvCAXabdasaDAJQxfzMq7pgdA zmQY2F3HEGSZZHUcKn0x22BVo57qW7Co41ZluoAJ8IXkDdapWO2VCvWReZVKIS1dwqEji 3OBg2QA4DKSf83Xb0MYeRBgb3zuj0wJeYY01bCskaZLFmnApSI2sU0Xn4a6jBPT1DOw== 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 EAA5A606A31C; Mon, 30 Nov 2026 06:29:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EAA5A606A31C 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: linux-kernel@vger.kernel.org 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