← Back to section · Standards & Specifications
Algorithm Identifiers and OIDs: Why One Algorithm Needs Several Sets of Names
Certificates use OIDs, TLS uses code points, JOSE uses strings — where the division of labour among identifier systems comes from, what role NIST's CSOR registry plays in it, and what goes wrong when the wrong identifier is chosen.
Once an algorithm has been standardized, it still needs one more thing before it can truly enter systems: a name that everyone recognizes. A certificate must state what algorithm a public key belongs to, a TLS handshake must negotiate which key exchange to use, a token header must declare the signature algorithm — and what fills all these slots is an algorithm identifier. Interestingly, the same algorithm often has several sets of names in different protocols. That is not chaos, but the result of each identifier system evolving with its own message format.
OIDs: the global numbering of the certificate world
The object identifier (OID) is the naming method of the X.509 and ASN.1 world: a dotted string of numbers, segmented like the area codes of telephone numbers, where the prefix identifies the registration authority and the trailing arcs are assigned by that authority itself. The OIDs of U.S. federal algorithms sit under arcs administered by NIST, and NIST publicly publishes the OID assignments of its algorithms through its Computer Security Objects Register (CSOR): traditional algorithms such as AES and the SHA family each have their entries, and in the post-quantum era every parameter set of ML-KEM, ML-DSA and SLH-DSA likewise has its own OID.
“One OID per parameter set” is the key design. The AlgorithmIdentifier structure in a certificate carries a single OID (plus optional parameters), and whoever parses it must be able to determine the algorithm and all its parameters unambiguously from the OID alone — so ML-KEM-512 and ML-KEM-768 cannot share one OID and be distinguished by parameters. The three rows of the parameter table in a FIPS correspond, in the certificate world, to three sibling identifier objects. The same holds for SLH-DSA’s 12 parameter sets: the number of identifiers grows linearly with the number of parameter sets.
OID assignment is deliberately done early: while an algorithm standard is still in draft, the companion certificate-application standards are already advancing in the IETF’s LAMPS working group, so that OIDs and encoding rules are finalized before products are implemented. If identifiers are settled late, the privately assigned identifiers that vendors invent first pollute the ecosystem — a lesson PKI history has taught repeatedly.
Other ecosystems: code points and strings
TLS does not use OIDs. Its messages are compact binary structures, and algorithm negotiation uses 16-bit integer code points, assigned by IANA in the TLS parameter registries: every supported key-exchange group and signature algorithm occupies one value. Hybrid key-exchange groups (such as a classical algorithm combined with ML-KEM) are likewise separate code points. Post-quantum algorithms enter TLS through this registration procedure, not through CSOR.
JOSE and COSE (the signature/encryption frameworks of the JSON and CBOR worlds) identify algorithms with strings or integers, maintained in IANA’s JOSE/COSE registries. The same act — declaring “what algorithm this is” — thus has three representations in three systems, rooted in their different message formats: the ASN.1 world naturally uses OIDs, binary protocols prefer short integers, and JSON prefers readable strings.
In addition, algorithms need ordinary names in code and configuration. The official names fixed by NIST in the FIPS (ML-KEM-768 and the like) are the source; the API names of cryptographic libraries and the option names of command-line tools broadly align with them, but this layer of naming is not governed by any registry, and discrepancies are most common here.
The cost of getting an identifier wrong
The identifier layer looks like mere “labelling,” but errors are directly fatal. Put the wrong OID in a certificate and the verifier will parse the public-key bytes under the wrong algorithm; verification necessarily fails, usually with an uninformative error message. Negotiate the wrong TLS code point and the handshake aborts with an alert. More insidious is a parameter-set-level mismatch: both sides believe they are using “ML-KEM,” but one slices the byte stream by the sizes of 768 and the other by those of 1024 — the connection never comes up, and the root cause is hard to spot in the logs.
This is also why compliance testing includes identifiers in its scope: ACVP validates the algorithm computation itself, while protocol-level interoperability testing must additionally check the encoding and decoding of identifiers. Standard text, parameter tables, test vectors and identifier registries — only when all four are in place does an algorithm count as truly “deployable.”
The retirement of the parameters field: why new algorithms don’t use params
The AlgorithmIdentifier of the older algorithm generations usually carried a parameters field: NULL for RSA, and for elliptic-curve algorithms the curve OID — algorithm and parameters were a two-level choice. The post-quantum algorithms changed this convention: the identifiers of ML-KEM and ML-DSA carry no parameters at all, because the parameter set has been promoted to part of the identifier itself, with an independent OID per parameter set.
The reason is lesson-driven. A two-level choice means combinatorial explosion and downgrade risk: the parser must handle both the algorithm identifier and the parameters field correctly, and historically more than a few vulnerabilities arose exactly from parameters being ignored, substituted, or parsed inconsistently. Burning the parameter set into the OID leaves the parsing path with a single table lookup: recognize this OID and all parameters are determined; don’t recognize it, and reject wholesale. For implementers and auditors alike, that is the safer shape.
The cost is identifier-count growth and registry-maintenance burden: SLH-DSA’s 12 parameter sets are 12 OIDs, and every future algorithm will add more. This is why identifier assignment goes through a formal registration procedure and is published uniformly by NIST and the IETF’s companion standards, rather than being numbered by vendors at will.
Hybrids and composites: new exam questions for the identifier system
Migration-era realities set the identifier system new exam questions: how should hybrid key exchange (classical + post-quantum) and composite signatures (two keys signing together) be identified in protocols? TLS’s answer is to assign each hybrid group its own code point, registering the “combination” as a new first-class object; in the certificate world, the identifier rules for composite public keys and composite signatures are still under discussion at the IETF, with the same approach of assigning new OIDs to composites rather than patching old identifiers.
This evolutionary path confirms the design philosophy of the identifier system in reverse: the object of an identifier is “one interoperable overall configuration,” not “one mathematical algorithm.” Whenever a new combination appears in deployment practice, the registry gains a row — the growth rate of the identifier system is, in effect, a direct measure of the complexity of post-quantum deployment.
Conclusion
Algorithm identifier systems are the least conspicuous infrastructure in standardization: OIDs govern certificates, code points govern TLS, strings govern the JSON ecosystem, and the registries of NIST and IANA are the household register of these names. When reading about a new algorithm, besides its FIPS it is worth looking up its entries in the various registries — they are often the best measure of how far it still is from real deployment.
Tags: OIDalgorithm identifiersCSORX.509