Network Working Group J. D. Hillier Internet-Draft Certisyn, Inc. Intended status: Informational 25 November 2026 Expires: 29 May 2027 A Closed-Profile Ruling on Cryptographic Algorithm Inventories for the CNSA 2.0 Acquisition Gate draft-hillier-cnsa2-gate-ruling-00 Abstract National security systems of the United States are moving to the algorithms of the Commercial National Security Algorithm Suite 2.0, on a published NSA timeline. An acquiring party receives from each supplier an inventory of the cryptographic algorithms its product carries, in a supplier-chosen spelling, and has no shared procedure for ruling on that inventory. This document specifies a closed profile of the CNSA 2.0 algorithm set, a name-folding step, a ruling procedure that returns one verdict and one reason for every entry, a pair of digests over the canonical input and the canonical ruling, and conformance vectors. The ruling is a pure function of published tables, so any two parties who hold the same tables and the same inventory reach the same digests. A keyed mode lets two parties compare digests while keeping the inventory from everyone else. A ruling is a verdict against a published profile and carries the endorsement of no agency. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 29 May 2027. Hillier Expires 29 May 2027 [Page 1] Internet-Draft CNSA 2.0 Gate Ruling November 2026 Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 3 3. The Profile . . . . . . . . . . . . . . . . . . . . . . . . . 4 4. Folding Names . . . . . . . . . . . . . . . . . . . . . . . . 7 5. Ruling Procedure . . . . . . . . . . . . . . . . . . . . . . 8 6. Canonical Input and Ruling Digests . . . . . . . . . . . . . 9 7. Reproducibility . . . . . . . . . . . . . . . . . . . . . . . 10 8. Security Considerations . . . . . . . . . . . . . . . . . . . 10 9. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 12 Appendix A. Folding Tables . . . . . . . . . . . . . . . . . . . 12 Appendix B. Conformance Vectors . . . . . . . . . . . . . . . . 16 V01: Worked example . . . . . . . . . . . . . . . . . . . . . . 16 V02: Spelling and separators . . . . . . . . . . . . . . . . . 17 V03: Family folds and held names . . . . . . . . . . . . . . . 18 V04: Companions with no approved leg . . . . . . . . . . . . . 19 V05: Companions beside an approved leg . . . . . . . . . . . . 19 V06: Hybrid names and joined names . . . . . . . . . . . . . . 20 V07: Required purpose with no approved algorithm . . . . . . . 21 V08: Names outside ASCII . . . . . . . . . . . . . . . . . . . 21 V09: CycloneDX CBOM . . . . . . . . . . . . . . . . . . . . . . 22 V10: Names that collide with object keys . . . . . . . . . . . 24 V11: Five joined parts . . . . . . . . . . . . . . . . . . . . 24 V12: Name length counted in octets, at the limit . . . . . . . 25 V13: Name length counted in octets, over the limit . . . . . . 25 V14: Empty inventory . . . . . . . . . . . . . . . . . . . . . 26 V15: One entry over the limit . . . . . . . . . . . . . . . . . 26 V16: Unrecognized shape . . . . . . . . . . . . . . . . . . . . 26 V17: Unknown required purpose . . . . . . . . . . . . . . . . . 26 V18: Worked example under a shared key . . . . . . . . . . . . 26 V19: Key too short . . . . . . . . . . . . . . . . . . . . . . 27 V20: Worked example under a shared key with a key label . . . . 27 V21: Key label with no key . . . . . . . . . . . . . . . . . . 28 Hillier Expires 29 May 2027 [Page 2] Internet-Draft CNSA 2.0 Gate Ruling November 2026 V22: Stateful signature names that are not parameter sets . . . 28 References . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Normative References . . . . . . . . . . . . . . . . . . . . . 29 Informative References . . . . . . . . . . . . . . . . . . . . 30 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 31 1. Introduction CNSA 2.0 names a small set of algorithms and parameter sets for national security systems: ML-DSA-87 for signatures, ML-KEM-1024 for key establishment, LMS and XMSS for firmware and software signing, SHA-384 and SHA-512 for hashing and AES-256 for symmetric protection [CNSA2]. Inventories supplied for a product describe the same algorithms in many spellings and often include classical algorithms that sit alongside the post-quantum ones. The acquiring party needs a verdict on each entry and a verdict on the set. Cryptographic bills of materials standardise the shape of an inventory [CBOM]. This document standardises the ruling on one. It specifies the profile, the folding of names, the procedure, the digests and a set of conformance vectors. It specifies no signature, no storage and no transport. The ruling covers the names supplied. It rules each name against the profile of this document, inspects no product, tests no implementation and carries the endorsement of no agency. 2. Terminology The key words "MUST", "MUST NOT", "SHOULD" and "MAY" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. Profile: A closed table mapping each profile name to a ruling, a purpose and a reason, with the alias table, the composite table, the family folds and the limits of this document. The identifier of the profile changes whenever any of them changes. Ruling: One of approved, companion or refused. Purpose: One of signature, firmware_signature, key_establishment, hash or symmetric. Inventory: The list of algorithm names supplied for a product or system, either as a plain list or as the algorithm components of a CBOM. The order of the list is part of the inventory. Canonical JSON: JSON text produced by the JSON Canonicalization Hillier Expires 29 May 2027 [Page 3] Internet-Draft CNSA 2.0 Gate Ruling November 2026 Scheme [RFC8785]. Octet length: The length of the UTF-8 encoding of a string. 3. The Profile The profile identifier of this version is certisyn.cnsa2-nss/1.0. The table has 30 rows: 8 approved, 3 companion and 19 refused. The reason of each row is part of the ruling digest, so an implementation MUST reproduce it exactly. +===================+=========+====================+================+ | Profile name |Ruling | Purpose | Reason | +===================+=========+====================+================+ | aes-256 |approved | symmetric | CNSA 2.0 | | | | | symmetric | | | | | cipher | +-------------------+---------+--------------------+----------------+ | aes-256-gcm |approved | symmetric | CNSA 2.0 | | | | | symmetric | | | | | cipher | +-------------------+---------+--------------------+----------------+ | lms-sha256 |approved | firmware_signature | CNSA 2.0 | | | | | firmware and | | | | | software | | | | | signing (NIST | | | | | SP 800-208) | +-------------------+---------+--------------------+----------------+ | ml-dsa-87 |approved | signature | CNSA 2.0 | | | | | signature | | | | | parameter set | +-------------------+---------+--------------------+----------------+ | ml-kem-1024 |approved | key_establishment | CNSA 2.0 key | | | | | establishment | | | | | parameter set | +-------------------+---------+--------------------+----------------+ | sha-384 |approved | hash | CNSA 2.0 hash | +-------------------+---------+--------------------+----------------+ | sha-512 |approved | hash | CNSA 2.0 hash | +-------------------+---------+--------------------+----------------+ | xmss |approved | firmware_signature | CNSA 2.0 | | | | | firmware and | | | | | software | | | | | signing (NIST | | | | | SP 800-208) | +-------------------+---------+--------------------+----------------+ | ecdh-p384 |companion| key_establishment | classical | | | | | companion | Hillier Expires 29 May 2027 [Page 4] Internet-Draft CNSA 2.0 Gate Ruling November 2026 | | | | leg; carries | | | | | no weight | | | | | alone | +-------------------+---------+--------------------+----------------+ | ed25519 |companion| signature | classical | | | | | companion | | | | | leg; carries | | | | | no weight | | | | | alone | +-------------------+---------+--------------------+----------------+ | x25519 |companion| key_establishment | classical | | | | | companion | | | | | leg; carries | | | | | no weight | | | | | alone | +-------------------+---------+--------------------+----------------+ | 3des |refused | any | broken | +-------------------+---------+--------------------+----------------+ | aes-128-gcm |refused | any | below the | | | | | CNSA 2.0 key | | | | | size | +-------------------+---------+--------------------+----------------+ | ecdh-p256 |refused | any | defeated by | | | | | Shor | +-------------------+---------+--------------------+----------------+ | ecdsa-p256 |refused | any | defeated by | | | | | Shor | +-------------------+---------+--------------------+----------------+ | ecdsa-p384 |refused | any | defeated by | | | | | Shor | +-------------------+---------+--------------------+----------------+ | md5 |refused | any | broken | +-------------------+---------+--------------------+----------------+ | ml-dsa-44 |refused | any | below the | | | | | CNSA 2.0 | | | | | parameter set | +-------------------+---------+--------------------+----------------+ | ml-dsa-65 |refused | any | below the | | | | | CNSA 2.0 | | | | | parameter | | | | | set; ML- | | | | | DSA-87 is the | | | | | NSS parameter | +-------------------+---------+--------------------+----------------+ | ml-kem-512 |refused | any | below the | | | | | CNSA 2.0 | | | | | parameter set | +-------------------+---------+--------------------+----------------+ Hillier Expires 29 May 2027 [Page 5] Internet-Draft CNSA 2.0 Gate Ruling November 2026 | ml-kem-768 |refused | any | below the | | | | | CNSA 2.0 | | | | | parameter | | | | | set; ML- | | | | | KEM-1024 is | | | | | the NSS | | | | | parameter | +-------------------+---------+--------------------+----------------+ | rc4 |refused | any | broken | +-------------------+---------+--------------------+----------------+ | rsa-2048 |refused | any | defeated by | | | | | Shor | +-------------------+---------+--------------------+----------------+ | rsa-3072 |refused | any | defeated by | | | | | Shor | +-------------------+---------+--------------------+----------------+ | rsa-4096 |refused | any | defeated by | | | | | Shor | +-------------------+---------+--------------------+----------------+ | sha-1 |refused | any | broken | +-------------------+---------+--------------------+----------------+ | sha-256 |refused | any | SHA-384 or | | | | | SHA-512 is | | | | | the NSS hash | +-------------------+---------+--------------------+----------------+ | slh-dsa-sha2-128s |refused | any | SLH-DSA is | | | | | outside the | | | | | CNSA 2.0 NSS | | | | | set | +-------------------+---------+--------------------+----------------+ | slh-dsa-sha2-192f |refused | any | SLH-DSA is | | | | | outside the | | | | | CNSA 2.0 NSS | | | | | set | +-------------------+---------+--------------------+----------------+ | slh-dsa-sha2-256f |refused | any | SLH-DSA is | | | | | outside the | | | | | CNSA 2.0 NSS | | | | | set | +-------------------+---------+--------------------+----------------+ Table 1: Profile rows The approved rows follow the algorithm set of [CNSA2]. The algorithms are defined in the following documents. ml-dsa-44, ml-dsa-65, ml-dsa-87: [FIPS204] Hillier Expires 29 May 2027 [Page 6] Internet-Draft CNSA 2.0 Gate Ruling November 2026 ml-kem-512, ml-kem-768, ml-kem-1024: [FIPS203] slh-dsa rows: [FIPS205] lms-sha256, xmss: [SP800-208] sha-1, sha-256, sha-384, sha-512: [FIPS180-4] aes-128-gcm, aes-256, aes-256-gcm: [FIPS197] and, for GCM, [SP800-38D] A name that does not appear in the table MUST be ruled refused with the reason "not in the NSS profile". Lookup MUST consider only the table's own rows, so that inherited object keys in an implementation language are never resolved as profile names. 4. Folding Names An implementation folds each supplied name in these steps. 1. Remove leading and trailing ASCII whitespace: space, horizontal tab, line feed, vertical tab, form feed and carriage return. 2. Replace each letter A to Z with the letter a to z. No other character changes case, and no locale or Unicode case mapping applies. 3. Replace each run of ASCII whitespace, underscore and slash characters with one hyphen. 4. When the result is a key of the alias table (Table 2), the folded name is the value of that key. 5. Otherwise the family folds (Table 4) are tried in order. The first fold whose pattern matches the result decides: its outcome is the folded name, or, when the fold declines, the result unchanged, and no later fold is tried. 6. Otherwise the folded name is the result. Patterns use ECMAScript regular expression syntax without flags. The anchors ^ and $ match only the start and the end of the name, [0-9] matches an ASCII digit, and groups are numbered from one. A name that carries any character outside ASCII keeps that character through every step, matches no row of the table and is ruled refused with the reason "not in the NSS profile". A non-breaking space, a full-width letter and a letter of another script that resembles an ASCII letter all fall under this rule. Hillier Expires 29 May 2027 [Page 7] Internet-Draft CNSA 2.0 Gate Ruling November 2026 The supplied spelling MUST be returned beside the profile name so the reader sees what was folded. A supplied name that contains a plus sign is split at each plus sign, and each part is trimmed of ASCII whitespace. When there are two to four parts and none is empty, the entry stands for the parts, each folded and ruled on its own. A name that contains a plus sign and has more than four parts or an empty part is a single name. A name without a plus sign whose folded spelling with its hyphens removed is a key of the composite table (Table 3) stands for the components listed there, in order. Each component is reported as its own entry, in order, at the position of the name it came from, and the entry records that name as its group. The input digest is taken over the names as supplied, before this expansion. For a CBOM component whose assetType is algorithm, an implementation reads the component name and joins to it, each with a hyphen and in this order, the parameter set identifier, the curve and the mode when each is present, unless the folded name already contains the folded value. For example a component named ECDSA with the curve secp256r1 is supplied as ECDSA-secp256r1. A component whose assetType is not algorithm is skipped. Source positions of the components are reported beside each entry and sit outside the digests. 5. Ruling Procedure 1. Fold every supplied name and expand composite names. 2. Look up each folded name in the profile and assign its ruling and reason. 3. Collect the purposes of the approved entries. 4. Re-rule each companion entry whose purpose has no approved entry as refused, with the reason "companion leg with no approved P leg beside it", where P is the purpose of the companion entry. 5. Given a list of required purposes drawn from the purposes above, compute the unmet purposes as those with no approved entry. 6. The inventory conforms when no entry is refused and no required purpose is unmet. Hillier Expires 29 May 2027 [Page 8] Internet-Draft CNSA 2.0 Gate Ruling November 2026 An implementation MUST bound the input and MUST refuse an empty inventory. The reference implementation accepts at most 500 supplied names, each of at most 80 octets, and at most 4 parts in a joined name. It refuses an input with one of these identifiers: empty_input, too_many_entries, name_too_long, unrecognized_shape, bad_required_purpose, bad_key or bad_key_id. 6. Canonical Input and Ruling Digests Canonical JSON is used for every digest. Every member name in this section is ASCII, and every value is a string, a boolean, the value null or an array or object of those. The input digest is computed over an object with five members: kind (the string list or cyclonedx_cbom), items (the array of supplied names in order, as supplied; for a CBOM the joined names), required (the array of required purposes in the order given), digest_mode (the mode of this section) and key_id (the key identifier of this section, or null). The ruling digest is computed over an object with the members schema (the schema identifier of the ruling), profile, digest_mode, key_id, conforms, required_purposes, unmet_purposes and entries, an array in entry order of objects with the members algorithm (the profile name), ruling and reason. The schema identifier of this version is certisyn.cnsa2-gate-ruling/1.0. By default a digest is SHA-384 of the canonical JSON text, written as 96 lower-case hexadecimal characters. When the two parties share a key of 16 to 64 octets, written as 32 to 128 lower-case hexadecimal characters, a service MAY compute both digests as HMAC-SHA-384 [RFC2104] under that key over the same canonical JSON text and MUST then report the digest mode hmac-sha384; the default mode is reported as sha384. The digest mode and the key identifier are members of both digested objects, so a digest taken under a key cannot be presented as an unkeyed digest, and a digest taken under one key identifier cannot be presented under another. A service that computes keyed digests MAY accept a key identifier, a public label of 1 to 64 characters from A to Z, a to z, 0 to 9, full stop, underscore, colon and hyphen, never derived from the key; without a key identifier the member is null. A request that carries a key identifier without a key is refused. A party that checks a digest computes it with the mode and key identifier it expects, and does not take them from the reply. The profile digest is SHA-384, unkeyed, of the canonical JSON of an object with the members profile, rules (an object from profile name to an object with the members ruling, purpose and reason), aliases, Hillier Expires 29 May 2027 [Page 9] Internet-Draft CNSA 2.0 Gate Ruling November 2026 composites, folds (an array in order of objects with the members id and pattern) and limits (an object with the members max_entries, max_name_length and max_composite_parts). The profile digest of this version is given in Section "Appendix B. Conformance Vectors". Two parties whose rulings differ compare profile digests first: equal profile digests place the difference in the inventory, and unequal profile digests place it in a table. A service MAY return further members beside the ruling, for example guidance on what to replace an algorithm with, a summary, the profile digest or a statement about the scan that produced a CBOM. Such members are outside both digests, so adding or changing one does not change a digest. The order of the entries is part of the inventory. Parties who compare an unordered set sort the supplied names by code point before ruling. 7. Reproducibility A service that implements this document SHOULD publish the profile table, the alias table, the composite table, the family folds and the construction of the digests at stable addresses, SHOULD store nothing about the inventories it rules on, and SHOULD state the scope of a ruling: a ruling covers the names supplied, rules on each against the profile, and inspects no product and tests no implementation. A reference implementation and a public instance are available at https://app.certisyn.com/cnsa2. 8. Security Considerations A ruling covers the names in the inventory. An inventory that omits an algorithm the product carries produces a ruling that is silent about it. Acquiring parties SHOULD pair a ruling with the evidence that supports the inventory, for example validation records for the cryptographic modules and test vectors for the algorithm implementations. A ruling is also only as complete as the scan that produced the inventory. A CBOM can carry a statement of how many files the producing tool found, how many it examined and which it left unexamined; the Coverage Attestation Profile [CAP1] defines such a statement, and a service MAY report it beside the ruling, outside both digests. An unkeyed digest identifies an inventory to anyone who can enumerate candidates. An inventory has few plausible values, so a party that holds an unkeyed digest and the published tables can recover a short inventory by testing candidate inventories, and a three-entry inventory falls to a few tens of thousands of guesses. An unkeyed Hillier Expires 29 May 2027 [Page 10] Internet-Draft CNSA 2.0 Gate Ruling November 2026 digest therefore confirms agreement between parties who already hold the inventory, and publishing one publishes the inventory to anyone willing to enumerate. Parties who compare outcomes while keeping the inventory from others use the keyed mode with a key of at least 128 bits, drawn at random and held by those parties alone. A key is used for one ruling comparison. Under one key the same inventory always gives the same digest, so a third party who sees two digests under that key learns whether two rulings cover the same inventory, and a party who sees the digests of successive rulings learns when an inventory changes. Parties therefore draw a fresh key for each ruling they compare, for example by deriving it with a key derivation function [RFC5869] from a shared secret and a value that is fresh for the ruling, and label it with a key identifier that does not repeat. A key that serves more than one ruling gives up the unlinkability that the keyed mode exists to provide. The profile changes when the issuing authority changes its guidance. An implementation MUST change the profile identifier whenever a row, an alias, a composite, a fold or a limit changes, so a ruling carried forward names the table it was made against and a replay under a later table is a different, named ruling. The profile digest makes a difference between two tables visible without a comparison of the tables themselves. The ruling names the stateful hash-based signature schemes LMS and XMSS as approved, as the issuing authority does. A stateful scheme is safe only when no one-time key is used twice, and an inventory of names shows nothing about how an implementation records which keys it has used. A ruling of approved for LMS or XMSS therefore says that the algorithm is on the list and says nothing about how its state is kept. Management of that state, for example a register of used leaf indexes, belongs to the signing system and to a separate specification, and a party that relies on a stateful signature asks for that evidence beside the ruling. A ruling of approved for an AES-256 name says that the key size is on the list. It does not rule the mode of operation. A name that gives a mode other than GCM, for example a name that gives ECB, folds to the AES-256 row and is ruled approved on the key size. A party that needs a stated mode asks for the exact name aes-256-gcm and reads the folded name in the ruling entry. Hillier Expires 29 May 2027 [Page 11] Internet-Draft CNSA 2.0 Gate Ruling November 2026 A ruling of refused says that the profile does not list the name. It makes no statement about the name under any guidance of the issuing authority. Constructions built on an approved hash, for example HMAC-SHA384 or HKDF-SHA384, are not in the profile, are ruled refused, and are not thereby found non-conforming. A party that carries such a construction lists its hash as SHA-384 and reads the construction from the product evidence. A companion rule prevents a classical algorithm from satisfying a requirement alone. An implementation that omits the rule would rule an inventory of Ed25519 and SHA-384 as conforming for the signature purpose. Folding applies ASCII rules only. A supplier name written with a look-alike character or an unusual space stays outside the table and is ruled refused, and every implementation language reaches the same result because no locale or Unicode case mapping applies. Input handling bounds apply to every public instance: a limit on body size, on entry count and on name length, and a refusal on malformed input without raising an error through the service. 9. IANA Considerations This document has no IANA actions. Appendix A. Folding Tables The tables below are part of the profile certisyn.cnsa2-nss/1.0. +=================+==============+ | Folded spelling | Profile name | +=================+==============+ | aes-128 | aes-128-gcm | +-----------------+--------------+ | aes128-gcm | aes-128-gcm | +-----------------+--------------+ | aes256 | aes-256 | +-----------------+--------------+ | aes256-gcm | aes-256-gcm | +-----------------+--------------+ | arcfour | rc4 | +-----------------+--------------+ | curve25519 | x25519 | +-----------------+--------------+ | des-ede3 | 3des | +-----------------+--------------+ | dilithium2 | ml-dsa-44 | Hillier Expires 29 May 2027 [Page 12] Internet-Draft CNSA 2.0 Gate Ruling November 2026 +-----------------+--------------+ | dilithium3 | ml-dsa-65 | +-----------------+--------------+ | dilithium5 | ml-dsa-87 | +-----------------+--------------+ | ecdh-p-256 | ecdh-p256 | +-----------------+--------------+ | ecdh-p-384 | ecdh-p384 | +-----------------+--------------+ | ecdh-secp256r1 | ecdh-p256 | +-----------------+--------------+ | ecdh-secp384r1 | ecdh-p384 | +-----------------+--------------+ | ecdsa-p-256 | ecdsa-p256 | +-----------------+--------------+ | ecdsa-p-384 | ecdsa-p384 | +-----------------+--------------+ | ecdsa-secp256r1 | ecdsa-p256 | +-----------------+--------------+ | ecdsa-secp384r1 | ecdsa-p384 | +-----------------+--------------+ | kyber1024 | ml-kem-1024 | +-----------------+--------------+ | kyber512 | ml-kem-512 | +-----------------+--------------+ | kyber768 | ml-kem-768 | +-----------------+--------------+ | mldsa44 | ml-dsa-44 | +-----------------+--------------+ | mldsa65 | ml-dsa-65 | +-----------------+--------------+ | mldsa87 | ml-dsa-87 | +-----------------+--------------+ | mlkem1024 | ml-kem-1024 | +-----------------+--------------+ | mlkem512 | ml-kem-512 | +-----------------+--------------+ | mlkem768 | ml-kem-768 | +-----------------+--------------+ | secp256r1 | ecdsa-p256 | +-----------------+--------------+ | secp384r1 | ecdsa-p384 | +-----------------+--------------+ | sha-2-256 | sha-256 | +-----------------+--------------+ | sha-2-384 | sha-384 | +-----------------+--------------+ | sha-2-512 | sha-512 | Hillier Expires 29 May 2027 [Page 13] Internet-Draft CNSA 2.0 Gate Ruling November 2026 +-----------------+--------------+ | sha2-256 | sha-256 | +-----------------+--------------+ | sha2-384 | sha-384 | +-----------------+--------------+ | sha2-512 | sha-512 | +-----------------+--------------+ | sha256 | sha-256 | +-----------------+--------------+ | sha384 | sha-384 | +-----------------+--------------+ | sha512 | sha-512 | +-----------------+--------------+ | tdes | 3des | +-----------------+--------------+ | triple-des | 3des | +-----------------+--------------+ Table 2: Alias table +==========================+========================+ | Spelling without hyphens | Components, in order | +==========================+========================+ | secp256r1mlkem768 | ecdh-p256, ml-kem-768 | +--------------------------+------------------------+ | secp384r1mlkem1024 | ecdh-p384, ml-kem-1024 | +--------------------------+------------------------+ | x25519kyber768draft00 | x25519, kyber768 | +--------------------------+------------------------+ | x25519mlkem768 | x25519, ml-kem-768 | +--------------------------+------------------------+ Table 3: Composite table +==========+===========================================+============+ |Id |Pattern |Folded name | +==========+===========================================+============+ |crystals- |^(?:crystals-)?(kyber|dilithium)-?([0-9]+)$|the alias | |names | |table value | | | |for the | | | |family name | | | |joined to | | | |the number, | | | |such as | | | |kyber1024, | | | |when one | | | |exists; | | | |otherwise | Hillier Expires 29 May 2027 [Page 14] Internet-Draft CNSA 2.0 Gate Ruling November 2026 | | |the fold | | | |declines | +----------+-------------------------------------------+------------+ |ml-names |^ml-?(dsa|kem)-?([0-9]+)$ |ml-, then | | | |the first | | | |group, a | | | |hyphen and | | | |the second | | | |group | +----------+-------------------------------------------+------------+ |multitree-|(^|-)hss(-|$)|xmss-?mt |the name | |held | |unchanged | +----------+-------------------------------------------+------------+ |lms-any |^lms(-sha256(-m(24|32))?(-h[0-9]+)?(-lmots-|lms-sha256, | | |sha256-n(24|32)-w[0-9]+)?)?$ |when the | | | |name is lms | | | |alone or | | | |lms | | | |followed by | | | |a SHA-256 | | | |parameter | | | |set in the | | | |form the | | | |pattern | | | |allows; any | | | |other | | | |spelling, | | | |including a | | | |SHAKE | | | |parameter | | | |set, stays | | | |unfolded | | | |and is | | | |ruled | | | |refused | +----------+-------------------------------------------+------------+ |xmss-any |^xmss(-sha2-(10|16|20)-(192|256))?$ |xmss, when | | | |the name is | | | |xmss alone | | | |or xmss | | | |followed by | | | |a SHA-2 | | | |single-tree | | | |parameter | | | |set in the | | | |form the | | | |pattern | | | |allows; any | Hillier Expires 29 May 2027 [Page 15] Internet-Draft CNSA 2.0 Gate Ruling November 2026 | | |other | | | |spelling | | | |stays | | | |unfolded | | | |and is | | | |ruled | | | |refused | +----------+-------------------------------------------+------------+ |aes- |^aes-?256(-|$) |aes-256-gcm | |256-any | |when the | | | |name is | | | |exactly | | | |aes- | | | |256-gcm, | | | |otherwise | | | |aes-256 | +----------+-------------------------------------------+------------+ |aes- |^aes-?128(-|$) |aes-128-gcm | |128-any | | | +----------+-------------------------------------------+------------+ Table 4: Family folds, in order Appendix B. Conformance Vectors The profile digest of certisyn.cnsa2-nss/1.0 is: fcfef9630ec64b22620ab90f864ba06c1f54f694cab1e258 41f0184a90ac398d8532285f43b2844bea056a06f5b4c29b Each vector gives an input, the required purposes and, where present, a key, followed by the ruled entries and both digests. Digests are written on two lines for display. Characters outside ASCII appear as \uXXXX escapes in the display; the digests are taken over the characters themselves, as the JSON Canonicalization Scheme requires. The input digest of a CBOM is taken over the joined names, which are the supplied names listed in the entries. Every digest in this appendix was reproduced from the tables of this document with a second implementation. V01: Worked example Input: ["ML-DSA-87","SHA-384","Ed25519"] Required purposes: signature, hash. Hillier Expires 29 May 2027 [Page 16] Internet-Draft CNSA 2.0 Gate Ruling November 2026 Entries, in order, as supplied and as ruled: 1. "ML-DSA-87" ml-dsa-87 approved: CNSA 2.0 signature parameter set 2. "SHA-384" sha-384 approved: CNSA 2.0 hash 3. "Ed25519" ed25519 companion: classical companion leg; carries no weight alone Conforms: true. Unmet purposes: none. Digest mode: sha384. Input digest: 1a191ec1f1374c470b83e195dca44f5f39ce957419e491d7 921cbd51ce4008e2a6a17f325b29a1c5f844dcb9ee82247b Ruling digest: 1ded165c97d656ef396dec4cc29225e8e672dcec4df7fec7 4f1c94a5bcc36913c7c27ff34fc28296fb2413034023e253 V02: Spelling and separators Input: [" ML_DSA/87 ","Dilithium5","SHA2-384","AES256-GCM"] Required purposes: none. Entries, in order, as supplied and as ruled: 1. " ML_DSA/87 " ml-dsa-87 approved: CNSA 2.0 signature parameter set 2. "Dilithium5" ml-dsa-87 approved: CNSA 2.0 signature parameter set 3. "SHA2-384" sha-384 approved: CNSA 2.0 hash 4. "AES256-GCM" aes-256-gcm approved: CNSA 2.0 symmetric cipher Conforms: true. Unmet purposes: none. Digest mode: sha384. Input digest: 44f05c5712ea74c38c8eb142deee6ebfe17dc6a81e1dc807 7443132da798cd2de00a78984731d26674919ab92d196ae9 Ruling digest: Hillier Expires 29 May 2027 [Page 17] Internet-Draft CNSA 2.0 Gate Ruling November 2026 3ae1045e78738c19cc1c2442fdd4ecd876fae7b4a0929a24 01a6e22e26c2393b24b6bfb41858ff9eeb4923deb949d7e0 V03: Family folds and held names Input: [ "AES-256-CBC", "LMS_SHA256_M24_H5", "XMSS-SHA2_10_256", "HSS-LMS-SHA256", "XMSSMT-SHA2_20/2_256", "MLKEM768" ] Required purposes: none. Entries, in order, as supplied and as ruled: 1. "AES-256-CBC" aes-256 approved: CNSA 2.0 symmetric cipher 2. "LMS_SHA256_M24_H5" lms-sha256 approved: CNSA 2.0 firmware and software signing (NIST SP 800-208) 3. "XMSS-SHA2_10_256" xmss approved: CNSA 2.0 firmware and software signing (NIST SP 800-208) 4. "HSS-LMS-SHA256" hss-lms-sha256 refused: not in the NSS profile 5. "XMSSMT-SHA2_20/2_256" xmssmt-sha2-20-2-256 refused: not in the NSS profile 6. "MLKEM768" ml-kem-768 refused: below the CNSA 2.0 parameter set; ML-KEM-1024 is the NSS parameter Conforms: false. Unmet purposes: none. Digest mode: sha384. Input digest: e95221b96ce04fe209e337ee8edefa86dffe4b85a4405d70 6cfa7e8a6d1a0e5643f1664f84501f41d56cfe888103b53f Ruling digest: 92f9f0f8b14e002aae20cc2f4a4b3dad9770c3af88251915 b7f45e1a79608ae3d2f8257e32765e8d2cace4fbf4cb6580 Hillier Expires 29 May 2027 [Page 18] Internet-Draft CNSA 2.0 Gate Ruling November 2026 V04: Companions with no approved leg Input: ["Ed25519","X25519"] Required purposes: none. Entries, in order, as supplied and as ruled: 1. "Ed25519" ed25519 refused: companion leg with no approved signature leg beside it 2. "X25519" x25519 refused: companion leg with no approved key_establishment leg beside it Conforms: false. Unmet purposes: none. Digest mode: sha384. Input digest: ace952d45e902041bf732b34673540b62bfe1793c22080e9 91d05b72881953d627e9a5aab1d332476530d75f3e40847c Ruling digest: 12352ac0d3052063cf8a390da53fd7954412dcdb3405ff3a 2726d2689c794413850720fc5a2fc2375a169ba337030b16 V05: Companions beside an approved leg Input: ["ML-KEM-1024","X25519","ECDH-P384"] Required purposes: key_establishment. Entries, in order, as supplied and as ruled: 1. "ML-KEM-1024" ml-kem-1024 approved: CNSA 2.0 key establishment parameter set 2. "X25519" x25519 companion: classical companion leg; carries no weight alone 3. "ECDH-P384" ecdh-p384 companion: classical companion leg; carries no weight alone Conforms: true. Unmet purposes: none. Digest mode: sha384. Hillier Expires 29 May 2027 [Page 19] Internet-Draft CNSA 2.0 Gate Ruling November 2026 Input digest: c9444e4596d3e46098c7cc632713a8546fc874ac171171ec c04d52d6e0e05111884fdf433d4362d91b231689c53cc06a Ruling digest: 6b477bd3f045f3ac7959f4afcf9fb24ff97bfaf129b46c0b 83f824934d5634311252d857e674b5b1ce7efc0d4a3eb7e0 V06: Hybrid names and joined names Input: ["X25519MLKEM768","SECP384R1MLKEM1024","ML-DSA-87+Ed25519"] Required purposes: signature, key_establishment. Entries, in order, as supplied and as ruled: 1. "x25519" x25519 companion: classical companion leg; carries no weight alone 2. "ml-kem-768" ml-kem-768 refused: below the CNSA 2.0 parameter set; ML-KEM-1024 is the NSS parameter 3. "ecdh-p384" ecdh-p384 companion: classical companion leg; carries no weight alone 4. "ml-kem-1024" ml-kem-1024 approved: CNSA 2.0 key establishment parameter set 5. "ML-DSA-87" ml-dsa-87 approved: CNSA 2.0 signature parameter set 6. "Ed25519" ed25519 companion: classical companion leg; carries no weight alone Conforms: false. Unmet purposes: none. Digest mode: sha384. Input digest: b269ad6d817842fb8de593a865b6aefb7a84ed45cad11cfa f5886a645f2f076f0be39739bcfb73f39bfc3626145e3801 Ruling digest: bb6b2fe3d40dce742f46a41077fa7c552025ee89e4a9556d fd85546a3e54dca61c5575bd2240b083e70b34b3f7bd3537 Hillier Expires 29 May 2027 [Page 20] Internet-Draft CNSA 2.0 Gate Ruling November 2026 V07: Required purpose with no approved algorithm Input: ["SHA-384"] Required purposes: signature, hash, symmetric. Entries, in order, as supplied and as ruled: 1. "SHA-384" sha-384 approved: CNSA 2.0 hash Conforms: false. Unmet purposes: signature, symmetric. Digest mode: sha384. Input digest: f71280c4d4597c60468de4b94ed4d85d7f5fcd4453dc1767 d0dfef3ed6914030e82bc27cab82c2e98efd08d475c96ec7 Ruling digest: 3f8490d8eeebfe6e48cd2223bea8499df56310c2fe04615d 29cea062ce789ae91a13d361d0d880738f3da7cb8bda8103 V08: Names outside ASCII Input: [ "ML-DSA-87\u00A0", "\u212Ayber1024", "ML-DSA-\u0668\u0667", "\uFF33\uFF28\uFF21-384" ] Required purposes: none. Entries, in order, as supplied and as ruled: Hillier Expires 29 May 2027 [Page 21] Internet-Draft CNSA 2.0 Gate Ruling November 2026 1. "ML-DSA-87\u00A0" ml-dsa-87\u00A0 refused: not in the NSS profile 2. "\u212Ayber1024" \u212Ayber1024 refused: not in the NSS profile 3. "ML-DSA-\u0668\u0667" ml-dsa-\u0668\u0667 refused: not in the NSS profile 4. "\uFF33\uFF28\uFF21-384" \uFF33\uFF28\uFF21-384 refused: not in the NSS profile Conforms: false. Unmet purposes: none. Digest mode: sha384. Input digest: 41722ce36bc3f92ebb5473e7feecd5d46d9d70c1aedf5b28 0311977403737211681c77076814b96badad7cf8849edc9f Ruling digest: 336576b414f3c895e934b7c88e608eef5b0edbc56856dc7e 22acbe02ba61569bf753211ab982f19c28d15913cd333947 V09: CycloneDX CBOM Input: { "bomFormat": "CycloneDX", "specVersion": "1.6", "components": [ { "type": "cryptographic-asset", "name": "ML-DSA", "cryptoProperties": { "assetType": "algorithm", "algorithmProperties": { "parameterSetIdentifier": "87" } } }, { "type": "cryptographic-asset", "name": "ECDSA", "cryptoProperties": { "assetType": "algorithm", "algorithmProperties": { "curve": "secp256r1" } } Hillier Expires 29 May 2027 [Page 22] Internet-Draft CNSA 2.0 Gate Ruling November 2026 }, { "type": "cryptographic-asset", "name": "AES", "cryptoProperties": { "assetType": "algorithm", "algorithmProperties": { "parameterSetIdentifier": "256", "mode": "gcm" } } }, { "type": "cryptographic-asset", "name": "SHA-384", "cryptoProperties": { "assetType": "algorithm" } }, { "type": "cryptographic-asset", "name": "gateway-tls-cert", "cryptoProperties": { "assetType": "certificate" } } ] } Required purposes: signature, hash, symmetric. Entries, in order, as supplied and as ruled: 1. "ML-DSA-87" ml-dsa-87 approved: CNSA 2.0 signature parameter set 2. "ECDSA-secp256r1" ecdsa-p256 refused: defeated by Shor 3. "AES-256-gcm" aes-256-gcm approved: CNSA 2.0 symmetric cipher 4. "SHA-384" sha-384 approved: CNSA 2.0 hash Conforms: false. Unmet purposes: none. Digest mode: sha384. Input digest: a006fc1eb50e9d45f3daea27e3e3c3a68db24de522f7c638 a784839ee64456484b870020ec617f78eab913a9618e671b Hillier Expires 29 May 2027 [Page 23] Internet-Draft CNSA 2.0 Gate Ruling November 2026 Ruling digest: e0384d8ab0caa682b0339e833fa0357fda4f3b07464394df 856247be11548ea841aad8cedfc7dc3165aed4e41b656e13 V10: Names that collide with object keys Input: ["constructor","__proto__","ChaCha20"] Required purposes: none. Entries, in order, as supplied and as ruled: 1. "constructor" constructor refused: not in the NSS profile 2. "__proto__" -proto- refused: not in the NSS profile 3. "ChaCha20" chacha20 refused: not in the NSS profile Conforms: false. Unmet purposes: none. Digest mode: sha384. Input digest: f5e7c9b682744a7466770f0063dbb10cd5ee1a22f5d2a343 5dbadd9a472242d2714648374998bdd396c25fb0e58c69a3 Ruling digest: e424d2bc6fe9ceace5db0d34fb13415d7f8e3c1a60757791 c5eecb2f68838e148f3221932d005be98950535dcb10de8c V11: Five joined parts Input: ["A+B+C+D+E"] Required purposes: none. Entries, in order, as supplied and as ruled: 1. "A+B+C+D+E" a+b+c+d+e refused: not in the NSS profile Conforms: false. Unmet purposes: none. Digest mode: sha384. Hillier Expires 29 May 2027 [Page 24] Internet-Draft CNSA 2.0 Gate Ruling November 2026 Input digest: 7ec911a80c7f06aaf387f4ed0d48fa02713b6da3aeba2726 4c8a1b5b0b670c23b018eae1cdc9d8ae2f68359c7bde8729 Ruling digest: 030c6184e5d75494d57eb793fc1e66527837bbbd497c41e2 24e077b3dd4842cd6396bac110c10ec07c5db412390543bf V12: Name length counted in octets, at the limit Input: ["\u00E9" repeated 40 times] Required purposes: none. Entries, in order, as supplied and as ruled: 1. "\u00E9" repeated 40 times \u00E9 repeated 40 times refused: not in the NSS profile Conforms: false. Unmet purposes: none. Digest mode: sha384. Input digest: cab9eb5af2189468985fbca2406f47b7f23239d1dacbef03 234485c4a4de49b80471ed5f7fc9d5d523b961b8eef49239 Ruling digest: 7a7d2fb31f873b101fc08350d6ae8e1b76e3f915283c7602 82974bebab4e540eb3ecc995c98f462229d5d8ad6c7ebf19 V13: Name length counted in octets, over the limit Input: ["\u00E9" repeated 41 times] Required purposes: none. Outcome: the input is refused with name_too_long. Hillier Expires 29 May 2027 [Page 25] Internet-Draft CNSA 2.0 Gate Ruling November 2026 V14: Empty inventory Input: [] Required purposes: none. Outcome: the input is refused with empty_input. V15: One entry over the limit Input: 501 entries, each the name SHA-384 Required purposes: none. Outcome: the input is refused with too_many_entries. V16: Unrecognized shape Input: 42 Required purposes: none. Outcome: the input is refused with unrecognized_shape. V17: Unknown required purpose Input: ["SHA-384"] Required purposes: bogus. Outcome: the input is refused with bad_required_purpose. V18: Worked example under a shared key Input: ["ML-DSA-87","SHA-384","Ed25519"] Required purposes: signature, hash. Key: 000102030405060708090a0b0c0d0e0f. Hillier Expires 29 May 2027 [Page 26] Internet-Draft CNSA 2.0 Gate Ruling November 2026 Entries, in order, as supplied and as ruled: 1. "ML-DSA-87" ml-dsa-87 approved: CNSA 2.0 signature parameter set 2. "SHA-384" sha-384 approved: CNSA 2.0 hash 3. "Ed25519" ed25519 companion: classical companion leg; carries no weight alone Conforms: true. Unmet purposes: none. Digest mode: hmac-sha384. Input digest: 63df8e2bd3623bcbea90020186160bc047dd26e9c6376a64 cef0e72e0f6835587ea9582f79b67c61efa6476e0b442d96 Ruling digest: 5b550bf5964c322b9be480d0b5750aed9d88eb5f13ae8022 1e82ab31318a8f043ec93db9b5fdc1d2268b4daed88f16a4 V19: Key too short Input: ["SHA-384"] Required purposes: none. Key: 00ff. Outcome: the input is refused with bad_key. V20: Worked example under a shared key with a key label Input: ["ML-DSA-87","SHA-384","Ed25519"] Required purposes: signature, hash. Key: 000102030405060708090a0b0c0d0e0f. Key identifier: pair-0001. Entries, in order, as supplied and as ruled: 1. "ML-DSA-87" ml-dsa-87 approved: CNSA 2.0 signature parameter set 2. "SHA-384" sha-384 approved: CNSA 2.0 hash 3. "Ed25519" ed25519 companion: classical companion leg; carries no weight alone Hillier Expires 29 May 2027 [Page 27] Internet-Draft CNSA 2.0 Gate Ruling November 2026 Conforms: true. Unmet purposes: none. Digest mode: hmac-sha384. Input digest: 996093112dcdd201c5ab653fb436bbcd45c856a383f43609 742b34e021317871d7048bdfc0187ec29751267831c926cc Ruling digest: 015e6c934bc0be54d73af4c407aaed16977fa58dddfdea3c 8ee7aea2e09468d82f787f07fd6b6d077635697cb1f919b5 V21: Key label with no key Input: ["SHA-384"] Required purposes: none. Key identifier: pair-0001. Outcome: the input is refused with bad_key_id. V22: Stateful signature names that are not parameter sets Input: [ "LMS-md5", "lms-", "xmss-bogus", "LMS_SHAKE_M32_H5", "XMSS-SHAKE256_10_256", "LMS-SHA256-M24-H5", "XMSS-SHA2_10_256" ] Required purposes: none. Entries, in order, as supplied and as ruled: Hillier Expires 29 May 2027 [Page 28] Internet-Draft CNSA 2.0 Gate Ruling November 2026 1. "LMS-md5" lms-md5 refused: not in the NSS profile 2. "lms-" lms- refused: not in the NSS profile 3. "xmss-bogus" xmss-bogus refused: not in the NSS profile 4. "LMS_SHAKE_M32_H5" lms-shake-m32-h5 refused: not in the NSS profile 5. "XMSS-SHAKE256_10_256" xmss-shake256-10-256 refused: not in the NSS profile 6. "LMS-SHA256-M24-H5" lms-sha256 approved: CNSA 2.0 firmware and software signing (NIST SP 800-208) 7. "XMSS-SHA2_10_256" xmss approved: CNSA 2.0 firmware and software signing (NIST SP 800-208) Conforms: false. Unmet purposes: none. Digest mode: sha384. Input digest: 9315c5c6166e03c6308041883c007c6b5ead5766236d4b2c 3671e47c55435151b0115a70d1157de0857aa31ef631568a Ruling digest: 6b401ddd04ec6695c6315efb4c5c32a34be4c9ada9576141 027ab71de15cd8e92d80bc61379d589370f7f93e76ae722b References Normative References [RFC2104] Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed- Hashing for Message Authentication", RFC 2104, DOI 10.17487/RFC2104, February 1997, . [RFC5869] Krawczyk, H. and P. Eronen, "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)", RFC 5869, DOI 10.17487/RFC5869, May 2010, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . Hillier Expires 29 May 2027 [Page 29] Internet-Draft CNSA 2.0 Gate Ruling November 2026 [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC8785] Rundgren, A., Jordan, B., and S. Erdtman, "JSON Canonicalization Scheme (JCS)", RFC 8785, DOI 10.17487/RFC8785, June 2020, . Informative References [CNSA2] National Security Agency, "The Commercial National Security Algorithm Suite 2.0 and Quantum Computing FAQ, Version 2.0", April 2024, . [CAP1] Hillier, J. D., "The Coverage Attestation Profile (CAP- 1)", Work in Progress, Internet-Draft, draft-hillier- coverage-attestation-00, August 2026, . [CBOM] CycloneDX, "CycloneDX Cryptography Bill of Materials", 2024, . [FIPS203] National Institute of Standards and Technology, "Module- Lattice-Based Key-Encapsulation Mechanism Standard", FIPS 203, August 2024, . [FIPS204] National Institute of Standards and Technology, "Module- Lattice-Based Digital Signature Standard", FIPS 204, August 2024, . [FIPS205] National Institute of Standards and Technology, "Stateless Hash-Based Digital Signature Standard", FIPS 205, August 2024, . [FIPS180-4] National Institute of Standards and Technology, "Secure Hash Standard (SHS)", FIPS 180-4, August 2015, . [FIPS197] National Institute of Standards and Technology, "Advanced Encryption Standard (AES)", FIPS 197, November 2001, . Hillier Expires 29 May 2027 [Page 30] Internet-Draft CNSA 2.0 Gate Ruling November 2026 [SP800-38D] National Institute of Standards and Technology, "Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC", NIST Special Publication 800-38D, November 2007, . [SP800-208] National Institute of Standards and Technology, "Recommendation for Stateful Hash-Based Signature Schemes", NIST Special Publication 800-208, October 2020, . Author's Address Joel David Hillier Certisyn, Inc. Ogden, Utah 84401 United States Email: jhillier@certisyn.com URI: https://certisyn.com/ Hillier Expires 29 May 2027 [Page 31]