Internet-Draft | NTRU IKEv2 | July 2025 |
Fukagawa, et al. | Expires 8 January 2026 | [Page] |
This document specifies the use of NTRU in the Internet Key Exchange Protocol Version 2 (IKEv2), following the framework defined in RFC 9370. RFC 9370 introduces a mechanism that enables multiple key encapsulation mechanisms (KEMs) to be used within IKEv2, allowing up to seven additional key exchange methods to be negotiated alongside the initial key exchange. This document defines how NTRU can be used as an additional key exchange method to improve the post-quantum security of IKEv2 by broadening algorithmic diversity.¶
[EDNOTE: IANA KE code points for NTRU will be needed to be assigned. ]¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 8 January 2026.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The IKEv2 as specified in [RFC7296], uses the Diffie-Hellman (DH) or the Elliptic Curve Diffie-Hellman (ECDH) algorithm to establish a shared secret between an initiator and a responder. However, the advent of a Cryptographically Relevant Quantum Computer (CRQC) defined in [I-D.D25] would pose a significant threat to the security of DH and ECDH. To address this problem, the Mixing Preshared Keys in IKEv2 specification [RFC8784] was introduced as a temporary option. After that, PQ/T Hybrid Key Encapsulation Mechanism (KEM) in IKEv2 was specified, which combines post-quantum and classical KEMs to ensure security against both classical and quantum adversaries. To enable PQ/T Hybrid KEMs in IKEv2, [RFC9370] extends the IKEv2 specification to allow multiple key exchanges to take place during the computation of a shared secret in the Security Association (SA) setup.¶
The Multiple Key Exchanges defined in [RFC9370] specifies how to perform up to seven additional key exchanges using the IKE_INTERMEDIATE or IKE_FOLLOWUP_KE messages, along with procedures for deriving new SKEYSEED and KEYMAT key materials.The reason RFC 9370 allows the use of multiple post-quantum KEMs is to hedge against the risk that any single KEM may be broken in the future. While RFC 9370 provides a general framework that enables hybrid KEMs, it does not define specific instantiations for concrete combinations of multiple KEMs. Currently, two Internet-Drafts aim to define such additional key exchange methods by building upon the framework established in [RFC9370]. First, [I-D.KR24] adds ML-KEM [FIPS203], also known as Kyber. Second, [I-D.W25] introduces FrodoKEM for reasons of algorithm diversity and cryptographic agility.¶
To improve the diversity of post-quantum KEM algorithms, this document proposes to include NTRU [I-D.F25]-specifically, the version of NIST Post-Quantum Cryptography (PQC) round 3 [NTRU] as one of the algorithms usable within the framework defined in [RFC9370]. The inclusion of NTRU increases algorithmic diversity for two main reasons. First, although NTRU is lattice-based, its security is based on the NTRU problem and does not rely on the (Module) Learning With Errors ((M)LWE) problems. Second, it provides a tighter security proof for the desired security notion: indistinguishability under adaptive chosen-ciphertext attacks (IND-CCA2). In addition to increasing algorithmic versatility, the absence of patents is beneficial to users. NTRU is patent-free, which has the advantage of allowing users to avoid patent issues. NTRU is also a valuable choice from an implementation perspective, as its overall performance is comparable to that of ML-KEM, with notably faster encapsulation.¶
In the context of the NIST Post-Quantum Cryptography Standardization Project [NIST-PQ], key exchange algorithms are formulated as KEMs, which consist of three steps:¶
'KeyGen() -> (pk, sk)': A probabilistic key generation algorithm, which generates a public / encapsulation key 'pk' and a private / decapsulation key 'sk'. The resulting pk is sent to the responder in the KEi payload.¶
'Encaps(pk) -> (ct, ss)': A probabilistic encapsulation algorithm, which takes as input a public key 'pk' (from the KEi) and outputs a ciphertext 'ct' and shared secret 'ss'. The 'ct' is sent back to intiator in the KEr payload.¶
'Decaps(sk, ct) -> ss': A decapsulation algorithm, which takes as input a secret key 'sk' and ciphertext 'ct' (from the KEr) and outputs a shared secret 'ss', or in some rare cases a distinguished error value.¶
NTRU [I-D.F25] is a KEM based on lattices over polynomial rings. It offers good performance, as well as small and balanced key and ciphertext sizes. The parameters of NTRU were chosen based on the three security levels defined in the NIST PQC Project: Levels 1, 3, and 5. These levels correspond to the hardness of breaking AES-128, AES-192 and AES-256. Also, NTRU defines two families of parameters: NTRU-HPS and NTRU-HRSS. The NTRU-HPS consists of three parameter sets: ntruhps2048677, ntruhps4096821, and ntruhps40961229, corresponding to security levels 1, 3, and 5, respectively. The NTRU-HRSS includes two parameter sets: ntruhrss701 and ntruhrss1373, corresponding to security levels 1 and 5, respectively.¶
This specification introduces five parameters for IKEv2 key exchanges to allow flexible selection based on security levels and implementation requirements, such as performance, bandwidth, and packet size constraints. Since the ntruhps40961229 and ntruhrss1373 public key and ciphertext sizes can exceed the typical network MTU, these key exchanges could require two or three network IP packets from both the initiator and the responder.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
NTRU key exchanges can be negotiated in IKE_INTERMEDIATE or IKE_FOLLOWUP_KE messages as defined in the Multiple Key Exchanges in IKEv2 specification [RFC9370]. We summarize them here for completeness.¶
Section 2.2.2 of [RFC9370] specifies that KEi(0), KEr(0) are regular key exchange messages in the first IKE_SA_INIT exchange which end up generating a set of keying material, SK_d, SK_a[i/r], and SK_e[i/r]. The peers then perform an IKE_INTERMEDIATE exchange, carrying new Key Exchange payloads. These are protected with the SK_e[i/r] and SK_a[i/r] keys which were derived from the IKE_SA_INIT as per Section 3.3.1 of the Intermediate Exchange in IKEv2 document [RFC9242]. The initiator generates an NTRU keypair (sk, pk) using KeyGen(), and sends the public key (pk) to the responder inside a KEi(1) payload. The responder will encapsulate a shared secret ss using Encaps(pk), and the resulting ciphertext (ct) is sent to initiator using the KEr(1). After the initiator receives KEr(1), it will decapsulate it using Decaps(sk, ct). Both Encaps and Decaps return the shared secret (ss), and both peers have a common shared secret SK(1) at the end of this KE(1) exchange. The NTRU shared secret is stirred into new keying material SK_d, SK_a[i/r], and SK_e[i/r] as defined in Section 2.2.2 of the Multiple Key Exchanges in IKEv2 document [RFC9370]. Afterwards the peers continue to the IKE_AUTH exchange phase as defined in Section 3.3.2 of the Intermediate Exchange in IKEv2 specification [RFC9242].¶
NTRU can also be used to create or rekey a Child SA or rekey the IKE SA by using an IKE_FOLLOWUP_KE message after a CREATE_CHILD_SA message. After the NTRU additional key exchange KE(1) has taken place using and IKE_FOLLOWUP_KE exchange, the IKE or Child SA are rekeyed by stirring the new NTRU shared secret SK(1) in SKEYSEED and KEYMAT as specified in Section 2.2.4 of [RFC9370].¶
The ntruhps4096821, ntruhps40961229, and ntruhrss1373 public keys and ciphertexts may make UDP packet sizes larger typical network MTUs (1500 bytes). Thus, IKE_INTERMEDIATE or IKE_FOLLOWUP_KE messages carrying NTRU public keys and ciphertexts may be IKEv2 fragmented as per the IKEv2 Message Fragmentation specification [RFC7383].¶
As the payload lengths of ntruhps2048677, ntruhrss701, and ntruhps4096821 are less than the typical network MTUs (1500 bytes), these parameters MAY be used in IKE_SA_INIT, resulting in a configuration where only post-quantum KEMs are used. The other parameters, ntruhps40961229 and ntruhrss1373 SHOULD NOT be used in IKE_SA_INIT messages that could exceed typical network MTUs and cannot be fragmented using IKEv2 fragmentation.¶
The KE payload is shown below and the fields inside it has meaning as defined in Section 3.4 of the IKEv2 standard [RFC7296]:¶
1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Next Payload |C| RESERVED | Payload Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Key Exchange Method Num | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ~ Key Exchange Data ~ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The Key Exchange Data from the initiator to the responder contains the public key (pk) from the KeyGen() operation encoded as a raw byte array as defined in [I-D.F25].¶
The Key Exchange Data from the responder to the initiator contains the ciphertext (ct) from the Encaps operation encoded as a raw byte array.¶
Table 1 shows the Payload Length, Key Exchange Method Num identifier and the Key Exchange Data Size in octets for Key Exchange Payloads from the initiator and the responder for the NTRU variants specified in this document.¶
KEM | Payload Length (initiator / responder) | Key Exchange Method Num | Data Size in Octets (initiator / responder) |
---|---|---|---|
ntruhps2048677 | 938 / 938 | TBD50 | 930 / 930 |
ntruhrss701 | 1146 / 1146 | TBD51 | 1138 / 1138 |
ntruhps4096821 | 1238 / 1238 | TBD52 | 1230 / 1230 |
ntruhps40961229 | 1850 / 1850 | TBD53 | 1842 / 1842 |
ntruhrss1373 | 2409 / 2409 | TBD54 | 2401 / 2401 |
Following general exmaples given in Appendix A of [RFC9370], here is an example to show that the initiator proposes the use of additional key exchanges to establish an IKE SA. Here, the initiator proposes three sets of additional key exchanges. Namely, the first set is TBD36 (ml-kem-768), TBD37 (ml-kem-1024) [I-D.KR24] or NONE; the second set is TBD50 (ntruhps2048677), TBD52 (ntruhps4096821) or NONE. As both of the two additional key exchanes are optional, the responder can choose NONE for some or all of the additional exchanges if the proposed key exchange methods are not supported or for whatever reasons the responder decides not to perform the additional key exchange.¶
Initiator Responder --------------------------------------------------------------------- HDR(IKE_SA_INIT), SAi1(.. ADDKE*...), ---> KEi(Curve25519), Ni, N(IKEV2_FRAG_SUPPORTED), N(INTERMEDIATE_EXCHANGE_SUPPORTED) Proposal #1 Transform ECR (ID = ENCR_AES_GCM_16, 256-bit key) Transform PRF (ID = PRF_HMAC_SHA2_512) Transform KE (ID = Curve25519) Transform ADDKE1 (ID = TBD36) Transform ADDKE1 (ID = TBD37) Transform ADDKE1 (ID = NONE) Transform ADDKE2 (ID = TBD50) Transform ADDKE2 (ID = TBD52) Transform ADDKE2 (ID = NONE) <--- HDR(IKE_SA_INIT), SAr1(.. ADDKE*...), KEr(Curve25519), Nr, N(IKEV2_FRAG_SUPPORTED), N(INTERMEDIATE_EXCHANGE_SUPPORTED) Proposal #1 Transform ECR (ID = ENCR_AES_GCM_16, 256-bit key) Transform PRF (ID = PRF_HMAC_SHA2_512) Transform KE (ID = Curve25519) Transform ADDKE1 (ID = NONE) Transform ADDKE2 (ID = TBD50) HDR(IKE_INTERMEDIATE), SK {KEi(1)(TBD50)} --> <--- HDR(IKE_INTERMEDIATE), SK {KEr(1)(TBD50)} HDR(IKE_AUTH), SK{ IDi, AUTH, SAi2, TSi, TSr } ---> <--- HDR(IKE_AUTH), SK{IDr, AUTH, SAr2,TSi, TSr}
In the above specific example, the responder chooses to run one additional key exchanges. Namely, it selects NONE and TBD50 (ntruhps2048677), respectively for the first and second additional key exchanges. According to [RFC7296], a set of keying materials can be derived, in particular SK_d, SK_a[i/r], and SK_e[i/r]. After that, both peers will perform an IKE_INTERMEDIATE exchange, carrying TBD50 payload, which is protected with SK_e[i/r] and SK_a[i/r] keys. After the completion of this IKE_INTERMEDIATE exchange, the SKEYSEED is updated using SK(1), which is the TBD50 shared secret.¶
After the completion of both IKE_INTERMEDIATE exchanges, the initiator and the responder continue to the IKE_AUTH exchange phase.¶
All security considerations from [RFC9242] and [RFC9370] apply to the NTRU exchanges described in this specification.¶
The NTRU public key generated by the initiator and the ciphertext generated by the responder use randomness (usually a seed) which MUST be independent of any other random seed used in the IKEv2 negotiation. For example, at the initiator, the NTRU and (EC)DH key pairs should not be generated from the same seed. Also, nonces used in the derivation of SKEYSEED and KEYMAT MUST NOT be reused, in order to ensure the pseudorandomness of key derivation using the pseudorandom function defined in [RFC9370].¶
IANA is requested to assign five values for the names "ntruhps2048677", "ntruhrss701", "ntruhps40961229", "ntruhrss1373", and "ntruhps4096821"in the IKEv2 "Transform Type 4 - Key Exchange Method Transform IDs" and has listed this document as the reference. The Recipient Tests field should also point to this document:¶
[EDNOTE: IANA KE code points for FrodoKEM might be assigned, we assume those code points in this spefication.¶
Number | Name | Status | Recipient Tests | Reference |
---|---|---|---|---|
TBD50 | ntruhps2048677 | [TBD, this draft], | [TBD, this draft] | |
TBD51 | ntruhrss701 | [TBD, this draft], | [TBD, this draft] | |
TBD52 | ntruhps4096821 | [TBD, this draft], | [TBD, this draft] | |
TBD53 | ntruhps40961229 | [TBD, this draft], | [TBD, this draft] | |
TBD54 | ntruhrss1373 | [TBD, this draft], | [TBD, this draft] | |
55-1023 | Unassigned |
To be added later.¶