- Home
- RFC 9867
RFC 9867: Mixing Preshared Keys in the IKE_INTERMEDIATE and CREATE_CHILD_SA Exchanges of the Internet Key Exchange Protocol Version 2 (IKEv2) for Post-Quantum Security
- V. Smyslov
Abstract
An Internet Key Exchange Protocol Version 2 (IKEv2) extension defined in RFC 8784 allows IPsec
traffic to be protected against someone storing VPN communications
and decrypting them later, when (and if) a Cryptographical
RFC 8784 assumes that PPKs are static and thus they are only used when an initial IKEv2 SA is created. If a fresh PPK is available before the IKE SA expires, then the only way to use it is to delete the current IKE SA and create a new one from scratch, which is inefficient. This specification defines a way to use PPKs in active IKEv2 SAs for creating additional IPsec SAs and rekey operations.¶
Status of This Memo
This is an Internet Standards Track document.¶
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
https://
Copyright Notice
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://
1. Introduction
The Internet Key Exchange Protocol Version 2 (IKEv2), defined in [RFC7296], is used in the IPsec architecture for performing authenticated key exchange. An extension to IKEv2 for mixing preshared keys for post-quantum security is defined in [RFC8784]. This extension allows today's IPsec traffic to be protected against future quantum computers. The protection is achieved by means of using a Post-quantum Preshared Key (PPK) that is mixed into the session keys calculation. At the time this extension was being developed, the consensus in the IPsecME WG was that it was more important to protect the IPsec traffic than the IKE traffic. It was believed that information transferred over IKE SA (including peers' identities) is less important and that extending the protection to also cover the initial IKE SA would require serious modifications to the core IKEv2 protocol. One of the goals was to minimize such changes. It was also decided that immediate rekey of initial IKE SA would add this protection to the new IKE SA (albeit it would not provide protection of the identity of the peers).¶
However, in some situations, it is desirable to have this protection for the IKE SA from the very beginning,
when an initial IKE SA is created. An example of such a situation is the Group Key Management protocol using IKEv2,
defined in [RFC9838]. In this protocol, the group policy and session keys are transferred
from a Group Controller/Key Server (GCKS) to the Group Members (GMs) immediately once an initial IKE SA is created.
While session keys are additionally protected with a key derived from SK_
Another issue with using PPKs as defined in [RFC8784] is that this approach assumes that PPKs are static entities, which are changed very infrequently. For this reason, PPKs are only used once when an initial IKE SA is established. This restriction makes it difficult to use PPKs as defined in [RFC8784] when they are changed relatively frequently, for example, via the use of Quantum Key Distribution (QKD). If a fresh PPK becomes available before the IKE SA is expired, there is no way to use it except for deleting the IKE SA and recreating a new one from scratch using the fresh PPK.¶
Some time after the protocol extension for mixing preshared keys in IKEv2 for post-quantum security was defined in [RFC8784],
a new IKE_
This specification defines the use of PPKs in the IKE_
This specification also defines the use of PPKs in the CREATE_
This specification does not replace the approach defined in [RFC8784]. Both approaches for using PPKs in IKEv2 can be used depending on the circumstances (see Appendix A).¶
2. Terminology and Notation
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.¶
This document uses the terms defined in [RFC7296]. In particular, readers should be familiar with the terms "initiator" and "responder" as used in that document.¶
The approach defined in [RFC8784] is referred to as "using PPKs in the IKE_
3. Protocol Description
3.1. Creating Initial IKE SA
The IKE initiator, which supports the IKE_
Initiator Responder
------------------------------------------------------------------
HDR, SAi1, KEi, Ni,
N(INTERMEDIATE_EXCHANGE_SUPPORTED),
N(USE_PPK_INT) --->
<--- HDR, SAr1, KEr, Nr, [CERTREQ,]
N(INTERMEDIATE_EXCHANGE_SUPPORTED),
N(USE_PPK_INT) The USE_
Note that this negotiation is independent from the negotiation of using PPKs as specified in [RFC8784].
An initiator that supports both the use of PPKs in IKE_
If the initiator did not propose using this extension in the IKE_
If the negotiation was successful, the initiator includes one or more
PPK_
The PPK_
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ~ PPK_ID ~ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | + PPK Confirmation + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Where:¶
- PPK_
ID (variable): - PPK_
ID as defined in Section 5.1 of [RFC8784]. The receiver can determine the length of PPK_ ID by subtracting 8 (the length of PPK Confirmation) from the Notification Data length.¶ - PPK Confirmation (8 octets):
-
A value that allows the responder to check whether it has the same PPK as the initiator for a given PPK_
ID . This field contains the first 8 octets of a string computed as prf( PPK, Ni | Nr | SPIi | SPIr ), where:¶
If a series of the IKE_
Initiator Responder
------------------------------------------------------------------
HDR, SK { ... N(PPK_IDENTITY_KEY, PPK_ID_1)
[, N(PPK_IDENTITY_KEY, PPK_ID_2)] ...
[, N(PPK_IDENTITY_KEY, PPK_ID_n)]} --->Depending on the responder's capabilities and policy, the following situations are possible:¶
-
If the responder is configured with a PPK with an ID that is among the IDs sent by the initiator, and if this PPK matches the initiator's PPK (based on the information from the PPK Confirmation field), then the responder selects this PPK and returns its identity in the PPK_
IDENTITY notification. The PPK_ IDENTITY notification is defined in [RFC8784].¶ ¶Initiator Responder --------------------------------------------------------------- <--- HDR, SK { ... N(PPK_IDENTITY, PPK_ID_i)}In this case, the IKE_
AUTH exchange is performed as defined in IKEv2 [RFC7296]. However, the keys for the IKE SA are computed using PPK, as described in Section 3.1.1. If the responder returns a PPK identity that was not proposed by the initiator, then the initiator MUST treat this as fatal and abort the IKE SA establishment.¶ -
If the responder does not have a PPK with an ID that matches any of IDs sent by the initiator, or if the responder has some of the proposed PPKs but their values are mismatched from the initiator's PPKs (based on the information from the PPK Confirmation field), and if using PPK is mandatory for the responder, then it MUST return an AUTHENTICATION_
FAILED notification and abort creating the IKE SA.¶ ¶Initiator Responder --------------------------------------------------------------- <--- HDR, SK {... N(AUTHENTICATION_FAILED)} -
If the responder does not have any PPKs proposed by the initiator, or if it has only some of the proposed PPKs but their values mismatch the initiator's ones (based on the information from the PPK Confirmation field), and if using PPK is optional for the responder, then it does not include any PPK_
IDENTITY notification to the response.¶ ¶Initiator Responder --------------------------------------------------------------- <--- HDR, SK {...}In this case, the initiator cannot achieve quantum computer resistance using the proposed PPKs. If this is a requirement for the initiator, then it MUST abort creating the IKE SA. Otherwise, the initiator continues with the IKE_
AUTH exchange as described in IKEv2 [RFC7296].¶
Table 1 summarizes the above logic for the responder:¶
| Received USE_ |
Supports USE_ |
Has one of the proposed PPKs | PPK is mandatory for initial IKE SA | Action |
|---|---|---|---|---|
| No | * | * | No | [RFC8784] (if proposed) or standard IKEv2 protocol |
| No | Yes | * | Yes | Send NO_ |
| Yes | Yes | Yes | * | Section 3.1, Paragraph 14, Item 1 (use this extension) |
| Yes | Yes | No | Yes | Section 3.1, Paragraph 14, Item 2 (abort negotiation) |
| Yes | Yes | No | No | Section 3.1, Paragraph 14, Item 3 (standard IKEv2 protocol) |
Since the responder selects a PPK before it knows the identity of the initiator, a situation may occur
where the responder agrees to use some PPK in the IKE_
3.1.1. Computing IKE SA Keys
Once the PPK is negotiated in the IKE_
The IKE SA keys are computed differently compared to how PPKs
are used in IKE_
SKEYSEED' = prf+ (PPK, SK_d)
Then the SKEYSEED' is used to recalculate all SK_
{SK_d | SK_ai | SK_ar | SK_ei | SK_er | SK_pi | SK_pr}
= prf+ (SKEYSEED', Ni | Nr | SPIi | SPIr )
In the formula above, Ni and Nr are nonces from the IKE_
The resulting keys are then used in the IKE_
3.2. Using PPKs in the CREATE_CHILD_SA Exchange
If a fresh PPK is available to both peers at the time when an IKE SA is active,
peers MAY use this fresh PPK without creating a new IKE SA from scratch
when they have a need to create additional IPsec SAs or to rekey existing SAs.
In this case, the PPK can be used for creating additional IPsec SAs and for rekeying both IKE and IPsec SAs
regardless of whether the current IKE SA was created with the use of a PPK
(no matter how: in IKE_
If the initiator wants to use a PPK in the CREATE_
Initiator Responder
------------------------------------------------------------------
HDR, SK {[N(REKEY_SA),] SA, Ni, [KEi,] TSi, TSr,
N(PPK_IDENTITY_KEY, PPK_ID_1)
[, N(PPK_IDENTITY_KEY, PPK_ID_2)] ...
[, N(PPK_IDENTITY_KEY, PPK_ID_n)]} --->
<--- HDR, SK {SA, Nr [KEr,] TSi, TSr,
N(PPK_IDENTITY, PPK_ID_i)}Initiator Responder
------------------------------------------------------------------
HDR, SK {SA, Ni, KEi,
N(PPK_IDENTITY_KEY, PPK_ID_1)
[, N(PPK_IDENTITY_KEY, PPK_ID_2)] ...
[, N(PPK_IDENTITY_KEY, PPK_ID_n)]} --->
<--- HDR, SK {SA, Nr, KEr,
N(PPK_IDENTITY, PPK_ID_i)}
If the responder does not support (or is not configured for) using
PPKs in the CREATE_
If using PPKs in CREATE_
Otherwise, the new SA is created using the selected PPK.¶
3.2.1. Computing Keys
For the purpose of calculation session keys for the new SA, the current SK_
SK_d' = prf+ (PPK, SK_d)
The resulting key SK_
Note that if the PPK that was used for the IKE SA establishment is not changed, then there is no point
to use it in the CREATE_
4. Security Considerations
Security considerations for using Post-quantum Preshared Keys
in the IKEv2 protocol are discussed in [RFC8784].
Unlike using PPKs in IKE_
This specification relies on the IKE_
Section 4 of [RFC9370] discusses the potential impact of when a CRQC is accessible on various cryptographic primitives used in IKEv2. It is worthwhile to repeat here that it is believed that the security of symmetric key cryptographic primitives will not be affected by CRQC.¶
5. IANA Considerations
Per this document, IANA has added the following Notify Message Types in the "IKEv2 Notify Message Status Types" registry:¶
6. References
6.1. Normative References
- [RFC2119]
-
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10
.17487 , , <https:///RFC2119 www >..rfc -editor .org /info /rfc2119 - [RFC8174]
-
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10
.17487 , , <https:///RFC8174 www >..rfc -editor .org /info /rfc8174 - [RFC7296]
-
Kaufman, C., Hoffman, P., Nir, Y., Eronen, P., and T. Kivinen, "Internet Key Exchange Protocol Version 2 (IKEv2)", STD 79, RFC 7296, DOI 10
.17487 , , <https:///RFC7296 www >..rfc -editor .org /info /rfc7296 - [RFC8784]
-
Fluhrer, S., Kampanakis, P., McGrew, D., and V. Smyslov, "Mixing Preshared Keys in the Internet Key Exchange Protocol Version 2 (IKEv2) for Post-quantum Security", RFC 8784, DOI 10
.17487 , , <https:///RFC8784 www >..rfc -editor .org /info /rfc8784 - [RFC9242]
-
Smyslov, V., "Intermediate Exchange in the Internet Key Exchange Protocol Version 2 (IKEv2)", RFC 9242, DOI 10
.17487 , , <https:///RFC9242 www >..rfc -editor .org /info /rfc9242
6.2. Informative References
- [RFC9838]
-
Smyslov, V. and B. Weis, "Group Key Management Using the Internet Key Exchange Protocol Version 2 (IKEv2)", RFC 9838, DOI 10
.17487 , , <https:///RFC9838 www >..rfc -editor .org /info /rfc9838 - [RFC9370]
-
Tjhai, CJ., Tomlinson, M., Bartlett, G., Fluhrer, S., Van Geest, D., Garcia-Morchon, O., and V. Smyslov, "Multiple Key Exchanges in the Internet Key Exchange Protocol Version 2 (IKEv2)", RFC 9370, DOI 10
.17487 , , <https:///RFC9370 www >..rfc -editor .org /info /rfc9370
Appendix A. Comparison of this Specification with RFC 8784
This specification is not intended to be a replacement for using PPKs in IKE_
The approach defined in this document has the following advantages:¶
-
The main advantage of using PPK in the IKE_
INTERMEDIATE exchange instead of the IKE_ AUTH exchange is that it allows IKE_ AUTH to be fully protected. This means that the ID payloads and any other sensitive content sent in the IKE_ AUTH are protected against quantum computers. The same is true for the sensitive data sent in the GSA_ AUTH exchange in the G-IKEv2 protocol [RFC9838].¶ -
In addition to the IKE_
AUTH exchange being fully protected, the initial IKE SA is also fully protected, which is important when sensitive information is transferred over initial IKE SA. Examples of such a situation are the CREATE_ CHILD_ SA exchange of IKEv2 and the GSA_ REGISTRATION exchange of G-IKEv2 [RFC9838].¶ -
As the PPK exchange happens as a separate exchange before IKE_
AUTH, this means that initiator can propose several PPKs and the responder can pick one. This is not possible when the PPK exchange happens in the IKE_ AUTH . This feature could simplify PPK rollover.¶ -
With this specification there is no need for the initiator to calculate the content of the AUTH payload twice (with and without PPK) to support a situation when using PPK is optional for both sides.¶
The main disadvantage of the approach defined in this document is that it always requires an additional round trip (the IKE_
Acknowledgements
Author would like to thank Paul Wouters for
valuable comments and Tero Kivinen who made a
thorough review of the document and proposed a lot of text improvements,
and who also pointed out to the problem of mismatched preshared
keys. Thanks to Rebecca Guthrie for providing
comments and proposals for the document and to Mikhail Borodin for discovering the problem of calculating
PPK Confirmation in CREATE_