| Internet-Draft | HetAKE | November 2026 |
| He, et al. | Expires 30 May 2027 | [Page] |
During migration to post-quantum cryptography, one peer may hold only a long-term credential for a key encapsulation mechanism (KEM) while the other holds only a signature credential. This document specifies two variants of Heterogeneous Authenticated Key Exchange (HetAKE) for these peers. Given authenticated peer public keys, both variants establish a shared session key in two messages. In KEM-SIG, the initiator uses KEM-based authentication and the responder uses signature-based authentication. SIG-KEM reverses this assignment. Both variants are provably secure in the quantum random oracle model.¶
HetAKE uses KEMs and signature schemes as black-box components alongside hash functions. This modular design allows either variant to use standardized post-quantum algorithms such as ML-KEM and ML-DSA. In both variants, the signing peer sends its signature together with a ciphertext for the other peer's long-term KEM key. When the available credentials permit either role assignment, a deployment can choose the variant and algorithms to suit each peer's processing capacity and outbound bandwidth.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 30 May 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
Migration to post-quantum cryptography may proceed at different rates across deployments [RFC9958]. During this transition, a peer may hold a long-term signature credential, a long-term credential for a key encapsulation mechanism (KEM), or both. If the peers have no credential type in common, at least one must obtain an additional credential to use a handshake that requires the same type on both sides. With KEM-based authentication on one side and signature-based authentication on the other, the peers can establish a shared key using the credentials they already hold.¶
This document specifies Heterogeneous Authenticated Key Exchange (HetAKE) [HETAKE-PAPER], a two-message authenticated key exchange (AKE) for these peers. Given each other's authenticated long-term public keys, the peers establish a shared session key with mutual implicit authentication. HetAKE defines two variants so that either credential holder can initiate the exchange. In KEM-SIG, the initiator uses a KEM credential and the responder uses a signature credential. SIG-KEM reverses this assignment.¶
This role assignment affects both the work each peer performs and the number of bytes it sends. The signing peer sends its signature together with a ciphertext for the other peer's long-term KEM key. These fields travel in the responder's reply in KEM-SIG and in the initiator's first message in SIG-KEM. For some post-quantum signature implementations, signing requires substantially more computation or memory than verification [PQM4]. When the available credentials permit either assignment, a deployment can choose the variant and algorithms to suit each peer's processing capacity and outbound bandwidth. Appendix A gives operation counts and message lengths for each role, with measurements for one example instantiation.¶
Mixed KEM and signature credentials also arise in proposals for specific secure-channel protocols. The TLS AuthKEM draft raises signature-based client authentication with a KEM-authenticated server as an open question [I-D.celi-wiggers-tls-authkem]. A proposed extension to Ephemeral Diffie-Hellman Over COSE (EDHOC) defines such combinations for constrained environments [I-D.pocero-lake-authkemsig-edhoc]. HetAKE supports those assignments in a two-message exchange defined independently of any particular secure-channel protocol.¶
An AKE designed for post-quantum migration should accommodate changes in cryptographic algorithms as standards evolve [RFC7696]. Modular AKE designs separate these algorithm choices from the structure of the exchange [MODULAR-AKE]. Both HetAKE variants use KEMs and signature schemes as black-box components alongside hash functions, with interface and security requirements defined in Section 3. Deployments can therefore reuse implementations of standardized primitives such as ML-KEM [FIPS203] and ML-DSA [FIPS204]. They can later replace either algorithm while retaining the same two-message construction.¶
The security proofs for KEM-SIG and SIG-KEM establish session-key indistinguishability against active attackers in the quantum random oracle model (QROM) [HETAKE-PAPER]. The proofs use the two-message AKE models of [HKSU2020], which allow an attacker to learn long-term private keys and retained session state in specified combinations. Section 5 explains which combinations each construction covers.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
The pseudocode uses = for assignment and == for equality tests.
In a tuple assignment, each variable on the left receives the value
in the corresponding position on the right. The expression x || y
denotes the concatenation of the byte strings x and y.¶
The suffixes I and R refer to the initiator and responder,
respectively. The suffix E identifies values associated with the
ephemeral KEM key pair. Section 4.1 defines the individual
session variables.¶
This section defines the interfaces and security requirements for the KEMs, signature scheme, and hash functions used by HetAKE.¶
KEM denotes the mechanism used with the long-term KEM key pair, and
wKEM denotes the mechanism used with the initiator's ephemeral key
pair. Both provide the following operations, shown here for KEM.¶
KEM.KeyGen() returns a public key pk and a secret key sk as
(pk, sk).¶
KEM.Encaps(pk) encapsulates to pk and returns a ciphertext ct
and a shared secret k as (ct, k).¶
KEM.Decaps(sk, ct) decapsulates ct using sk and returns a
shared secret or reports an error.¶
KeyGen() and Encaps(pk) are randomized. Decapsulation is
deterministic. If encapsulation to pk produces (ct, k),
decapsulation of ct with the corresponding sk recovers k except
with the selected KEM's decapsulation-failure probability.¶
For the long-term KEM, HetAKE requires indistinguishability under
chosen-ciphertext attack (IND-CCA). For the ephemeral wKEM,
indistinguishability under chosen-plaintext attack (IND-CPA)
suffices. An instantiation can therefore use the same IND-CCA-secure
algorithm and parameter set for both, with independently generated
long-term and ephemeral key pairs.¶
The KEM operations perform the input checks required by their respective specifications. If decapsulation reports an error, the error-handling rule in Section 4.1 applies. If decapsulation returns a shared secret, HetAKE uses that value in key derivation without testing whether the KEM performed implicit rejection.¶
In SIG-KEM, the initiator regenerates its ephemeral KEM key pair when processing the response in the same session. The ephemeral KEM must therefore support wKEM.KeyGen(coins), a deterministic form of key generation that takes all its randomness from coins. For coins sampled uniformly from the KEM's randomness space R, this operation must produce the same key-pair distribution as wKEM.KeyGen().¶
Several KEMs already separate seed sampling from deterministic key
generation. ML-KEM passes two 32-byte seeds to
ML-KEM.KeyGen_internal(d, z) [FIPS203], and FrodoKEM passes three
seeds to KeyGenInternal(s, seedSE, z) [I-D.longa-cfrg-frodokem].
If a library exposes the seeded routine, SIG-KEM can call it directly
with the seed inputs taken from coins. A library that exposes only
KeyGen() can add a separate entry point that takes those inputs from
coins and calls the same internal routine.¶
Both HetAKE constructions require a signature scheme SIG that is
existentially unforgeable under chosen-message attack (EUF-CMA).
The scheme provides the following operations.¶
SIG.KeyGen() returns a public verification key pk and a secret
signing key sk as (pk, sk).¶
SIG.Sign(sk, m) signs the byte string m with sk and returns
the signature sig. Signing follows the randomness requirements
of the selected scheme.¶
SIG.Verify(pk, m, sig) verifies sig on m using pk and
returns accept or reject. Verification is deterministic and
includes the public key and signature checks specified by the
scheme.¶
Both HetAKE variants use H to derive the session key from public values and the two KEM shared secrets. The constructions in Section 4 specify these inputs and their order, and Section 4.1.1 gives their encoding conventions. The resulting key lies in the session-key space Y specified by the instantiation.¶
SIG-KEM also uses G to derive the coins for ephemeral KEM key generation. The initiator samples r uniformly from the randomness space R of wKEM and computes coins = G(sk, r) using the bytes of its signing secret key sk. To regenerate the ephemeral key pair when processing the response, the initiator MUST evaluate G with the same r and the same byte representation of sk.¶
The security analysis in Section 5 models H as a random oracle with uniform outputs in Y. For SIG-KEM, it also models G as an independent random oracle with uniform outputs in R. Each instantiation specifies the hash or extendable-output functions and output lengths appropriate to its target security strength. If H or G shares an underlying function with another use in HetAKE or in a component algorithm, those uses MUST be domain-separated. Any conversion of the underlying output to Y or R MUST preserve uniformity over the target space.¶
KEM-SIG and SIG-KEM each use two messages, one from the initiator and one in reply from the responder. The responder derives its session key when preparing the reply, and the initiator derives its session key when processing it.¶
In both constructions, each party uses its own long-term key pair and a long-term public key authenticated as belonging to its intended peer. Each construction name lists the initiator's long-term key type first and the responder's second. In KEM-SIG, the initiator uses a KEM key and the responder uses a signature key. In SIG-KEM, the initiator uses a signature key and the responder uses a KEM key.¶
In both variants, KEM denotes the key encapsulation
mechanism used with the long-term KEM key pair, and wKEM denotes
the mechanism used with the initiator's ephemeral key pair. Both variants use SIG for signatures and H for session-key derivation.
SIG-KEM also uses G to derive the randomness for ephemeral key
generation. Section 3 specifies the interfaces and
requirements for these components.¶
The initiator's long-term key pair is (pkI, skI), and the
responder's is (pkR, skR). Each peer uses its own key pair and
a long-term public key authenticated as belonging to its intended
peer.¶
The algorithms use the following session values:¶
(pkE, skE) is the initiator's ephemeral KEM key pair.¶
(ctE, kE) is the ciphertext and shared secret produced by
encapsulating to pkE.¶
(ctI, kI) is the ciphertext and shared secret produced by
encapsulating to pkI in KEM-SIG.¶
(ctR, kR) is the ciphertext and shared secret produced by
encapsulating to pkR in SIG-KEM.¶
sig is the signature carried in the exchange.¶
stateI is the local state the initiator saves during initiation
to process the responder's reply.¶
keyI and keyR are the session keys derived by the initiator
and responder, respectively.¶
Messages are shown as ordered sequences of fields. The message
fields and the inputs to signing, H, and G use the encoding
rules in Section 4.1.1. To derive the session key, both peers apply
H to the public transcript and the two KEM shared secrets. The
transcript begins with prefix, followed by pkI and pkR in
that order, and includes the fields of both messages.¶
Each invocation of an initiation algorithm starts a new session.
When processing the reply, the caller supplies the stateI
associated with that session's long-term public keys and parameters.
It supplies the initiator's long-term secret key skI separately.
The caller MUST use stateI in at most one completion attempt.
That attempt consumes stateI whether it returns a key or an error.
When the attempt ends, or if the initiator abandons the session,
the initiator erases the secrets in stateI and any remaining
temporary secrets.¶
The responder runs the response algorithm to prepare the reply and derive its session key keyR. It then erases its temporary secrets and returns both outputs to the caller.¶
If an algorithm cannot decode a message, a required validation check
fails, or a component operation reports an error, the algorithm
erases any temporary secrets it has generated and returns only
error. It releases neither a session key nor an outgoing message.¶
Each instantiation specifies the byte representations of public keys, ciphertexts, signatures, shared secrets, and any explicit field lengths. Protocol messages MUST be encoded so that the receiver can determine where each field begins and ends.¶
Encode(x1, ..., xn) combines the listed fields in order into a byte string. For inputs to signing, H, or G, that byte string MUST uniquely determine the ordered sequence of field values.¶
Both peers locally construct the following public prefix for signing, verification, and session-key derivation.¶
prefix = label || 0x00 || suite_id || 0x00¶
The label is the ASCII string HetAKE-v1/KEM-SIG for KEM-SIG or HetAKE-v1/SIG-KEM for SIG-KEM. Each 0x00 denotes one zero byte.¶
The suite_id is a nonempty, case-sensitive printable ASCII string specified by the instantiation. It uniquely identifies the suite's algorithms (KEM, wKEM, SIG, H, and, for SIG-KEM, G) and their parameters, output lengths, and encodings.¶
In the algorithms, H(prefix, x1, ..., xn) denotes H applied to the byte string prefix || Encode(x1, ..., xn). The KEM-SIG and SIG-KEM message-flow diagrams use ctx as shorthand for the ordered public inputs to H, beginning with prefix.¶
In KEM-SIG, the initiator uses a long-term KEM key pair and the responder uses a long-term signature key pair. The initiator sends a fresh ephemeral KEM public key pkE. The responder encapsulates to pkE and to the initiator's long-term public key pkI, producing ciphertexts ctE and ctI, respectively. It returns both ciphertexts with its signature. The initiator verifies the signature with the responder's public key pkR before decapsulating both ciphertexts.¶
Figure 1 shows the exchange. The responder signs sig_input, and both peers use ctx as the public inputs to session-key derivation. Both begin with the KEM-SIG prefix defined in Section 4.1.1.¶
sig_input = prefix || Encode(pkI, pkR, pkE, ctE, ctI) ctx = (prefix, pkI, pkR, pkE, ctE, ctI, sig)¶
Each peer derives its session key as H(ctx, kI, kE), where kI is the shared secret for the long-term key pkI and kE is the shared secret for the ephemeral key pkE.¶
Initiator I Responder R
KEM key (pkI, skI) SIG key (pkR, skR)
(pkE, skE) = wKEM.KeyGen()
stateI = (skE, pkE)
message_1: pkE
---------------------------------------------->
(ctE, kE) =
wKEM.Encaps(pkE)
(ctI, kI) =
KEM.Encaps(pkI)
sig = SIG.Sign(skR,
sig_input)
keyR = H(ctx, kI, kE)
message_2: ctE, ctI, sig
<----------------------------------------------
Verify sig on sig_input using pkR
kE = wKEM.Decaps(skE, ctE)
kI = KEM.Decaps(skI, ctI)
keyI = H(ctx, kI, kE)
The initiator generates a fresh ephemeral KEM key pair and uses its
public key pkE as the entire first message. It can therefore prepare
this message before selecting a responder. The initiator retains (skE, pkE) in stateI. When processing the response, it uses pkE to reconstruct sig_input and ctx, and skE to decapsulate ctE.¶
KEMSIG_Init() returns the first message and the retained state.¶
KEMSIG_Init():
(pkE, skE) = wKEM.KeyGen()
message_1 = pkE
stateI = (skE, pkE)
return (message_1, stateI)
¶
KEMSIG_Respond(pkI, pkR, skR, message_1) takes the initiator's
authenticated long-term KEM public key, the responder's long-term
signature key pair, and the first message. It returns the response
and the responder's session key.¶
KEMSIG_Respond(pkI, pkR, skR, message_1):
pkE = message_1
(ctE, kE) = wKEM.Encaps(pkE)
(ctI, kI) = KEM.Encaps(pkI)
sig_input = prefix || Encode(pkI, pkR, pkE, ctE, ctI)
sig = SIG.Sign(skR, sig_input)
message_2 = (ctE, ctI, sig)
ctx = (prefix, pkI, pkR, pkE, ctE, ctI, sig)
keyR = H(ctx, kI, kE)
return (message_2, keyR)
¶
KEMSIG_Finalize(pkI, skI, pkR, message_2, stateI) takes the initiator's
long-term KEM key pair, the responder's authenticated signature public
key, the response, and the state returned by KEMSIG_Init().¶
The initiator uses the retained pkE to reconstruct sig_input and
verifies the signature with the responder's public key pkR. If
verification succeeds, it decapsulates ctE with skE and ctI
with skI, then derives its session key.¶
KEMSIG_Finalize(pkI, skI, pkR, message_2, stateI):
(ctE, ctI, sig) = message_2
(skE, pkE) = stateI
sig_input = prefix || Encode(pkI, pkR, pkE, ctE, ctI)
if SIG.Verify(pkR, sig_input, sig) == reject:
return error
kE = wKEM.Decaps(skE, ctE)
kI = KEM.Decaps(skI, ctI)
ctx = (prefix, pkI, pkR, pkE, ctE, ctI, sig)
keyI = H(ctx, kI, kE)
return keyI
¶
In SIG-KEM, the initiator uses a long-term signature key pair and the
responder uses a long-term KEM key pair. The initiator encapsulates to
the responder's long-term public key pkR, producing ciphertext ctR.
It sends a fresh ephemeral KEM public key pkE, ctR, and its
signature. The responder verifies the signature with the initiator's
public key pkI. It encapsulates to pkE to produce ctE,
decapsulates ctR, and returns ctE. The initiator regenerates its
ephemeral key pair and decapsulates ctE.¶
Figure 2 shows the exchange. The initiator signs sig_input
when preparing the first message. For session-key derivation, both
peers use ctx, which also includes the responder's ciphertext ctE
and the initiator's signature sig. Both sig_input and ctx begin
with the SIG-KEM prefix defined in Section 4.1.1.¶
sig_input = prefix || Encode(pkI, pkR, pkE, ctR) ctx = (prefix, pkI, pkR, pkE, ctE, ctR, sig)¶
Each peer derives its session key as H(ctx, kR, kE), where kR
is the shared secret for the responder's long-term key pkR and kE
is the shared secret for the initiator's ephemeral key pkE.¶
Initiator I Responder R
SIG key (pkI, skI) KEM key (pkR, skR)
r = Random(R)
coins = G(skI, r)
(pkE, skE) = wKEM.KeyGen(coins)
(ctR, kR) = KEM.Encaps(pkR)
sig = SIG.Sign(skI, sig_input)
stateI = (r, kR, ctR, sig)
Erase coins and skE
message_1: pkE, ctR, sig
---------------------------------------------->
Verify sig on sig_input
using pkI
(ctE, kE) =
wKEM.Encaps(pkE)
kR = KEM.Decaps(skR, ctR)
keyR = H(ctx, kR, kE)
message_2: ctE
<----------------------------------------------
coins = G(skI, r)
(pkE, skE) = wKEM.KeyGen(coins)
kE = wKEM.Decaps(skE, ctE)
keyI = H(ctx, kR, kE)
The initiator samples a fresh value r uniformly from R and generates
its ephemeral KEM key pair using G(skI, r). It retains r so that it
can reconstruct the same key pair when the response arrives. This
allows the ephemeral secret key to be erased while the initiator waits
for the response. Reconstruction requires both r and the long-term
signing key. Section 5.3 explains how this protects
against disclosure of the retained state.¶
SIGKEM_Init(pkI, skI, pkR) takes the initiator's long-term signature key pair and the responder's authenticated long-term KEM public key. It returns the first message and the retained state.¶
SIGKEM_Init(pkI, skI, pkR):
r = Random(R)
coins = G(skI, r)
(pkE, skE) = wKEM.KeyGen(coins)
(ctR, kR) = KEM.Encaps(pkR)
sig_input = prefix || Encode(pkI, pkR, pkE, ctR)
sig = SIG.Sign(skI, sig_input)
message_1 = (pkE, ctR, sig)
stateI = (r, kR, ctR, sig)
return (message_1, stateI)
¶
Before returning, the initiator MUST erase coins and skE. The
retained state contains r for reconstructing the ephemeral key pair
and kR for session-key derivation, together with the ciphertext and
the exact signature sent in the first message.¶
SIGKEM_Respond(pkI, pkR, skR, message_1) takes the initiator's
authenticated signature public key, the responder's long-term KEM
key pair, and the first message. It returns the response and the
responder's session key.¶
The responder verifies the signature before performing the KEM
operations. It then obtains kE by encapsulating to pkE and recovers
kR by decapsulating ctR with its long-term secret key.¶
SIGKEM_Respond(pkI, pkR, skR, message_1):
(pkE, ctR, sig) = message_1
sig_input = prefix || Encode(pkI, pkR, pkE, ctR)
if SIG.Verify(pkI, sig_input, sig) == reject:
return error
(ctE, kE) = wKEM.Encaps(pkE)
kR = KEM.Decaps(skR, ctR)
message_2 = ctE
ctx = (prefix, pkI, pkR, pkE, ctE, ctR, sig)
keyR = H(ctx, kR, kE)
return (message_2, keyR)
¶
SIGKEM_Finalize(pkI, skI, pkR, message_2, stateI) takes the
initiator's long-term signature key pair, the responder's authenticated
long-term KEM public key, the response, and the state returned by
SIGKEM_Init().¶
The initiator recomputes G(skI, r) using the same signing-key
representation and the value r retained during initiation. The
deterministic key-generation interface reproduces the original
(pkE, skE). The initiator then decapsulates ctE to recover kE
and derives the session key using kR, ctR, and the exact signature
from the retained state.¶
SIGKEM_Finalize(pkI, skI, pkR, message_2, stateI):
ctE = message_2
(r, kR, ctR, sig) = stateI
coins = G(skI, r)
(pkE, skE) = wKEM.KeyGen(coins)
kE = wKEM.Decaps(skE, ctE)
ctx = (prefix, pkI, pkR, pkE, ctE, ctR, sig)
keyI = H(ctx, kR, kE)
return keyI
¶
HetAKE aims to establish a shared session key with mutual authentication even when an attacker controls message delivery. The models in [HKSU2020] require a completed session's key to be computationally indistinguishable from a uniformly random key to that attacker. The attacker may learn long-term private keys or the state an initiator keeps while waiting for a reply. Which disclosures are allowed depends in part on whether the intended peer completed the same exchange.¶
A party completes its session when it derives its session key. A completed initiator session and a completed responder session match if each party identifies the other as its peer and both record the same first and second messages. If the responder's reply is lost, for example, the responder completes without a matching initiator session.¶
The attacker selects a completed session to test. It may obtain
session keys from other sessions except those that match the session
under test. If the attacker learns the state an initiator retained
between messages (stateI) for the session under test or a matching
session, that initiator's long-term private key must remain undisclosed.
If the session under test has no match, the intended peer's long-term
private key must remain undisclosed even after the session completes.¶
These disclosure rules apply to indistinguishability against active
attacks (IND-AA) and its restricted variant (IND-StAA), both defined
in [HKSU2020]. The two models permit the same disclosures for
matching sessions. They differ when the session under test is an
initiator session with no matching responder session. In that case,
IND-AA permits disclosure of stateI if both parties' long-term
private keys remain secret. IND-StAA excludes that disclosure.
The QROM proofs in [HETAKE-PAPER] establish IND-AA security for
KEM-SIG and IND-StAA security for SIG-KEM.¶
Session-key secrecy. Under the disclosure conditions for each construction in Section 5.1, the key of a completed session is computationally indistinguishable from a uniformly random key.¶
Authentication. Both constructions provide mutual implicit authentication using the peers' authenticated long-term public keys. The party with the long-term KEM key verifies its peer's signature on handshake values that include the initiator's ephemeral public key. The signing party encapsulates a shared secret to its peer's long-term KEM public key and uses that secret in session-key derivation. Each party thus has assurance that only its intended peer could also derive the session key. The exchange ends with the responder's reply, so the responder receives no confirmation that the initiator derived the same key.¶
Resistance to key-compromise impersonation (KCI). Disclosure of a
party's long-term private key alone does not allow an attacker to
impersonate its peer to that party and establish a session key known
to the attacker. If the signing key is disclosed, the attacker still
lacks the shared secret that the signing party encapsulates to its
peer. If the long-term KEM private key is disclosed, the KEM key
holder still verifies the peer's signature covering the initiator's
ephemeral public key, and the disclosed key alone does not reveal the
ephemeral KEM shared secret kE.¶
Weak forward secrecy. Once both peers complete matching sessions
and erase their temporary secrets, later disclosure of both long-term
private keys does not reveal the session key, provided the initiator's
retained state was never disclosed. In both constructions, the
attacker still lacks kE, which is needed to derive the session key.¶
Resilience to session-state disclosure. In a matching exchange,
both constructions protect the session key even if the attacker learns
both the initiator's retained state (stateI) and the responder's
long-term private key, provided the initiator's long-term private key
remains secret. Under these disclosures, kI remains secret in
KEM-SIG and kE remains secret in SIG-KEM, as explained in
Section 5.3.¶
When a completed initiator session has no matching responder session, the intended
responder's long-term private key must remain secret. SIG-KEM's
IND-StAA guarantee protects the initiator's session key when stateI
remains undisclosed. KEM-SIG's IND-AA guarantee protects the session
key even if stateI is disclosed, provided the initiator's long-term
private key remains secret.¶
Cryptographic assumptions. The properties above rely on IND-CCA
security for the long-term KEM, IND-CPA security for the ephemeral
wKEM, and EUF-CMA security for SIG (Section 3). For
post-quantum security, these assumptions must hold against quantum
attackers. The QROM proofs in [HETAKE-PAPER] model H as a random
oracle in both constructions and G as an independent random oracle
in SIG-KEM.¶
Only the initiator retains handshake state (stateI) between messages.
This state includes any intermediate secrets the initiator keeps for
processing the reply.¶
In KEM-SIG, the initiator retains (skE, pkE). In a matching
exchange, disclosure of this state lets the attacker use skE to
recover the ephemeral shared secret kE from the reply. Even if the
attacker also learns the responder's signing key, the other shared
secret, kI, still protects the session key as long as the
initiator's long-term KEM private key remains secret.¶
If the KEM-SIG initiator completes without a matching responder
session, IND-AA permits disclosure of stateI when both long-term
private keys remain secret (Section 5.1). The initiator
verifies the responder's signature binding both ciphertexts, ctE
and ctI, to pkE. To replace ctI with a ciphertext it generated
itself, the attacker would need a valid responder signature covering
the replacement. The exposed skE lets the attacker recover kE,
but the initiator's long-term KEM private key still protects kI
and hence the session key.¶
In SIG-KEM, the initiator retains (r, kR, ctR, sig). In a matching
exchange, disclosure of this state reveals kR, leaving kE to
protect the session key. If the initiator also retained skE or the
coins used to generate it, the attacker could recover kE from the
reply and derive the session key. The initiator therefore erases both
values before sending the first message (Section 4.3.1). When the
reply arrives, it uses its signing key skI and the retained r to
recompute coins = G(skI, r) and regenerate skE
(Section 4.3.3). As long as skI remains secret, an attacker
who learns both stateI and the responder's long-term private key
cannot regenerate skE to recover kE from the reply.¶
If the SIG-KEM initiator completes without a matching responder
session, IND-StAA requires stateI and the responder's long-term
private key to remain undisclosed (Section 5.1). Before
sending its first message, the initiator obtains kR by
encapsulating to the responder's long-term KEM public key. Even if
the attacker knows kE for the reply, it still lacks kR, so the
session key remains indistinguishable from a uniformly random key.¶
This document has no IANA actions.¶
This appendix summarizes the costs to each peer in the constructions specified in Section 4 and gives representative measurements for both. The operation counts and message lengths help implementers estimate each peer's costs for any choice of primitives that meets the requirements in Section 3. Measurements with ML-KEM and ML-DSA illustrate how those costs shift between the peers. Across all three parameter-set pairs tested, the initiator took less time and sent fewer bytes with KEM-SIG. The responder gained both advantages with SIG-KEM.¶
Table 1 gives the number of cryptographic operations
each peer performs in a successful exchange. The initiator (I)
column covers both initiation and completion, and the responder (R)
column covers preparation of the reply. The counts exclude long-term
key generation. The H and G rows count calls made directly by
HetAKE.¶
| Operation | KEM-SIG I | KEM-SIG R | SIG-KEM I | SIG-KEM R |
|---|---|---|---|---|
wKEM.KeyGen
|
1 | 0 | 2 | 0 |
wKEM.Encaps
|
0 | 1 | 0 | 1 |
wKEM.Decaps
|
1 | 0 | 1 | 0 |
KEM.Encaps
|
0 | 1 | 1 | 0 |
KEM.Decaps
|
1 | 0 | 0 | 1 |
SIG.Sign
|
0 | 1 | 1 | 0 |
SIG.Verify
|
1 | 0 | 0 | 1 |
H
|
1 | 1 | 1 | 1 |
G
|
0 | 0 | 2 | 0 |
In both constructions, the peer that signs also encapsulates to the other peer's long-term KEM public key. The responder takes this role in KEM-SIG, and the initiator takes it in SIG-KEM. The peer with the long-term KEM key verifies the signature and decapsulates the resulting ciphertext.¶
The SIG-KEM initiator calls G and wKEM.KeyGen(coins) twice each. Keeping the ephemeral secret key between messages would save the second call to each function. However, the initiator's retained state already contains one KEM shared secret. If the initiator also kept the ephemeral secret key or coins, an attacker who obtained that state could recover the other shared secret from the reply and derive the session key. To prevent this exposure, the initiator erases coins
and the ephemeral secret key before sending the first message and regenerates the key pair when the reply arrives (Section 5.3, Section 4.3.3).¶
In both constructions, the initiator sends the ephemeral KEM public key (P bytes) in the first message, and the responder sends a ciphertext for that key (CE bytes) in the reply. The peer that signs also sends two fields in its message: a ciphertext for the other peer's long-term KEM public key (CS bytes) and the signature (S bytes). If signatures vary in length, S is the length of the signature sent in that exchange.¶
Table 2 gives the combined length of the fields in each message specified in Section 4. The counts exclude credential transport and any additional encoding or transport overhead.¶
| Construction | First message | Second message |
|---|---|---|
| KEM-SIG |
P
|
CE + CS + S
|
| SIG-KEM |
P + CS + S
|
CE
|
The total is P + CE + CS + S in either construction. With the same algorithms and fixed field lengths, switching from KEM-SIG to SIG-KEM moves CS + S bytes from the responder's reply to the initiator's first message without changing the total.¶
To illustrate how the choice of variant affects each peer, we measured local computation time and bytes sent for three pairs of ML-KEM and ML-DSA parameter sets. For each pair, the implementation uses ML-KEM [FIPS203] for the long-term KEM, its CPA-secure variant at the same parameter set for the ephemeral wKEM, and ML-DSA [FIPS204] for SIG. For all three parameter-set pairs, we used SHAKE256 [FIPS202] for H in both variants and for G in SIG-KEM. Measurements for classical and mixed classical/post-quantum instantiations and comparisons with homogeneous AKE constructions are available in [HETAKE-PAPER].¶
We compiled both HetAKE variants in C with GCC 14.2.0, using liboqs for the post-quantum primitives. We ran the benchmarks on an Intel Core i7-1360P at 2.2 GHz under Ubuntu 24.04.¶
Each time in Table 3 is the mean over 100,000 runs.
The initiator's time (I time) covers initiation and completion,
and the responder's time (R time) covers the response. The byte
counts give the total length of the message fields each peer sends,
as defined in Appendix A.2.¶
| ML-KEM | ML-DSA | Variant | I time | R time | I bytes | R bytes |
|---|---|---|---|---|---|---|
| 512 | 44 | KEM-SIG | 48.50 | 78.04 | 800 | 3956 |
| 512 | 44 | SIG-KEM | 91.85 | 47.20 | 3988 | 768 |
| 768 | 65 | KEM-SIG | 84.21 | 125.89 | 1184 | 5485 |
| 768 | 65 | SIG-KEM | 147.78 | 73.07 | 5581 | 1088 |
| 1024 | 87 | KEM-SIG | 123.73 | 177.37 | 1568 | 7763 |
| 1024 | 87 | SIG-KEM | 202.76 | 118.12 | 7763 | 1568 |
Across all three parameter-set pairs tested, the peer with the long-term KEM credential spent less time computing and sent fewer bytes than the signing peer. In KEM-SIG, the initiator had this advantage and took 39% to 47% less time than it did in SIG-KEM. In SIG-KEM, the responder had this advantage and took 33% to 42% less time than it did in KEM-SIG. With ML-KEM-768 and ML-DSA-65, for example, switching from KEM-SIG to SIG-KEM shortened the reply by 4,397 bytes and lengthened the first message by the same amount.¶
This work was supported in part by the National Key Research and Development Program of China (2025YFE0218100).¶