Internet-Draft HQC for JOSE HPKE December 2026
Reddy & Tschofenig Expires 4 June 2027 [Page]
Workgroup:
Javascript Object Signing and Encryption
Internet-Draft:
draft-reddy-jose-hpke-hqc-00
Published:
Intended Status:
Standards Track
Expires:
Authors:
T. Reddy
Nokia
H. Tschofenig
UniBw M.

Hamming Quasi-Cyclic (HQC) Algorithms for JOSE HPKE

Abstract

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.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 4 June 2027.

▲

Table of Contents

1. Introduction

[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.

2. Conventions and Definitions

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].

3. Algorithm Identifiers

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].

3.1. Integrated Encryption

The algorithms in Table 1 use Integrated Encryption as defined in Section 5 of [JOSE-HPKE].

Table 1: HQC Integrated Encryption algorithms
"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

3.2. Key Encryption

The algorithms in Table 2 use Key Encryption as defined in Section 6 of [JOSE-HPKE].

Table 2: HQC Key Encryption algorithms
"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

4. JSON Web Key Representation

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".

5. Encapsulated Secret Lengths

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.

Table 3: Public key and encapsulated secret lengths
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

6. Security Considerations

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].

7. IANA Considerations

IANA is requested to add the following twelve entries to the "JSON Web Signature and Encryption Algorithms" registry established by [RFC7518].

Table 4: JOSE algorithm registrations
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:

8. References

8.1. Normative References

[HPKE]
Barnes, R., Bhargavan, K., Lipp, B., and C. A. Wood, "Hybrid Public Key Encryption", Work in Progress, Internet-Draft, draft-ietf-hpke-hpke-06, , <https://datatracker.ietf.org/doc/html/draft-ietf-hpke-hpke-06>.
[HQC-HPKE]
Tschofenig, H. and T. Reddy.K, "Hamming Quasi-Cyclic (HQC) Key Encapsulation Mechanisms for Hybrid Public Key Encryption (HPKE)", Work in Progress, Internet-Draft, draft-reddy-hpke-hqc-01, , <https://datatracker.ietf.org/doc/html/draft-reddy-hpke-hqc-01>.
[JOSE-HPKE]
Reddy.K, T., Tschofenig, H., Banerjee, A., Steele, O., and M. B. Jones, "Use of Hybrid Public Key Encryption (HPKE) with JSON Web Encryption (JWE)", Work in Progress, Internet-Draft, draft-ietf-jose-hpke-encrypt-22, , <https://datatracker.ietf.org/doc/html/draft-ietf-jose-hpke-encrypt-22>.
[JOSE-PQ]
Skokan, F., Campbell, B., Tschofenig, H., and T. Reddy.K, "JOSE HPKE PQ & PQ/T Algorithm Registrations", Work in Progress, Internet-Draft, draft-ietf-jose-hpke-pq-pqt-02, , <https://datatracker.ietf.org/doc/html/draft-ietf-jose-hpke-pq-pqt-02>.
[PQ-HPKE]
Barnes, R. and D. Connolly, "Post-Quantum and Post-Quantum/Traditional Hybrid Algorithms for HPKE", Work in Progress, Internet-Draft, draft-ietf-hpke-pq-05, , <https://datatracker.ietf.org/doc/html/draft-ietf-hpke-pq-05>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC7516]
Jones, M. and J. Hildebrand, "JSON Web Encryption (JWE)", RFC 7516, DOI 10.17487/RFC7516, , <https://www.rfc-editor.org/rfc/rfc7516>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[RFC9964]
Prorock, M. and O. Steele, "ML-DSA for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE)", RFC 9964, DOI 10.17487/RFC9964, , <https://www.rfc-editor.org/rfc/rfc9964>.

8.2. Informative References

[COSE-HQC]
Tschofenig, H. and T. Reddy.K, "Hamming Quasi-Cyclic (HQC) Ciphersuites for COSE-HPKE", Work in Progress, Internet-Draft, draft-reddy-cose-hpke-hqc-00, , <https://datatracker.ietf.org/doc/html/draft-reddy-cose-hpke-hqc-00>.
[RFC7518]
Jones, M., "JSON Web Algorithms (JWA)", RFC 7518, DOI 10.17487/RFC7518, , <https://www.rfc-editor.org/rfc/rfc7518>.
[RFC9794]
Driscoll, F., Parsons, M., and B. Hale, "Terminology for Post-Quantum Traditional Hybrid Schemes", RFC 9794, DOI 10.17487/RFC9794, , <https://www.rfc-editor.org/rfc/rfc9794>.
[RFC9958]
Banerjee, A., Reddy.K, T., Schoinianakis, D., Hollebeek, T., and M. Ounsworth, "Post-Quantum Cryptography for Engineers", RFC 9958, DOI 10.17487/RFC9958, , <https://www.rfc-editor.org/rfc/rfc9958>.

Acknowledgments

TBD.

Authors' Addresses

Tirumaleswar Reddy
Nokia
Bangalore
Karnataka
India
Hannes Tschofenig
University of the Bundeswehr Munich
85577 Neubiberg
Germany