Network Working Group M. C. Saxena Internet-Draft Secure Systems Research Labs Pvt Ltd Intended status: Informational 30 November 2026 Expires: 3 June 2027 pqclink: A Hybrid Post-Quantum Authenticated Key Exchange and Encapsulation for Layer 2 Link Encryptors draft-saxena-pqclink-00 Abstract This document specifies pqclink, a protocol for protecting point-to- point Ethernet circuits against both classical and quantum-capable adversaries. pqclink is designed to be inserted next to an existing bulk link encryptor, or to replace one, on a transparent Layer 2 service. It needs no IP address on either port. Two devices authenticate each other with ML-DSA-87 against pinned public keys and establish keys with a hybrid of X25519 and ML-KEM-1024. Each session has forward secrecy, keys are confirmed explicitly, and the whole transcript, including the negotiated cipher, is bound into the keys. Ethernet frames are then carried in authenticated and encrypted pqclink frames with a dedicated EtherType. The data-plane cipher is negotiated in every handshake and can be changed on a running link without frame loss. The protocol fails closed: the protected port is held down whenever the link is not verified. Status of This Memo 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 3 June 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. Saxena Expires 3 June 2027 [Page 1] Internet-Draft pqclink November 2026 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. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1. Requirements Language . . . . . . . . . . . . . . . . . . 4 1.2. Terminology . . . . . . . . . . . . . . . . . . . . . . . 4 2. Architecture Overview . . . . . . . . . . . . . . . . . . . . 4 3. Algorithms and Identifiers . . . . . . . . . . . . . . . . . 5 3.1. Key Encapsulation . . . . . . . . . . . . . . . . . . . . 5 3.2. Signature . . . . . . . . . . . . . . . . . . . . . . . . 6 3.3. Hash . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.4. Data Cipher . . . . . . . . . . . . . . . . . . . . . . . 6 3.4.1. AEGIS-256 Nonce . . . . . . . . . . . . . . . . . . . 7 3.5. The X25519 + ML-KEM-1024 Hybrid . . . . . . . . . . . . . 7 4. Packet Formats . . . . . . . . . . . . . . . . . . . . . . . 8 4.1. Common Header . . . . . . . . . . . . . . . . . . . . . . 8 4.2. Ethernet Encapsulation . . . . . . . . . . . . . . . . . 8 4.3. Handshake Fragments . . . . . . . . . . . . . . . . . . . 9 4.4. Data Packets . . . . . . . . . . . . . . . . . . . . . . 10 5. Handshake . . . . . . . . . . . . . . . . . . . . . . . . . . 11 5.1. Roles . . . . . . . . . . . . . . . . . . . . . . . . . . 11 5.2. Messages . . . . . . . . . . . . . . . . . . . . . . . . 11 5.2.1. Init . . . . . . . . . . . . . . . . . . . . . . . . 12 5.2.2. Resp . . . . . . . . . . . . . . . . . . . . . . . . 12 5.2.3. Confirm . . . . . . . . . . . . . . . . . . . . . . . 13 5.3. Processing Rules . . . . . . . . . . . . . . . . . . . . 13 5.4. Key Schedule . . . . . . . . . . . . . . . . . . . . . . 14 6. Data Transfer . . . . . . . . . . . . . . . . . . . . . . . . 15 6.1. Sending and Receiving . . . . . . . . . . . . . . . . . . 15 6.2. Fragmentation of Data Frames . . . . . . . . . . . . . . 15 6.3. Control Messages . . . . . . . . . . . . . . . . . . . . 16 7. Rekeying and Cipher Agility . . . . . . . . . . . . . . . . . 16 8. Liveness and Fail-Closed Operation . . . . . . . . . . . . . 17 9. UDP Transport . . . . . . . . . . . . . . . . . . . . . . . . 17 10. Security Considerations . . . . . . . . . . . . . . . . . . . 17 11. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 19 12. References . . . . . . . . . . . . . . . . . . . . . . . . . 19 12.1. Normative References . . . . . . . . . . . . . . . . . . 19 12.2. Informative References . . . . . . . . . . . . . . . . . 20 Appendix A. Message Sizes . . . . . . . . . . . . . . . . . . . 21 Appendix B. Implementation Status . . . . . . . . . . . . . . . 21 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 22 Saxena Expires 3 June 2027 [Page 2] Internet-Draft pqclink November 2026 1. Introduction Many organisations protect inter-site Ethernet circuits with dedicated bulk encryptors placed between a router and a service provider's multiplexer. Two problems are common with such equipment: 1. Symmetric keys are generated centrally, carried to each site and entered by hand. Key changes are rare and costly, and a key, once stolen, exposes all past and future traffic until it is replaced. 2. Key establishment, where any exists, relies on classical public- key cryptography. Traffic recorded today can be decrypted later once a cryptographically relevant quantum computer exists ("harvest now, decrypt later"). pqclink addresses both problems without changing the network around the encryptor. It is a Layer 2 protocol between exactly two devices: * It establishes fresh keys automatically, authenticated with ML- DSA-87 [FIPS204] and agreed with a hybrid of X25519 [RFC7748] and ML-KEM-1024 [FIPS203]. The session stays secure as long as either of the two key agreements holds. * It rekeys periodically with forward secrecy. No secret key material is ever entered by an operator. * It carries every Ethernet frame, including control-plane frames such as STP, LLDP and 802.1X, inside authenticated and encrypted pqclink frames with their own EtherType, in the way MACsec [IEEE802.1AE] uses 0x88E5. No IP, ARP or IPv6 traffic is exposed on the service provider circuit. * It makes the data cipher a negotiated, signed parameter, so a cipher can be replaced in the field without a protocol change. * It fails closed. The port facing the protected network is administratively down until the far device has been authenticated and traffic is flowing, and it goes down again within a bounded time when authenticated traffic stops. IKEv2 can already add post-quantum key exchanges [RFC9370], but IPsec needs network-layer addresses and routing on the protected path, which the deployments targeted here cannot add. Saxena Expires 3 June 2027 [Page 3] Internet-Draft pqclink November 2026 The protocol is deliberately narrow. It has two peers, pinned identities, and a single fixed suite per link for key establishment, signature and hash. This keeps the state machine small enough to audit and to implement in constrained hardware. 1.1. Requirements Language 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. 1.2. Terminology Box A device implementing pqclink. Each box has a _plain port_, facing the protected network (for example a router or a legacy encryptor), and a _line port_, facing the service provider circuit. Initiator, Responder The roles in a handshake. By default the box whose identity fingerprint is numerically lower is the Initiator (Section 5.1). Session A pair of directional AEAD keys with their counters and replay state, produced by one handshake. Suite base The KEM, signature and hash algorithms. These are fixed per link and configured identically on both boxes. Cipher The AEAD algorithm used for data frames. It is negotiated in each handshake. || Byte-string concatenation. All multi-byte integers are unsigned and in network byte order (big- endian), except where a referenced algorithm specifies otherwise. 2. Architecture Overview Saxena Expires 3 June 2027 [Page 4] Internet-Draft pqclink November 2026 Site A Site B +--------+ +--------+ +-----+ +-----+ +--------+ +--------+ | Router |-| Legacy |-| Box |=========| Box |-| Legacy |-| Router | +--------+ | BEU | | A | SP | B | | BEU | +--------+ |(option)| +-----+ circuit +-----+ |(option)| +--------+ +--------+ Figure 1: Placement of pqclink boxes A box bridges frames between its plain port and its line port. Every frame received on the plain port is encrypted and sent on the line port as one pqclink frame, or as several pqclink frames if it is too large (Section 6.2). Every authenticated pqclink data frame received on the line port is decrypted and sent on the plain port. Nothing else crosses between the ports. The line port normally needs no network-layer address. On a transparent Ethernet service (for example dark fibre, EoSDH, EoMPLS or VPLS), pqclink frames are sent between the two boxes' MAC addresses (Section 4.2). When the service provider offers only a routed service, the same pqclink packets are carried in UDP (Section 9). 3. Algorithms and Identifiers Each algorithm has a one-octet identifier. Identifiers appear in handshake messages and are covered by signatures, so a box always knows exactly which algorithms its peer used. An identifier MUST NOT be reassigned to a different algorithm. 3.1. Key Encapsulation +=======+=======================+============================+ | Value | Name | Description | +=======+=======================+============================+ | 1 | x25519-mlkem1024 | X25519 + ML-KEM-1024 | | | | hybrid (Section 3.5) | +-------+-----------------------+----------------------------+ | 2 | x25519-ssrl-mlkem1024 | As value 1, provided by an | | | | independent implementation | | | | (see below) | +-------+-----------------------+----------------------------+ Table 1: KEM identifiers Saxena Expires 3 June 2027 [Page 5] Internet-Draft pqclink November 2026 Values 1 and 2 are the same algorithm with identical encodings. The reference implementation uses value 2 to select its own FIPS 203 implementation and to make both boxes state which one they run. A future revision of this document may fold value 2 into value 1. 3.2. Signature +=======+==============+======================================+ | Value | Name | Description | +=======+==============+======================================+ | 1 | mldsa87 | ML-DSA-87 [FIPS204], hedged signing, | | | | context string "pqclink v2" | +-------+--------------+--------------------------------------+ | 2 | ssrl-mldsa87 | As value 1, provided by an | | | | independent implementation | +-------+--------------+--------------------------------------+ Table 2: Signature identifiers Values 1 and 2 are the same algorithm: the same 32-octet seed gives the same key pair, so key files are shared. As for the KEM, a box states which implementation it runs, and both boxes MUST use the same value. 3.3. Hash +=======+========+============================================+ | Value | Name | Description | +=======+========+============================================+ | 1 | sha384 | SHA-384 [RFC6234], used for the transcript | | | | hash, HKDF [RFC5869] and HMAC [RFC2104] | +-------+--------+--------------------------------------------+ Table 3: Hash identifiers 3.4. Data Cipher Every cipher is an AEAD algorithm in the sense of [RFC5116], with a 32-octet key, a 12-octet nonce as seen by this protocol, and a 16-octet tag. Saxena Expires 3 June 2027 [Page 6] Internet-Draft pqclink November 2026 +=======+==================+=============================+ | Value | Name | Description | +=======+==================+=============================+ | 1 | aes256gcm | AES-256-GCM [SP800-38D] | +-------+------------------+-----------------------------+ | 2 | chacha20poly1305 | ChaCha20-Poly1305 [RFC8439] | +-------+------------------+-----------------------------+ | 3 | aegis256 | AEGIS-256 [RFC10032] with a | | | | 128-bit tag (Section 3.4.1) | +-------+------------------+-----------------------------+ Table 4: Cipher identifiers 3.4.1. AEGIS-256 Nonce AEGIS-256 takes a 32-octet nonce. pqclink builds it from the 12-octet protocol nonce N as: nonce32 = "pqclink/AEGIS-256/v1" || N Figure 2 where the prefix is the 20 ASCII octets shown, without a terminator. 3.5. The X25519 + ML-KEM-1024 Hybrid The hybrid KEM provides three operations: Generate() Make an X25519 key pair (xsk, xpk) and an ML-KEM-1024 key pair (dk, ek). The public key is xpk || ek (32 + 1568 = 1600 octets). Encapsulate(pk) Split pk into xpk_peer (32 octets) and ek (1568 octets). Reject ek if it fails the modulus check of [FIPS203]. Run ML- KEM.Encaps(ek) to get (ss_k, ct_k), make a fresh X25519 key pair (esk, epk), and compute ss_x = X25519(esk, xpk_peer). An all-zero ss_x MUST be rejected. The output is the shared secret ss_x || ss_k (64 octets) and the ciphertext epk || ct_k (32 + 1568 = 1600 octets). Decapsulate(sk, ct) Split ct, compute ss_x = X25519(xsk, epk), rejecting an all-zero result, and ss_k = ML-KEM.Decaps(dk, ct_k). The output is ss_x || ss_k. Saxena Expires 3 June 2027 [Page 7] Internet-Draft pqclink November 2026 The concatenated secret is never used directly. It is the input keying material to HKDF-Extract, salted with a hash of the complete transcript, which contains both public keys and both ciphertexts (Section 5.4). 4. Packet Formats 4.1. Common Header Every pqclink packet begins with two octets: 0 1 +-------+-------+ | ver | type | +-------+-------+ Figure 3 ver Protocol version. This document specifies version 2. type 4 = data packet (Section 4.4), 5 = handshake fragment (Section 4.3). A receiver MUST silently discard packets with any other version or type. 4.2. Ethernet Encapsulation +==============================================+===============+ | Field | Size (octets) | +==============================================+===============+ | Destination MAC address | 6 | +----------------------------------------------+---------------+ | Source MAC address | 6 | +----------------------------------------------+---------------+ | 802.1Q tag (optional) | 4 | +----------------------------------------------+---------------+ | EtherType | 2 | +----------------------------------------------+---------------+ | length | 2 | +----------------------------------------------+---------------+ | pqclink packet | variable | +----------------------------------------------+---------------+ | padding (to the Ethernet minimum frame size) | 0 or more | +----------------------------------------------+---------------+ Table 5: pqclink over Ethernet Saxena Expires 3 June 2027 [Page 8] Internet-Draft pqclink November 2026 EtherType The value is configurable. The default is 0x88B5 (IEEE 802 Local Experimental EtherType 1 [IEEE802]), pending the assignment requested in Section 11. length Length in octets of the pqclink packet. The receiver uses it to remove Ethernet padding. The destination MAC address MAY be configured. Otherwise a box sends handshake frames to the broadcast address and _learns_ the peer's MAC address from a handshake message whose signature has verified. An optional 802.1Q tag allows the line port to use one VLAN of a trunk. The _line MTU_ is the largest pqclink packet plus the length field that the circuit carries. 4.3. Handshake Fragments Handshake messages are about 6.3 kilooctets and are always fragmented: 0 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ver = 2 | type = 5 | msgtype | idx | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | cnt | 0 | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ message id + | | total | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ~ chunk (at most 1200 octets) ~ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 4: Handshake fragment msgtype 1 = Init, 2 = Resp, 3 = Confirm. idx, cnt Fragment index (from 0) and fragment count. 1 <= cnt <= 255, idx < cnt. message id 4 octets, random per message; it groups the fragments. total Saxena Expires 3 June 2027 [Page 9] Internet-Draft pqclink November 2026 2 octets, the total message length, at most 16384 octets. chunk At most 1200 octets of the message. Reassembly holds unauthenticated data. A receiver MUST bound it: the reference implementation keeps at most 4 partial messages per source, each discarded 3 seconds after its first fragment. A completed message is authenticated as a whole by its signature or MAC (Section 5). 4.4. Data Packets 0 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ver = 2 | type = 4 | flags | 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | receiver index | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | + counter (64 bits) + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ~ ciphertext ~ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | + + | tag (16 octets) | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 5: Data packet flags 0x01 KEEPALIVE: empty payload, proves liveness. 0x02 FRAGMENT: the payload starts with a fragment header (Section 6.2). 0x04 CONTROL: the payload is a list of control messages (Section 6.3). Other bits MUST be sent as zero and ignored on receipt. receiver index The index the receiving box chose for this session in the handshake. It selects the session (current, previous, or newly established). Saxena Expires 3 June 2027 [Page 10] Internet-Draft pqclink November 2026 counter The sender's per-session packet counter, starting at 0 and increasing by one for every packet. The 16-octet header is the AEAD associated data. The 12-octet nonce is 0x00000000 || counter. The plaintext is the Ethernet frame (destination MAC to the end of the payload, without FCS), the fragment, the control list, or nothing for a keepalive. The overhead on the line is therefore 34 octets: the 16-octet header, the 16-octet tag and the 2-octet length field, plus the Ethernet header of the line frame. 5. Handshake 5.1. Roles Each box has a long-term ML-DSA-87 key pair and the pinned public key of exactly one peer. The fingerprint of a public key is the first 16 octets of SHA-384 over its encoding. Unless configured otherwise, the box with the lower fingerprint (compared as unsigned big-endian integers) is the Initiator. A box that receives a valid Init while it is itself configured as Initiator MUST NOT respond and SHOULD report a role conflict. 5.2. Messages Initiator Responder Init: base ids, cipher offer, index_i, ts, nonce_i, fp_i, hybrid public key, SIG_i --------> verify SIG_i (pinned key) check ts > last accepted ts choose cipher, encapsulate <-------- Resp: base ids, chosen cipher, index_r, index_i, nonce_r, fp_r, hybrid ciphertext, SIG_r over Init || Resp verify SIG_r, decapsulate, derive keys Confirm: index_r, HMAC(k_confirm, TH) --------> verify, session is live Figure 6: Handshake flow Saxena Expires 3 June 2027 [Page 11] Internet-Draft pqclink November 2026 5.2.1. Init +==================================================+===============+ | Field | Size (octets) | +==================================================+===============+ | msgtype = 1 | 1 | +--------------------------------------------------+---------------+ | ver = 2 | 1 | +--------------------------------------------------+---------------+ | KEM id, signature id, hash id | 3 | +--------------------------------------------------+---------------+ | n = number of ciphers offered (1..8) | 1 | +--------------------------------------------------+---------------+ | cipher ids, most preferred first | n | +--------------------------------------------------+---------------+ | index_i | 4 | +--------------------------------------------------+---------------+ | ts | 8 | +--------------------------------------------------+---------------+ | nonce_i | 32 | +--------------------------------------------------+---------------+ | fp_i (fingerprint of the Initiator's public key) | 16 | +--------------------------------------------------+---------------+ | hybrid public key | 1600 | +--------------------------------------------------+---------------+ | SIG_i | 4627 | +--------------------------------------------------+---------------+ Table 6: Init SIG_i is ML-DSA-87.Sign(sk_i, "pqclink v2 init" || Init', ctx = "pqclink v2"), where Init' is the message up to and excluding SIG_i, and the label is the 15 ASCII octets shown. ts is a 64-bit value that MUST be greater than every ts the Initiator has sent before to this peer. The reference implementation uses the wall-clock time in nanoseconds and persists a reserved upper bound, so a box without a real-time clock never reuses a value after a reboot. 5.2.2. Resp +===============================+===============+ | Field | Size (octets) | +===============================+===============+ | msgtype = 2 | 1 | +-------------------------------+---------------+ | ver = 2 | 1 | +-------------------------------+---------------+ | KEM id, signature id, hash id | 3 | Saxena Expires 3 June 2027 [Page 12] Internet-Draft pqclink November 2026 +-------------------------------+---------------+ | chosen cipher id | 1 | +-------------------------------+---------------+ | index_r | 4 | +-------------------------------+---------------+ | index_i (echoed) | 4 | +-------------------------------+---------------+ | nonce_r | 32 | +-------------------------------+---------------+ | fp_r | 16 | +-------------------------------+---------------+ | hybrid ciphertext | 1600 | +-------------------------------+---------------+ | SIG_r | 4627 | +-------------------------------+---------------+ Table 7: Resp SIG_r is ML-DSA-87.Sign(sk_r, "pqclink v2 resp" || Init || Resp', ctx = "pqclink v2"), where Init is the complete Init message and Resp' is the Resp up to and excluding SIG_r. 5.2.3. Confirm +=============================+===============+ | Field | Size (octets) | +=============================+===============+ | msgtype = 3 | 1 | +-----------------------------+---------------+ | ver = 2 | 1 | +-----------------------------+---------------+ | index_r | 4 | +-----------------------------+---------------+ | HMAC-SHA-384(k_confirm, | 48 | | "pqclink v2 confirm" || TH) | | +-----------------------------+---------------+ Table 8: Confirm 5.3. Processing Rules The Responder, on receiving Init: 1. MUST discard it unless ver = 2, the base identifiers equal its own, the offer count is 1 to 8 and the length is exact. If the base identifiers differ, it SHOULD report a suite mismatch. Saxena Expires 3 June 2027 [Page 13] Internet-Draft pqclink November 2026 2. MUST compare fp_i with the pinned peer fingerprint in constant time and discard the message on mismatch. 3. MUST verify SIG_i with the pinned peer key. 4. MUST discard the message unless ts is greater than the largest ts of any Init that led to a confirmed session with this peer. 5. MUST choose the first cipher in the offer that its own configuration allows. The Initiator's order decides and the Responder only filters. If there is none, it discards the message and reports it. 6. Encapsulates to the hybrid public key, builds and signs Resp, derives the session (Section 5.4) and sends Resp. It MUST NOT send data under the new session until the session is _confirmed_: either a Confirm verifies, or a data packet under the new session authenticates. Only then is the session installed and ts recorded. The Initiator, on receiving Resp for its outstanding Init: 1. MUST check ver, base identifiers, exact length, that the chosen cipher is one it allows, that index_i matches, and fp_r against the pinned peer fingerprint. 2. MUST verify SIG_r over Init || Resp'. This binds the Responder's choices to the exact Init, including the cipher offer, so a downgrade of the offer is detected. 3. Decapsulates, derives the session, sends Confirm, installs the session and erases the ephemeral private keys. An Initiator retransmits Init (with a new ts, index and ephemeral key pair) if no valid Resp arrives within a retry interval (2 seconds in the reference implementation). 5.4. Key Schedule TH = SHA-384(Init || Resp) PRK = HKDF-Extract(salt = TH, IKM = ss_x || ss_k) k_i2r = HKDF-Expand(PRK, "pqclink v2 initiator to responder", 32) k_r2i = HKDF-Expand(PRK, "pqclink v2 responder to initiator", 32) k_confirm = HKDF-Expand(PRK, "pqclink v2 confirm", 48) Figure 7 Saxena Expires 3 June 2027 [Page 14] Internet-Draft pqclink November 2026 HKDF uses SHA-384. Labels are ASCII without a terminator. The Initiator sends with k_i2r and receives with k_r2i; the Responder does the reverse. The shared secret and PRK MUST be erased once the keys are derived. 6. Data Transfer 6.1. Sending and Receiving A sender increments the session counter for every packet and MUST stop using a session before the counter reaches 2^60. A receiver: 1. Finds the session by receiver index: the current session, the previous session during its grace period (Section 7), or a Responder session waiting for confirmation. 2. Discards the packet if the counter is outside a sliding replay window (4096 packets in the reference implementation) or already marked as seen. 3. Opens the AEAD with the header as associated data. On failure it discards the packet and counts an authentication failure. It MUST NOT release any part of an unauthenticated plaintext. 4. Marks the counter as seen. Only then does it act on the packet. 6.2. Fragmentation of Data Frames A plain frame that does not fit the line MTU after encapsulation is split _before_ encryption. Each piece is sent as its own data packet with the FRAGMENT flag, and its payload starts with: 0 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | idx | cnt | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ fragment id + | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + ~ piece ~ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 8 Saxena Expires 3 June 2027 [Page 15] Internet-Draft pqclink November 2026 Because each piece is authenticated, a receiver only ever holds authenticated data for reassembly. Reassembly MUST be bounded. The reference implementation allows at most 4 pieces per frame and 32 frames in progress, and drops a frame 250 milliseconds after its first piece. 6.3. Control Messages A data packet with the CONTROL flag carries a list of type-length- value entries (type: 1 octet, length: 1 octet, value): +======+========+==========================================+ | Type | Length | Meaning | +======+========+==========================================+ | 1 | 0 | Rekey request. Sent by the Responder to | | | | ask the Initiator to start a handshake. | +------+--------+------------------------------------------+ | 2 | 1 | Set cipher. The value is a cipher | | | | identifier the sender now prefers. | +------+--------+------------------------------------------+ Table 9: Control messages Unknown types MUST be skipped. Control messages are authenticated like all data, so only the genuine peer can send them. 7. Rekeying and Cipher Agility The Initiator starts a new handshake when any of these holds: there is no session; no authenticated packet has arrived for the dead interval; the session is older than the rekey interval (120 seconds by default); the session has sent 2^40 packets; or a rekey was requested. Every handshake uses fresh ephemeral keys, so compromising a later session or a long-term signing key does not expose earlier sessions. When a session is installed, the old one becomes the _previous_ session and stays usable for receiving during a grace period (30 seconds in the reference implementation). Packets in flight under the old keys are therefore still accepted, and a rekey causes no loss. Saxena Expires 3 June 2027 [Page 16] Internet-Draft pqclink November 2026 To change the cipher on a running link, an operator puts the new cipher first in the preference list of either box. That box sends a Set-cipher control message, and the peer moves the same cipher to the front of its own list if, and only if, its configuration allows it. A rekey follows. The next Init offers the new order, and the change takes effect under the new session without frame loss. Because the offer and the choice are both signed, an attacker can neither force a cipher that both boxes do not allow nor suppress one silently. 8. Liveness and Fail-Closed Operation Each box sends a KEEPALIVE packet whenever it has sent nothing for the keepalive interval (1 second by default). A box considers the link _protected_ only while it holds a confirmed session and has received an authenticated packet within the dead interval (3 seconds by default). While the link is not protected, a box MUST keep its plain port administratively down. The device on the plain side then sees no carrier. This makes the failure visible to it, and no frame can be forwarded unprotected. A box MUST also take the plain port down when its pqclink process stops for any reason. The reference implementation does this from the service manager's stop hook. On an Ethernet line, a box SHOULD refuse to start if the line port has a network-layer address, and SHOULD disable IPv6 on both ports, so the host itself never emits traffic on the circuit. 9. UDP Transport When the service provider circuit is routed, pqclink packets are carried unchanged as the payload of UDP datagrams between configured addresses and ports. The length field of Section 4.2 is not used. Everything else in this document applies unchanged. 10. Security Considerations Threat model The adversary controls the service provider circuit. It can read, record, drop, delay, reorder, replay, modify and inject frames, and it may in the future have a cryptographically relevant quantum computer. It does not control either box. Confidentiality and integrity Every frame from the plain port is protected with an AEAD under keys that only the two boxes can derive. The header is associated data, so the index, counter and flags cannot be changed. The counter, the replay window and per-direction keys prevent replay and reflection. Saxena Expires 3 June 2027 [Page 17] Internet-Draft pqclink November 2026 Hybrid key establishment The session keys stay secret as long as either X25519 or ML- KEM-1024 is secure, because both secrets enter HKDF-Extract, salted with a transcript hash that contains both public keys and both ciphertexts. This follows the usual concatenation-based hybrid design. Authentication and pinning Each box accepts exactly one peer key, configured out of band as public data only. No secret is ever entered by hand. ML-DSA-87 signatures cover every handshake field, and the Responder's signature covers the Initiator's message as well. Labels and the ML-DSA context string separate pqclink signatures from any other use of the keys. Key confirmation The Responder installs a session only after Confirm (or an authenticated data packet) proves that the Initiator derived the same keys. Replay of Init An old Init is refused once the Responder has recorded a larger ts. If a Responder loses that state, a replayed Init costs it one signature check, one encapsulation and one signature. No session results, because the attacker cannot decapsulate or produce Confirm. Downgrade The suite base is fixed per link, and the cipher offer and choice are signed. An attacker can remove a cipher from neither side's view. Denial of service An attacker on the circuit can always deny service by dropping frames. Unauthenticated work is bounded: fragment reassembly is limited, and a cheap fingerprint check precedes signature verification. An attacker who replays a genuine Init can still make a Responder perform signature and encapsulation work; implementations SHOULD rate-limit Init processing. Fail-closed operation turns denial of service into a visible link-down event instead of a silent fallback to clear text. Traffic analysis Frame sizes and timing are visible. pqclink does not pad frames. Deployments that need traffic-flow confidentiality SHOULD keep the legacy encryptor, if it provides that, or add padding and constant-rate traffic. Saxena Expires 3 June 2027 [Page 18] Internet-Draft pqclink November 2026 Implementation Implementations MUST perform all operations on secret data in constant time. That includes AEAD tag checks, fingerprint comparison, ML-KEM decapsulation with implicit rejection, and the re-encryption check. Implementations MUST erase ephemeral secrets after use. 11. IANA Considerations This document has no IANA actions. A request will be made to the IEEE Registration Authority for an EtherType for pqclink. Until one is assigned, deployments use a Local Experimental EtherType. If this specification progresses, registries for the KEM, signature, hash and cipher identifiers of Section 3 would be created, with a Specification Required policy. 12. References 12.1. Normative References [FIPS203] National Institute of Standards and Technology, "Module- Lattice-Based Key-Encapsulation Mechanism Standard", FIPS 203, DOI 10.6028/NIST.FIPS.203, August 2024, . [FIPS204] National Institute of Standards and Technology, "Module- Lattice-Based Digital Signature Standard", FIPS 204, DOI 10.6028/NIST.FIPS.204, August 2024, . [RFC2104] Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed- Hashing for Message Authentication", RFC 2104, DOI 10.17487/RFC2104, February 1997, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC5116] McGrew, D., "An Interface and Algorithms for Authenticated Encryption", RFC 5116, DOI 10.17487/RFC5116, January 2008, . Saxena Expires 3 June 2027 [Page 19] Internet-Draft pqclink November 2026 [RFC5869] Krawczyk, H. and P. Eronen, "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)", RFC 5869, DOI 10.17487/RFC5869, May 2010, . [RFC6234] Eastlake 3rd, D. and T. Hansen, "US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)", RFC 6234, DOI 10.17487/RFC6234, May 2011, . [RFC7748] Langley, A., Hamburg, M., and S. Turner, "Elliptic Curves for Security", RFC 7748, DOI 10.17487/RFC7748, January 2016, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC8439] Nir, Y. and A. Langley, "ChaCha20 and Poly1305 for IETF Protocols", RFC 8439, DOI 10.17487/RFC8439, June 2018, . [RFC10032] Denis, F. and S. Lucas, "The AEGIS Family of Authenticated Encryption Algorithms", RFC 10032, DOI 10.17487/RFC10032, September 2026, . [SP800-38D] National Institute of Standards and Technology, "Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC", NIST SP 800-38D, DOI 10.6028/NIST.SP.800-38D, November 2007, . 12.2. Informative References [IEEE802] IEEE, "IEEE Standard for Local and Metropolitan Area Networks: Overview and Architecture", IEEE 802. [IEEE802.1AE] IEEE, "IEEE Standard for Local and Metropolitan Area Networks--Media Access Control (MAC) Security", IEEE 802.1AE. [RFC7942] Sheffer, Y. and A. Farrel, "Improving Awareness of Running Code: The Implementation Status Section", BCP 205, RFC 7942, DOI 10.17487/RFC7942, July 2016, . Saxena Expires 3 June 2027 [Page 20] Internet-Draft pqclink November 2026 [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/RFC9370, May 2023, . Appendix A. Message Sizes +=================+===============+==========================+ | Message | Size (octets) | Fragments at 1200 octets | +=================+===============+==========================+ | Init (3 ciphers | 6296 | 6 | | offered) | | | +-----------------+---------------+--------------------------+ | Resp | 6289 | 6 | +-----------------+---------------+--------------------------+ | Confirm | 54 | 1 | +-----------------+---------------+--------------------------+ Table 10: Handshake message sizes for suite base (1, 1, 1) Appendix B. Implementation Status This section records the status of known implementations of this specification at the time of writing, as described in [RFC7942]. The reference implementation is pqclink 2.3.0 by Secure Systems Research Labs Pvt Ltd, written in Go for Linux (x86-64 and AArch64). It includes: * its own AEGIS-256 implementation with AES-NI and ARMv8 assembly, checked against all [RFC10032] test vectors; * SSRL-ML-KEM, its own ML-KEM-1024 implementation (KEM value 2), checked against all ML-KEM-1024 test vectors from the NIST ACVP server, and interoperable with the Go standard library implementation (KEM value 1); * SSRL-ML-DSA, its own ML-DSA-87 implementation (signature value 2), checked against the NIST ACVP ML-DSA-87 key generation, signature generation and signature verification vectors, and interoperable with Cloudflare CIRCL (signature value 1). A single configuration setting selects the standard or the SSRL implementations of both algorithms. An end-to-end test bench in Linux network namespaces exercises 40 checks. These include the following: Saxena Expires 3 June 2027 [Page 21] Internet-Draft pqclink November 2026 * no address on any port; * fail-closed start, stop and recovery; * delivery of STP, LLDP, 802.1X, VLAN and Q-in-Q frames byte for byte; * analysis of a passive tap: no clear frames, ciphertext entropy and no repeated counters; * live cipher changes with zero loss; * rekeys under load; * replay, tamper and impostor attacks; * a 1500-octet circuit MTU with fragmentation; * the UDP transport. Author's Address Mohit Chandra Saxena Secure Systems Research Labs Pvt Ltd India Email: m22aie240@alumni.iitj.ac.in Saxena Expires 3 June 2027 [Page 22]