| Internet-Draft | HQC for JOSE HPKE | December 2026 |
| Reddy & Tschofenig | Expires 4 June 2027 | [Page] |
This document registers JSON Web Encryption (JWE) algorithms that use Hybrid Public Key Encryption (HPKE) with Hamming Quasi-Cyclic (HQC) key encapsulation. It covers HQC alone and PQ/T hybrid HQC KEMs, each with SHAKE256 key derivation and AES-256-GCM authenticated encryption. It defines algorithms for Integrated Encryption and Key Encryption and requests twelve JOSE algorithm registrations.¶
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 4 June 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. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
[JOSE-HPKE] defines the use of HPKE [HPKE] with JWE [RFC7516] in two modes, Integrated Encryption and Key Encryption. [JOSE-PQ] adds algorithms for the ML-KEM and ML-KEM PQ/T hybrid KEMs of [PQ-HPKE].¶
This document adds algorithms for the KEMs of [HQC-HPKE]: HQC-1, HQC-3, and HQC-5, and the PQ/T hybrid [RFC9794] KEMs HQC3-P256, HQC3-X25519, and HQC5-P384. Each KEM is combined with the SHAKE256 KDF of [PQ-HPKE] and AES-256-GCM. The approach follows [JOSE-PQ].¶
This document does not change the JWE processing of [JOSE-HPKE]. [COSE-HQC] defines the corresponding COSE algorithms.¶
Editor's note: This document follows the HQC specification of 2025-08-22. Align it with FIPS 207 when published. Remove this note before publication.¶
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 terms Integrated Encryption, Key Encryption, and encapsulated secret are used as defined in [JOSE-HPKE]. The term PQ/T hybrid is used as defined in [RFC9794].¶
Each algorithm identifies one HPKE KEM, KDF, and AEAD, and one JWE mode. Implementations MUST NOT substitute another KEM, KDF, or AEAD under the same algorithm identifier.¶
For every algorithm, the HPKE KDF is SHAKE256 (0x0011) as defined in [PQ-HPKE], and the HPKE AEAD is AES-256-GCM (0x0002) as defined in [HPKE]. The HPKE KEM ID is the value assigned to the KEM by [HQC-HPKE].¶
SHAKE256 is selected because HQC-KEM uses SHAKE256 internally. This is the same rationale as [JOSE-PQ] for ML-KEM.¶
The algorithm names are the same as the COSE algorithm names in [COSE-HQC].¶
The algorithms in Table 1 use Integrated Encryption as defined in Section 5 of [JOSE-HPKE].¶
| "alg" | HPKE KEM |
|---|---|
| HPKE-HQC-1 | HQC-1 |
| HPKE-HQC-3 | HQC-3 |
| HPKE-HQC-5 | HQC-5 |
| HPKE-HQC3-P256 | HQC3-P256 |
| HPKE-HQC3-X25519 | HQC3-X25519 |
| HPKE-HQC5-P384 | HQC5-P384 |
The algorithms in Table 2 use Key Encryption as defined in Section 6 of [JOSE-HPKE].¶
| "alg" | HPKE KEM |
|---|---|
| HPKE-HQC-1-KE | HQC-1 |
| HPKE-HQC-3-KE | HQC-3 |
| HPKE-HQC-5-KE | HQC-5 |
| HPKE-HQC3-P256-KE | HQC3-P256 |
| HPKE-HQC3-X25519-KE | HQC3-X25519 |
| HPKE-HQC5-P384-KE | HQC5-P384 |
Keys use the "AKP" key type of [RFC9964], as in [JOSE-PQ]. The "alg" parameter is REQUIRED and MUST identify one algorithm from Section 3.¶
The "pub" parameter contains the base64url-encoded output of SerializePublicKey. The "priv" parameter, for private keys, contains the base64url-encoded output of SerializePrivateKey. This is the 32-octet seed defined by [HQC-HPKE]. Expanded private keys MUST NOT be placed in "priv". When importing a private key, implementations MUST derive the public key from the seed in "priv" and reject the key if the result differs from "pub".¶
The KEM MUST be determined from "alg", not from the length of "pub".¶
In Integrated Encryption, the encapsulated secret is carried in the JWE Encrypted Key. In Key Encryption, it is carried in the "ek" header parameter. Table 3 gives the decoded lengths of "pub" and of the encapsulated secret. A recipient MUST reject an encapsulated secret of the wrong length before decapsulation.¶
| HPKE KEM | "pub" (octets) | Encapsulated secret (octets) |
|---|---|---|
| HQC-1 | 2241 | 4433 |
| HQC-3 | 4514 | 8978 |
| HQC-5 | 7237 | 14421 |
| HQC3-P256 | 4579 | 9043 |
| HQC3-X25519 | 4546 | 9010 |
| HQC5-P384 | 7334 | 14518 |
The security considerations of [HQC-HPKE], [JOSE-HPKE], and [JOSE-PQ] apply.¶
The PQ/T hybrid algorithms are intended to remain secure if either HQC or the elliptic-curve component remains secure. The HQC-only algorithms rely on HQC alone.¶
The PQ/T hybrid algorithms are RECOMMENDED, following Section 13.3.1 of [RFC9958].¶
When Key Encryption is used with multiple recipients, all recipients MUST use a quantum-resistant key management algorithm, as required by [JOSE-PQ].¶
IANA is requested to add the following twelve entries to the "JSON Web Signature and Encryption Algorithms" registry established by [RFC7518].¶
| Algorithm Name | Algorithm Description |
|---|---|
| HPKE-HQC-1 | Integrated Encryption with HPKE using HQC-1 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC-3 | Integrated Encryption with HPKE using HQC-3 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC-5 | Integrated Encryption with HPKE using HQC-5 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC3-P256 | Integrated Encryption with HPKE using HQC3-P256 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC3-X25519 | Integrated Encryption with HPKE using HQC3-X25519 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC5-P384 | Integrated Encryption with HPKE using HQC5-P384 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC-1-KE | Key Encryption with HPKE using HQC-1 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC-3-KE | Key Encryption with HPKE using HQC-3 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC-5-KE | Key Encryption with HPKE using HQC-5 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC3-P256-KE | Key Encryption with HPKE using HQC3-P256 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC3-X25519-KE | Key Encryption with HPKE using HQC3-X25519 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
| HPKE-HQC5-P384-KE | Key Encryption with HPKE using HQC5-P384 KEM, SHAKE256 KDF, and AES-256-GCM AEAD |
The following fields apply to every entry:¶
Algorithm Usage Location(s): "alg"¶
JOSE Implementation Requirements: Optional¶
Change Controller: IETF¶
Specification Document(s): Section 3.1 of this document for Integrated Encryption entries, Section 3.2 of this document for Key Encryption entries¶
TBD.¶