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=J07teLqJY6szAOv4VFOM4pw7nSD2tfd1u8EpfImpuzgVR22fQkEU3LnDGAu5qLXCRjD2 hihw6SwP9GB6fEGQvJuH3mbwffKNzBRlfCPyIh0LbBi8pdtL6DNZupF0HTSioGASBCm2a BlVkuarsiZU9Lr316Pdabw6YQRqnWtMUS6AZxv4lZAD2Cv8wUi4H5FI3e6bvvcp0IqPz3 JHZq5M0ULkjT7W/ktlck2Q8sWrgbeR62zr04x6meuWVPGxqgQNVw+fqm+pjFZI/fNNmhW EtJhNuvFdn43CAfJ7vpGp2L+0prK+T6tGnHtgzxOq/qqI1uhZPieYMQr/aW01JPuwVg== 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== 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 007E2606A320; Mon, 30 Nov 2026 06:29:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 007E2606A320 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 1796020042.612433.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 0/4] xfrm: add ARIA CBC, CTR and GCM support X-TERRACE-DUMMYSUBJECT: Terrace Spam system * Date: Mon, 30 Nov 2026 06:27:18 +0000 Message-ID: <20261130062722.7504-1-his1415@pribit.com> X-Mailer: git-send-email 2.43.0 X-Mailing-List: netdev@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: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 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