Hybrid classical and post-quantum cryptographic key exchange

The streaming post-quantum key exchange addresses vulnerabilities to quantum attacks by dividing payloads into chunks, allowing concurrent transmission and adaptive error correction, thereby enhancing efficiency and resilience in dynamic networks.

US12819859B1Active Publication Date: 2026-12-01UAB 360 IT
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
US19/433348
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Filing Date
2025-12-26
Publication Date
2026-12-01
Estimated Expiration
2045-12-26

AI Technical Summary

Technical Problem

Conventional cryptographic key exchange protocols are vulnerable to quantum attacks and face challenges with large post-quantum cryptographic payloads that cause latency, packet loss, and inefficient bandwidth utilization due to sequential handshakes and inadequate error handling, particularly in dynamic network environments.

Method used

Implementing a streaming post-quantum key exchange that divides cryptographic payloads into chunks, enables concurrent transmission and receipt, uses adaptive error correction, and incorporates role-swapping to enhance resilience and efficiency.

Benefits of technology

This approach reduces latency, improves network bandwidth utilization, and enhances resilience to packet loss, enabling secure and efficient key establishment in diverse network conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12819859-D00000_ABST
    Figure US12819859-D00000_ABST
Patent Text Reader

Abstract

At least two public keys, including a first public key and a second public key, are generated. The first public key is generated using a classical key exchange algorithm. The second public key is generated using a post-quantum key encapsulation mechanism. The first public key and the second public key are transmitted to a second computing device. A first cryptographic value corresponding to the first public key and a second cryptographic value corresponding to the second public key are received from the second computing device. A first shared secret is computed based on the first cryptographic value. A second shared secret is computed based on the second cryptographic value. A session key is derived based on a combination of the first shared secret and the second shared secret.
Need to check novelty before this filing date? Find Prior Art

Description

FIELD

[0001] This application relates generally to cryptographic key exchange protocols, and more specifically to streaming post-quantum key exchange between computing devices.BRIEF DESCRIPTION OF THE DRAWINGS

[0002] The disclosure is best understood from the following detailed description when read in conjunction with the accompanying drawings. It is emphasized that, according to common practice, the various features of the drawings are not to-scale. On the contrary, the dimensions of the various features are arbitrarily expanded or reduced for clarity.

[0003] FIG. 1 is a block diagram of an example of a computing device.

[0004] FIG. 2 is a block diagram of an example of a computing and communications system.

[0005] FIG. 3A is an example of a block diagram of a technique for establishing a shared secret between two computing devices using post-quantum cryptography.

[0006] FIG. 3B is an example of a block diagram of a technique for establishing a shared secret between two computing devices using post-quantum cryptography.

[0007] FIG. 4 is an example of a block diagram of a technique for establishing shared secrets across multiple epochs with role swapping between two computing devices.

[0008] FIG. 5 is an example of a block diagram of a technique illustrating a specific implementation of the key exchange described with respect to FIGS. 3A, 3B, and 4.

[0009] FIG. 6 is a flowchart of an example of a technique for establishing a shared secret between two computing devices using a hybrid cryptographic approach that combines classical and post-quantum algorithms.

[0010] FIG. 7 is a flowchart of an example of a technique for establishing a shared secret between two computing devices using at least one post-quantum cryptographic algorithm.

[0011] FIG. 8 is a flowchart of an example of a technique for establishing shared secrets across multiple key exchanges with role swapping between two computing devices.

[0012] FIG. 9 is a flowchart of an example of a technique for establishing a shared secret between two computing devices using concurrent bidirectional transmission of post-quantum cryptographic payloads.

[0013] FIG. 10 is a flowchart of an example of a technique for transmitting a post-quantum cryptographic payload with adaptive error correction based on network conditions.DETAILED DESCRIPTION

[0014] Virtual Private Networks (VPNs) establish encrypted tunnels over public networks, enabling remote clients to access private network resources through secure communication channels. The security of these tunnels depends on cryptographic key exchange protocols that allow two parties (e.g., a client computing device and a server computing device) to establish a shared secret over an insecure channel. Conventional VPN protocols, including WireGuard, OpenVPN, and IPsec, rely on classical Diffie-Hellman (DH) key exchange or its elliptic-curve variant (ECDH) to negotiate session keys. These classical key exchange mechanisms produce compact cryptographic payloads, typically on the order of 32 to 256 bytes, which fit within standard network packet sizes. However, classical key exchange algorithms derive their security from mathematical constructs (e.g., integer factorization and the discrete logarithm problem) that are vulnerable to attacks by quantum computers executing Shor's algorithm. Additionally, adversaries employing a “harvest now, decrypt later” strategy can capture encrypted traffic today and retain it until sufficiently powerful quantum computers become available, at which point the intercepted sessions can be decrypted retroactively.

[0015] Post-quantum cryptographic (PQC) key encapsulation mechanisms (KEMs) address the quantum vulnerability by basing their security on mathematical problems believed to resist quantum attacks, such as the Module Learning with Errors (MLWE) problem underlying lattice-based schemes. The National Institute of Standards and Technology (NIST) finalized FIPS 203 (ML-KEM) in August 2024 as the primary post-quantum key encapsulation standard. However, ML-KEM and other PQC schemes generate larger cryptographic payloads than their classical counterparts.

[0016] For example, ML-KEM-1024 produces public keys and ciphertexts of approximately 1,568 bytes each, roughly thirteen times larger than the 148-byte handshake used by WireGuard. These enlarged payloads present several technical challenges. First, because the payloads can exceed typical Maximum Transmission Unit (MTU) sizes, they may lead to IP fragmentation when transmitted over packet-switched networks. Second, fragmented packets are more susceptible to loss, reordering, and transmission errors, particularly over unreliable network links such as WiFi, cellular, and satellite connections. Third, the transmission time for these larger payloads increases proportionally, extending the duration of the handshake and delaying the establishment of secure sessions.

[0017] Traditional cryptographic handshake protocols often operate in a sequential manner, where each party is configured to wait for the other to transmit its complete cryptographic payload before proceeding with computation. This stop-and-wait paradigm can leave substantial portions of available network bandwidth unused during the exchange. When large PQC payloads are involved, the sequential nature of the handshake amplifies latency because each side remains idle while awaiting the complete receipt of the other party's data.

[0018] Furthermore, conventional handshakes typically depend on the receipt of the full cryptographic parameters (e.g., all public keys and ciphertexts) before key derivation can commence, meaning that any packet loss during transmission may necessitate retransmission of the missing fragments before the protocol can advance. In dynamic network environments where access permissions or network topologies change frequently, such latency can impact the responsiveness and efficiency of the network, particularly when cryptographic rekeying operations are configured to occur regularly to maintain forward secrecy. When VPN protocols are configured to establish new session keys periodically (e.g., after a specified time interval or after transmitting a specified volume of data), these handshake delays occur repeatedly throughout the lifetime of a connection, compounding the performance impact.

[0019] Standard error-correction techniques, such as forward error correction (FEC), can reduce retransmission overhead by enabling receivers to reconstruct lost data from redundant information. However, integrating FEC with interactive cryptographic handshakes presents difficulties because traditional handshakes impose strict sequencing requirements that conflict with the asynchronous nature of FEC-protected transmissions. Fixed-rate error correction schemes add constant overhead regardless of actual network conditions, resulting in wasted bandwidth on reliable links or insufficient protection on lossy ones. Adaptive error correction approaches that adjust redundancy based on observed loss rates depend on feedback loops that introduce additional latency. Existing approaches to bidirectional data exchange in cryptographic protocols rarely incorporate error resilience directly into the handshake structure, leaving gaps where packet loss can stall progress and force costly retransmissions.

[0020] The combination of enlarged PQC payloads, sequential handshake architectures, and inadequate error-handling mechanisms creates significant obstacles to deploying quantum-resistant cryptography in VPN and other latency-sensitive applications. Networks characterized by variable packet loss, congestion, or high latency, including mobile networks, satellite links, and congested Internet paths, experience degraded performance during key establishment phases. The inability to transmit cryptographic payloads concurrently in both directions results in underutilization of available link capacity.

[0021] Client devices participating in these protocols often require pre-configuration with information such as server addresses or public key certificates to establish trusted connections, and managing these configurations across a large and diverse set of client devices can be administratively complex and limit the flexibility of the network to adapt to new security requirements. Without mechanisms to tolerate partial data loss during key exchange, protocols remain fragile in real-world network conditions where packet delivery is not guaranteed, hindering the practical adoption of post-quantum cryptography in communication systems that require rapid session establishment and resilience to adverse network conditions.

[0022] Implementations according to this disclosure solve problems such as these via streaming post-quantum key exchange. The teachings herein describe a technical framework for establishing a shared secret between two computing devices using post-quantum cryptography in a manner that mitigates latency and improves resilience to packet loss. Computing devices establish shared cryptographic secrets using post-quantum key encapsulation mechanisms while addressing challenges associated with transmitting large cryptographic payloads over packet-switched networks. In some implementations, a first computing device may generate cryptographic key material using a post-quantum key encapsulation mechanism, divide the cryptographic key material into a plurality of data chunks, and transmit the data chunks along with one or more redundancy chunks generated using an error correction encoding scheme.

[0023] In some implementations, a first computing device may initiate transmission of a first post-quantum cryptographic payload to a second computing device while concurrently initiating receipt of a second post-quantum cryptographic payload from the second computing device, enabling a full-duplex handshake that improves network bandwidth utilization. The payloads may be segmented into a plurality of data chunks, and transmission may be interleaved with the receipt of chunks from the other device.

[0024] To reduce the overall time required to establish a secure session, some implementations enable progressive computation on cryptographic payloads. For instance, a computing device may receive a first portion of a post-quantum cryptographic payload and initiate key derivation computations based on that first portion, prior to receiving the complete payload. Upon receiving a remainder of the post-quantum cryptographic payload, the computing device may complete the key derivation computation to derive a shared secret. This approach reduces computational idle time that occurs in conventional sequential handshake protocols, thereby accelerating the process of deriving a shared secret, particularly over high-latency networks.

[0025] To provide robust key exchange over unreliable network links, some implementations include an adaptive error correction mechanism. A computing device may first determine a packet loss characteristic of the network link to a peer device. Based on this characteristic, the device may generate a post-quantum cryptographic payload and encode it with a corresponding level of error correction redundancy before transmission. This allows the protocol to dynamically adjust its resilience, adding more protection on lossy links and minimizing overhead on stable ones. The error correction encoding scheme may include, for example, Reed-Solomon coding or secret sharing schemes such as Shamir's secret sharing. By encoding the cryptographic payload with redundancy, the receiving device may reconstruct the complete payload even when a portion of the transmitted chunks is lost during transmission, thereby reducing or eliminating the need for retransmission requests.

[0026] To provide mechanisms for key rotation, some implementations include role-swapping between communicating devices. In some implementations, a first computing device may operate as an initiator in a first key exchange with a second computing device to derive a first session key. After deriving the first session key, the first computing device may operate as a responder in a second key exchange with the second computing device to derive a second session key. This alternating pattern may prevent either device from forcing repeated key renegotiations and supports forward secrecy by periodically establishing fresh session keys. In some implementations, a session key may remain valid for a defined time period or until a specified volume of data has been transmitted, after which key rotation may occur. In some implementations, the computing device may retain a previous session key for a defined period following a key rotation to decrypt in-flight packets encrypted under the previous key.

[0027] Implementations of this disclosure may further support hybrid cryptographic schemes that combine classical key exchange algorithms with post-quantum key encapsulation mechanisms. In some implementations, a first computing device may generate a first public key using a classical key exchange algorithm, such as an elliptic-curve Diffie-Hellman algorithm, and generate a second public key using a post-quantum key encapsulation mechanism, such as ML-KEM. The first computing device may transmit both public keys to a second computing device and receive corresponding cryptographic values in response. The first computing device may then compute a first shared secret based on the first cryptographic value, compute a second shared secret based on the second cryptographic value, and derive a session key based on a combination of the first shared secret and the second shared secret. In some implementations, the combination may involve applying a key derivation function, such as HKDF, to a concatenation or other combination of the shared secrets. This hybrid approach provides security against both classical and quantum adversaries.

[0028] In some implementations, a computing device may generate at least two public keys. At least one of the at least two public keys is generated using a post-quantum key encapsulation mechanism. The computing device may transmit the public keys to a second computing device, receive a plurality of cryptographic values corresponding to the public keys, compute a plurality of shared secrets based on the cryptographic values, and derive a session key based on a combination of the plurality of shared secrets. This approach allows for flexibility in the number and type of cryptographic algorithms employed in a given key exchange.

[0029] A system, as described herein, may encompass a computing device comprising at least one processor and a memory communicatively coupled to the processor. The memory may store instructions that, when executed by the processor, cause the computing device to perform the methods disclosed. Such a system may be implemented, for example, as a client computing device or a server computing device configured to establish a secure communication channel, such as a Virtual Private Network (VPN) tunnel, with another device.

[0030] While implementations are primarily described herein with respect to post-quantum key encapsulation mechanisms, the teachings of this disclosure may be applied to hybrid cryptographic schemes that combine classical key exchange algorithms with post-quantum key encapsulation mechanisms, or to other cryptographic protocols involving transmission of large cryptographic payloads. The streaming post-quantum key exchange described herein may be implemented in connection with virtual private network tunnels, secure messaging applications, or other communication systems that require rapid session establishment and resilience to adverse network conditions.

[0031] The following definitions are provided to assist in understanding the teachings of this disclosure. The disclosure herein may reference specific techniques or known cryptographic algorithm names. However, the teachings herein are not limited to or by such particular techniques or algorithms, and alternative techniques or algorithms providing similar functionality may be substituted without departing from the scope of the disclosure.

[0032] A “key exchange algorithm,” as used herein, refers to a cryptographic protocol by which two parties establish a shared secret over an insecure channel. A “classical key exchange algorithm” refers to a key exchange algorithm whose security is based on mathematical problems such as integer factorization or the discrete logarithm problem. Examples of classical key exchange algorithms include, but are not limited to, Diffie-Hellman key exchange and its elliptic-curve variant (ECDH), such as X25519, P-256, P-384, or Curve448.

[0033] A “key encapsulation mechanism” (KEM), as used herein, refers to a cryptographic primitive usable by a sender to generate a shared secret and encapsulate it using a recipient's public key, such that only the recipient can decapsulate the shared secret using a corresponding private key. As used herein, “public key” when referring to a key encapsulation mechanism may also be referred to as an “encapsulation key” consistent with FIPS 203 terminology, and “private key” may also be referred to as a “decapsulation key.” A “post-quantum key encapsulation mechanism” refers to a KEM whose security is based on mathematical problems believed to resist attacks by quantum computers. Examples of post-quantum key encapsulation mechanisms include, but are not limited to, lattice-based schemes such as ML-KEM (based on Module Learning with Errors), NTRU, or FrodoKEM, and code-based schemes such as Classic McEliece.

[0034] A “cryptographic payload,” as used herein, refers to data transmitted during a key exchange, including but not limited to public keys, ciphertexts, encapsulated secrets, or other cryptographic parameters. A “data chunk,” as used herein, refers to a segment or portion of a cryptographic payload that is transmitted as a discrete unit. In some implementations, a cryptographic payload may be divided into a plurality of data chunks for transmission over a packet-switched network. A “redundancy chunk,” as used herein, refers to additional data generated from one or more data chunks using an error correction encoding scheme. Redundancy chunks facilitate reconstruction of missing or corrupted data chunks by a receiving device without requiring retransmission.

[0035] An “error correction encoding scheme,” as used herein, refers to a technique for encoding data with redundancy to facilitate detection and correction of errors introduced during transmission or storage. Examples of error correction encoding schemes include, but are not limited to, erasure codes such as Reed-Solomon coding. Reed-Solomon coding is a block-based error correction technique that generates redundancy symbols, facilitating reconstruction of original data when a subset of symbols is lost or corrupted. While distinct in their primary cryptographic purpose, secret sharing schemes, such as Shamir's secret sharing, may also be used to provide redundancy against data loss. Shamir's secret sharing is a threshold scheme that divides a secret into multiple shares such that a specified minimum number of shares is sufficient to reconstruct the secret, making it resilient to the loss of some shares.

[0036] An “epoch,” as used herein, refers to a discrete period during which a particular session key remains valid for encrypting and decrypting communications between two computing devices. Transition from one epoch to a subsequent epoch may occur based on expiration of a defined time period, transmission of a specified volume of data, or initiation by one of the communicating devices. In some implementations, roles of the communicating devices may swap between epochs, such that a device operating as an initiator in one epoch operates as a responder in a subsequent epoch.

[0037] A “key derivation function” (KDF), as used herein, refers to a cryptographic function that derives one or more secret keys from a shared secret or other input keying material. Examples of key derivation functions include, but are not limited to, HKDF (HMAC-based Key Derivation Function). A “session key,” as used herein, refers to a symmetric cryptographic key derived from one or more shared secrets and used to encrypt and decrypt data transmitted between two computing devices during a communication session.

[0038] To describe some implementations in greater detail, reference is first made to examples of hardware and software structures used to implement streaming post-quantum key exchange. FIG. 1 is a block diagram of an example of a computing device 100. The computing device 100 may implement, execute, or perform, one or more aspects of the methods and techniques described herein. The computing device 100 includes a data interface 102, a processor 104, memory 106, a power component 108, a user interface 110, and a bus 112 (collectively, components of the computing device 100). Although shown as a distinct unit, one or more of the components of the computing device 100 may be integrated into respective distinct physical units. For example, the processor 104 may be integrated in a first physical unit and the user interface 110 may be integrated in a second physical unit. The computing device 100 may include aspects or components not expressly shown in FIG. 1, such as an enclosure or one or more sensors.

[0039] In some implementations, the computing device 100 is a stationary device, such as a personal computer (PC), a server, a workstation, a minicomputer, or a mainframe computer. In some implementations, the computing device 100 is a mobile device, such as a mobile telephone, a personal digital assistant (PDA), a laptop, or a tablet computer.

[0040] The data interface 102 communicates, such as transmits, receives, or exchanges, data via one or more wired, or wireless, electronic communication mediums, such as a radio frequency (RF) communication medium, an ultraviolet (UV) communication medium, a visible light communication medium, a fiber optic communication medium, a wireline communication medium, or a combination thereof. For example, the data interface 102 may include, or may be, a transceiver. Although not shown separately in FIG. 1, the data interface 102 may include, or may be operatively coupled with, an antenna for wireless electronic communication. Although not shown separately in FIG. 1, the data interface 102 may include, or may be operatively coupled with, a wired electronic communication port, such as an Ethernet port, a serial port, or another wired port, that may interface with, or may be operatively coupled to, a wired electronic communication medium. In some implementations, the data interface 102 may be or may include a network interface card (NIC) or unit, a universal serial bus (USB), a Small Computer System Interface (SCSI), a Peripheral Component Interconnect (PCI), a near field communication (NFC) device, card, chip, or circuit, or another component for electronic data communication between the computing device 100, or one or more of the components thereof, and one or more external electronic or computing devices. Although shown as one unit in FIG. 1, the data interface 102 may include multiple physical components, such as a wired data interface and a wireless data interface.

[0041] For example, the computing device 100 may electronically communicate, such as transmit, receive, or exchange computer accessible data, with one or more other computing devices via one or more wired or wireless communications links, or connections, such as via a network, using the data interface 102, which may include using one or more electronic communication protocols, which may be network protocols, such as Ethernet, Transmission Control Protocol / Internet Protocol (TCP / IP), user datagram protocol (UDP), power line communication (PLC), UV, visible light, fiber optic, wire line, general packet radio service (GPRS), Global System for Mobile communications (GSM), code-division multiple access (CDMA), Long-Term Evolution (LTE), Universal Mobile Telecommunications System (UMTS), Institute of Electrical and Electronics Engineers (IEEE) standardized protocols, or other suitable protocols.

[0042] The processor 104 is a device, a combination of devices, or a system of connected devices, capable of manipulating or processing an electronic, computer accessible, signal, or other data, such as an optical processor, a quantum processor, a molecular processor, or a combination thereof.

[0043] In some implementations, the processor 104 is implemented as a central processing unit (CPU), such as a microprocessor. In some implementations, the processor 104 is implemented as one or more special purpose processors, one or more graphics processing units, one or more digital signal processors, one or more microprocessors, one or more controllers, one or more microcontrollers, one or more integrated circuits, one or more Application Specific Integrated Circuits, one or more Field Programmable Gate Arrays, one or more programmable logic arrays, one or more programmable logic controllers, firmware, one or more state machines, or a combination thereof.

[0044] The processor 104 includes one or more processing units. A processing unit may include one or more processing cores. The computing device 100 may include multiple physical or virtual processing units (collectively, the processor 104), which may be interconnected, such as via wired, or hardwired, connections, via wireless connections, or via a combination of wired and wireless connections. In some implementations, the processor 104 is implemented in a distributed configuration including multiple physical devices or units that may be coupled directly or across a network. The processor 104 includes internal memory (not expressly shown), such as a cache, a buffer, a register, or a combination thereof, for internal storage of data, such as operative data, instructions, or both. For example, the processor 104 may read data from the memory 106 into the internal memory (not shown) for processing.

[0045] The memory 106 is a non-transitory computer-usable or computer-readable medium, implemented as a tangible device or component of a device. The memory 106 contains, stores, communicates, transports, or a combination thereof, data, such as operative data, instructions, or both. For example, the memory 106 stores an operating system of the computing device 100, or a portion thereof. The memory 106 contains, stores, communicates, transports, or a combination thereof, data, such as operative data, instructions, or both associated with implementing, or performing, the methods and techniques, or portions or aspects thereof, described herein. For example, the non-transitory computer-usable or computer-readable medium may be implemented as a solid-state drive, a memory card, removable media, a read-only memory (ROM), a random-access memory (RAM), any type of disk including a hard disk, a floppy disk, an optical disk, a magnetic or optical card, an application-specific integrated circuits (ASICs), or another type of non-transitory media suitable for storing electronic data, or a combination thereof. The memory 106 may include non-volatile memory, such as a disk drive, or another form of non-volatile memory capable of persistent electronic data storage, such as in the absence of an active power supply. The memory 106 may include, or may be implemented as, one or more physical or logical units.

[0046] The memory 106 stores executable instructions or data, such as application data, an operating system, or a combination thereof, for access, such as read access, write access, or both, by the other components of the computing device 100, such as by the processor 104. The executable instructions may be organized as program modules or algorithms, functional programs, codes, code segments, or combinations thereof to perform one or more aspects, features, or elements of the methods and techniques described herein. The application data may include, for example, user files, database catalogs, configuration information, or a combination thereof. The operating system may be, for example, a desktop or laptop operating system; an operating system for a mobile device, such as a smartphone or tablet device; or an operating system for a large device, such as a mainframe computer. For example, the memory 106 may be implemented as, or may include, one or more dynamic random-access memory (DRAM) modules, such as a Double Data Rate Synchronous Dynamic Random-Access Memory module, Phase-Change Memory (PCM), flash memory, or a solid-state drive.

[0047] The power component 108 obtains, stores, or both, power, or energy, used by the components of the computing device 100 to operate. The power component 108 may be implemented as a general-purpose alternating-current (AC) electric power supply, or as a power supply interface, such as an interface to a household power source or other external power distribution system. In some implementations, the power component 108 may be implemented as a single use battery or a rechargeable battery such that the computing device 100 operates, or partially operates, independently of an external power distribution system. For example, the power component 108 may include a wired power source; one or more dry cell batteries, such as nickel-cadmium (NiCad), nickel-zinc (NiZn), nickel metal hydride (NiMH), lithium-ion (Li-ion); solar cells; fuel cells; or any other device, or combination of devices, capable of powering the computing device 100.

[0048] The user interface 110 includes one or more units or devices for interfacing with an operator of the computing device 100, such as a human user. In some implementations, the user interface 110 obtains, receives, captures, detects, or otherwise accesses, data representing user input to the computing device, such as via physical interaction with the computing device 100. In some implementations, the user interface 110 outputs, presents, displays, or otherwise makes available, information, such as to an operator of the computing device 100, such as a human user.

[0049] The user interface 110 may be implemented as, or may include, a virtual or physical keypad, a touchpad, a display, such as a liquid crystal display (LCD), a cathode-ray tube (CRT), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, an active-matrix organic light emitting diode (AMOLED), a touch display, a speaker, a microphone, a video camera, a sensor, a printer, or any combination thereof. In some implementations, a user interface 110 may be omitted, or absent, from the computing device 100.

[0050] The bus 112 distributes or transports data, power, or both among the components of the computing device 100 such that the components of the computing device are operatively connected. Although the bus 112 is shown as one component in FIG. 1, the computing device 100 may include multiple busses, which may be connected, such as via bridges, controllers, or adapters. For example, the bus 112 may be implemented as, or may include, a data bus and a power bus. The execution, or performance, of instructions, programs, code, applications, or the like, so as to perform the methods and techniques described herein, or aspects or portions thereof, may include controlling, such as by sending electronic signals to, receiving electronic signals from, or both, the other components of the computing device 100.

[0051] Although not shown separately in FIG. 1, data interface 102, the power component 108, or the user interface 110 may include internal memory, such as an internal buffer or register.

[0052] Although an example of a configuration of the computing device 100 is shown in FIG. 1, other configurations may be used. One or more of the components of the computing device 100 shown in FIG. 1 may be omitted, or absent, from the computing device 100 or may be combined or integrated. For example, the memory 106, or a portion thereof, and the processor 104 may be combined, such as by using a system on a chip design.

[0053] FIG. 2 is a diagram of an example of a computing and communications system 200. The computing and communications system 200 includes a first network 202, an access point 204, a first computing and communications device 206, a second network 210, and a third network 220. The second network 210 includes a second computing and communications device 212 and a third computing and communications device 216. The third network 220 includes a fourth computing and communications device 222, a fifth computing and communications device 226, and a sixth computing and communications device 230. Other configurations, including fewer or more computing and communications devices, fewer or more networks, and fewer or more access points, may be used.

[0054] One or more of the networks 202, 210, 220 may be, or may include, a local area network (LAN), wide area network (WAN), virtual private network (VPN), a mobile or cellular telephone network, the Internet, or any other means of electronic communication. The networks 202, 210, 220 respectively transmit, receive, convey, carry, or exchange wired or wireless electronic communications using one or more communications protocols, or combinations of communications protocols, the transmission control protocol (TCP), the UDP, the internet protocol (IP), the real-time transport protocol (RTP), the HyperText Transport Protocol (HTTP), or a combination thereof. For example, a respective network 202, 210, 220, or respective portions thereof, may be, or may include a circuit-switched network, or a packet-switched network. The protocol is a packet-based protocol. A packet is a data structure, such as a data structure that includes a header, which may contain control data or ‘meta’ data describing the packet, and a body, or payload, which may contain the substantive data conveyed by the packet.

[0055] The access point 204 may be implemented as, or may include, a base station, a base transceiver station (BTS), a Node-B, an enhanced Node-B (eNode-B), a Home Node-B (HNode-B), a wireless router, a wired router, a hub, a relay, a switch, a bridge, or any similar wired or wireless device. Although the access point 204 is shown as a single unit, an access point can include any number of interconnected elements. Although one access point (i.e., the access point 204) is shown, fewer or more access points may be used. The access point 204 may communicate with other communicating devices via wired or wireless electronic communications links or via a sequence of such links.

[0056] As shown, the access point 204 communicates via a first communications link 234 with the first computing and communications device 206. Although the first communications link 234 is shown as wireless, the first communications link 234 may be implemented as, or may include, one or more wired or wireless electronic communications links or a sequence of such links, which may include parallel communications links for multipath communications.

[0057] As shown, the access point 204 communicates via a second communications link 236 with the first network 202. Although the second communications link 236 is shown as wired, the second communications link 236 may be implemented as, or may include, one or more wired or wireless electronic communications links or a sequence of such links, which may include parallel communications links for multipath communications.

[0058] As shown, the first network 202 communicates with the second network 210 via a third communications link 238. Although the third communications link 238 is shown as wired, the third communications link 238 may be implemented as, or may include, one or more wired or wireless electronic communications links or a sequence of such links, which may include parallel communications links for multipath communications.

[0059] As shown, the first network 202 communicates with the third network 220 via a fourth communications link 240. Although the fourth communications link 240 is shown as wired, the fourth communications link 240 may be implemented as, or may include, one or more wired or wireless electronic communications links or a sequence of such links, which may include parallel communications links for multipath communications.

[0060] The computing and communications devices 206, 212, 216, 222, 226, 230 are, respectively, computing devices, such as the computing device 100 shown in FIG. 1. For example, the first computing and communications device 206 may be a user device, such as a mobile computing device or a smartphone, the second computing and communications device 212 may be a user device, such as a laptop, the third computing and communications device 216 may be a user device, such as a desktop, the fourth computing and communications device 222 may be a server, such as a database server, the fifth computing and communications device 226 may be a server, such as a cluster or a mainframe, and the sixth computing and communications device 230 may be a server, such as a web server.

[0061] The computing and communications devices 206, 212, 216, 222, 226, 230 communicate, or exchange data, such as voice communications, audio communications, data communications, video communications, messaging communications, broadcast communications, or a combination thereof, with one or more of the other computing and communications devices 206, 212, 216, 222, 226, 230 respectively using one or more of the networks 202, 210, 220, which may include communicating using the access point 204, via one or more of the communications links 234, 236, 238, 240.

[0062] For example, the first computing and communications device 206 may communicate with the second computing and communications device 212, the third computing and communications device 216, or both, via the first communications link 234, the access point 204, the second communications link 236, the network 202, the third communications link 238, and the second network 210. The first computing and communications device 206 may communicate with one or more of the third computing and communications device 222, the fourth computing and communications device 226, the fifth computing and communications device 226, via the first communications link 234, the access point 204, the second communications link 236, the network 202, the fourth communications link 240, and the third network 220.

[0063] For simplicity and clarity, the sequence of communications links, access points, networks, and other communications devices between a sending communicating device and a receiving communicating device may be referred to herein as a communications path. For example, the first computing and communications device 206 may send data to the second computing and communications device 212 via a first communications path, or via a combination of communications paths including the first communications path, and the second computing and communications device 212 may send data to the first computing and communications device 206 via the first communications path, via a second communications path, or via a combination of communications paths, which may include the first communications path.

[0064] The first computing and communications device 206 includes, such as executes, performs, or operates, one or more applications or services 208. The second computing and communications device 212 includes, such as executes, performs, or operates, one or more applications or services 214. The third computing and communications device 216 includes, such as executes, performs, or operates, one or more applications or services 218. The fourth computing and communications device 222 includes, such as stores, hosts, executes, performs, or operates, one or more documents, applications or services 224. The fifth computing and communications device 226 includes, such as stores, hosts, executes, performs, or operates, one or more documents, applications, or services 228. The sixth computing and communications device 230 includes, such as stores, hosts, executes, performs, or operates, one or more documents, applications or services 232.

[0065] In some implementations, one or more of the computing and communications devices 206, 212, 216, 222, 226, 230 may communicate with one or more other computing and communications devices 206, 212, 216, 222, 226, 230, or with one or more of the networks 210, 220, via a virtual private network. For example, the second computing and communications device 212 is shown as communicating with the third network 220, and therefore with one or more of the computing and communications devices 222, 226, 230 in the third network 220, via a virtual private network 242, which is shown using a broken line to indicate that the virtual private network 242 uses the first network 202, the third communications link 238, and the fourth communications link 240.

[0066] In some implementations, two or more of the computing and communications devices 206, 212, 216, 222, 226, 230 may be in a distributed, or clustered, configuration. For example, the third computing and communications device 222, the fourth computing and communications device 226, and the fifth computing and communications device 226 may, respectively, be elements, or nodes, in a distributed configuration.

[0067] In some implementations, one or more of the computing and communications devices 206, 212, 216, 222, 226, 230 may be a virtual device. For example, the third computing and communications device 222, the fourth computing and communications device 226, and the fifth computing and communications device 226 may, respectively, be virtual devices operating on shared physical resources.

[0068] FIG. 3A is an example of a block diagram of a technique 300 for establishing a shared secret between two computing devices using post-quantum cryptography. The technique 300 can be implemented in whole or in part by the computing device 100 shown in FIG. 1 or by one or more of the computing and communications devices 206, 212, 216, 222, 226, 230 shown in FIG. 2. The technique 300 may be triggered when a first computing device 302 seeks to establish a secure communication channel, such as a VPN tunnel, with a second computing device 304. In some implementations, the technique 300 may be initiated in response to a user request to connect to a VPN service, or may be triggered automatically when a computing device detects an available network connection requiring secure communications.

[0069] The first computing device (initiator) 302 represents a computing device that initiates a key exchange with another computing device. The designation of “initiator” indicates that this device begins the key exchange process by generating and transmitting public key material to another device. In some implementations, the roles of initiator and responder may alternate between the first computing device 302 and the second computing device 304 across successive key exchanges. In some implementations, the first computing device (initiator) 302 may be a client device, such as a laptop computer, a mobile phone, a tablet, or another user device seeking to establish a secure connection with a server. In some implementations, the first computing device (initiator) 302 may be a server or network appliance that initiates a key exchange with a peer device. The first computing device (initiator) 302 may include a processor, memory, and a data interface, such as described with respect to the computing device 100 shown in FIG. 1. In some implementations, the first computing device (initiator) 302 may execute a VPN client application, a secure messaging application, or another application that uses cryptographic key exchange to establish secure communications.

[0070] The second computing device (responder) 304 represents a computing device that responds to a key exchange initiated by another computing device. The designation of “responder” indicates that this device receives public key material from the initiator and generates corresponding cryptographic values in response. In some implementations, the second computing device (responder) 304 may be a VPN server, a gateway device, or another network endpoint that accepts incoming connection requests. In some implementations, the second computing device (responder) 304 may be a peer device in a peer-to-peer communication architecture. The second computing device (responder) 304 may include a processor, memory, and a data interface, such as described with respect to the computing device 100 shown in FIG. 1.

[0071] At 306, the first computing device (initiator) 302 generates one or more public keys. The first computing device (initiator) 302 may generate public keys using one or more cryptographic algorithms from a set of algorithms supported by both the first computing device (initiator) 302 and the second computing device (responder) 304. In some implementations, the first computing device (initiator) 302 and the second computing device (responder) 304 may establish a pre-agreement indicating which cryptographic algorithms, or subsets thereof, are to be used for the key exchange. Such pre-agreement may occur prior to the technique 300, through out-of-band configuration, or through a negotiation protocol not shown in FIG. 3A.

[0072] The first computing device (initiator) 302 may generate at least two public keys for use in a hybrid key exchange. In some implementations, the first computing device (initiator) 302 may generate a first public key using a classical key exchange algorithm, such as an elliptic-curve Diffie-Hellman algorithm like X25519, and may generate a second public key using a post-quantum key encapsulation mechanism, such as ML-KEM-768 or ML-KEM-1024. In some implementations, the first computing device (initiator) 302 may generate public keys using multiple post-quantum key encapsulation mechanisms, such as a lattice-based scheme and a code-based scheme, to provide security against different classes of cryptographic attacks. For each public key generated, the first computing device (initiator) 302 may also generate a corresponding private key that is retained locally and not transmitted. Generating the public key(s) may include invoking a key generation function for each cryptographic algorithm being used in the key exchange.

[0073] At 308, the first computing device (initiator) 302 transmits the one or more public keys to the second computing device (responder) 304. For example, the first computing device (initiator) 302 may transmit the public keys along with a header that includes an epoch number, a session identifier, and a hash of the transmitted data. In some implementations, the first computing device (initiator) 302 may divide the public keys and header into a plurality of data chunks for transmission over a packet-switched network. Because post-quantum cryptographic payloads, such as ML-KEM public keys, may exceed typical MTU sizes, dividing the payload into data chunks may facilitate transmission without requiring IP fragmentation.

[0074] In some implementations, the first computing device (initiator) 302 may generate one or more redundancy chunks based on the plurality of data chunks using an error correction encoding scheme, such as Reed-Solomon coding or a secret sharing scheme such as Shamir's secret sharing. The amount of redundancy may be determined based on a measured or estimated packet loss characteristic of the network link. The first computing device (initiator) 302 may transmit both the data chunks and the redundancy chunks to the second computing device (responder) 304, thereby enabling the second computing device (responder) 304 to reconstruct the complete payload even if some chunks are lost during transmission.

[0075] At 310, the second computing device (responder) 304 receives the one or more public keys from the first computing device (initiator) 302. For example, the second computing device (responder) 304 may receive a plurality of data chunks and redundancy chunks over a network link. The second computing device (responder) 304 may reconstruct the complete public key payload from the received data chunks, using redundancy chunks as needed to recover any data chunks that were lost or corrupted during transmission. The second computing device (responder) 304 may begin processing received data chunks before the complete payload has been received, as described further with respect to 312. Receiving the public key(s), at 310, may occur concurrently with the transmitting the public key(s), at 308, such that the second computing device (responder) 304 receives data chunks as they are transmitted by the first computing device (initiator) 302.

[0076] At 312, the second computing device (responder) 304 processes the one or more public keys received from the first computing device (initiator) 302. For example, the second computing device (responder) 304 may verify a hash value included in the header to confirm the integrity of the received data. The second computing device (responder) 304 may validate the format and parameters of each received public key to confirm that the keys conform to expected cryptographic standards. For post-quantum key encapsulation mechanisms, processing the public key(s), at 312, may include preparing the second computing device (responder) 304 to perform an encapsulation operation using each received public key. For classical key exchange algorithms, such as Diffie-Hellman, processing the public key(s), at 312, may include preparing the second computing device (responder) 304 to generate its own key pair for use in the key exchange. In some implementations, the second computing device (responder) 304 may initiate processing of a first portion of the received public key payload prior to receiving the complete payload, thereby reducing idle time during the key exchange.

[0077] At 314, the second computing device (responder) 304 generates one or more cryptographic values corresponding to the received public keys. For example, for each public key generated using a post-quantum key encapsulation mechanism, the second computing device (responder) 304 may perform an encapsulation operation that generates a ciphertext and a corresponding shared secret. For each public key generated using a classical key exchange algorithm, the second computing device (responder) 304 may generate its own key pair and compute a shared secret using its private key and the received public key. In some implementations, generating the cryptographic value(s), at 314, may include generating cryptographic values for at least two public keys, where at least one of the public keys was generated using a post-quantum key encapsulation mechanism. The cryptographic values generated at 314 may include ciphertexts for post-quantum key encapsulation mechanisms and public keys for classical key exchange algorithms. The second computing device (responder) 304 may retain the shared secrets computed during the generating of the cryptographic value(s), at 314, for use in deriving a session key.

[0078] At 316, the second computing device (responder) 304 transmits the one or more cryptographic values to the first computing device (initiator) 302. For example, the second computing device (responder) 304 may transmit ciphertexts corresponding to post-quantum key encapsulation mechanisms and public keys corresponding to classical key exchange algorithms. In some implementations, the second computing device (responder) 304 may divide the cryptographic values into a plurality of data chunks and generate one or more redundancy chunks using an error correction encoding scheme. The second computing device (responder) 304 may transmit both the data chunks and the redundancy chunks to the first computing device (initiator) 302. In some implementations, transmitting the cryptographic value(s), at 316, may be initiated concurrently with receiving the public key(s), at 310, such that the first computing device (initiator) 302 and the second computing device (responder) 304 exchange cryptographic payloads in a bidirectional manner. This concurrent transmission may improve network bandwidth utilization compared to sequential handshake protocols that require each party to wait for complete receipt of the other party's payload before transmitting.

[0079] At 318, the first computing device (initiator) 302 receives the one or more cryptographic values from the second computing device (responder) 304. For example, the first computing device (initiator) 302 may receive a plurality of data chunks and redundancy chunks over a network link. The first computing device (initiator) 302 may reconstruct the complete cryptographic value payload from the received data chunks, using redundancy chunks as needed to recover any data chunks that were lost or corrupted during transmission. The first computing device (initiator) 302 may begin processing received cryptographic values before the complete payload has been received. Receiving the cryptographic value(s), at 318, may occur concurrently with transmitting the public key(s), at 308, enabling a full-duplex handshake that reduces the overall time required to establish a shared secret.

[0080] At 320, the second computing device (responder) 304 computes one or more shared secrets based on the cryptographic operations performed during the key exchange. For example, the second computing device (responder) 304 may have computed shared secrets during the generating of the cryptographic value(s), at 314, as part of performing encapsulation operations for post-quantum key encapsulation mechanisms or Diffie-Hellman computations for classical key exchange algorithms. In some implementations, computing the shared secret(s), at 320, may include computing a first shared secret based on a classical key exchange algorithm and computing a second shared secret based on a post-quantum key encapsulation mechanism. The shared secrets computed at 320 may be retained by the second computing device (responder) 304 for use in deriving the session key, at 324. In some implementations, computing the shared secret(s), at 320, may be performed incrementally as cryptographic values are generated, rather than as a separate discrete step.

[0081] At 322, the first computing device (initiator) 302 computes one or more shared secrets based on the cryptographic values received from the second computing device (responder) 304. For example, for each ciphertext received corresponding to a post-quantum key encapsulation mechanism, the first computing device (initiator) 302 may perform a decapsulation operation using the corresponding private key to recover a shared secret. For each public key received corresponding to a classical key exchange algorithm, the first computing device (initiator) 302 may compute a shared secret using its own private key and the received public key. In some implementations, the first computing device (initiator) 302 may initiate computation of shared secrets based on a first portion of the received cryptographic values prior to receiving the complete payload, thereby reducing computational idle time. The shared secrets computed, at 322, correspond to the shared secrets computed by the second computing device (responder) 304 at 320, such that both devices arrive at the same set of shared secret values.

[0082] At 324, the second computing device (responder) 304 derives a session key based on a combination of the one or more shared secrets computed at 320. For example, the second computing device (responder) 304 may apply a key derivation function, such as HKDF (HMAC-based Key Derivation Function), to a combination of the shared secrets to produce a session key. The combination of shared secrets may include concatenating the shared secrets, XORing the shared secrets, ORing the shared secrets, or applying another combining operation to the shared secrets prior to or as part of the key derivation function.

[0083] In some implementations, the second computing device (responder) 304 may derive the session key based on a combination of a first shared secret computed using a classical key exchange algorithm and a second shared secret computed using a post-quantum key encapsulation mechanism. This hybrid approach may provide security against both classical adversaries and quantum adversaries. In some implementations, deriving the session key, at 324, may incorporate additional inputs, such as a session identifier, an epoch number, or a transcript hash, into the key derivation function. The session key derived at 324 may be a symmetric cryptographic key used to encrypt and decrypt data transmitted between the first computing device (initiator) 302 and the second computing device (responder) 304.

[0084] At 326, the first computing device (initiator) 302 derives a session key based on a combination of the one or more shared secrets computed at 322. For example, the first computing device (initiator) 302 may apply a key derivation function, such as HKDF, to a combination (e.g., concatenation, XOR, or OR) of the shared secrets to produce a session key. Because the first computing device (initiator) 302 and the second computing device (responder) 304 computed the same shared secrets during the key exchange, the session key derived at 326 matches the session key derived at 324. In some implementations, both devices may derive the session key using the same key derivation function and the same ordering of inputs to facilitate that both devices arrive at the same session key value. Upon completion of deriving the session key, at 324 and 326, the first computing device (initiator) 302 and the second computing device (responder) 304 may use the session key to encrypt and decrypt communications over a secure channel, such as a VPN tunnel. In some implementations, the session key may remain valid for a defined epoch, after which the technique 300 may be repeated with swapped roles, as described with respect to FIG. 4.

[0085] FIG. 3B is an example of a block diagram of a technique 350 for establishing a shared secret between two computing devices using post-quantum cryptography. The technique 350 illustrates a specific implementation of the technique 300 described with respect to FIG. 3A, showing additional detail regarding the cryptographic operations performed during the key exchange. Other implementations are possible. The technique 350 is shown as including a first computing device (initiator) 352 and a second computing device (responder) 354.

[0086] At 356, the first computing device (initiator) 352 generates one or more public keys, as described with respect to 306 of FIG. 3A. For each key type i, the first computing device (initiator) 352 may invoke a key generation function, denoted KeyGeni( ), to produce a key pair (ski, pki). The notation ski represents a secret key (also referred to as a private key) that is retained by the first computing device (initiator) 352 and not transmitted. The notation pki represents a public key that is transmitted to the second computing device (responder) 354. The subscript i indicates that the key generation function may differ for each key type. A key type refers to a category of cryptographic algorithm used in the key exchange. Examples of key types include classical key exchange algorithms, such as elliptic-curve Diffie-Hellman (e.g., X25519), and post-quantum key encapsulation mechanisms, such as lattice-based schemes (e.g., ML-KEM) or code-based schemes (e.g., Classic McEliece). The first computing device (initiator) 352 transmits the generated public keys along with an epoch number, a session identifier, and a hash value, as indicated by EPOCH_NUM, SESSION_ID, PKn, HASH. The transmission may occur in chunks, as described with respect to 308 of FIG. 3A.

[0087] At 358, the second computing device (responder) 354 processes the received public keys, as described with respect to 312 of FIG. 3A. For public keys generated using a post-quantum KEM, the second computing device (responder) 354 prepares to perform an encapsulation operation. For public keys generated using a classical key exchange algorithm such as Diffie-Hellman (DH), the second computing device (responder) 354 prepares to generate its own public key.

[0088] At 360, the second computing device (responder) 354 computes cryptographic values and shared secrets corresponding to the received public keys. For each key type i using a post-quantum key encapsulation mechanism, the second computing device (responder) 354 invokes an encapsulation function, denoted Encaps(pki), which takes the received public key pki as input and produces a ciphertext cti and a shared secret ssi as output. The ciphertext cti is an encrypted representation of the shared secret that can only be decrypted by the holder of the corresponding secret key ski. For each key type i using a classical key exchange algorithm, the second computing device (responder) 354 invokes the same type of key generation function as used by the first computing device (initiator) 352 at 356, denoted KeyGeni( ), to produce its own distinct key pair (sk′i, pk′i), where the prime notation indicates the responder's keys as distinct from the initiator's keys, and computes a shared secret ssi by applying a Diffie-Hellman function DH (sk′i, pki) using its own secret key sk′i and the received public key pki. The second computing device (responder) 354 transmits the ciphertexts {ct1, ct2, . . . , ctn} for KEM key types and the public keys {pk′1, pk′2, . . . , pk′n} for DH key types. The transmission may occur in chunks, as described with respect to 316 of FIG. 3A.

[0089] At 362, the second computing device (responder) 354 derives a session key based on the shared secrets computed at 360, as described with respect to 324 of FIG. 3A. The second computing device (responder) 354 applies a key derivation function (KDF) to a combination of the shared secrets, denoted ssB=KDF(ss1∥ss2∥ . . . ∥ssn). The notation “∥” represents a cryptographically secure combining operation, such as concatenation. The resulting value ssB represents the session key derived by the second computing device (responder) 354.

[0090] At 364, the first computing device (initiator) 352 computes shared secrets based on the cryptographic values received from the second computing device (responder) 354. For each key type i using a post-quantum key encapsulation mechanism, the first computing device (initiator) 352 invokes a decapsulation function, denoted Decaps(ski, cti), which takes the secret key ski generated at 356 and the ciphertext cti received from the second computing device (responder) 354 as inputs and recovers the shared secret ssi. The recovered shared secret ssi corresponds to the shared secret generated by the second computing device (responder) 354 during the encapsulation at 360. The decapsulation function reverses the encapsulation performed at 360, enabling the first computing device (initiator) 352 to obtain the same shared secret that was generated by the second computing device (responder) 354. For each key type i using a classical key exchange algorithm, the first computing device (initiator) 352 computes a shared secret ssi by applying a Diffie-Hellman function DH(ski, pk′i) using its own secret key ski and the received public key pk′i.

[0091] At 366, the first computing device (initiator) 352 derives a session key based on the shared secrets computed at 364, as described with respect to 326 of FIG. 3A. The first computing device (initiator) 352 applies a key derivation function (KDF) to a combination of the shared secrets, denoted ssA=KDF(ss1∥ss2∥ . . . ∥ssn). Because the first computing device (initiator) 352 and the second computing device (responder) 354 computed the same shared secrets during the key exchange, the session key ssA derived at 366 matches the session key ssB derived at 362.

[0092] FIG. 4 is an example of a block diagram of a technique 400 for establishing shared secrets across multiple epochs with role swapping between two computing devices. The technique 400 illustrates how the key exchange described with respect to FIGS. 3A and 3B may be repeated over successive epochs, with the roles of initiator and responder alternating between the first computing device 402 and the second computing device 404. The technique 400 is shown as including a first computing device 402, a second computing device 404, an epoch M start 406, operations 408 through 418 for epoch M, an epoch M end 420, a role swap 422, an epoch M+1 start 424, operations 426 through 436 for epoch M+1, and an epoch M+1 end 438.

[0093] During epoch M, the first computing device 402 operates as the initiator and the second computing device 404 operates as the responder. At 406, epoch M begins. At 408, the first computing device 402 generates and transmits one or more public keys to the second computing device 404. At 410, the second computing device 404 receives and processes the public keys. At 412, the second computing device 404 generates and transmits one or more cryptographic values to the first computing device 402. At 414, the first computing device 402 receives and processes the cryptographic values. At 416 and 418, the first computing device 402 and the second computing device 404 each derive a session key based on shared secrets computed during the key exchange. The operations 408 through 418 correspond to the key exchange operations described in greater detail with respect to FIGS. 3A and 3B. At 420, epoch M ends.

[0094] While not specifically shown in FIG. 4, after deriving the session key at 416 and 418, the first computing device 402 and the second computing device 404 may exchange data encrypted using the session key derived for epoch M. The session key may remain valid for the duration of epoch M. In some implementations, the computing devices may retain the session key from a previous epoch for a defined period following the transition to a new epoch to decrypt in-flight packets that were encrypted under the previous session key.

[0095] At 422, the roles of initiator and responder swap between the first computing device 402 and the second computing device 404. Following the role swap, the first computing device 402 operates as the responder and the second computing device 404 operates as the initiator for epoch M+1. During epoch M+1, operations 426 through 436 are similar to operations 408 through 418 of epoch M, with the roles of the first computing device 402 and the second computing device 404 reversed. At 424, epoch M+1 begins. At 426, the second computing device 404, now operating as the initiator, generates and transmits one or more public keys to the first computing device 402. The remaining operations 428, 430, 432, 434, and 436 proceed in a corresponding manner, with the first computing device 402 and the second computing device 404 exchanging cryptographic values and deriving a session key for epoch M+1. At 438, epoch M+1 ends. The pattern of role swapping and key exchange may repeat for subsequent epochs.

[0096] An epoch may end based on various conditions. In some implementations, an epoch may end after a defined time period has elapsed since the session key was derived. In some implementations, an epoch may end after a specified volume of data has been transmitted using the session key. In some implementations, an epoch may end in response to an initiation by one of the computing devices, such as a request to renegotiate keys. In some implementations, the transition from one epoch to the next may occur based on a combination of these conditions. The use of epochs with periodic key rotation may provide forward secrecy by establishing fresh session keys at regular intervals.

[0097] The alternating pattern of role swapping between epochs may prevent either computing device from forcing repeated key renegotiations. In some implementations, the computing device that operated as the initiator in epoch M operates as the responder in epoch M+1, and the computing device that operated as the responder in epoch M operates as the initiator in epoch M+1. This turn-by-turn approach may mitigate denial-of-service conditions in which a malicious actor attempts to consume computational resources by repeatedly initiating key exchanges, which involve computationally expensive public-key operations.

[0098] In some implementations, other patterns for determining which computing device initiates a given epoch may be used. For example, the computing devices may use a randomized selection process based on a shared source of randomness or a deterministic function seeded with shared state to determine which device initiates each epoch, provided both devices agree on the selection mechanism. In some implementations, the roles may not reverse, and one device may always act as the initiator. In some implementations, an agreed upon role reversal order pattern (e.g., alternating, random, or based on a predetermined sequence such as A-B-A-B, A-A-B-A, or another pattern, where A and B represent the first computing device 402 and the second computing device 404 respectively) may be set.

[0099] In some implementations, the determination of which computing device operates as the initiator for a given epoch may be based on the epoch number. For example, a modulo operation may be performed on the epoch number to determine which computing device operates as the initiator, such that even-numbered epochs are initiated by the first computing device and odd-numbered epochs are initiated by the second computing device, or vice versa. Other mechanisms for determining which computing device operates as the initiator for a given epoch are possible, such as random selection based on a shared source of randomness, a predetermined sequence, or alternating on a turn-by-turn basis.

[0100] In some implementations, the cryptographic algorithms or key types used for key generation may differ between epochs. For example, the initiator for epoch M may generate public keys using a first set of cryptographic algorithms, while the initiator for epoch M+1 may generate public keys using a second set of cryptographic algorithms that differs from the first set. The computing devices may agree on the cryptographic algorithms to be used for a given epoch through pre-agreement or negotiation, as described with respect to FIG. 3A. This flexibility may allow the computing devices to adapt to changing security requirements or to rotate between different cryptographic schemes across epochs.

[0101] In some implementations, one of the computing devices may reuse a key from a previous epoch without regenerating a new key. For example, during epoch M+1, the second computing device 404 may generate a new public key for a first key type while reusing a public key from epoch M for a second key type. In such implementations, the session key derived for epoch M+1 would still differ from the session key derived for epoch M because the combination of shared secrets would include at least one new shared secret corresponding to the newly generated key.

[0102] FIG. 5 is an example of a block diagram of a technique 500 illustrating a specific implementation of the key exchange described with respect to FIGS. 3A, 3B, and 4. The technique 500 shows a handshake protocol between a client device 502 and a server device 504 using a combination of classical and post-quantum cryptographic algorithms. The client device 502 and the server device 504 may each be implemented as the computing device 100 shown in FIG. 1 or as one or more of the computing and communications devices 206, 212, 216, 222, 226, 230 shown in FIG. 2. The client device 502 may correspond to the first computing device (initiator) 302 of FIG. 3A, the first computing device (initiator) 352 of FIG. 3B, or the first computing device 402 of FIG. 4 when operating as the initiator. The server device 504 may correspond to the second computing device (responder) 304 of FIG. 3A, the second computing device (responder) 354 of FIG. 3B, or the second computing device 404 of FIG. 4 when operating as the responder.

[0103] The technique 500 begins with the client device 502 transmitting a Client Hello message 506 to the server device 504. The Client Hello message 506 includes Client Hello contents 508. The Client Hello contents 508 may include an ephemeral public key generated using a classical key exchange algorithm, such as an X25519 ephemeral public key (e.g., 32 bytes). The Client Hello contents 508 may also include a public key generated using a post-quantum key encapsulation mechanism, such as an ML-KEM-768 encapsulation key (e.g., 1184 bytes). The Client Hello contents 508 may further include a list of supported cipher suites, such as AEGIS-256 and ChaCha20, indicating the symmetric encryption algorithms that the client device 502 supports for encrypting data following the handshake. In some implementations, the Client Hello contents 508 may include an optional cookie for denial-of-service (DoS) protection.

[0104] Upon receiving the Client Hello message 506, the server device 504 transmits a Server Hello message 510 to the client device 502. The Server Hello message 510 includes Server Hello contents 512. The Server Hello contents 512 may include an ephemeral public key generated by the server device 504 using a classical key exchange algorithm, such as an X25519 ephemeral public key (e.g., 32 bytes). The Server Hello contents 512 may also include a ciphertext generated by the server device 504 using a post-quantum key encapsulation mechanism, such as an ML-KEM-768 ciphertext (e.g., 1088 bytes), corresponding to the encapsulation key received in the Client Hello contents 508.

[0105] The Server Hello contents 512 may further include a selected cipher suite, such as AEGIS-256, indicating the symmetric encryption algorithm selected by the server device 504 from the list of supported cipher suites provided by the client device 502. The Server Hello contents 512 may also include a message authentication code (MAC) to authenticate the handshake transcript up to this point. The key for this MAC may be derived from the shared secret(s) established by the server device 504.

[0106] Following the Server Hello message 510, the client device 502 transmits a Client Finish message 514 to the server device 504. The Client Finish message 514 includes Client Finish contents 516. The Client Finish contents 516 may include a message authentication code (MAC) to authenticate the handshake transcript. The key for this MAC may be derived from the shared secret(s) established by the client device 502. The Client Finish message 514 may serve as confirmation by the client device 502 that the key exchange was successful and that the client device 502 has derived the same session key as the server device 504.

[0107] At 518, the client device 502 and the server device 504 each derive a session key based on shared secrets computed during the handshake. As shown in FIG. 5, the session key may be derived using a key derivation function, such as HKDF, applied to a combination of shared secrets from the classical key exchange and the post-quantum key encapsulation mechanism. For example, SESSION_KEY_0 may be computed as HKDF(X25519_SECRET∥MLKEM_SECRET), where X25519_SECRET represents the shared secret derived from the X25519 key exchange and MLKEM_SECRET represents the shared secret derived from the ML-KEM-768 encapsulation and decapsulation operations. The combination of shared secrets from both classical and post-quantum algorithms provides a hybrid cryptographic approach, as described with respect to FIGS. 3A and 3B.

[0108] The technique 500 illustrates how the cryptographic exchanges may occur in parallel, with the client device 502 and the server device 504 transmitting public keys and cryptographic values in a manner that reduces handshake latency. The Client Hello message 506 may include both the classical public key and the post-quantum public key in a single transmission, and the Server Hello message 510 may include both the classical public key and the post-quantum ciphertext in a single response. This parallel approach may improve efficiency compared to sequential handshake protocols that perform classical and post-quantum key exchanges in separate round trips.

[0109] To further describe some implementations in greater detail, reference is next made to examples of techniques which may be performed by or using dynamic cryptographic configuration systems in secure communication networks as described herein. FIG. 6 is a flowchart of an example of a technique 600 for establishing a shared secret between two computing devices using a hybrid cryptographic approach that combines classical and post-quantum algorithms. FIG. 7 is a flowchart of an example of a technique 700 for establishing a shared secret between two computing devices using at least one post-quantum cryptographic algorithm. FIG. 8 is a flowchart of an example of a technique 800 for establishing shared secrets across multiple key exchanges with role swapping between two computing devices. FIG. 9 is a flowchart of an example of a technique 900 for establishing a shared secret between two computing devices using concurrent bidirectional transmission of post-quantum cryptographic payloads. FIG. 10 is a flowchart of an example of a technique 1000 for transmitting a post-quantum cryptographic payload with adaptive error correction based on network conditions.

[0110] The techniques 600 through 1000 can each be executed using computing devices (e.g., a first computing device), such as the systems, hardware, and software described with respect to FIGS. 1-5. The techniques 600 through 1000 can each be performed, for example, by executing a machine-readable program or other computer-executable instructions, such as routines, instructions, programs, or other code. The steps, or operations, of each of the techniques 600 through 1000, or another technique, method, process, or algorithm described in connection with the implementations disclosed herein can be implemented directly in hardware, firmware, software executed by hardware, circuitry, or a combination thereof.

[0111] For simplicity of explanation, the techniques 600 through 1000 are each depicted and described herein as a respective series of steps or operations. However, the steps or operations of the techniques 600 through 1000 can occur in various orders and / or concurrently. Additionally, other steps or operations not presented and described herein may be used. Furthermore, not all illustrated steps or operations may be required to implement a technique in accordance with the disclosed subject matter.

[0112] Referring now to FIG. 6, the technique 600 generates at least two public keys. For example, at least one of the at least two public keys may be generated using a classical key exchange algorithm and at least one of the at least two public keys may be generated using a post-quantum key encapsulation mechanism. As such, at 602, a first public key of the at least two keys is generated using a classical key exchange algorithm. For example, a computing device, such as the first computing device (initiator) 302 shown in FIG. 3A, may generate the first public key using an elliptic-curve Diffie-Hellman algorithm, such as X25519. In some implementations, generating the first public key may include invoking a key generation function that produces a key pair including the first public key and a corresponding first private key, as described with respect to FIG. 3B.

[0113] At 604, a second public key of the at least two public keys is generated using a post-quantum key encapsulation mechanism. For example, the computing device may generate the second public key using a lattice-based key encapsulation mechanism, such as ML-KEM. In some implementations, the computing device may generate a third public key using a second post-quantum key encapsulation mechanism different from the post-quantum key encapsulation mechanism used to generate the second public key, such as a code-based scheme.

[0114] At 606, the first public key and the second public key are transmitted to a second computing device. In some implementations, transmitting the first public key and the second public key may include dividing the first public key and the second public key into a plurality of data chunks and transmitting the plurality of data chunks to the second computing device. The dividing may be based on an MTU size of a network link between the first computing device and the second computing device. In some implementations, one or more redundancy chunks may be generated based on the plurality of data chunks using an error correction encoding scheme and transmitted to the second computing device. The error correction encoding scheme may include Reed-Solomon coding or a secret sharing scheme. In some implementations, a number of the one or more redundancy chunks may be based on a determined packet loss characteristic of the network link.

[0115] In some implementations, a header may be transmitted along with the first public key and the second public key. The header may include an epoch number, a session identifier, and a hash value. The epoch number may indicate a current epoch during which the session key is valid. In some implementations, the transmitting and the receiving, at 608, may occur at least partially concurrently, as described with respect to FIGS. 3A and 4.

[0116] At 608, a first cryptographic value corresponding to the first public key and a second cryptographic value corresponding to the second public key are received from the second computing device. The first cryptographic value may include a public key generated by the second computing device using the classical key exchange algorithm, and the second cryptographic value may include a ciphertext generated by the second computing device using the post-quantum key encapsulation mechanism, as described with respect to FIGS. 3A and 3B.

[0117] At 610, a first shared secret is computed based on the first cryptographic value. Computing the first shared secret may include performing a Diffie-Hellman computation using a first private key corresponding to the first public key and the first cryptographic value received from the second computing device, as described with respect to FIG. 3B.

[0118] At 612, a second shared secret is computed based on the second cryptographic value. Computing the second shared secret may include performing a decapsulation operation using a second private key corresponding to the second public key and the second cryptographic value received from the second computing device, as described with respect to FIG. 3B. In some implementations, the computing of the second shared secret may be initiated based on a first portion of the second cryptographic value prior to receiving a complete version of the second cryptographic value.

[0119] At 614, a session key is derived based on a combination of the first shared secret and the second shared secret. The combination may include at least one of concatenating, XORing, or ORing the first shared secret and the second shared secret. Deriving the session key may include applying a key derivation function to the combination of the first shared secret and the second shared secret. The key derivation function may include HKDF. In some implementations, applying the key derivation function may further include incorporating a session identifier and an epoch number as inputs to the key derivation function.

[0120] In some implementations, after deriving the session key at 614, the computing device may encrypt data using the session key and transmit the encrypted data to the second computing device. In some implementations, after deriving the session key, the computing device may operate as a responder in a subsequent key exchange with the second computing device to derive a subsequent session key, as described with respect to FIG. 4. Operating as the responder may include receiving a third public key and a fourth public key from the second computing device, generating cryptographic values corresponding to the third public key and the fourth public key, and transmitting the cryptographic values to the second computing device. In some implementations, the computing device may retain the session key for a defined period following derivation of the subsequent session key to decrypt in-flight data encrypted using the session key. In some implementations, after expiration of the current epoch, the computing device may initiate a subsequent key exchange with the second computing device to derive a subsequent session key for a subsequent epoch.

[0121] Referring now to FIG. 7, at 702, at least two public keys are generated. At least one of the at least two public keys is generated using a post-quantum key encapsulation mechanism. For example, a computing device, such as the first computing device (initiator) 302 shown in FIG. 3A, may generate the at least two public keys. In some implementations, at least two of the at least two public keys may be generated using different post-quantum key encapsulation mechanisms, such as a lattice-based key encapsulation mechanism and a code-based key encapsulation mechanism. In some implementations, one of the at least two public keys may be generated using a classical key exchange algorithm and another of the at least two public keys may be generated using the post-quantum key encapsulation mechanism, as described with respect to FIG. 3B.

[0122] At 704, the at least two public keys are transmitted to a second computing device. In some implementations, transmitting the at least two public keys may include dividing the at least two public keys into a plurality of data chunks and transmitting the plurality of data chunks to the second computing device. In some implementations, one or more redundancy chunks may be generated based on the plurality of data chunks using an error correction encoding scheme and transmitted to the second computing device. In some implementations, a number of the one or more redundancy chunks may be based on a determined packet loss characteristic of a network link to the second computing device. In some implementations, a header may be transmitted along with the at least two public keys, the header including an epoch number, a session identifier, and a hash value. The epoch number may indicate a current epoch during which the session key is valid. In some implementations, the transmitting and the receiving, at 706, may occur at least partially concurrently.

[0123] At 706, a plurality of cryptographic values corresponding to the at least two public keys are received from the second computing device. The plurality of cryptographic values may include public keys generated by the second computing device using classical key exchange algorithms and ciphertexts generated by the second computing device using post-quantum key encapsulation mechanisms, as described with respect to FIGS. 3A and 3B.

[0124] At 708, a plurality of shared secrets are computed based on the plurality of cryptographic values. Computing the plurality of shared secrets may include performing decapsulation operations for cryptographic values corresponding to post-quantum key encapsulation mechanisms and performing Diffie-Hellman computations for cryptographic values corresponding to classical key exchange algorithms, as described with respect to FIG. 3B. In some implementations, the computing of at least one of the plurality of shared secrets may be initiated based on a first portion of a corresponding cryptographic value prior to receiving a complete version of the corresponding cryptographic value.

[0125] At 710, a session key is derived based on a combination of the plurality of shared secrets. Deriving the session key may include applying a key derivation function to the combination of the plurality of shared secrets. In some implementations, applying the key derivation function may further include incorporating a session identifier and an epoch number as inputs to the key derivation function.

[0126] After deriving the session key at 710, the computing device may encrypt data using the session key and transmit the encrypted data to the second computing device. In some implementations, after deriving the session key, the computing device may operate as a responder in a subsequent key exchange with the second computing device to derive a subsequent session key. The computing device may retain the session key for a defined period following derivation of the subsequent session key to decrypt in-flight data encrypted using the session key. In some implementations, after expiration of the current epoch, the computing device may initiate a subsequent key exchange with the second computing device to derive a subsequent session key for a subsequent epoch.

[0127] Referring now to FIG. 8, at 802, the first computing device operates as an initiator in a first key exchange with a second computing device to derive a first session key. Operating as the initiator may include generating at least one public key using a post-quantum key encapsulation mechanism and transmitting the at least one public key to the second computing device. In some implementations, operating as the initiator may further include generating at least one public key using a classical key exchange algorithm and transmitting it along with the at least one public key generated using the post-quantum key encapsulation mechanism.

[0128] Transmitting the at least one public key may include dividing the at least one public key into a plurality of data chunks and transmitting the plurality of data chunks to the second computing device. In some implementations, one or more redundancy chunks may be generated based on the plurality of data chunks using an error correction encoding scheme and transmitted to the second computing device. A number of the one or more redundancy chunks may be based on a determined packet loss characteristic of a network link to the second computing device.

[0129] In some implementations, operating as the initiator in the first key exchange may include transmitting at least one public key to the second computing device concurrently with receiving at least one cryptographic value from the second computing device. In some implementations, a header may be transmitted as part of operating as the initiator in the first key exchange, the header including an epoch number, a session identifier, and a hash value. Deriving the first session key may include applying a key derivation function to a combination of a plurality of shared secrets computed during the first key exchange. The combination may include at least one of concatenating, XORing, or ORing the plurality of shared secrets. Applying the key derivation function may further include incorporating a session identifier and an epoch number as inputs to the key derivation function.

[0130] The first session key may remain valid for a first epoch. An end of the first epoch may be based on at least one of expiration of a defined time period, transmission of a specified volume of data, or initiation by one of the first computing device or the second computing device. In some implementations, after deriving the first session key, the first computing device may encrypt data using the first session key and transmit the encrypted data to the second computing device prior to operating as the responder in the second key exchange.

[0131] At 804, after deriving the first session key, the first computing device operates as a responder in a second key exchange with the second computing device to derive a second session key. Operating as the responder may include receiving at least one public key from the second computing device, generating a cryptographic value corresponding to the at least one public key, and transmitting the cryptographic value to the second computing device.

[0132] In some implementations, the at least one public key received from the second computing device may include a public key generated using a post-quantum key encapsulation mechanism, and generating the cryptographic value may include performing an encapsulation operation using the public key to produce a ciphertext and a shared secret. In some implementations, the at least one public key received from the second computing device may include a public key generated using a classical key exchange algorithm, and generating the cryptographic value may include generating a key pair and computing a shared secret using a private key of the key pair and the public key received from the second computing device.

[0133] In some implementations, operating as the responder in the second key exchange may include initiating computation of a shared secret based on a first portion of a received public key prior to receiving a complete version of the received public key. In some implementations, during the second key exchange, the first computing device may reuse a key from the first key exchange without regenerating a new key for at least one key type. The second session key may differ from the first session key based on at least one new shared secret corresponding to a newly generated key by the second computing device. The second session key may remain valid for a second epoch subsequent to the first epoch. In some implementations, the first computing device may retain the first session key for a defined period following derivation of the second session key to decrypt in-flight data encrypted using the first session key.

[0134] In some implementations, operating as the initiator in the first key exchange at 802 and operating as the responder in the second key exchange at 804 may occur according to an alternating pattern between the first computing device and the second computing device. In some implementations, determining which of the first computing device or the second computing device operates as the initiator for a given epoch may be based on performing a modulo operation on an epoch number corresponding to the given epoch. In some implementations, the alternating pattern may be based on a predetermined sequence agreed upon by the first computing device and the second computing device.

[0135] In some implementations, the first key exchange, the second key exchange, and subsequent key exchanges may use a same set of cryptographic algorithms. In some implementations, at least one of the first key exchange or the second key exchange may use a different set of cryptographic algorithms than another key exchange. In some implementations, after deriving the second session key, the first computing device may operate as the initiator in a third key exchange with the second computing device to derive a third session key, and the pattern of role swapping may continue for subsequent epochs.

[0136] Referring now to FIG. 9, at 902, transmission, by a first computing device, of a first post-quantum cryptographic payload to a second computing device is initiated. The first post-quantum cryptographic payload may include at least one public key generated using a post-quantum key encapsulation mechanism. The post-quantum key encapsulation mechanism may include a lattice-based key encapsulation mechanism, such as ML-KEM. In some implementations, the first post-quantum cryptographic payload may further include at least one public key generated using a classical key exchange algorithm, such as X25519, to provide a hybrid cryptographic approach. In some implementations, the first post-quantum cryptographic payload may include a plurality of public keys generated using different post-quantum key encapsulation mechanisms, such as a lattice-based key encapsulation mechanism and a code-based key encapsulation mechanism.

[0137] Initiating transmission of the first post-quantum cryptographic payload may include dividing the first post-quantum cryptographic payload into a plurality of data chunks and transmitting the plurality of data chunks to the second computing device. In some implementations, dividing the first post-quantum cryptographic payload into the plurality of data chunks may be based on an MTU size of a network link between the first computing device and the second computing device. The first post-quantum cryptographic payload may exceed the MTU size of the network link. In some implementations, one or more redundancy chunks may be generated based on the plurality of data chunks using an error correction encoding scheme and transmitted to the second computing device. The error correction encoding scheme may include at least one of Reed-Solomon coding or a secret sharing scheme. In some implementations, a number of the one or more redundancy chunks may be based on a determined packet loss characteristic of the network link to the second computing device.

[0138] In some implementations, a header may be transmitted along with the first post-quantum cryptographic payload. The header may include an epoch number, a session identifier, and a hash value.

[0139] At 904, concurrently with the transmission of the first post-quantum cryptographic payload, receipt of a second post-quantum cryptographic payload from the second computing device is initiated. The concurrent transmission and receipt may improve network bandwidth utilization compared to sequential transmission and receipt of cryptographic payloads. The second post-quantum cryptographic payload may include a ciphertext generated by the second computing device using the post-quantum key encapsulation mechanism and corresponding to the at least one public key included in the first post-quantum cryptographic payload. The second post-quantum cryptographic payload may also exceed the MTU size of the network link. In some implementations, initiating receipt of the second post-quantum cryptographic payload may include receiving a plurality of data chunks and one or more redundancy chunks from the second computing device and reconstructing the second post-quantum cryptographic payload from the received data chunks and redundancy chunks.

[0140] At 906, the second post-quantum cryptographic payload is processed to establish the shared secret. Processing the second post-quantum cryptographic payload may include performing a decapsulation operation using a private key corresponding to the at least one public key to recover the shared secret from the ciphertext. In some implementations, processing the second post-quantum cryptographic payload may include computing a plurality of shared secrets corresponding to a plurality of public keys included in the first post-quantum cryptographic payload. In some implementations, processing of the second post-quantum cryptographic payload may be initiated based on a first portion of the second post-quantum cryptographic payload prior to receiving a complete version of the second post-quantum cryptographic payload.

[0141] In some implementations, a session key may be derived based on the shared secret. Deriving the session key may include applying a key derivation function to the shared secret. Applying the key derivation function may further include incorporating a session identifier and an epoch number as inputs to the key derivation function. In some implementations, a session key may be derived based on a combination of the plurality of shared secrets. After deriving the session key, the first computing device may encrypt data using the session key and transmit the encrypted data to the second computing device.

[0142] The shared secret may remain valid for a defined epoch. After expiration of the defined epoch, the first computing device may initiate a subsequent key exchange with the second computing device to establish a subsequent shared secret. In some implementations, the first computing device may operate as a responder in the subsequent key exchange after having operated as an initiator in establishing the shared secret. In some implementations, the first computing device may retain the session key derived from the shared secret for a defined period following establishment of a subsequent session key to decrypt in-flight data encrypted using the prior session key.

[0143] Referring now to FIG. 10, at 1002, a packet loss characteristic of a network link to a second computing device is determined. The packet loss characteristic may represent a measure or estimate of the likelihood that data packets transmitted over the network link will be lost, corrupted, or fail to arrive at the second computing device. In some implementations, determining the packet loss characteristic may include measuring a rate of packet loss on the network link over a defined time period prior to generating the post-quantum cryptographic payload. For example, the computing device may transmit probe packets to the second computing device and measure the percentage of packets that are not acknowledged within a timeout period. In some implementations, determining the packet loss characteristic may include estimating the packet loss characteristic based on a type of the network link. For example, a wireless network link, such as a WiFi, cellular, or satellite connection, may be associated with a higher estimated packet loss characteristic than a wired network link, such as an Ethernet connection. In some implementations, the packet loss characteristic may be determined based on historical data, network congestion indicators, or information provided by the network infrastructure.

[0144] At 1004, a post-quantum cryptographic payload is generated for a key exchange handshake. The post-quantum cryptographic payload may include at least one public key generated using a post-quantum key encapsulation mechanism. The post-quantum key encapsulation mechanism may include a lattice-based key encapsulation mechanism, such as ML-KEM. In some implementations, the post-quantum cryptographic payload may further include at least one public key generated using a classical key exchange algorithm, such as X25519, to provide a hybrid cryptographic approach as described with respect to FIGS. 3A and 3B. The post-quantum cryptographic payload may exceed an MTU size of the network link between the computing device and the second computing device due to the larger key sizes associated with post-quantum cryptographic algorithms.

[0145] At 1006, the post-quantum cryptographic payload is encoded with a level of error correction redundancy based on the determined packet loss characteristic. Encoding the post-quantum cryptographic payload may include dividing the post-quantum cryptographic payload into a plurality of data chunks and generating one or more redundancy chunks based on the plurality of data chunks using an error correction encoding scheme. In some implementations, dividing the post-quantum cryptographic payload into the plurality of data chunks may be based on the MTU size of the network link between the computing device and the second computing device. This chunking approach may facilitate transmission of large post-quantum cryptographic payloads without requiring IP fragmentation at the network layer.

[0146] The error correction encoding scheme may include Reed-Solomon coding. Reed-Solomon coding is a block-based error correction technique that generates redundancy symbols, facilitating reconstruction of original data when a subset of symbols is lost or corrupted. In some implementations, the error correction encoding scheme may include a secret sharing scheme, such as Shamir's secret sharing. Shamir's secret sharing is a threshold scheme that divides data into multiple shares such that a specified minimum number of shares is sufficient to reconstruct the data, providing resilience to the loss of some shares. A number of the one or more redundancy chunks may be based on the determined packet loss characteristic, such that a higher packet loss characteristic results in a greater number of redundancy chunks. For example, if the packet loss characteristic indicates a ten percent loss rate, the computing device may generate redundancy chunks sufficient to tolerate loss of at least ten percent of the transmitted chunks.

[0147] At 1008, the encoded post-quantum cryptographic payload is transmitted to the second computing device. Transmitting the encoded post-quantum cryptographic payload may include transmitting the plurality of data chunks and the one or more redundancy chunks to the second computing device. In some implementations, a header may be transmitted along with the encoded post-quantum cryptographic payload. The header may include an epoch number, a session identifier, and a hash value, as described with respect to FIGS. 3A and 4.

[0148] In some implementations, the computing device may receive a cryptographic response from the second computing device, the cryptographic response including a plurality of data chunks. The computing device may derive a session key based at least in part on the cryptographic response. Deriving the session key may include performing a decapsulation operation using a private key corresponding to a public key included in the post-quantum cryptographic payload to recover a shared secret, and applying a key derivation function to the shared secret.

[0149] In some implementations, the computing device may initiate processing of the cryptographic response based on a first portion of the cryptographic response prior to receiving a complete version of the cryptographic response. Initiating processing of the cryptographic response may include receiving a subset of the plurality of data chunks transmitted over the network link, the subset comprising less than a complete version of the cryptographic response. Processing that may be initiated on partial data may include buffering received data chunks, validating chunk headers or sequence numbers, verifying integrity of individual chunks, or preparing data structures for subsequent decapsulation operations. For cryptographic algorithms involving large number arithmetic, such as classical Diffie-Hellman or RSA, such processing may include initiating validation checks on a first portion of a received public key (e.g., confirming it falls within an expected mathematical range) or pre-loading shared parameters (e.g., a modulus) into cryptographic libraries while awaiting receipt of the complete public key.

[0150] In some implementations, the computing device may receive a second portion of the cryptographic response comprising additional data chunks of the plurality of data chunks, and may complete the computation of the session key using the second portion of the cryptographic response. Completing the computation of the session key may include performing a decapsulation operation using the complete cryptographic response to recover a shared secret, and applying a key derivation function to the shared secret to derive the session key. Initiating processing of the cryptographic response based on the first portion of the cryptographic response may reduce idle time compared to waiting for receipt of the complete cryptographic response before initiating processing.

[0151] Unless expressly stated, or otherwise clear from context, the terminology “computer,” and variations or wordforms thereof, such as “computing device,”“computing machine,”“computing and communications device,” and “computing unit,” indicates a “computing device,” such as the computing device 100 shown in FIG. 1, that implements, executes, or performs one or more aspects of the methods and techniques described herein, or is represented by data stored, processed, used, or communicated in accordance with the implementation, execution, or performance of one or more aspects of the methods and techniques described herein.

[0152] Unless expressly stated, or otherwise clear from context, the terminology “instructions,” and variations or wordforms thereof, such as “code,”“commands,” or “directions,” includes an expression, or expressions, of an aspect, or aspects, of the methods and techniques described herein, realized in hardware, software, or a combination thereof, executed, processed, or performed, by a processor, or processors, as described herein, to implement the respective aspect, or aspects, of the methods and techniques described herein. Unless expressly stated, or otherwise clear from context, the terminology “program,” and variations or wordforms thereof, such as “algorithm,”“function,”“model,” or “procedure,” indicates a sequence or series of instructions, which may be iterative, recursive, or both.

[0153] Unless expressly stated, or otherwise clear from context, the terminology “communicate,” and variations or wordforms thereof, such as “send,”“receive,” or “exchange,” indicates sending, transmitting, or otherwise making available, receiving, obtaining, or otherwise accessing, or a combination thereof, data in a computer accessible form via an electronic data communications medium.

[0154] As used herein, unless explicitly stated otherwise, any term specified in the singular may include its plural version. For example, “a computer that stores data and runs software,” may include a single computer that stores data and runs software or two computers-a first computer that stores data and a second computer that runs software. Also “a computer that stores data and runs software,” may include multiple computers that together stored data and run software. At least one of the multiple computers stores data, and at least one of the multiple computers runs software.

[0155] As used herein, the term “computer-readable medium” encompasses one or more computer readable media. A computer-readable medium may include any storage unit (or multiple storage units) that store data or instructions that are readable by processing circuitry. A computer-readable medium may include, for example, at least one of a data repository, a data storage unit, a computer memory, a hard drive, a disk, or a random access memory. A computer-readable medium may include a single computer-readable medium or multiple computer-readable media. A computer-readable medium may be a transitory computer-readable medium or a non-transitory computer-readable medium.

[0156] As used herein, the term “memory subsystem” includes one or more memories, where each memory may be a computer-readable medium. A memory subsystem may encompass memory hardware units (e.g., a hard drive or a disk) that store data or instructions in software form. Alternatively or in addition, the memory subsystem may include data or instructions that are hard-wired into processing circuitry.

[0157] As used herein, processing circuitry includes one or more processors. The one or more processors may be arranged in one or more processing units, for example, a CPU, a graphics processing unit (GPU), or a combination of at least one of a CPU or a GPU.

[0158] As used herein, the term “engine” may include software, hardware, or a combination of software and hardware. An engine may be implemented using software stored in the memory subsystem. Alternatively, an engine may be hard-wired into processing circuitry. In some cases, an engine includes a combination of software stored in the memory subsystem and hardware that is hard-wired into the processing circuitry.

[0159] To the extent that the respective aspects, features, or elements of the devices, apparatus, methods, and techniques described or shown herein, are shown or described as a respective sequence, order, configuration, or orientation, thereof, such sequence, order, configuration, or orientation is explanatory and other sequences, orders, configurations, or orientations may be used, which may be include concurrent or parallel performance or execution of one or more aspects or elements thereof, and which may include devices, methods, and techniques, or aspects, elements, or components, thereof, that are not expressly described herein, except as is expressly described herein or as is otherwise clear from context. One or more of the devices, methods, and techniques, or aspects, elements, or components, thereof, described or shown herein may be omitted, or absent, from respective embodiments.

[0160] The figures, drawings, diagrams, illustrations, and charts shown and described herein express or represent the devices, methods, and techniques, or aspects, elements, or components, thereof, as disclosed herein. The elements, such as blocks and connecting lines, of the figures, drawings, diagrams, illustrations, and charts, shown and described herein, or combinations thereof, may be implemented or realized as respective units, or combinations of units, of hardware, software, or both.

[0161] Unless expressly stated, or otherwise clear from context, the terminology “determine,”“identify,” and “obtain,” and variations or wordforms thereof, indicates selecting, ascertaining, computing, looking up, receiving, determining, establishing, obtaining, or otherwise identifying or determining using one or more of the devices and methods shown and described herein. Unless expressly stated, or otherwise clear from context, the terminology “example,” and variations or wordforms thereof, such as “embodiment” and “implementation,” indicates a distinct, tangible, physical realization of one or more aspects, features, or elements of the devices, methods, and techniques described herein. Unless expressly stated, or otherwise clear from context, the examples described herein may be independent or may be combined.

[0162] Unless expressly stated, or otherwise clear from context, the terminology “or” is used herein inclusively (inclusive disjunction), rather than exclusively (exclusive disjunction). For example, unless expressly stated, or otherwise clear from context, the phrase “includes A or B” indicates the inclusion of “A,” the inclusion of “B,” or the inclusion of “A and B.” Unless expressly stated, or otherwise clear from context, the terminology “a,” or “an,” is used herein to express singular or plural form. For example, the phrase “an apparatus” may indicate one apparatus or may indicate multiple apparatuses. Unless expressly stated, or otherwise clear from context, the terminology “including,”“comprising,”“containing,” or “characterized by,” is inclusive or open-ended such that some implementations or embodiments may be limited to the expressly recited or described aspects or elements, and some implementations or embodiments may include elements or aspects that are not expressly recited or described.

[0163] As used herein, numeric terminology that expresses quantity (or cardinality), magnitude, position, or order, such as numbers, such as 1 or 20.7, numerals, such as “one” or “one hundred,” ordinals, such as “first” or “fourth,” multiplicative numbers, such as “once” or “twice,” multipliers, such as “double” or “triple,” or distributive numbers, such as “singly,” used descriptively herein are explanatory and non-limiting, except as is described herein or as is otherwise clear from context. For example, a “second” element may be performed prior to a “first” element, unless expressly stated, or otherwise clear from context.

[0164] While the disclosure has been described in connection with certain embodiments, it is to be understood that the disclosure is not to be limited to the disclosed embodiments but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the scope of the appended claims, which scope is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures as is permitted under the law.

Claims

1. A method performed by a first computing device, the method comprising:generating a first public key using a classical key exchange algorithm;generating a second public key using a post-quantum key encapsulation mechanism;transmitting, to a second computing device, the first public key and the second public key;receiving, from the second computing device, a first cryptographic value corresponding to the first public key and a second cryptographic value corresponding to the second public key;computing a first shared secret based on the first cryptographic value;computing a second shared secret based on the second cryptographic value, wherein computing the second shared secret is initiated prior to receiving a complete version of the second cryptographic value; andderiving a session key based on a combination of the first shared secret and the second shared secret.

2. The method of claim 1, wherein the deriving the session key comprises:applying a key derivation function to the combination of the first shared secret and the second shared secret.

3. The method of claim 2, wherein the applying the key derivation function further comprises:incorporating a session identifier and an epoch number as inputs to the key derivation function.

4. The method of claim 1, wherein the classical key exchange algorithm comprises an elliptic-curve Diffie-Hellman algorithm.

5. The method of claim 1, wherein the post-quantum key encapsulation mechanism comprises a lattice-based key encapsulation mechanism.

6. The method of claim 1, wherein the transmitting comprises dividing the first public key and the second public key into a plurality of data chunks and transmitting the plurality of data chunks to the second computing device.

7. The method of claim 6, further comprising:generating one or more redundancy chunks based on the plurality of data chunks using an error correction encoding scheme and transmitting the one or more redundancy chunks to the second computing device.

8. The method of claim 7, further comprising:determining a packet loss characteristic of a network link to the second computing device, and wherein a number of the one or more redundancy chunks is based on the determined packet loss characteristic.

9. The method of claim 1, wherein the first computing device operates as an initiator during a first epoch, further comprising:after deriving the session key for the first epoch, operating as a responder in a subsequent key exchange with the second computing device during a second epoch to derive a subsequent session key, wherein roles of initiator and responder alternate between the first computing device and the second computing device across successive epochs.

10. A device, comprising:a memory; anda processor, the processor configured to execute instructions stored in the memory to:generate a first public key using a classical key exchange algorithm;generate a second public key using a post-quantum key encapsulation mechanism;transmit, to a second computing device, the first public key and the second public key;receive, from the second computing device, a first cryptographic value corresponding to the first public key and a second cryptographic value corresponding to the second public key;compute a first shared secret based on the first cryptographic value;compute a second shared secret based on the second cryptographic value, wherein computing the second shared secret is initiated prior to receiving a complete version of the second cryptographic value; andderive a session key based on a combination of the first shared secret and the second shared secret.

11. The device of claim 10, wherein the first cryptographic value comprises a public key generated by the second computing device using the classical key exchange algorithm, and wherein the second cryptographic value comprises a ciphertext generated by the second computing device using the post-quantum key encapsulation mechanism.

12. The device of claim 10, wherein, to compute the second shared secret, the processor configured to execute instructions stored in the memory to:perform a decapsulation operation using a private key corresponding to the second public key and the second cryptographic value received from the second computing device.

13. The device of claim 10, wherein the processor further configured to execute instructions stored in the memory to:transmit, along with the first public key and the second public key, a header comprising an epoch number, a session identifier, and a hash value.

14. The device of claim 13, wherein the epoch number indicates a current epoch during which the session key is valid, and wherein the processor further configured to execute instructions stored in the memory to:after expiration of the current epoch, initiate a subsequent key exchange with the second computing device to derive a subsequent session key for a subsequent epoch.

15. The device of claim 10, wherein the processor further configured to execute instructions stored in the memory to:encrypt data using the session key and transmit the encrypted data to the second computing device.

16. The device of claim 10, wherein the processor further configured to execute instructions stored in the memory to:after deriving the session key, operate as a responder in a subsequent key exchange with the second computing device to derive a subsequent session key.

17. The device of claim 16, wherein the processor further configured to execute instructions stored in the memory to:retain the session key for a defined period following derivation of the subsequent session key to decrypt in-flight data encrypted using the session key.

18. A non-transitory computer-readable storage medium comprising instructions that, when executed by a processor, perform operations performed by a first computing device, the operations comprising:generating a first public key using a classical key exchange algorithm;generating a second public key using a post-quantum key encapsulation mechanism;transmitting, to a second computing device, the first public key and the second public key;receiving, from the second computing device, a first cryptographic value corresponding to the first public key and a second cryptographic value corresponding to the second public key;computing a first shared secret based on the first cryptographic value;computing a second shared secret based on the second cryptographic value, wherein computing the second shared secret is initiated prior to receiving a complete version of the second cryptographic value; andderiving a session key based on a combination of the first shared secret and the second shared secret.

19. The non-transitory computer-readable storage medium of claim 18, wherein the transmitting and the receiving occur at least partially concurrently.

20. The non-transitory computer-readable storage medium of claim 18, the operations further comprising:generating a third public key using a second post-quantum key encapsulation mechanism different from the post-quantum key encapsulation mechanism;transmitting the third public key to the second computing device;receiving a third cryptographic value corresponding to the third public key; andcomputing a third shared secret based on the third cryptographic value, wherein the deriving the session key is further based on the third shared secret.

Citation Information

Patent Citations

  • System for recovering lost information in a data stream by means of parity packets

    US20030002502A1

  • Method and apparatus for fast secure session establishment on half-duplex point-to-point voice cellular network channels

    US20060269065A1

  • Communication apparatus, method for controlling communication apparatus, and program

    US20140208115A1

  • Rekeying A Security Association SA

    US20210273928A1

  • Silicon Key Exchange

    US20250094602A1