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=qTSMwyn8mIH/VZsEJsxZZTYUyEU7o/LXtRuru8ZGBzSqZS4gumelJvgJEhr4uOhV++tD +FOiyyHhxcXUpJ5g3HHgJWH5I+rv8SzRayfvu0CdUNqlu/Zrto0GTHPRQWO6X/EyOjAz7 uqVJ6KkT3ayTP2wSOxLpB2tepEGwhmgIc55Z8Vmx4ppC89NmE2Nw+R9XWhIsbYuBW+xv0 OYJ+phZFH1KG1kgEfyVSSlChQb909ztMLpJorKNkbABd2Gc0If+rNaF4+drXo4c3uob7Q AdoQQXBgq942bWVPEOF5DkSiaR4WzpllZWJDueicqC6i6CmJ9ecbyuEjpeHZdAYduNQ== 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=/0mhPj01jYciMNIS3v4D8R62f4Kv27ZLnnjl8phcSXY=; b=FZx4AtgLb/FcMDK3uvG8bMZDMbZpD60+Otfy3vvSab0fdt43oG+lYSggE9FkfvbXEYx3 gBhtA9Um5kg1AXBxfqRy1TOIKxD0chhM9xfrqZq8FYDCCntsRPjvNJv19G1FVf3UUyKaP GP2n61yXTmgwZGnDIShxJbdq7DjRo4qswSqHHFRGd4qAFJfYS+fq1YJ6B7T628xXnh7Lq jwsVwqB+BB9I9IoIdJjjTFc7+wNOcwhkV2KtKD8+PMGQVwnS/XCVzqh0qFJP0x8eL9eKh CNRYS1wKO4MdHQKnheioI2NizOte88XAETILMUBMhZ4addQ3YIkj3Umnqe+pTv0eTvg== 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 B1B89606A320 for ; Mon, 30 Nov 2026 06:28:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B1B89606A320 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.491963.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 4/4] xfrm: add ARIA GCM support X-TERRACE-DUMMYSUBJECT: Terrace Spam system * Date: Mon, 30 Nov 2026 06:27:22 +0000 Message-ID: <20261130062722.7504-5-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:9.75) (by Terrace) X-TERRACE-SUPERWHITEIP: pribit_com_packetgoOS X-TERRACE-SID: 1796020044.491963.139660747404864.prod-dose-smtp-1 X-TERRACE-CLASSID: Terrace Spam system The kernel crypto API already supports rfc4106(gcm(aria)), but XFRM does not have the corresponding algorithm descriptors. Add XFRM AEAD algorithm descriptors for ARIA GCM with 64-bit, 96-bit and 128-bit ICV lengths. Tested with strongSwan using 256-bit ARIA keys and all three supported ICV lengths. Signed-off-by: Hong In-su --- net/xfrm/xfrm_algo.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index 98ef2c48982a..d74f86d4e672 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c @@ -82,6 +82,42 @@ static struct xfrm_algo_desc aead_list[] = { .sadb_alg_maxbits = 256 } }, +{ + .name = "rfc4106(gcm(aria))", + + .uinfo = { + .aead = { + .geniv = "seqiv", + .icv_truncbits = 64, + } + }, + + .pfkey_supported = 0, +}, +{ + .name = "rfc4106(gcm(aria))", + + .uinfo = { + .aead = { + .geniv = "seqiv", + .icv_truncbits = 96, + } + }, + + .pfkey_supported = 0, +}, +{ + .name = "rfc4106(gcm(aria))", + + .uinfo = { + .aead = { + .geniv = "seqiv", + .icv_truncbits = 128, + } + }, + + .pfkey_supported = 0, +}, { .name = "rfc4309(ccm(aes))", -- 2.43.0