arXiv:2610.32356cs.CROct 2026

Manuscript Offprint

arXiv:2610.32356

Embedding Large PQC KEMs in IKEv2

Daniel Herzinger, Marco Thomas, Tobias Handirk, Stefan-Lukas Gazdag, Daniel Loebenberger, Marian Margraf

ABSTRACT

Post-quantum key encapsulation mechanisms carry public keys far larger than the established VPN handshake protocol IKEv2 was designed for. At the same time, its initial exchange comprising the public keys cannot be fragmented. In response, the IETF discusses a range of protocol adjustments, yet these proposals have never been compared in terms of their performance and stability under identical conditions. We systematically screened the IETF document corpus for such proposals, added three of our own (one using forward error correction and two using IKEv2 with QUIC, namely QUIKE and QUIKE with a composite key exchange), identified two specification gaps in existing acknowledgment drafts, and implemented all eight on the same open-source codebase. Measurements across different bandwidths, latencies, and packet loss rates, and with ML-KEM, FrodoKEM, and Classic McEliece, total 126 500 handshakes in 1296 different configurations and show that no mechanism fully compensates for the effect of the key size on performance. For Classic McEliece, no approach handles challenging conditions acceptably. The approaches either congest the link or take up to nearly two minutes per handshake on average. For ML-KEM and FrodoKEM, there are two ways forward: building on already standardized extensions or delegating the transport. The former requires the larger implementation change and needs further optimization, such as acknowledgment mechanisms or error-correcting codes, but grants continuity and compatibility. The latter can use a composite key exchange to avoid these drawbacks and achieve a faster, more resilient handshake and leaner implementation, with QUIKE-composite offering the best overall performance.

INDEX TERMS Cryptography, Forward error-correcting codes, IKEv2, IPsec, PQC, QUIC, VPN

I. INTRODUCTION

Virtual Private Networks (VPNs) securely interconnect IT infrastructure over public networks like the Internet, representing a backbone for modern distributed systems. However, the prospect of a large Quantum Computer (QC) threatens the asymmetric cryptography building blocks vital for establishing secure VPN connections. Even more urgently, an attacker can perform store-now, decrypt-later attacks, recording VPN connections today and using a QC to break the key agreement and decrypt the data in the future.

New Post-Quantum Cryptography (PQC) key agreement mechanisms also protect against the QC threat. They typically consist of Key Encapsulation Mechanisms (KEMs) [1]. Compared to classical Diffie-Hellman (DH) constructs, they use a new syntax and both their public keys and ciphertexts are drastically larger. This complicates integrating them into the prevalent VPN protocols designed and optimized for classical cryptography. One example is IPsec's handshaking protocol IKEv2 [2], first published in 2005. Its IETF working group acknowledged the need for adaptation, publishing the first PQC key agreement RFC [3] in 2023 and discussing further optimizations and alternatives since. Yet, these approaches are complex and face reliability issues, especially considering large PQC KEMs and difficult network environments [4, 5].

Such a fundamental change to a VPN protocol needs to balance requirements in terms of, but not limited to, performance, resilience, backwards compatibility, complexity, and implementation intrusiveness. The resulting situation is complex, exacerbated by a lack of comprehensive data even regarding the well-quantifiable dimensions of performance and network resilience. In response, we conducted a systematic search for all relevant proposals for PQC KEM protocol adjustments for IKEv2 discussed at the IETF. Additionally, we propose three

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

novel approaches: one using Forward Error-correcting Codes (FEC) and two versions of QUIKE, where we combine IKEv2 and QUIC. We evaluate all proposals in terms of performance and network resilience in one stable test environment. This yields clear and reproducible data for a fair comparison and discussion of the qualitative advantages and drawbacks of both the drafts already in discussion as well as our novel ones. It shows that for the largest KEMs, no approach offers acceptably stable performance. For smaller and medium-sized KEMs, two pathways arise: One follows the already standardized way, adhering to design decisions and keeping continuity, but requires more complex adjustments and optimizations to provide performance and stability. The other moves away from existing design decisions and breaks compatibility, but offers the highest and most stable performance with an overall simpler design, especially QUIKE with a composite key exchange. The results act as guidance and clarification for the standardization working group, the academic community, and implementers making trade-offs within their software. We enable this with the following contributions:

• A systematic literature review across the IETF document corpus, identifying proposals for PQC KEMs in IKEv2.

• An approach to stabilize the transmission of fragmented large KEM keys in IKEv2 using FEC.

• Two approaches which fuse IKEv2 and QUIC [6] into QUIKE, a fast and reliable VPN key exchange protocol for IPsec; one using the previous “one-ke-per-round” semantics and one using a composite key agreement.

  • The identification of two specification gaps, concerning key retention and retransmission limits, in drafts adding acknowledgments to IKEv2 fragmentation, and a defect in the QUIC library we build on.

• A reproducible evaluation of the handshake time of all approaches under varying latency, bandwidth, and packet loss as well as with three different KEMs.

• A qualitative discussion of the approaches’ overall complexity, implementation intrusiveness, and practicability.

The remainder of this paper is structured as follows: Section II gives an overview of IKEv2, PQC KEMs, FEC, QUIC, and related work. Section III states our research questions and describes both the systematic search and the measurement setup. Section IV presents the screened proposals and our three novel approaches; Section V covers their implementation and the measurement results, which Section VI puts into perspective. Finally, Section VII explores possible threats to the validity of our study and Section VIII concludes.

References (92)