Javascript Object Signing and Encryption T. Reddy Internet-Draft Nokia Intended status: Standards Track H. Tschofenig Expires: 4 June 2027 UniBw M. 1 December 2026 Hamming Quasi-Cyclic (HQC) Algorithms for JOSE HPKE draft-reddy-jose-hpke-hqc-00 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. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. Reddy & Tschofenig Expires 4 June 2027 [Page 1] Internet-Draft HQC for JOSE HPKE December 2026 This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. 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. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Conventions and Definitions . . . . . . . . . . . . . . . . . 3 3. Algorithm Identifiers . . . . . . . . . . . . . . . . . . . . 3 3.1. Integrated Encryption . . . . . . . . . . . . . . . . . . 3 3.2. Key Encryption . . . . . . . . . . . . . . . . . . . . . 4 4. JSON Web Key Representation . . . . . . . . . . . . . . . . . 4 5. Encapsulated Secret Lengths . . . . . . . . . . . . . . . . . 5 6. Security Considerations . . . . . . . . . . . . . . . . . . . 5 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 6 8. References . . . . . . . . . . . . . . . . . . . . . . . . . 7 8.1. Normative References . . . . . . . . . . . . . . . . . . 7 8.2. Informative References . . . . . . . . . . . . . . . . . 8 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 9 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 9 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. 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. Reddy & Tschofenig Expires 4 June 2027 [Page 2] Internet-Draft HQC for JOSE HPKE December 2026 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]. Reddy & Tschofenig Expires 4 June 2027 [Page 3] Internet-Draft HQC for JOSE HPKE December 2026 +==================+=============+ | "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 | +------------------+-------------+ Table 1: HQC Integrated Encryption algorithms 3.2. Key Encryption 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 | +---------------------+-------------+ Table 2: HQC Key Encryption algorithms 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. Reddy & Tschofenig Expires 4 June 2027 [Page 4] Internet-Draft HQC for JOSE HPKE December 2026 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. +=============+================+==============================+ | 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 | +-------------+----------------+------------------------------+ Table 3: Public key and encapsulated secret lengths 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]. Reddy & Tschofenig Expires 4 June 2027 [Page 5] Internet-Draft HQC for JOSE HPKE December 2026 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]. +=====================+=============================================+ | 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 | Reddy & Tschofenig Expires 4 June 2027 [Page 6] Internet-Draft HQC for JOSE HPKE December 2026 +---------------------+---------------------------------------------+ | 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 | +---------------------+---------------------------------------------+ Table 4: JOSE algorithm registrations 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 * Algorithm Analysis Document(s): [HQC-HPKE] 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, 28 October 2026, . [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, 14 October 2026, . Reddy & Tschofenig Expires 4 June 2027 [Page 7] Internet-Draft HQC for JOSE HPKE December 2026 [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, 6 July 2026, . [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, 25 October 2026, . [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, 6 July 2026, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC7516] Jones, M. and J. Hildebrand, "JSON Web Encryption (JWE)", RFC 7516, DOI 10.17487/RFC7516, May 2015, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [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, May 2026, . 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, 14 October 2026, . Reddy & Tschofenig Expires 4 June 2027 [Page 8] Internet-Draft HQC for JOSE HPKE December 2026 [RFC7518] Jones, M., "JSON Web Algorithms (JWA)", RFC 7518, DOI 10.17487/RFC7518, May 2015, . [RFC9794] Driscoll, F., Parsons, M., and B. Hale, "Terminology for Post-Quantum Traditional Hybrid Schemes", RFC 9794, DOI 10.17487/RFC9794, June 2025, . [RFC9958] Banerjee, A., Reddy.K, T., Schoinianakis, D., Hollebeek, T., and M. Ounsworth, "Post-Quantum Cryptography for Engineers", RFC 9958, DOI 10.17487/RFC9958, June 2026, . Acknowledgments TBD. Authors' Addresses Tirumaleswar Reddy Nokia Bangalore Karnataka India Email: kondtir@gmail.com Hannes Tschofenig University of the Bundeswehr Munich 85577 Neubiberg Germany Email: hannes.tschofenig@gmx.net Reddy & Tschofenig Expires 4 June 2027 [Page 9]