<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="rfc7991bis.rnc"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" consensus="true" docName="draft-liu-lamps-cmp-pqc-algorithms-01" ipr="trust200902" sortRefs="true" submissionType="IETF" symRefs="true" tocInclude="true" updates="9481" version="3" xml:lang="en">
  <front>
    <title abbrev="CMP PQ Certificate Confirmation">Certificate Confirmation Hash Algorithms for ML-DSA and SLH-DSA in CMP</title>
    <seriesInfo name="Internet-Draft" value="draft-liu-lamps-cmp-pqc-algorithms-01"/>
    <author fullname="Penghui Liu" initials="P." role="editor" surname="Liu">
      <organization>Pengcheng Laboratory</organization>
      <address>
        <postal>
          <street>No.2 Xingke 1 Street</street>
          <city>Shenzhen</city>
          <code>518055</code>
          <country>China</country>
        </postal>
        <email>liuph@pcl.ac.cn</email>
      </address>
    </author>
    <author fullname="Rongwei Yang" initials="R." role="editor" surname="Yang">
      <organization>Pengcheng Laboratory</organization>
      <address>
        <postal>
          <street>No.2 Xingke 1 Street</street>
          <city>Shenzhen</city>
          <code>518055</code>
          <country>China</country>
        </postal>
        <email>yangrw@pcl.ac.cn</email>
      </address>
    </author>
    <author fullname="Xiang Liu" initials="X." role="editor" surname="Liu">
      <organization>Pengcheng Laboratory</organization>
      <address>
        <postal>
          <street>No.2 Xingke 1 Street</street>
          <city>Shenzhen</city>
          <code>518055</code>
          <country>China</country>
        </postal>
        <email>liux15@pcl.ac.cn</email>
      </address>
    </author>
    <author fullname="Yu Zhang" initials="Y." role="editor" surname="Zhang">
      <organization>Pengcheng Laboratory</organization>
      <address>
        <postal>
          <street>No.2 Xingke 1 Street</street>
          <city>Shenzhen</city>
          <code>518055</code>
          <country>China</country>
        </postal>
        <email>zhangy08@pcl.ac.cn</email>
      </address>
    </author>
    <author fullname="Weizhe Zhang" initials="W." role="editor" surname="Zhang">
      <organization>Pengcheng Laboratory</organization>
      <address>
        <postal>
          <street>No.2 Xingke 1 Street</street>
          <city>Shenzhen</city>
          <code>518055</code>
          <country>China</country>
        </postal>
        <email>weizhe.zhang@pcl.ac.cn</email>
      </address>
    </author>
    <date year="2026" month="December" day="2"/>
    <area>Security</area>
    <workgroup>LAMPS</workgroup>
    <keyword>CMP</keyword>
    <keyword>certificate confirmation</keyword>
    <keyword>certConf</keyword>
    <keyword>ML-DSA</keyword>
    <keyword>SLH-DSA</keyword>
    <abstract>
      <t>This document updates RFC 9481 by specifying SHA-512 as the certificate-confirmation hash algorithm for certificates signed with ML-DSA or pure SLH-DSA when the optional hashAlg field is absent. It defines the applicable signature algorithm identifiers and follows the existing CMP processing of an explicit hashAlg. It does not select an algorithm suite for CMP or require support for a particular signature algorithm or parameter set.</t>
    </abstract>
    <note removeInRFC="true">
      <name>Discussion Status</name>
      <t>This is an individual contribution for discussion in the Limited Additional Mechanisms for PKIX and SMIME (LAMPS) Working Group. It has not been adopted by the working group. This revision isolates the certificate-confirmation hash mapping from the broader algorithm profile in revision -00. The proposed SHA-512 mapping remains subject to working group review.</t>
    </note>
  </front>
  <middle>
    <section anchor="introduction">
      <name>Introduction</name>
      <t>The Certificate Management Protocol (CMP) <xref target="RFC9810"/> uses the certConf message to confirm acceptance or rejection of issued certificates. Each CertStatus contains a certHash identifying the certificate being confirmed. Section 5.3.18 of RFC 9810 permits the hash to be specified by a convention associated with the certificate's signature algorithm.</t>
      <t>CMP Algorithms <xref target="RFC9481"/> already specifies such conventions for EdDSA. ML-DSA <xref target="RFC9881"/> and pure SLH-DSA <xref target="RFC9909"/> also need an explicit convention: their signature identifiers do not specify a unique external message-digest algorithm for certificate confirmation. Selecting a hash independently at each implementation can cause otherwise compatible CMP implementations to disagree on certHash.</t>
      <t>This document specifies only that convention and the associated hashAlg processing. Selection of certificate algorithms, CMP protection algorithms, KEMs, and deployment algorithm suites is left to application and deployment specifications. No new CMP message, ASN.1 type, or algorithm identifier is defined.</t>
    </section>
    <section anchor="conventions">
      <name>Conventions and Terminology</name>
      <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.</t>
      <t>DER(Certificate) denotes the Distinguished Encoding Rules encoding of the complete X.509 Certificate structure defined in <xref target="RFC5280"/>, including signatureAlgorithm and signatureValue. All lengths in this document are in octets.</t>
    </section>
    <section anchor="confirmation">
      <name>Certificate-Confirmation Hash Mapping</name>
      <t>When CertStatus.hashAlg is absent and the outer signatureAlgorithm of the certificate being confirmed identifies one of the algorithms in <xref target="signature-mapping"/>, the certHash in that CertStatus <bcp14>MUST</bcp14> be calculated as follows:</t>
      <artwork type="ascii-art">
certHash = SHA-512(DER(Certificate))
</artwork>
      <table anchor="signature-mapping">
        <name>Certificate Signature Algorithms and Confirmation Hash</name>
        <thead>
          <tr>
            <th>Signature algorithm</th>
            <th>Object identifier</th>
            <th>Hash</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>id-ml-dsa-44</td>
            <td>2.16.840.1.101.3.4.3.17</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-ml-dsa-65</td>
            <td>2.16.840.1.101.3.4.3.18</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-ml-dsa-87</td>
            <td>2.16.840.1.101.3.4.3.19</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-sha2-128s</td>
            <td>2.16.840.1.101.3.4.3.20</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-sha2-128f</td>
            <td>2.16.840.1.101.3.4.3.21</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-sha2-192s</td>
            <td>2.16.840.1.101.3.4.3.22</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-sha2-192f</td>
            <td>2.16.840.1.101.3.4.3.23</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-sha2-256s</td>
            <td>2.16.840.1.101.3.4.3.24</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-sha2-256f</td>
            <td>2.16.840.1.101.3.4.3.25</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-shake-128s</td>
            <td>2.16.840.1.101.3.4.3.26</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-shake-128f</td>
            <td>2.16.840.1.101.3.4.3.27</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-shake-192s</td>
            <td>2.16.840.1.101.3.4.3.28</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-shake-192f</td>
            <td>2.16.840.1.101.3.4.3.29</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-shake-256s</td>
            <td>2.16.840.1.101.3.4.3.30</td>
            <td>SHA-512</td>
          </tr>
          <tr>
            <td>id-slh-dsa-shake-256f</td>
            <td>2.16.840.1.101.3.4.3.31</td>
            <td>SHA-512</td>
          </tr>
        </tbody>
      </table>
      <t>The ML-DSA identifiers are defined in RFC 9881 and the twelve pure SLH-DSA identifiers are defined in RFC 9909. The signature AlgorithmIdentifier parameters <bcp14>MUST</bcp14> satisfy those specifications. This mapping does not make an invalid certificate signature or AlgorithmIdentifier acceptable.</t>
      <t>The hash input is the complete certificate. It <bcp14>MUST NOT</bcp14> be replaced by TBSCertificate, SubjectPublicKeyInfo, or the subject public key. With SHA-512, the result is 64 octets. The mapping depends on the certificate's signature algorithm, independently of its subject-public-key algorithm and the protection algorithm used for certConf. For example, an ML-KEM certificate signed with ML-DSA-65 uses this mapping when hashAlg is absent.</t>
      <t>SHA-512 provides one fixed-length convention for all listed parameter sets and is already specified for use with CMP in Section 2.1 of RFC 9481. Its 512-bit output provides a classical generic collision resistance of 256 bits. This choice does not prescribe a hash inside ML-DSA or SLH-DSA, or assert an end-to-end security level for a CMP deployment.</t>
      <t>This mapping does not apply to HashSLH-DSA, composite signature algorithms, or other signature algorithms. Hash selection for certificates signed with algorithms outside the table continues to follow Section 5.3.18 of RFC 9810 and the applicable algorithm specification.</t>
    </section>
    <section anchor="hashalg-processing">
      <name>Processing the hashAlg Field</name>
      <t>For certificates covered by <xref target="signature-mapping"/>, the certConf sender <bcp14>SHOULD</bcp14> omit CertStatus.hashAlg because this document specifies a hash convention. Exceptional use of an explicit hashAlg continues to follow Section 5.3.18 of RFC 9810. When present, hashAlg identifies the algorithm used to compute certHash over the complete certificate, subject to supported algorithms and the application's security policy.</t>
      <t>A receiver implementing this mapping <bcp14>MUST</bcp14> support both an absent hashAlg and an explicit SHA-512 hashAlg. SHA-512 is identified by id-sha512 (2.16.840.1.101.3.4.2.3). Its AlgorithmIdentifier parameters <bcp14>MUST</bcp14> be absent when generated. Receivers <bcp14>MUST</bcp14> accept either absent parameters or an ASN.1 NULL value, as specified in <xref target="RFC5754"/>. Other SHA-512 parameter encodings <bcp14>MUST</bcp14> be rejected.</t>
      <t>If an explicit hashAlg identifies another supported and permitted hash, the receiver uses that algorithm according to its specification. An unsupported or disallowed algorithm <bcp14>MUST</bcp14> cause confirmation processing to fail. The receiver <bcp14>MUST</bcp14> check the certHash length for the selected algorithm; for SHA-512 it is 64 octets. It <bcp14>MUST NOT</bcp14> ignore an explicit hashAlg, select a hash from the subject public key, or try alternative hashes until one matches.</t>
      <t>The version rules of RFC 9810 continue to apply. In particular, a certConf message containing hashAlg <bcp14>MUST</bcp14> indicate pvno cmp2021(3). This document does not introduce a further version requirement when hashAlg is omitted.</t>
    </section>
    <section anchor="updates">
      <name>Update to RFC 9481</name>
      <t>This document adds the certificate-confirmation hash mapping in <xref target="confirmation"/> and the hashAlg processing rules in <xref target="hashalg-processing"/> to the algorithm conventions of RFC 9481. These rules supply the algorithm-specific convention referenced by Section 5.3.18 of RFC 9810.</t>
      <t>The EdDSA mappings in Section 3.3 of RFC 9481 continue to apply. The algorithm profiles and implementation requirements in Section 7 of RFC 9481 are unchanged. Support for this mapping does not require implementing every listed signature algorithm.</t>
    </section>
    <section anchor="security">
      <name>Security Considerations</name>
      <t>The security considerations of RFC 9481 and RFC 9810 apply. A certificate hash alone does not authenticate the certConf sender or establish that the certificate satisfies the request and issuance policy. Certificate validation, message protection, authorization, certReqId matching, and transaction-state checks remain necessary.</t>
      <t>The sender <bcp14>MUST</bcp14> compute certHash over the certificate whose acceptance or rejection is indicated by that CertStatus. A receiver <bcp14>MUST</bcp14> compare it with the hash of the corresponding issued certificate. Checking only the length or algorithm identifier does not verify confirmation.</t>
      <t>When encrypted-certificate confirmation serves as proof of possession, the non-disclosure and proof-of-possession requirements of Sections 5.2.8.3.2 and 8.11 of RFC 9810 apply. Specifying a confirmation hash does not relax those requirements.</t>
      <t>Use of a post-quantum signature on the certificate does not by itself provide post-quantum authentication of the management operation. The CMP protection, trust paths, and other algorithms remain subject to the application's security policy.</t>
    </section>
    <section anchor="iana">
      <name>IANA Considerations</name>
      <t>This document has no IANA actions.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references anchor="normative-references">
        <name>Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC9481" target="https://www.rfc-editor.org/info/rfc9481">
          <front>
            <title>Certificate Management Protocol (CMP) Algorithms</title>
            <author fullname="H. Brockhaus" initials="H." surname="Brockhaus"/>
            <author fullname="H. Aschauer" initials="H." surname="Aschauer"/>
            <author fullname="M. Ounsworth" initials="M." surname="Ounsworth"/>
            <author fullname="J. Gray" initials="J." surname="Gray"/>
            <date month="November" year="2023"/>
          </front>
          <seriesInfo name="RFC" value="9481"/>
          <seriesInfo name="DOI" value="10.17487/RFC9481"/>
        </reference>
        <reference anchor="RFC9810" target="https://www.rfc-editor.org/info/rfc9810">
          <front>
            <title>Internet X.509 Public Key Infrastructure -- Certificate Management Protocol (CMP)</title>
            <author fullname="H. Brockhaus" initials="H." surname="Brockhaus"/>
            <author fullname="D. von Oheimb" initials="D." surname="von Oheimb"/>
            <author fullname="M. Ounsworth" initials="M." surname="Ounsworth"/>
            <author fullname="J. Gray" initials="J." surname="Gray"/>
            <date month="July" year="2025"/>
          </front>
          <seriesInfo name="RFC" value="9810"/>
          <seriesInfo name="DOI" value="10.17487/RFC9810"/>
        </reference>
        <reference anchor="RFC5280" target="https://www.rfc-editor.org/info/rfc5280">
          <front>
            <title>Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile</title>
            <author fullname="D. Cooper" initials="D." surname="Cooper"/>
            <author fullname="S. Santesson" initials="S." surname="Santesson"/>
            <author fullname="S. Farrell" initials="S." surname="Farrell"/>
            <author fullname="S. Boeyen" initials="S." surname="Boeyen"/>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <author fullname="W. Polk" initials="W." surname="Polk"/>
            <date month="May" year="2008"/>
          </front>
          <seriesInfo name="RFC" value="5280"/>
          <seriesInfo name="DOI" value="10.17487/RFC5280"/>
        </reference>
        <reference anchor="RFC9881" target="https://www.rfc-editor.org/info/rfc9881">
          <front>
            <title>Internet X.509 Public Key Infrastructure -- Algorithm Identifiers for the Module-Lattice-Based Digital Signature Algorithm (ML-DSA)</title>
            <author fullname="J. Massimo" initials="J." surname="Massimo"/>
            <author fullname="P. Kampanakis" initials="P." surname="Kampanakis"/>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <author fullname="B. E. Westerbaan" initials="B. E." surname="Westerbaan"/>
            <date month="October" year="2025"/>
          </front>
          <seriesInfo name="RFC" value="9881"/>
          <seriesInfo name="DOI" value="10.17487/RFC9881"/>
        </reference>
        <reference anchor="RFC9909" target="https://www.rfc-editor.org/info/rfc9909">
          <front>
            <title>Internet X.509 Public Key Infrastructure -- Algorithm Identifiers for the Stateless Hash-Based Digital Signature Algorithm (SLH-DSA)</title>
            <author fullname="K. Bashiri" initials="K." surname="Bashiri"/>
            <author fullname="S. Fluhrer" initials="S." surname="Fluhrer"/>
            <author fullname="S. Gazdag" initials="S." surname="Gazdag"/>
            <author fullname="D. Van Geest" initials="D." surname="Van Geest"/>
            <author fullname="S. Kousidis" initials="S." surname="Kousidis"/>
            <date month="December" year="2025"/>
          </front>
          <seriesInfo name="RFC" value="9909"/>
          <seriesInfo name="DOI" value="10.17487/RFC9909"/>
        </reference>
        <reference anchor="RFC5754" target="https://www.rfc-editor.org/info/rfc5754">
          <front>
            <title>Using SHA2 Algorithms with Cryptographic Message Syntax</title>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <date month="January" year="2010"/>
          </front>
          <seriesInfo name="RFC" value="5754"/>
          <seriesInfo name="DOI" value="10.17487/RFC5754"/>
        </reference>
      </references>
    </references>
    <section anchor="changes" removeInRFC="true">
      <name>Changes from Revision -00</name>
      <ul>
        <li>
          <t>Narrowed the document to certificate-confirmation hashing and changed the title to reflect that scope.</t>
        </li>
        <li>
          <t>Removed the baseline algorithm suite, signature-use profiles, KEM delivery profile, and KEM-based message-protection profile.</t>
        </li>
        <li>
          <t>Listed the covered signature identifiers explicitly and retained the proposed SHA-512 mapping.</t>
        </li>
        <li>
          <t>Applied the mapping when hashAlg is absent, preserved explicit hashAlg processing under RFC 9810, and limited the explicit version requirement to the cases defined there.</t>
        </li>
      </ul>
    </section>
  </back>
</rfc>
