<?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-00" ipr="trust200902" sortRefs="true" submissionType="IETF" symRefs="true" tocInclude="true" updates="9481" version="3" xml:lang="en">
  <front>
    <title abbrev="Post-Quantum CMP Algorithms">Post-Quantum Algorithm Profiles for the Certificate Management Protocol (CMP)</title>
    <seriesInfo name="Internet-Draft" value="draft-liu-lamps-cmp-pqc-algorithms-00"/>
    <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="1"/>
    <area>Security</area>
    <workgroup>LAMPS</workgroup>
    <keyword>CMP</keyword>
    <keyword>PKIX</keyword>
    <keyword>post-quantum cryptography</keyword>
    <keyword>ML-DSA</keyword>
    <keyword>SLH-DSA</keyword>
    <keyword>ML-KEM</keyword>
    <keyword>certificate enrollment</keyword>
    <abstract>
      <t>This document updates RFC 9481 by specifying post-quantum algorithm conventions and an opt-in algorithm profile for the Certificate Management Protocol (CMP). It specifies the use of ML-DSA and pure SLH-DSA for CMP signatures, ML-KEM for existing CMP key encapsulation mechanisms, and a certificate-confirmation hash mapping for these signature algorithms. It provides concrete algorithm combinations for message protection, proof of possession, and encrypted delivery using the mechanisms already defined in RFC 9810.</t>
      <t>The profile reuses existing algorithm identifiers, certificate formats, and CMS recipient structures. It introduces no new CMP messages, ASN.1 types, or algorithm identifiers. Its implementation requirements apply to implementations claiming conformance to this profile; it does not replace the algorithm requirements of RFC 9481 for other CMP deployments.</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. The algorithm baseline and certificate-confirmation mapping in this revision are proposals for review, not requirements of an existing IETF standard.</t>
    </note>
  </front>
  <middle>
    <section anchor="introduction">
      <name>Introduction</name>
      <t>The Certificate Management Protocol (CMP) <xref target="RFC9810"/> supports the enrollment and lifecycle management of X.509 certificates. CMP Algorithms <xref target="RFC9481"/> specifies algorithms and algorithm-use profiles for message protection, key management, content encryption, and related operations. Its public-key algorithm descriptions predate the standardization of ML-DSA, SLH-DSA, and ML-KEM.</t>
      <t>CMP already provides the protocol mechanisms needed to manage post-quantum keys. In particular, <xref target="RFC9810"/> supports KEM certificates, KEM-based message protection, KEM proof of possession (POP), and CMS EnvelopedData containing a KEMRecipientInfo <xref target="RFC9629"/>. The remaining problem addressed here is selecting and encoding concrete algorithms consistently at these existing interfaces.</t>
      <t>For example, two CMP implementations can both support ML-DSA and ML-KEM but disagree about the digest used in certConf, the KDF used for KEM-based message protection, or the key-wrapping algorithm used for an encrypted certificate. A common profile permits these choices to be configured and tested together. It also distinguishes a request for a post-quantum certificate from a management operation whose own authentication and confidentiality satisfy post-quantum policy.</t>
      <t>This document specifies pure ML-DSA and pure SLH-DSA signatures over the existing CMP signature inputs. It specifies ML-KEM parameters for existing CMS and CMP mechanisms, defines a certificate-confirmation hash mapping, and establishes a mandatory-to-implement baseline for implementations choosing this profile. Existing public-key and signature encodings are taken from <xref target="RFC9881"/>, <xref target="RFC9909"/>, and <xref target="RFC9935"/>.</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.</t>
      <dl>
        <dt>EE</dt><dd>An end entity requesting or managing a certificate.</dd>
        <dt>RA and CA</dt><dd>A registration authority and a certification authority, respectively.</dd>
        <dt>KGA</dt><dd>A key generation authority that generates a key pair on behalf of an EE.</dd>
        <dt>Management operation</dt><dd>A CMP PKI management operation, including its associated requests, responses, and confirmations, as defined in RFC 9810.</dd>
        <dt>Base profile</dt><dd>The opt-in algorithm configuration specified in <xref target="base-profile"/>. The term is descriptive and is not an on-the-wire identifier.</dd>
        <dt>Authorized policy</dt><dd>Local configuration or authenticated configuration information that binds a peer, its authorization, the permitted algorithms, and the intended management operation.</dd>
        <dt>CEK and KEK</dt><dd>A CMS content-encryption key and key-encryption key, respectively.</dd>
      </dl>
      <t><tt>DER(X)</tt> denotes the Distinguished Encoding Rules encoding of ASN.1 value X. <tt>empty</tt> denotes a zero-length octet string. Lengths supplied to HKDF, and the len and kekLength fields discussed below, are in octets. BIT STRING signature and MAC values have zero unused bits. An AlgorithmIdentifier with absent parameters is different from one containing an ASN.1 NULL value.</t>
    </section>
    <section anchor="scope">
      <name>Scope and Relationship to Existing Specifications</name>
      <t>This document updates <xref target="RFC9481"/> by adding the conventions in <xref target="signature-conventions"/>, <xref target="confirmation"/>, <xref target="kem-cms"/>, and <xref target="kem-mac"/>, and the opt-in profile in <xref target="profiles"/>. The precise update boundaries are collected in <xref target="updates"/>.</t>
      <t>The profile is for CMP implementations using <xref target="RFC9810"/>. A management operation conforming to this profile <bcp14>MUST</bcp14> use pvno cmp2021(3) from its initial request. Version fallback <bcp14>MUST NOT</bcp14> remove this requirement while the implementation continues to claim that the operation conforms to this profile.</t>
      <t>This document does not define initial device ownership, establish a new trust anchor, prescribe a certificate issuance policy, or authorize a peer merely because its signature verifies. Such decisions remain subject to the authentication and authorization requirements of CMP and the deployment.</t>
      <t>The algorithm profile can inform deployments using the Lightweight CMP Profile <xref target="RFC9483"/>, but does not update that document. In particular, RFC 9483 describes three key-management techniques for centrally generated private-key delivery; this document does not add a fourth technique to those procedures. A deployment using KEM delivery under RFC 9810 needs to describe that extension explicitly and cannot infer unmodified RFC 9483 conformance from this document.</t>
      <t>Composite signatures <xref target="RFC10073"/> <xref target="RFC10082"/> and other hybrid migration mechanisms are outside the base profile. They can be selected by separate deployment profiles using their defining specifications. This document does not define a combiner, concatenate independent signatures, or combine KEM secrets.</t>
    </section>
    <section anchor="signature-conventions">
      <name>Post-Quantum Signature Conventions</name>
      <section anchor="mldsa">
        <name>ML-DSA</name>
        <t>ML-DSA is specified in <xref target="FIPS204"/>. Its identifiers and PKIX encodings are specified in <xref target="RFC9881"/>. ML-DSA-44, ML-DSA-65, and ML-DSA-87 <bcp14>MAY</bcp14> be used for CMP signatures, subject to authorized policy. The base profile requires ML-DSA-65.</t>
        <t>The signature AlgorithmIdentifier <bcp14>MUST</bcp14> contain the identifier for the actual parameter set, with parameters absent. An implementation <bcp14>MUST NOT</bcp14> encode an ASN.1 NULL parameter or carry a parameter-set selector in the parameters field. Public keys and certificates <bcp14>MUST</bcp14> use the encodings specified in RFC 9881.</t>
        <t>CMP signatures under this document <bcp14>MUST</bcp14> use pure ML-DSA with an empty context string. HashML-DSA is not specified here. An implementation <bcp14>MUST NOT</bcp14> replace the defined message input with an externally computed digest and then invoke pure ML-DSA on that digest. An implementation using the equivalent external-mu interface described in Appendix D of RFC 9881 <bcp14>MUST</bcp14> produce and verify exactly the same pure-mode signature semantics, including the empty context.</t>
      </section>
      <section anchor="slhdsa">
        <name>SLH-DSA</name>
        <t>SLH-DSA is specified in <xref target="FIPS205"/>. The pure-mode identifiers, key encodings, and signature encodings are specified in <xref target="RFC9909"/>. Any of the twelve pure SLH-DSA parameter sets <bcp14>MAY</bcp14> be used for CMP signatures when explicitly permitted by authorized policy. Support for SLH-DSA is optional and does not replace the ML-DSA-65 implementation requirement of the base profile.</t>
        <t>The signature AlgorithmIdentifier <bcp14>MUST</bcp14> identify the actual pure SLH-DSA parameter set and have absent parameters. CMP signatures under this document <bcp14>MUST</bcp14> use an empty context string. HashSLH-DSA, although specified for PKIX in RFC 9909, is outside the CMP message-signature and POP conventions defined here.</t>
        <t>Implementations <bcp14>MUST NOT</bcp14> infer support for a pure-mode signature identifier from support for a pre-hash identifier, or the reverse. They also <bcp14>MUST NOT</bcp14> substitute another parameter set with a similar name. Operators need to account for the substantial differences in signature size and execution cost between SLH-DSA parameter sets.</t>
      </section>
      <section anchor="signed-inputs">
        <name>CMP Message Protection and Signing-Key POP</name>
        <t>For signature-based CMP message protection, the input to pure ML-DSA or pure SLH-DSA <bcp14>MUST</bcp14> be <tt>DER(ProtectedPart)</tt>, as specified in Section 5.1.3 of <xref target="RFC9810"/>. The signature AlgorithmIdentifier is carried in PKIHeader.protectionAlg. The raw signature octets <bcp14>MUST</bcp14> be placed directly in PKIMessage.protection, with no additional OCTET STRING or SEQUENCE wrapper.</t>
        <t>For signing-key POP, the input <bcp14>MUST</bcp14> be the DER encoding selected by the POPOSigningKey rules of Section 4.1 of CRMF <xref target="RFC4211"/> and Section 5.2.8.2 of RFC 9810. For the ordinary CertTemplate case, this is CertRequest or POPOSigningKeyInput, as those rules require. An implementation supporting alternative templates <bcp14>MUST</bcp14> also follow RFC 9810's corresponding AltCertTemplate input rules. The raw signature <bcp14>MUST</bcp14> be encoded directly in POPOSigningKey.signature using the matching algorithm identifier and empty signature context.</t>
        <t>The protection key authenticating a management operation and the newly generated key for which POP is provided are separate roles. Successful message protection <bcp14>MUST NOT</bcp14> be treated as POP for a different requested key. An RA asserting that it verified POP remains subject to the existing CMP and CRMF authorization requirements; this document grants no additional authority to make that assertion.</t>
      </section>
      <section anchor="cms-signatures">
        <name>CMS Signatures in CMP</name>
        <t>When CMS SignedData is used within CMP, including a signed private-key package, ML-DSA <bcp14>MUST</bcp14> follow <xref target="RFC9882"/> and pure SLH-DSA <bcp14>MUST</bcp14> follow <xref target="RFC9814"/>. The CMP ProtectedPart convention is not a replacement for the CMS signed-content and signed-attribute conventions.</t>
        <t>The base profile uses ML-DSA-65 and SHA-512 for CMS SignedData. A sender in this profile <bcp14>MUST</bcp14> include signed attributes, including at least content-type and message-digest, and <bcp14>MUST</bcp14> follow the algorithm-protection requirements of <xref target="RFC8933"/>. The message-digest is a SHA-512 digest of the CMS content. The pure ML-DSA signature is computed over the DER encoding of SignedAttrs as specified in RFC 9882, using the SET OF tag required by CMS. It is not a HashML-DSA signature over the message-digest attribute value.</t>
        <t>For other permitted ML-DSA or pure SLH-DSA parameter sets, the CMS digest algorithm <bcp14>MUST</bcp14> satisfy the corresponding algorithm specification. CMS signer authorization, certificate validation, and validation of all required signed attributes <bcp14>MUST</bcp14> be performed before a delivered private key is accepted.</t>
      </section>
    </section>
    <section anchor="confirmation">
      <name>Certificate-Confirmation Hash Mapping</name>
      <t>Section 5.3.18 of <xref target="RFC9810"/> permits a hash algorithm to be specified for hashing certificates signed with a particular signature algorithm. Pure ML-DSA and pure SLH-DSA do not expose a unique external message-digest algorithm through their signature identifiers. This section supplies a mapping for the algorithms covered by this document.</t>
      <t>For a certificate whose outer signatureAlgorithm identifies any of ML-DSA-44, ML-DSA-65, ML-DSA-87, or any of the twelve pure SLH-DSA parameter sets in RFC 9909, the certConf certHash <bcp14>MUST</bcp14> be calculated as:</t>
      <artwork type="ascii-art"><![CDATA[
certHash = SHA-512(DER(Certificate))
]]></artwork>
      <t>The input is the complete certificate, including its signatureAlgorithm and signatureValue. It is not just TBSCertificate, SubjectPublicKeyInfo, or the public key. The resulting certHash has 64 octets. The choice depends on the certificate's signature algorithm, not on its subject-public-key algorithm or the protection algorithm of the certConf message. For example, an ML-KEM certificate signed with ML-DSA-65 uses this mapping.</t>
      <t>When this mapping applies, the sender <bcp14>SHOULD</bcp14> omit CertStatus.hashAlg, since the hash is specified by this document. If hashAlg is present, it <bcp14>MUST</bcp14> identify SHA-512. Receivers conforming to this profile <bcp14>MUST</bcp14> support both an absent hashAlg and an explicit SHA-512 hashAlg. Generation and acceptance of SHA-512 AlgorithmIdentifier parameters <bcp14>MUST</bcp14> follow <xref target="RFC5754"/>: senders omit parameters and receivers accept absent or NULL parameters.</t>
      <t>This mapping does not apply to HashSLH-DSA or other signature algorithms. For a certificate signed with an algorithm outside the mapping, the hash selection and any explicit hashAlg <bcp14>MUST</bcp14> follow Section 5.3.18 of RFC 9810 and the applicable algorithm specification. An implementation <bcp14>MUST NOT</bcp14> guess a hash from the subject key, trial several hashes until one matches, or silently accept a different certHash length.</t>
      <t>A certConf sender <bcp14>MUST</bcp14> calculate certHash over the certificate it actually accepts. The usual checks of certReqId, transaction state, certificate contents, and message protection remain required. A correct certHash alone does not establish acceptance of the requested subject name, key, extensions, or policy.</t>
    </section>
    <section anchor="kem-cms">
      <name>ML-KEM for Encrypted Delivery and POP</name>
      <section anchor="kem-keys">
        <name>ML-KEM Keys and Algorithm Identifiers</name>
        <t>ML-KEM is specified in <xref target="FIPS203"/>. ML-KEM-512, ML-KEM-768, and ML-KEM-1024 <bcp14>MAY</bcp14> be used in the CMP KEM mechanisms described in this document when permitted by authorized policy. The base profile requires ML-KEM-768.</t>
        <t>Public-key, private-key, and certificate encodings <bcp14>MUST</bcp14> follow <xref target="RFC9935"/>. An ML-KEM AlgorithmIdentifier <bcp14>MUST</bcp14> use the identifier of the actual parameter set with absent parameters. If a keyUsage extension is present in an ML-KEM certificate, keyEncipherment <bcp14>MUST</bcp14> be the only key-usage bit set, as required by RFC 9935. The use of KEM-based message protection does not change this requirement to digitalSignature or keyAgreement.</t>
        <t>When a recipient certificate is already available, its certification path, validity, applicable constraints, and authorization for the intended operation <bcp14>MUST</bcp14> be validated under <xref target="RFC5280"/> and RFC 9810. When encrypting a newly issued certificate to the very key whose POP is being established, the request and response processing rules of RFC 9810 apply instead; possession of an already validated certificate for that new key is not a prerequisite.</t>
      </section>
      <section anchor="kem-recipient">
        <name>CMS KEMRecipientInfo</name>
        <t>For encrypted delivery using ML-KEM, implementations <bcp14>MUST</bcp14> use the OtherRecipientInfo alternative containing KEMRecipientInfo as specified in <xref target="RFC9629"/> and <xref target="RFC9936"/>. They <bcp14>MUST NOT</bcp14> put an ML-KEM ciphertext into KeyTransRecipientInfo or KeyAgreeRecipientInfo.</t>
        <t>For the base profile, the fields are:</t>
        <table anchor="cms-kem-fields">
          <name>Base Profile KEMRecipientInfo Values</name>
          <thead><tr><th>Field</th><th>Required value or rule</th></tr></thead>
          <tbody>
            <tr><td>version</td><td>0</td></tr>
            <tr><td>rid</td><td>The CMS recipient identifier, populated as required by RFC 9629 and RFC 9810</td></tr>
            <tr><td>kem</td><td>id-alg-ml-kem-768; parameters absent</td></tr>
            <tr><td>kemct</td><td>A fresh ML-KEM-768 ciphertext, 1088 octets</td></tr>
            <tr><td>kdf</td><td>id-alg-hkdf-with-sha256; parameters absent</td></tr>
            <tr><td>kekLength</td><td>32 octets</td></tr>
            <tr><td>ukm</td><td>Absent</td></tr>
            <tr><td>wrap</td><td>id-aes256-wrap; parameters absent</td></tr>
            <tr><td>encryptedKey</td><td>The result of wrapping the newly generated CEK</td></tr>
          </tbody>
        </table>
        <t>The KDF identifier is from <xref target="RFC8619"/>. HKDF processing <bcp14>MUST</bcp14> follow <xref target="RFC5869"/> and Section 2.2.1 of RFC 9936: IKM is the ML-KEM shared secret, salt is unused (the empty string), L is 32, and info is <tt>DER(CMSORIforKEMOtherInfo)</tt>. AES key wrapping <bcp14>MUST</bcp14> follow <xref target="RFC3394"/> and <xref target="RFC3565"/>.</t>
        <t>The following relationships describe these existing mechanisms; they do not define an additional KDF:</t>
        <artwork type="ascii-art"><![CDATA[
ML-KEM.Encaps(recipientPublicKey) -> (ss, ct)

info = DER(CMSORIforKEMOtherInfo {
    wrap = id-aes256-wrap, kekLength = 32, ukm = absent })
KEK = HKDF-Expand(HKDF-Extract(empty, ss), info, 32)
CEK = newly generated 32-octet content-encryption key
encryptedKey = AES-256-Key-Wrap(KEK, CEK)
]]></artwork>
        <t>The Encaps notation above follows FIPS 203's order of shared secret and ciphertext; API argument and return ordering is implementation specific. An implementation <bcp14>MUST</bcp14> identify these values by their meaning rather than assuming that every library uses the same tuple ordering.</t>
        <t>The secure use of ML-KEM does not require ukm. Its omission here selects a common interoperable configuration and does not prohibit other deployments from using ukm under RFC 9629. The base profile <bcp14>MUST NOT</bcp14> carry a secret PSK in this publicly transmitted field.</t>
      </section>
      <section anchor="encrypted-containers">
        <name>Encrypted Containers and Content Encryption</name>
        <t>Encrypted certificates, private-key packages, and other encrypted values <bcp14>MUST</bcp14> use the EnvelopedData placements specified in Section 5.2.2 of <xref target="RFC9810"/>. For these uses, the base profile <bcp14>MUST</bcp14> contain exactly one RecipientInfo, carrying the ML-KEM KEMRecipientInfo described above. EncryptedValue <bcp14>MUST NOT</bcp14> be used in an operation conforming to this profile.</t>
        <t>The base profile uses AES-256-CBC, already described in RFC 9481, for content encryption. Its AlgorithmIdentifier is id-aes256-CBC, with a freshly and unpredictably generated 16-octet IV encoded as the AES-IV OCTET STRING specified in <xref target="RFC3565"/>. The CEK <bcp14>MUST</bcp14> be freshly generated for each encrypted container. CMS content padding <bcp14>MUST</bcp14> follow <xref target="RFC5652"/>.</t>
        <t>AES-CBC does not authenticate ciphertext. Before decrypting an encrypted value or reporting any decryption-dependent result, a recipient <bcp14>MUST</bcp14> authenticate and authorize the enclosing CMP message and check the transaction binding and the permitted algorithm combination. When an RA terminates and regenerates protection, this requirement applies to each protected hop and the RA is part of the confidentiality and integrity trust boundary.</t>
        <t>The EnvelopedData structure in the existing CMP placements is not an AuthEnvelopedData structure. This document does not substitute AuthEnvelopedData at those ASN.1 locations or place an AES-GCM tag in an unspecified field. Alternative content-encryption conventions, including the algorithm-binding mechanism of <xref target="RFC9709"/>, require a separately agreed configuration and are outside the base profile.</t>
        <t>If a receiving entity cannot authenticate the enclosing message using independently authorized credentials before decryption, it <bcp14>MUST NOT</bcp14> use this encrypted-delivery configuration. It <bcp14>MUST NOT</bcp14> break that dependency by accepting an unauthenticated plaintext certificate as a new trust anchor.</t>
      </section>
      <section anchor="kem-pop">
        <name>Proof of Possession for ML-KEM Keys</name>
        <t>An ML-KEM key cannot produce a digital signature. Its POP <bcp14>MUST</bcp14> follow the KEM-key mechanisms of Section 4.3.4 of <xref target="RFC9810"/>. The common POP method for the base profile is encrypted-certificate confirmation, using keyEncipherment in ProofOfPossession, subsequentMessage in POPOPrivKey, and the encrCert value. Implementations enrolling or issuing ML-KEM certificates under the base profile <bcp14>MUST</bcp14> support this method.</t>
        <t>The CA encrypts the issued certificate to the requested ML-KEM public key using <xref target="kem-recipient"/> and <xref target="encrypted-containers"/>. The EE decapsulates, unwraps the CEK, decrypts the certificate, validates the certificate against its request and issuance policy, and sends a protected certConf containing the certificate hash selected by <xref target="confirmation"/>.</t>
        <t>When certConf serves as POP, implicit confirmation <bcp14>MUST NOT</bcp14> be requested or granted. The CA <bcp14>MUST NOT</bcp14> publish or otherwise disclose the complete issued certificate before successful POP confirmation, including through a repository, a certificate-transparency submission, or an unencrypted response. The CA <bcp14>MUST</bcp14> apply the non-disclosure and POP security requirements of Sections 5.2.8.3.2 and 8.11 of RFC 9810.</t>
        <t>Since rid can refer to the certificate that is still encrypted, the EE <bcp14>MUST</bcp14> retain the transactionID and certReqId association with its requested key. Selection of that key for decryption <bcp14>MUST</bcp14> follow RFC 9810; a missing plaintext copy of the issued certificate is not grounds to omit POP.</t>
        <t>The direct challenge-response and private-key-archival alternatives remain available under RFC 9810 when explicitly configured. They are not mandatory features of the base profile. A deployment <bcp14>MUST NOT</bcp14> select private-key disclosure or archival merely as a shortcut around implementing KEM POP.</t>
      </section>
      <section anchor="key-delivery">
        <name>Centrally Generated Private Keys</name>
        <t>Central key generation is optional. An implementation supporting it under this profile <bcp14>MUST</bcp14> follow the signed and encrypted private-key delivery rules of RFC 9810. Private keys <bcp14>MUST</bcp14> be encoded in AsymmetricKeyPackage as specified in <xref target="RFC5958"/> and the relevant algorithm specification. The package <bcp14>MUST</bcp14> be signed by an authorized KGA using the CMS conventions of <xref target="cms-signatures"/> and encrypted as described in <xref target="kem-recipient"/> and <xref target="encrypted-containers"/>.</t>
        <t>The KGA's signing certificate and authorization <bcp14>MUST</bcp14> be checked as required by RFC 9810, including the applicable id-kp-cmKGA extended-key-usage requirements. The recipient's KEM delivery key <bcp14>MUST</bcp14> already be authenticated and authorized; the new private key being delivered cannot supply the only credential needed to decrypt its own delivery.</t>
        <t>A recipient <bcp14>MUST</bcp14> check that the delivered private key corresponds to the certified public key before installing it. Seeds and expanded private keys <bcp14>MUST</bcp14> be interpreted according to the applicable algorithm encoding; arbitrary seed octets <bcp14>MUST NOT</bcp14> be treated as a generic expanded private key.</t>
      </section>
    </section>
    <section anchor="kem-mac">
      <name>ML-KEM-Based CMP Message Protection</name>
      <t>KEM-based message protection is an optional feature of this profile. An implementation claiming this feature <bcp14>MUST</bcp14> implement id-KemBasedMac and KemBMParameter from Section 5.1.3.4 of <xref target="RFC9810"/>, using ML-KEM-768 and the following parameters:</t>
      <table anchor="kem-mac-fields">
        <name>Base Profile KemBMParameter Values</name>
        <thead><tr><th>Field</th><th>Required value</th></tr></thead>
        <tbody>
          <tr><td>kdf</td><td>id-alg-hkdf-with-sha256; parameters absent</td></tr>
          <tr><td>kemContext</td><td>Absent</td></tr>
          <tr><td>len</td><td>32 octets</td></tr>
          <tr><td>mac</td><td>id-hmacWithSHA256</td></tr>
        </tbody>
      </table>
      <t>HMAC <bcp14>MUST</bcp14> follow <xref target="RFC4231"/>. For generation, the HMAC AlgorithmIdentifier parameters <bcp14>MUST</bcp14> be NULL. Receivers <bcp14>MUST</bcp14> accept NULL or absent HMAC parameters. This parameter rule does not relax the absent-parameters requirements for ML-KEM or HKDF. The full, untruncated 32-octet HMAC value <bcp14>MUST</bcp14> be encoded directly in PKIMessage.protection.</t>
      <t>The KEM ciphertext <bcp14>MUST</bcp14> be carried using the existing KemCiphertextInfo mechanism. As in RFC 9810, IKM is the KEM shared secret, L is len, and info is the DER-encoded KemOtherInfo containing the PKIFreeText value with the single string <tt>CMP-KEM</tt> and the transactionID from the message containing the KEM ciphertext. kemContext <bcp14>MUST</bcp14> be absent in this base configuration.</t>
      <artwork type="ascii-art"><![CDATA[
info = DER(KemOtherInfo {
    staticString = { "CMP-KEM" },
    transactionID = transactionID_of_ciphertext_message,
    kemContext = absent })
ssk = HKDF-Expand(HKDF-Extract(empty, ss), info, 32)
protection = HMAC-SHA-256(ssk, DER(ProtectedPart))
]]></artwork>
      <t>Both peers <bcp14>MUST</bcp14> use the same zero-length HKDF salt and the exact RFC 9810 context encoding. CMSORIforKEMOtherInfo <bcp14>MUST NOT</bcp14> be substituted for KemOtherInfo. The resulting key <bcp14>MUST NOT</bcp14> be used as a CEK, a KEK, or an application key.</t>
      <t>A fresh encapsulation <bcp14>MUST</bcp14> be performed for each management operation, as required by Section 8.8 of RFC 9810. The same shared secret and ciphertext <bcp14>MUST NOT</bcp14> be reused for another operation, for CMS encrypted delivery, or to establish protection in the opposite direction. When both peers use KEM credentials, the directional exchanges <bcp14>MUST</bcp14> follow Appendix E of RFC 9810.</t>
      <t>The identity being authenticated is the authorized holder of the KEM private key, demonstrated to the entity that performed the encapsulation. Anyone with a public KEM key can encapsulate to it; that act does not by itself authenticate the encapsulator. Implementations <bcp14>MUST NOT</bcp14> treat a KEM-MAC exchange as mutual identity authentication without satisfying the separate directional authentication requirements. A KEM-MAC is a shared-secret authenticator, not a publicly verifiable digital signature.</t>
      <t>This profile does not modify the preliminary message flows of RFC 9810. Any preliminary unprotected message <bcp14>MUST NOT</bcp14> authorize issuance, policy changes, trust-anchor installation, or private-key delivery. Implementations <bcp14>MUST</bcp14> bind subsequent protected messages to the expected peer and operation and enforce the authentication requirements before acting on them.</t>
    </section>
    <section anchor="profiles">
      <name>Algorithm Profile and Conformance</name>
      <section anchor="base-profile">
        <name>Base Profile</name>
        <t>Support for this profile is explicitly selected by authorized policy. It is not implied by support for CMP, RFC 9481, or an individual post-quantum algorithm. The following table specifies the common algorithm choices.</t>
        <table anchor="baseline-table">
          <name>Post-Quantum CMP Base Profile</name>
          <thead><tr><th>Purpose</th><th>Algorithm or choice</th></tr></thead>
          <tbody>
            <tr><td>CMP signature protection and signing-key POP</td><td>ML-DSA-65, pure mode, empty context</td></tr>
            <tr><td>CMS package signature</td><td>ML-DSA-65 with SHA-512 signed attributes</td></tr>
            <tr><td>certConf for signatures covered by the mapping</td><td>SHA-512 over the complete DER certificate</td></tr>
            <tr><td>KEM encrypted delivery and KEM POP</td><td>ML-KEM-768</td></tr>
            <tr><td>CMS KEM KDF and KEK</td><td>HKDF-SHA-256, 32-octet KEK</td></tr>
            <tr><td>CMS key wrap</td><td>AES-256 Key Wrap</td></tr>
            <tr><td>CMS content encryption</td><td>AES-256-CBC with fresh CEK and IV, inside authenticated CMP protection</td></tr>
            <tr><td>Optional KEM-MAC feature</td><td>ML-KEM-768, HKDF-SHA-256, 32-octet key, HMAC-SHA-256</td></tr>
          </tbody>
        </table>
        <t>An implementation claiming the base profile <bcp14>MUST</bcp14> support ML-DSA-65 signature protection in its send and receive roles, and the certificate-confirmation mapping. It <bcp14>MUST</bcp14> be able to validate the ML-DSA-65 certificate signatures needed for its configured trust paths. A signature-only implementation is not thereby required to implement optional central key generation or KEM-MAC.</t>
        <t>For an implementation claiming this opt-in profile, the corresponding mandatory algorithm choices of Section 7.1 of RFC 9481 are replaced by this section's requirements for profile operations. Such an implementation need not implement RSA or DH merely to claim this profile. If it also claims conformance to the legacy profile of Section 7.1 of RFC 9481, it <bcp14>MUST</bcp14> separately satisfy that profile's implementation requirements.</t>
        <t>An implementation supporting encrypted delivery <bcp14>MUST</bcp14> implement the base profile KEM, KDF, wrapping, and content-encryption choices for its originator or recipient role. An implementation enrolling or issuing ML-KEM certificates <bcp14>MUST</bcp14> implement the encrypted-certificate POP method in <xref target="kem-pop"/>. An implementation delivering or receiving centrally generated private keys <bcp14>MUST</bcp14> implement <xref target="key-delivery"/>. An implementation claiming the KEM-MAC feature <bcp14>MUST</bcp14> implement <xref target="kem-mac"/>.</t>
        <t>A conformance statement <bcp14>MUST</bcp14> identify the supported operations and roles, including whether encrypted delivery, ML-KEM certificate enrollment, central key generation, or KEM-MAC is supported. It <bcp14>MUST NOT</bcp14> imply support for every CMP operation merely by claiming support for this algorithm profile.</t>
      </section>
      <section anchor="additional-algorithms">
        <name>Additional Algorithms and Parameter Sets</name>
        <t>Implementations <bcp14>MAY</bcp14> support additional parameter sets permitted in <xref target="signature-conventions"/> and <xref target="kem-cms"/>. Their use requires authorized policy shared by the peers. Optional support for another parameter set does not remove the base profile implementation requirements.</t>
        <t>For CMS ML-KEM-512, ML-KEM-768, and ML-KEM-1024, KDF support, minimum component strengths, and wrapping-algorithm support <bcp14>MUST</bcp14> follow RFC 9936. An implementation using ML-KEM-1024 with a different KDF still <bcp14>MUST</bcp14> support the HKDF-SHA-256 option required by that RFC. Algorithms, output lengths, and parameter encodings <bcp14>MUST</bcp14> be configured as a complete combination rather than inferred from a KEM parameter-set number.</t>
        <t>The optional ML-DSA-87 and ML-KEM-1024 parameter sets do not establish a second implicit suite. In particular, their use does not silently change the CMS digest, certConf mapping, KEM-MAC output length, or permitted content-encryption algorithm. A deployment that needs a distinct combination has to specify each choice and its applicable requirements.</t>
        <t>The choices in this document are not a claim that every component has the same NIST security category or that a particular end-to-end quantum security level follows from a single parameter-set label. Authentication, KEM security, hash properties, and symmetric confidentiality need separate assessment.</t>
      </section>
      <section anchor="policy-and-negotiation">
        <name>Policy, Capabilities, and Downgrade Handling</name>
        <t>The base profile name is not a new value of certProfile, an InfoTypeAndValue, or an IANA registry entry. This document defines no profile-negotiation message. Peers <bcp14>MUST</bcp14> obtain the required algorithm combination and security policy from authorized configuration. Existing CMP capability messages <bcp14>MAY</bcp14> be used within their defined semantics, but an unauthenticated capability response <bcp14>MUST NOT</bcp14> override that policy.</t>
        <t>If policy requires this profile and the peer cannot support the required version or algorithm combination, the operation <bcp14>MUST</bcp14> fail. Timeout, badAlg, unsupportedVersion, or an authentication failure <bcp14>MUST NOT</bcp14> cause automatic fallback to RSA, ECDSA, EdDSA, DH, ECDH, password protection, or another unapproved configuration.</t>
        <t>A separately authorized legacy enrollment procedure can remain available for migration, but it is a different policy decision and does not conform to this profile. Merely issuing a post-quantum subject key under a classical signature does not make that certificate path post-quantum authenticated. Likewise, enrolling a PQ key over a classically protected management operation does not provide the management operation with post-quantum authentication.</t>
        <t>For an operation required to provide post-quantum authentication, all certificate signatures and revocation evidence relied on for that authentication, and every RA protection boundary on the relevant path, <bcp14>MUST</bcp14> satisfy the configured post-quantum policy or an independently authorized trust mechanism. Receiving caPubs or extraCerts <bcp14>MUST NOT</bcp14> promote an otherwise untrusted certificate into a trust anchor.</t>
      </section>
    </section>
    <section anchor="processing">
      <name>Processing and Failure Handling</name>
      <t>Implementations <bcp14>MUST</bcp14> retain the CMP state, nonce, message-type, and certificate-request checks required by RFC 9810. In this profile, the initiating client <bcp14>MUST</bcp14> supply a fresh transactionID with at least 128 bits of randomness. Protected messages <bcp14>MUST</bcp14> include a fresh senderNonce with at least 128 bits of randomness, and recipNonce where required by the applicable CMP flow. Responders <bcp14>MUST</bcp14> preserve and validate the transaction association and nonce linkage.</t>
      <t>Before an expensive operation, an implementation <bcp14>SHOULD</bcp14> perform bounded syntax, length, and algorithm-policy checks. ML-KEM-768 public keys have 1184 octets and ciphertexts have 1088 octets. ML-DSA-65 public keys have 1952 octets and signatures have 3309 octets. These are raw algorithm values; ASN.1 containers, certificates, and CMP headers require additional space.</t>
      <t>Algorithm-required key and ciphertext validation <bcp14>MUST</bcp14> be performed. ML-KEM implicit rejection <bcp14>MUST NOT</bcp14> be replaced with a diagnostic that reveals whether an otherwise well-formed ciphertext failed the internal re-encryption check. A derived key or tentative plaintext <bcp14>MUST NOT</bcp14> be accepted until all applicable MAC, wrapping, outer message-protection, and content checks succeed.</t>
      <t>Where an authenticated CMP error response is permitted, implementations <bcp14>MUST</bcp14> use the failure information defined by RFC 9810. An unsupported algorithm can be reported as badAlg, and an unsupported version as unsupportedVersion. For the decapsulation-error case in KEM-based protection, the badMessageCheck and termination requirements of Section 5.1.3.4 of RFC 9810 apply. This document defines no new failure bit.</t>
      <t>Externally observable failure behavior <bcp14>MUST NOT</bcp14> distinguish secret-dependent decapsulation, key-unwrapping, or padding failures in a way that creates an oracle. Local diagnostic logs <bcp14>MAY</bcp14> distinguish implementation stages for authorized operators, but <bcp14>MUST NOT</bcp14> contain private keys, seeds, KEM shared secrets, derived keys, or recovered private-key packages.</t>
      <t>An operation that fails algorithm-policy, authentication, authorization, POP, or certificate-validation checks <bcp14>MUST NOT</bcp14> install a key, accept a certificate, or install new trust-anchor material. Implementations <bcp14>MUST</bcp14> release transaction resources and erase transient secret material when it is no longer needed, including on an aborted operation.</t>
    </section>
    <section anchor="updates">
      <name>Updates to RFC 9481</name>
      <t>This document makes the following additive updates to <xref target="RFC9481"/>:</t>
      <ol>
        <li><t>Section 3 is augmented with the ML-DSA and pure SLH-DSA signature conventions in <xref target="signature-conventions"/>. For certificates signed with the algorithms listed in <xref target="confirmation"/>, SHA-512 is specified as the certificate hash for certConf under the rules of RFC 9810.</t></li>
        <li><t>Section 4 is augmented with ML-KEM key-management conventions for the existing CMP and CMS mechanisms, as specified in <xref target="kem-cms"/>. HKDF with the identifiers of RFC 8619 is used with the precise input conventions specified in this document and the cited mechanism specifications.</t></li>
        <li><t>Section 6 is augmented with the concrete ML-KEM, HKDF, and HMAC combination for the id-KemBasedMac mechanism, as specified in <xref target="kem-mac"/>.</t></li>
        <li><t>Section 7 is augmented with the opt-in algorithm profile and conditional implementation requirements in <xref target="profiles"/>. For operations under this profile, the corresponding mandatory algorithm choices in Section 7.1 are replaced by <xref target="base-profile"/>. The mandatory and optional algorithm requirements of Sections 7.1 and 7.2 of RFC 9481 for implementations outside this profile are not changed.</t></li>
        <li><t>Section 9 is supplemented by the security considerations in <xref target="security"/>.</t></li>
      </ol>
      <t>The SHA-512, AES-256 Key Wrap, AES-256-CBC, and HMAC-SHA-256 primitives already described in RFC 9481 are reused. This document does not obsolete RFC 9481, change the CMP message grammar, update RFC 9483 procedures, or register a new algorithm identifier.</t>
    </section>
    <section anchor="security">
      <name>Security Considerations</name>
      <t>The security considerations of RFC 9481, RFC 9810, and the referenced algorithm and container specifications apply. This document selects algorithms at existing protocol interfaces; it does not establish a new cryptographic security proof for CMP or for a complete deployment.</t>
      <section anchor="security-authentication">
        <name>Authentication, Authorization, and Trust Paths</name>
        <t>A post-quantum certificate request does not protect the channel on which it is submitted. A classical credential used to authorize a new PQ credential remains part of the migration trust assumption. Operators need to distinguish a migration step that is acceptable before a relevant quantum threat from an operation intended to resist an active quantum-capable adversary.</t>
        <t>The certificate path, authorized trust anchors, revocation or status evidence, RA and KGA credentials, and administrative provisioning can each limit authentication. A post-quantum subject public key does not compensate for a forgeable issuer signature. A self-signature on a received root certificate does not authenticate the decision to trust it.</t>
        <t>POP establishes access to the requested private key under the specified method; it does not establish subject identity, device ownership, suitability for issuance, or authorization to receive another entity's key. The policy and role checks of RFC 9810 remain essential.</t>
      </section>
      <section anchor="security-confidentiality">
        <name>Confidentiality and Recorded Traffic</name>
        <t>ML-DSA and SLH-DSA signatures provide no confidentiality. Sensitive material encrypted only by a classical key-establishment mechanism can remain vulnerable to an adversary that records traffic and later obtains quantum capability. The algorithms of the actual encrypted-delivery path, including every terminating RA, determine that exposure.</t>
        <t>Static-recipient ML-KEM encrypted delivery does not provide forward secrecy against later compromise of the recipient's decapsulation key. Recorded ciphertext can be processed after such a compromise. Long-term key protection, lifetime, revocation, and destruction remain necessary even when the KEM is quantum resistant.</t>
        <t>For the base profile's CBC containers, verified and authorized outer CMP protection is a prerequisite to decryption. Code paths that process a detached encrypted container, expose unauthenticated padding results, or accept an alternative algorithm combination before checking policy can violate that assumption. The use of a signed private-key package adds KGA origin authentication but does not replace the outer-message checks.</t>
      </section>
      <section anchor="security-kem-pop">
        <name>KEM Authentication and Encrypted-Certificate POP</name>
        <t>KEM encapsulation alone does not authenticate its originator. KEM-based message protection has the directional authentication semantics described in <xref target="kem-mac"/> and RFC 9810. Reusing a shared secret in an unintended direction or across operations can confuse identity and transaction bindings.</t>
        <t>Encrypted-certificate POP depends on withholding the complete certificate until POP succeeds. Disclosure through an alternate protocol, log, repository, audit artifact, or second response can allow an entity to compute certHash without decapsulating. Implementations need to enforce this dependency across the entire issuance system, not only within the CMP encoder.</t>
        <t>A KEM POP value and a KEM-MAC value are not interchangeable. Likewise, the CMS key derivation context and the CMP KEM-MAC context are different structures. The separate context and key-use rules in this document prevent implementations from treating a generic KEM shared secret as an application key.</t>
      </section>
      <section anchor="security-implementation">
        <name>Implementation and Resource Protection</name>
        <t>Implementations need cryptographically secure randomness for key generation, encapsulation, CEKs, IVs, nonces, and transaction identifiers. Algorithm-required checks, side-channel protections, and correct handling of implicit rejection remain necessary. Expanding a seed with an ad hoc derivation or reusing deterministic test material in production can defeat the intended properties.</t>
        <t>Post-quantum keys, signatures, chains, and CMP messages can be much larger than their classical counterparts. Implementations <bcp14>SHOULD</bcp14> apply configurable limits on message size, ASN.1 nesting, chain length, concurrent transactions, outstanding POP challenges, and cryptographic work. These limits <bcp14>MUST</bcp14> permit the algorithms and operations the implementation claims to support. This document does not assume that 4 KiB message buffers are sufficient.</t>
        <t>For CMP over HTTP, transport behavior remains governed by <xref target="RFC9811"/>. Retransmission and polling <bcp14>MUST</bcp14> retain the original CMP transaction semantics and <bcp14>MUST NOT</bcp14> become an algorithm-downgrade mechanism. A transport's confidentiality or authentication properties are separate from those of the CMP profile.</t>
      </section>
    </section>
    <section anchor="iana">
      <name>IANA Considerations</name>
      <t>This document has no IANA actions. All algorithm identifiers and CMP structures are defined in the referenced specifications. The descriptive base profile name is not an assigned protocol identifier.</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="RFC4211" target="https://www.rfc-editor.org/info/rfc4211">
          <front>
            <title>Internet X.509 Public Key Infrastructure Certificate Request Message Format (CRMF)</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <date month="September" year="2005"/>
          </front>
          <seriesInfo name="RFC" value="4211"/>
          <seriesInfo name="DOI" value="10.17487/RFC4211"/>
        </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="RFC5652" target="https://www.rfc-editor.org/info/rfc5652">
          <front>
            <title>Cryptographic Message Syntax (CMS)</title>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <date month="September" year="2009"/>
          </front>
          <seriesInfo name="STD" value="70"/>
          <seriesInfo name="RFC" value="5652"/>
          <seriesInfo name="DOI" value="10.17487/RFC5652"/>
        </reference>
        <reference anchor="RFC9629" target="https://www.rfc-editor.org/info/rfc9629">
          <front>
            <title>Using Key Encapsulation Mechanism (KEM) Algorithms in the Cryptographic Message Syntax (CMS)</title>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <author fullname="J. Gray" initials="J." surname="Gray"/>
            <author fullname="T. Okubo" initials="T." surname="Okubo"/>
            <date month="August" year="2024"/>
          </front>
          <seriesInfo name="RFC" value="9629"/>
          <seriesInfo name="DOI" value="10.17487/RFC9629"/>
        </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="RFC9882" target="https://www.rfc-editor.org/info/rfc9882">
          <front>
            <title>Use of the ML-DSA Signature Algorithm in the Cryptographic Message Syntax (CMS)</title>
            <author fullname="B. Salter" initials="B." surname="Salter"/>
            <author fullname="A. Raine" initials="A." surname="Raine"/>
            <author fullname="D. Van Geest" initials="D." surname="Van Geest"/>
            <date month="October" year="2025"/>
          </front>
          <seriesInfo name="RFC" value="9882"/>
          <seriesInfo name="DOI" value="10.17487/RFC9882"/>
        </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="RFC9814" target="https://www.rfc-editor.org/info/rfc9814">
          <front>
            <title>Use of the SLH-DSA Signature Algorithm in the Cryptographic Message Syntax (CMS)</title>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <author fullname="S. Fluhrer" initials="S." surname="Fluhrer"/>
            <author fullname="P. Kampanakis" initials="P." surname="Kampanakis"/>
            <author fullname="B. Westerbaan" initials="B." surname="Westerbaan"/>
            <date month="July" year="2025"/>
          </front>
          <seriesInfo name="RFC" value="9814"/>
          <seriesInfo name="DOI" value="10.17487/RFC9814"/>
        </reference>
        <reference anchor="RFC9935" target="https://www.rfc-editor.org/info/rfc9935">
          <front>
            <title>Internet X.509 Public Key Infrastructure - Algorithm Identifiers for the Module-Lattice-Based Key-Encapsulation Mechanism (ML-KEM)</title>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <author fullname="P. Kampanakis" initials="P." surname="Kampanakis"/>
            <author fullname="J. Massimo" initials="J." surname="Massimo"/>
            <author fullname="B. E. Westerbaan" initials="B. E." surname="Westerbaan"/>
            <date month="March" year="2026"/>
          </front>
          <seriesInfo name="RFC" value="9935"/>
          <seriesInfo name="DOI" value="10.17487/RFC9935"/>
        </reference>
        <reference anchor="RFC9936" target="https://www.rfc-editor.org/info/rfc9936">
          <front>
            <title>Use of ML-KEM in the Cryptographic Message Syntax (CMS)</title>
            <author fullname="J. Prat" initials="J." surname="Prat"/>
            <author fullname="M. Ounsworth" initials="M." surname="Ounsworth"/>
            <author fullname="D. Van Geest" initials="D." surname="Van Geest"/>
            <date month="March" year="2026"/>
          </front>
          <seriesInfo name="RFC" value="9936"/>
          <seriesInfo name="DOI" value="10.17487/RFC9936"/>
        </reference>
        <reference anchor="RFC5869" target="https://www.rfc-editor.org/info/rfc5869">
          <front>
            <title>HMAC-based Extract-and-Expand Key Derivation Function (HKDF)</title>
            <author fullname="H. Krawczyk" initials="H." surname="Krawczyk"/>
            <author fullname="P. Eronen" initials="P." surname="Eronen"/>
            <date month="May" year="2010"/>
          </front>
          <seriesInfo name="RFC" value="5869"/>
          <seriesInfo name="DOI" value="10.17487/RFC5869"/>
        </reference>
        <reference anchor="RFC8619" target="https://www.rfc-editor.org/info/rfc8619">
          <front>
            <title>Algorithm Identifiers for the HMAC-based Extract-and-Expand Key Derivation Function (HKDF)</title>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <date month="June" year="2019"/>
          </front>
          <seriesInfo name="RFC" value="8619"/>
          <seriesInfo name="DOI" value="10.17487/RFC8619"/>
        </reference>
        <reference anchor="RFC4231" target="https://www.rfc-editor.org/info/rfc4231">
          <front>
            <title>Identifiers and Test Vectors for HMAC-SHA-224, HMAC-SHA-256, HMAC-SHA-384, and HMAC-SHA-512</title>
            <author fullname="M. Nystrom" initials="M." surname="Nystrom"/>
            <date month="December" year="2005"/>
          </front>
          <seriesInfo name="RFC" value="4231"/>
          <seriesInfo name="DOI" value="10.17487/RFC4231"/>
        </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>
        <reference anchor="RFC3394" target="https://www.rfc-editor.org/info/rfc3394">
          <front>
            <title>Advanced Encryption Standard (AES) Key Wrap Algorithm</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <date month="October" year="2002"/>
          </front>
          <seriesInfo name="RFC" value="3394"/>
          <seriesInfo name="DOI" value="10.17487/RFC3394"/>
        </reference>
        <reference anchor="RFC3565" target="https://www.rfc-editor.org/info/rfc3565">
          <front>
            <title>Use of the Advanced Encryption Standard (AES) Encryption Algorithm in Cryptographic Message Syntax (CMS)</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <date month="July" year="2003"/>
          </front>
          <seriesInfo name="RFC" value="3565"/>
          <seriesInfo name="DOI" value="10.17487/RFC3565"/>
        </reference>
        <reference anchor="RFC5958" target="https://www.rfc-editor.org/info/rfc5958">
          <front>
            <title>Asymmetric Key Packages</title>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <date month="August" year="2010"/>
          </front>
          <seriesInfo name="RFC" value="5958"/>
          <seriesInfo name="DOI" value="10.17487/RFC5958"/>
        </reference>
        <reference anchor="RFC8933" target="https://www.rfc-editor.org/info/rfc8933">
          <front>
            <title>Update to the Cryptographic Message Syntax (CMS) for Algorithm Identifier Protection</title>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <date month="October" year="2020"/>
          </front>
          <seriesInfo name="RFC" value="8933"/>
          <seriesInfo name="DOI" value="10.17487/RFC8933"/>
        </reference>
        <reference anchor="FIPS203" target="https://csrc.nist.gov/pubs/fips/203/final">
          <front>
            <title>Module-Lattice-Based Key-Encapsulation Mechanism Standard</title>
            <author><organization>National Institute of Standards and Technology</organization></author>
            <date year="2024" month="August"/>
          </front>
          <seriesInfo name="FIPS" value="203"/>
          <seriesInfo name="DOI" value="10.6028/NIST.FIPS.203"/>
        </reference>
        <reference anchor="FIPS204" target="https://csrc.nist.gov/pubs/fips/204/final">
          <front>
            <title>Module-Lattice-Based Digital Signature Standard</title>
            <author><organization>National Institute of Standards and Technology</organization></author>
            <date year="2024" month="August"/>
          </front>
          <seriesInfo name="FIPS" value="204"/>
          <seriesInfo name="DOI" value="10.6028/NIST.FIPS.204"/>
        </reference>
        <reference anchor="FIPS205" target="https://csrc.nist.gov/pubs/fips/205/final">
          <front>
            <title>Stateless Hash-Based Digital Signature Standard</title>
            <author><organization>National Institute of Standards and Technology</organization></author>
            <date year="2024" month="August"/>
          </front>
          <seriesInfo name="FIPS" value="205"/>
          <seriesInfo name="DOI" value="10.6028/NIST.FIPS.205"/>
        </reference>
      </references>
      <references anchor="informative-references">
        <name>Informative References</name>
        <reference anchor="RFC9483" target="https://www.rfc-editor.org/info/rfc9483">
          <front>
            <title>Lightweight Certificate Management Protocol (CMP) Profile</title>
            <author fullname="H. Brockhaus" initials="H." surname="Brockhaus"/>
            <author fullname="D. von Oheimb" initials="D." surname="von Oheimb"/>
            <author fullname="S. Fries" initials="S." surname="Fries"/>
            <date month="November" year="2023"/>
          </front>
          <seriesInfo name="RFC" value="9483"/>
          <seriesInfo name="DOI" value="10.17487/RFC9483"/>
        </reference>
        <reference anchor="RFC9811" target="https://www.rfc-editor.org/info/rfc9811">
          <front>
            <title>Internet X.509 Public Key Infrastructure -- HTTP Transfer for the 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="9811"/>
          <seriesInfo name="DOI" value="10.17487/RFC9811"/>
        </reference>
        <reference anchor="RFC10073" target="https://www.rfc-editor.org/info/rfc10073">
          <front>
            <title>Composite Module-Lattice-Based Digital Signature Algorithm (ML-DSA) for Use in X.509 Public Key Infrastructure</title>
            <author fullname="M. Ounsworth" initials="M." surname="Ounsworth"/>
            <author fullname="J. Gray" initials="J." surname="Gray"/>
            <author fullname="M. Pala" initials="M." surname="Pala"/>
            <author fullname="J. Klaußner" initials="J." surname="Klaußner" asciiFullname="J. Klaussner" asciiSurname="Klaussner"/>
            <author fullname="S. Fluhrer" initials="S." surname="Fluhrer"/>
            <date month="November" year="2026"/>
          </front>
          <seriesInfo name="RFC" value="10073"/>
          <seriesInfo name="DOI" value="10.17487/RFC10073"/>
        </reference>
        <reference anchor="RFC10082" target="https://www.rfc-editor.org/info/rfc10082">
          <front>
            <title>Composite Module-Lattice-Based Digital Signature Algorithm (ML-DSA) for Use in the Cryptographic Message Syntax (CMS)</title>
            <author fullname="M. Ounsworth" initials="M." surname="Ounsworth"/>
            <author fullname="J. Gray" initials="J." surname="Gray"/>
            <author fullname="J. Klaußner" initials="J." surname="Klaußner" asciiFullname="J. Klaussner" asciiSurname="Klaussner"/>
            <author fullname="D. Van Geest" initials="D." surname="Van Geest"/>
            <date month="November" year="2026"/>
          </front>
          <seriesInfo name="RFC" value="10082"/>
          <seriesInfo name="DOI" value="10.17487/RFC10082"/>
        </reference>
        <reference anchor="RFC9709" target="https://www.rfc-editor.org/info/rfc9709">
          <front>
            <title>Encryption Key Derivation in the Cryptographic Message Syntax (CMS) Using HKDF with SHA-256</title>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <date month="January" year="2025"/>
          </front>
          <seriesInfo name="RFC" value="9709"/>
          <seriesInfo name="DOI" value="10.17487/RFC9709"/>
        </reference>
      </references>
    </references>
    <section anchor="example-flows">
      <name>Illustrative Enrollment Flows</name>
      <t>The following flows illustrate existing CMP exchanges using this profile. They are not new protocol messages or cryptographic test vectors. They assume independently provisioned credentials and an authorized certificate policy. Polling and RA forwarding are omitted.</t>
      <section anchor="signature-flow">
        <name>Locally Generated ML-DSA Signing Key</name>
        <artwork type="ascii-art"><![CDATA[
EE                                                RA/CA
 |                                                  |
 | Generate a new ML-DSA-65 key pair                  |
 | ir/cr: CRMF request with ML-DSA-65 signing POP      |
 |   pvno = 3; protection = authorized ML-DSA-65      |
 |------------------------------------------------->|
 |                   Authenticate and authorize EE;  |
 |                   verify POP; issue certificate   |
 | ip/cp: certificate, signed using ML-DSA-65         |
 |   response protection = authorized ML-DSA-65       |
 |<-------------------------------------------------|
 | Verify response and certificate; match request    |
 | certConf: SHA-512(DER(issued certificate))         |
 |   hashAlg omitted; protected using ML-DSA-65       |
 |------------------------------------------------->|
 | pkiconf: protected using ML-DSA-65                 |
 |<-------------------------------------------------|
]]></artwork>
        <t>The credential protecting the initial request is an existing authorized credential. It need not be the newly generated key. This flow does not assume that an unissued key authenticates its own enrollment identity.</t>
      </section>
      <section anchor="kem-flow">
        <name>Locally Generated ML-KEM Key with Encrypted-Certificate POP</name>
        <artwork type="ascii-art"><![CDATA[
EE                                                RA/CA
 |                                                  |
 | Generate a new ML-KEM-768 key pair                 |
 | ir/cr: requested ML-KEM public key;                |
 |   keyEncipherment -> subsequentMessage: encrCert   |
 |   pvno = 3; protection = authorized ML-DSA-65      |
 |------------------------------------------------->|
 |                   Authenticate and authorize EE;  |
 |                   create but withhold certificate|
 |                   encapsulate to requested key   |
 | ip/cp: encrypted certificate in EnvelopedData     |
 |   KEMRecipientInfo; AES-256 Key Wrap; AES-256-CBC   |
 |   response protection = authorized ML-DSA-65       |
 |<-------------------------------------------------|
 | Verify response; decapsulate and decrypt;         |
 | validate certificate against requested key/policy |
 | certConf: SHA-512(DER(issued certificate))         |
 |   protected using existing ML-DSA-65 credential    |
 |------------------------------------------------->|
 |                   Verify confirmation and POP;    |
 |                   permit certificate publication  |
 | pkiconf: protected using ML-DSA-65                 |
 |<-------------------------------------------------|
]]></artwork>
        <t>The SHA-512 mapping applies because the certificate is signed with ML-DSA-65. The subject key is ML-KEM-768 and cannot sign certConf. The EE therefore retains an independently authorized protection credential for this exchange.</t>
      </section>
    </section>
    <section anchor="encoding-examples">
      <name>Structural Encoding Examples</name>
      <t>The hexadecimal values below are DER structural examples for the base profile. They contain no private key, signature, or KEM ciphertext and are not complete CMP test vectors. Whitespace in the displayed hexadecimal is not part of the encoding.</t>
      <section anchor="algorithm-encoding-examples">
        <name>AlgorithmIdentifier Values</name>
        <artwork type="ascii-art"><![CDATA[
ML-DSA-65, parameters absent:
  30 0b 06 09 60 86 48 01 65 03 04 03 12

ML-KEM-768, parameters absent:
  30 0b 06 09 60 86 48 01 65 03 04 04 02

HKDF-SHA-256, parameters absent:
  30 0d 06 0b 2a 86 48 86 f7 0d 01 09 10 03 1c

HMAC-SHA-256, parameters NULL:
  30 0c 06 08 2a 86 48 86 f7 0d 02 09 05 00

SHA-512, parameters absent:
  30 0b 06 09 60 86 48 01 65 03 04 02 03
]]></artwork>
      </section>
      <section anchor="kembm-encoding-example">
        <name>KemBMParameter and KemOtherInfo</name>
        <t>The first value encodes HKDF-SHA-256, absent kemContext, len equal to 32, and HMAC-SHA-256 with NULL parameters. It is the parameters value of id-KemBasedMac, not a complete protectionAlg.</t>
        <artwork type="ascii-art"><![CDATA[
KemBMParameter:
  30 20
    30 0d 06 0b 2a 86 48 86 f7 0d 01 09 10 03 1c
    02 01 20
    30 0c 06 08 2a 86 48 86 f7 0d 02 09 05 00

KemOtherInfo, transactionID = 00 01 ... 0f:
  30 1d
    30 09 0c 07 43 4d 50 2d 4b 45 4d
    04 10 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
]]></artwork>
        <t>The sequential transactionID is only an encoding example. A live management operation requires the fresh random transactionID specified in <xref target="processing"/>.</t>
      </section>
    </section>
    <section anchor="interop">
      <name>Interoperability Evaluation</name>
      <t>This appendix identifies evaluation cases for implementers; it does not report completed implementation testing. Algorithm-level and CMS examples in RFC 9881, RFC 9882, RFC 9935, and RFC 9936 can be reused where their parameter choices match. Complete CMP messages need their own independently generated signatures, state, and credentials.</t>
      <table anchor="interop-cases">
        <name>Suggested Interoperability Cases</name>
        <thead><tr><th>Case</th><th>Expected behavior</th></tr></thead>
        <tbody>
          <tr><td>ML-DSA-65 enrollment with a separate protection credential</td><td>Validate both the protection signature and signing-key POP, then confirm the issued certificate.</td></tr>
          <tr><td>ML-KEM-768 encrypted-certificate POP</td><td>Decrypt only after outer authentication; confirm before publication; reject implicit confirmation.</td></tr>
          <tr><td>Mapped certificate with omitted hashAlg or explicit SHA-512</td><td>Use SHA-512 over the complete certificate in both cases.</td></tr>
          <tr><td>ML-KEM subject certificate signed using another signature algorithm</td><td>Select certHash by the issuer signature convention, not by ML-KEM.</td></tr>
          <tr><td>NULL parameters for ML-DSA, SLH-DSA, ML-KEM, or HKDF</td><td>Reject the invalid encoding; do not guess the intended algorithm.</td></tr>
          <tr><td>Wrong signature context, extra pre-hash, or wrong POP input</td><td>Fail verification; do not install the credential.</td></tr>
          <tr><td>KEM-MAC with a mismatched transactionID or CMS KDF context</td><td>Fail protection verification without accepting the operation.</td></tr>
          <tr><td>Wrong KEM ciphertext size, failed unwrap, or invalid padding</td><td>Reject without a secret-dependent diagnostic oracle.</td></tr>
          <tr><td>Missing trust path or unauthorized KGA</td><td>Reject even when the underlying signature is mathematically valid.</td></tr>
          <tr><td>Peer requests classical fallback after a profile failure</td><td>Fail the profile-required operation; do not silently weaken policy.</td></tr>
          <tr><td>Large chains, forwarding RAs, and polling</td><td>Preserve algorithm policy and transaction state within configured resource limits.</td></tr>
        </tbody>
      </table>
    </section>
  </back>
</rfc>
