Netdev List
 help / color / mirror / Atom feed
From: Hong In-su <his1415@pribit.com>
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
Date: Mon, 30 Nov 2026 06:27:18 +0000	[thread overview]
Message-ID: <20261130062722.7504-1-his1415@pribit.com> (raw)

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



             reply	other threads:[~2026-11-30  6:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  6:27 Hong In-su [this message]
2026-11-30  6:27 ` [PATCH ipsec-next v4 1/4] nfp: reject unsupported IPsec encryption algorithms Hong In-su
2026-11-30  6:27 ` [PATCH ipsec-next v4 2/4] crypto: testmgr - add ARIA RFC3686 and RFC4106 test vectors Hong In-su
2026-11-30  6:27 ` [PATCH ipsec-next v4 3/4] xfrm: add ARIA CBC and CTR support Hong In-su
2026-11-30  6:27 ` [PATCH ipsec-next v4 4/4] xfrm: add ARIA GCM support Hong In-su

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130062722.7504-1-his1415@pribit.com \
    --to=his1415@pribit.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=csh0052@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=horms@kernel.org \
    --cc=ipsec@lists.linux.dev \
    --cc=kuba@kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oss-drivers@corigine.com \
    --cc=pabeni@redhat.com \
    --cc=sd@queasysnail.net \
    --cc=steffen.klassert@secunet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox