Hi Steffen, Eric,
Thank you for your feedback.
I understand the concerns about interoperability and the
maintenance cost of supporting additional algorithms.
However, I would like to clarify a few points.
WireGuard and IPsec have different design philosophies.
While WireGuard deliberately uses a fixed set of cryptographic
algorithms to reduce complexity, IPsec is designed to provide
cryptographic algorithm independence and flexibility.
RFC 4301, Section 2.1 explicitly describes cryptographic
algorithm independence as a design goal of IPsec, including
the ability for different user communities to select different
sets of cryptographic algorithms.
https://www.rfc-editor.org/rfc/rfc4301.html#section-2.1
While AES is currently well supported and considered secure,
no cryptographic algorithm can be assumed to remain secure
indefinitely.
DES, MD5 and SHA-1 were once widely accepted and standardized,
but advances in cryptanalysis and computing capabilities
eventually led to their deprecation in security-sensitive
applications.
This is not to suggest that AES is currently insecure or that
ARIA is inherently more secure than AES. Rather, I believe
that relying exclusively on a single block cipher may limit
our ability to respond to future cryptographic developments.
Preserving cryptographic agility and maintaining viable
alternatives, rather than converging on a single block cipher,
is consistent with the design goals of IPsec.
Furthermore, ARIA is not a new cipher implementation being
introduced into the kernel. It is already supported by the
Linux crypto API and has been supported by kTLS since commit
62e56ef57c04 ("net: tls: Add ARIA-GCM algorithm").
The proposed XFRM changes reuse these existing implementations.
I acknowledge that extending their use to XFRM introduces
additional testing and maintenance requirements.
Regarding IKEv2 codepoints, I agree that standardized
assignments are important for interoperability between
independent IKEv2 implementations.
However, XFRM is independent of the key management protocol.
With these changes, users can configure ARIA-based IPsec SAs
and policies directly using "ip xfrm state" and "ip xfrm policy",
without involving an IKEv2 implementation.
To verify this, I tested ARIA-CBC ESP tunnel communication
with HMAC-SHA256 on Linux 6.8 with the corresponding XFRM
algorithm descriptor backported, using only iproute2 commands
without an IKE daemon.
All five ICMP echo requests and replies succeeded with no
packet loss. Both XFRM SA counters and packet captures
confirmed successful bidirectional ESP communication.
While manually configured SAs are not a substitute for
automated key management in production, the absence of
assigned IKEv2 codepoints does not make ARIA support in
XFRM technically useless.
Nevertheless, following your feedback, I have contacted IANA
to inquire about obtaining the necessary IKEv2 transform IDs
based on the existing ARIA IPsec Internet-Draft:
https://datatracker.ietf.org/doc/draft-nsri-ipsecme-aria-ipsec/
IANA has acknowledged receipt of my inquiry, and I will wait
for their response before proceeding with the next revision
of this series.
Thanks,
Hong In-su
Re: [PATCH ipsec-next v4 0/4] xfrm: add ARIA CBC, CTR and GCM support
- From
- his1…@pribit.com (Hong In-su)
- Organization
- Usenet Network
- Message-ID
- <2026…@pribit.com>
- Date
- Newsgroups
- linux.kernel.netdev