JOSE vs COSE: web and constrained-device signing

JOSE signs JSON objects and COSE signs CBOR objects, with the same ML-DSA algorithms registered in both. The choice usually follows the transport and device the signed data must travel over.

On this page

JOSE or COSE: which signing format does your system need?

If a design or vendor document names JOSE or COSE and you need to know which one applies, start with the data format. JOSE, through JSON Web Signature (JWS) in RFC 7515, signs JSON objects whose parts are base64url-encoded. COSE, defined in RFC 9052, signs CBOR objects that use binary encodings. The key distinction is therefore the data format, together with the constraints of the device or transport that has to carry the signed object. A web API that already exchanges JSON will usually point to JOSE, while a sensor, gateway or firmware component with tight memory and message limits will usually point to COSE. Neither family is a drop-in replacement for the other, because RFC 9052 says COSE is not a direct copy of JOSE.

The question usually reaches three groups. Web API and platform teams meet it when they issue or verify signed tokens and request objects. Identity teams meet it when a federation or credential design names a signing format for keys and claims. IoT and firmware teams meet it when a device vendor or procurement document asks which signed structure the device emits. For constrained devices, RFC 9052 describes CBOR as designed for small code and small message size, and its single-signer structure COSE_Sign1 (CBOR tag 18) is the form most often seen there. RFC 7515 notes that the compact JWS form suits space-constrained settings such as HTTP Authorization headers and URI query parameters, so JOSE is not limited to large payloads.

For post-quantum work, the two families now carry the same ML-DSA algorithms. RFC 9964 registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 in both registries, using those exact strings as JOSE alg names and the COSE values -48, -49 and -50. It also defines the AKP key type, with JOSE kty value AKP and COSE key type value 7. Public keys in JOSE are base64url-encoded, while a COSE_Key needs no encoding. RFC 9964 requires the seed as the private key form and does not support HashML-DSA. Composite signature names are still being drafted, and the composite COSE values are marked TBD in the current draft. Before you commit a design, confirm which RFC or draft version and which library release your vendor implements, and check that the sender and verifier agree on the algorithm name and key encoding.

JOSE and COSE side by side: defining documents, encodings and post-quantum registrations

This table sets JOSE and COSE against each other on the attributes that matter for post-quantum signing: defining document, encoding, message structures, ML-DSA registration, key type and composite draft status. Read each row as a separate attribute, and confirm the exact version and registry entry your implementation depends on. The main takeaway is that both families now register the same ML-DSA parameter sets, but they encode keys and messages differently.

AttributeJOSECOSE
What it isJSON Web Signature (JWS), the signing format within the JOSE familyCBOR Object Signing and Encryption, the binary counterpart built on CBOR
Defining document and dateRFC 7515, May 2015RFC 9052, August 2022, Internet Standard STD 96
EncodingJSON structures with base64url-encoded partsCBOR binary encoding, designed for small code and message size
Typical structuresJWS compact serialization and JSON serializationCOSE_Sign1 (CBOR tag 18) for one signer, COSE_Sign (CBOR tag 98) for several signatures
Typical deployment settingSpace-constrained settings such as HTTP Authorization headers and URI query parametersConstrained devices, particularly in IoT settings
ML-DSA algorithm registrationRFC 9964, May 2026: ML-DSA-44, ML-DSA-65 and ML-DSA-87 used as alg namesRFC 9964, May 2026: COSE values -48 (ML-DSA-44), -49 (ML-DSA-65) and -50 (ML-DSA-87)
Key typeAKP (Algorithm Key Pair) as kty, with base64url-encoded parametersCOSE key type 7, with pub and priv labels carried without extra encoding
Status of composite draftsdraft-ietf-jose-pq-composite-sigs-07 (23 November 2026) is an Internet-Draft; its alg names are proposalsComposite COSE values -54 to -58 appear in the same draft as TBD requests, so confirm their final status before use

What JWS and COSE each are, and where practitioners meet them

JSON Web Signature (JWS) is defined in RFC 7515, published in May 2015. It represents signed content using JSON structures, with the header, payload and signature parts encoded in base64url. The compact serialization is intended for space-constrained settings such as HTTP Authorization headers and URI query parameters, where a signed token must fit inside a string.

  • JSON structures: JWS uses JSON objects for its header, which is why the format is read and debugged as text.
  • base64url encoding: The parts are base64url encoded, so the compact form stays within URL-safe characters.
  • Compact form: The compact serialization is intended for HTTP Authorization headers and URI query parameters.
  • Common places to meet it: Practitioners often meet JWS in bearer tokens, identity provider responses and API authentication flows that pass signed claims in headers.
  • Post-quantum registrations: RFC 9964 registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 as JOSE alg names, using those exact strings.

Before relying on JWS in a design, check which JOSE algorithms and serializations your libraries and identity providers support, and confirm the RFC and draft versions they implement.

Which differences between JOSE and COSE change engineering decisions

JOSE and COSE carry the same ML-DSA algorithms, but their encodings, key formats and registry values differ. The cards below cover where those differences change what you build, parse and check when you choose between a web-facing format and a constrained-device format.

JSON with base64url or CBOR binary

JOSE structures are JSON with base64url-encoded parts, so signed objects are text that can be read and logged directly. COSE uses CBOR, a binary encoding designed for small code size and small message size. Choose JOSE when your tooling, logs and debugging expect JSON. Choose COSE when message size and parser footprint on a constrained device matter more than readability. Confirm which encoding your verifier library accepts before fixing the wire format.

RFC 9052 text

Compact form for headers and URLs

The compact JWS form is intended for space-constrained settings such as HTTP Authorization headers and URI query parameters. COSE has no equivalent text form. Its signed structures are binary, with COSE_Sign1 for a single signer and COSE_Sign for multiple signatures on the same content. If your signed token must travel in a header or URL, the JOSE compact form fits that path directly. A binary COSE object needs a transport that carries bytes, so plan the encoding at the transport layer.

RFC 7515 text

Base64url JWK fields versus COSE_Key labels

In a JOSE key, the AKP parameters are base64url encoded. A COSE_Key needs no such encoding and uses integer labels, with pub = -1 and priv = -2. Key import code must therefore handle different parameter representations for the same key material. Check that your key store and rotation scripts convert between the two forms without altering the bytes. Public keys must never include priv in either format.

RFC 9964 text

Same ML-DSA names, different identifiers

RFC 9964 registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 in both the JOSE and COSE registries. JOSE uses those strings as alg names, while COSE uses the integer values -48, -49 and -50. A configuration that hardcodes one registry will fail against the other. Map each algorithm name to its registry value explicitly in every component that signs or verifies, and test a sample of each parameter set in both forms.

RFC 9964 text

Composite draft values still pending in COSE

The composite signature draft lists JOSE alg names such as ML-DSA-65-ES256 and ML-DSA-44-Ed25519, but its COSE values, -54 to -58, are requests marked TBD. A JOSE implementation of a composite scheme can be built against the draft, while a COSE version cannot yet rely on a settled registry value. Treat composite COSE identifiers as provisional, and confirm the status of the draft before you ship either format.

Composite draft

Where JOSE and COSE appear: web APIs, identity tokens, IoT and firmware

JOSE and COSE are used in different places because they encode the same kinds of signed and encrypted objects in different formats. JOSE, whose signing part is JWS under RFC 7515, uses JSON structures with base64url-encoded parts, and it is the family most engineers meet in web APIs and identity tokens. RFC 7515 says its compact serialization is intended for space-constrained settings such as HTTP Authorization headers and URI query parameters. COSE, defined by RFC 9052, uses CBOR instead. RFC 9052 states that its goal is to provide security services for constrained devices, particularly in IoT settings, and it uses binary encodings rather than base64url. Teams that issue or verify tokens for web services will generally work with JOSE, while teams building sensor, gateway or device-side signing will generally work with COSE.

Both families now have post-quantum registrations in RFC 9964, which registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 in both the JOSE and COSE registries. Its JOSE alg names are the exact strings ML-DSA-44, ML-DSA-65 and ML-DSA-87, and its COSE algorithm values are -48, -49 and -50. RFC 9964 also defines the AKP key type, with JOSE kty value AKP and COSE key type value 7. The sources available here do not list specific products or versions that adopt either family, so the registrations establish how the formats are defined but not which deployments use them. Readers should ask each vendor which JOSE or COSE format its product emits, and whether that output follows RFC 9964, before assuming any compatibility.

How to work out whether JOSE or COSE applies to your system

This sequence establishes which signing family your system needs by tracing the governing requirement, the data format in use, and the constraints of the environment. It ends with the ML-DSA identifiers and draft versions your vendor implements, so the design can be locked against documented behavior.

  1. Identify the requirement that names the format

    Start by finding the document that defines the signed format you must produce or accept. This may be a standard your application protocol references, a customer or partner interface specification, or a contract clause. Check whether it names JWS (JOSE) or COSE_Sign1 or COSE_Sign (COSE) directly, or whether it leaves the choice open. Record the exact clause and document version. The step is complete when each signing requirement is tied to a named document and a named format, with any gaps flagged for the requirement owner to resolve.

  2. Inventory JSON and CBOR data flows

    List every place your system signs or verifies data, and note whether that data travels as JSON-based web or token traffic or as CBOR-based constrained-device data. JOSE uses JSON structures with base64url-encoded parts, while COSE uses CBOR with binary encodings. Include the devices, gateways, APIs and services on each path. The output is a table that maps each signed flow to one encoding, so you can see whether one family covers everything or whether both must be supported at a boundary.

  3. Check size and transport limits

    For each flow, record the size limits and transport constraints that apply. The RFC 7515 compact JWS form is intended for space-constrained settings such as HTTP Authorization headers and URI query parameters, so check whether your flows depend on that form. For constrained devices, check the message size, memory and link limits the hardware and network impose. Note that ML-DSA signatures are large relative to classical signatures, so confirm the actual on-wire sizes with your vendor and test them against each limit. The step closes when each flow has a documented size budget and a pass or fail against it.

  4. Confirm ML-DSA identifiers and key types

    Check the vendor documentation for the ML-DSA algorithm identifiers and key types it implements. RFC 9964 registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 as JOSE alg names and assigns COSE algorithm values -48, -49 and -50. It also defines the AKP key type, with JOSE kty value AKP and COSE key type value 7. Confirm that the product uses these registered values, and note whether it instead relies on composite identifiers from draft-ietf-jose-pq-composite-sigs, whose COSE values are still marked TBD. Record the identifiers the product emits and accepts. The step is complete when each identifier and key type your design uses is matched to a vendor statement.

  5. Verify draft and RFC versions before locking design

    Before the design is frozen, confirm which RFC or Internet-Draft version each product implements. RFC 9964, a Proposed Standard published in May 2026, defines ML-DSA serializations for JOSE and COSE and requires the priv parameter to be the 32-byte seed with an empty ctx string. Composite drafts and related work may change, so compare the version the vendor cites against the current document status. Request written confirmation of the version and of any interoperability testing performed. The step closes when every product in the design has a named version recorded and any mismatch between products has been resolved or accepted in writing.

Common mix-ups between JOSE, JWS and COSE

JOSE and COSE both produce signed objects, but they use different encodings, key formats and registries. The four confusions below are the ones most often seen when teams compare web signing with constrained-device signing.

Both families sign, so they are the same format

JWS, defined in RFC 7515 (May 2015), is the JOSE signing format and uses JSON structures with base64url-encoded parts. COSE, defined in RFC 9052 (August 2022), uses CBOR and binary encodings. Both produce signatures, but a verifier built for one family will not parse objects from the other. Check which family a given message, token or device protocol actually uses before assuming interoperability.

RFC 7515 text

COSE is not a binary copy of JOSE

RFC 9052 states that COSE does for CBOR what JOSE did for JSON, but it is not a direct copy of JOSE. Header parameters, the structures used for single and multiple signers, and the way keys are represented differ from their JOSE counterparts. Do not map fields one to one when porting a JWS workflow to a COSE device, and confirm the structure against RFC 9052 for the exact case you need.

RFC 9052 text

Compact JWS is not the constrained-device form

RFC 7515 describes the compact JWS serialization as intended for space-constrained settings such as HTTP Authorization headers and URI query parameters. That is a web transport constraint, not the constraint that drives COSE. COSE targets constrained devices and IoT, where CBOR's small code and message size matter. Choosing compact JWS for a device with tight memory or radio budgets is a different decision from choosing it for a header.

Treating the composite draft values as final

The composite signature draft draft-ietf-jose-pq-composite-sigs-07 (23 November 2026) lists COSE values -54 to -58 marked TBD. These are requests, not assigned values, and they may change before publication. Do not hard-code them into firmware or verifiers. Check the current draft and the IANA registry before relying on any composite identifier.

Composite draft

Same ML-DSA name, different encoded object

RFC 9964 (May 2026) registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 in both the JOSE and COSE registries, but the encoded objects differ. JOSE uses the exact strings as alg names and base64url-encoded key parameters, while COSE assigns integer algorithm values (-48, -49, -50) and uses binary key labels. A matching name does not mean a matching byte layout, so check each serialization separately.

COSE ML-DSA values
-48 to -50
RFC 9964 text

Common questions about JOSE and COSE

Are JOSE and COSE the same thing?

No. JOSE and COSE are two different families of object signing standards. JOSE, which includes JWS (RFC 7515, May 2015), uses JSON structures with base64url-encoded parts. COSE, defined by RFC 9052 (August 2022, Internet Standard STD 96), uses CBOR, a binary encoding designed for small code size and small message size. RFC 9052 says COSE does for CBOR what JOSE did for JSON, but it is not a direct copy of JOSE and uses binary encodings instead of base64url. The two families are designed to carry similar kinds of signed content, so the choice between them usually depends on the data format and device constraints of the system, not on which one is more secure.

Which one is newer, JOSE or COSE?

The dates do not point to one family as a replacement for the other. JWS was published as RFC 7515 in May 2015, and COSE was published as RFC 9052 in August 2022. The later date belongs to COSE, but COSE is a separate family that covers a different encoding, so it does not supersede JOSE. Teams that run both usually keep each one for the environment it was built for. When a vendor or customer asks which one is current, ask them to name the specific RFC and version they support, because the family name alone does not settle which profile applies.

Which format does a standard or customer ask for?

The format is set by the protocol, standard or customer requirement that you are working within, and the sources here do not say which format any particular standard mandates. RFC 7515 says the compact JWS form is intended for space-constrained settings such as HTTP Authorization headers and URI query parameters, which is why JOSE is common in web APIs. COSE targets constrained devices, particularly in IoT settings. Check the protocol specification, the procurement document or the customer's technical profile for the format named in writing, and confirm that the format is specified for the exact use case rather than assuming it from the family name.

Do we need both JOSE and COSE?

Not always. Many systems use only one family, and the need for both depends on the environment. A web service that exchanges JSON over HTTP and a fleet of constrained sensors that exchange CBOR messages may each be served by one family alone. Both may be needed where a single platform talks to web clients and constrained devices, or where a standard names one family for one interface and the other for another. Before adopting both, list each message type, its transport and its device limits, then confirm which family each message requires. Running two signing stacks adds key management, testing and upgrade work, so the cost of each should be weighed against the interfaces it serves.

Which post-quantum signature algorithms are registered in JOSE and COSE?

RFC 9964 (Proposed Standard, May 2026) registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 in both the JOSE and COSE registries. In JOSE the algorithm names are the same strings, and in COSE the algorithm values are -48 for ML-DSA-44, -49 for ML-DSA-65 and -50 for ML-DSA-87. RFC 9964 also adds the AKP key type, with the JOSE kty value AKP and the COSE key type value 7. The ML-DSA algorithms themselves are defined in NIST FIPS 204, published 13 August 2024 with status Final. Confirm that a product's implementation covers the exact names and values above, since an implementation may support only part of the registry.

What should we ask a vendor about the format and draft version they support?

Ask which family the product signs with, JOSE or COSE, and which RFC or Internet-Draft version it implements. Ask whether it supports ML-DSA-44, ML-DSA-65 and ML-DSA-87 under the names and values in RFC 9964, and whether it uses the seed-only private key format that RFC 9964 requires. Ask about composite signatures as well: the Internet-Draft draft-ietf-jose-pq-composite-sigs-07 (23 November 2026) lists proposed JOSE composite names, and its COSE values are marked TBD, so a vendor supporting them is relying on an unfinished draft. Request the version numbers in writing, and test interoperability with your own parsers before accepting the claim.

How do JOSE and COSE handle the same ML-DSA key differently?

The key content is the same, but the encoding differs. RFC 9964 says that in JWK parameters for AKP keys, values are base64url encoded, while a COSE_Key needs no encoding and uses the labels pub = -1 and priv = -2. For both families, the private key is the 32-byte seed, and the priv parameter must not appear in public keys. Implementations that convert keys between the two families need to re-encode each field, and they should test that the round-trip preserves the seed and public key exactly.

Which bodies recommend JOSE or COSE, and from which dates

The sources for JOSE and COSE are IETF publications, not regulatory mandates. JSON Web Signature (JWS) is defined in RFC 7515, published in May 2015, and is the signing structure of the JOSE family. COSE, which uses CBOR, is defined in RFC 9052, published in August 2022 as an Internet Standard (STD 96). RFC 9964, a Proposed Standard published in May 2026, registers ML-DSA serializations in both the JOSE and COSE registries. None of these documents is a binding requirement, and the sources listed on this page do not identify any requirement for commercial organizations to use either format. If your organization uses JOSE or COSE, check whether the requirement comes from your own contracts, customer agreements or the regime you are assessed against, and record that origin in your design documents.

For planning, the practical question is which of these documents your implementation must follow and whether your vendors support the ML-DSA serializations in RFC 9964. RFC 9964 is a Proposed Standard, so confirm its status with the IETF datatracker before treating its identifiers as settled. The composite signature work in draft-ietf-jose-pq-composite-sigs-07, dated 23 November 2026, is still an Internet-Draft whose COSE values are marked TBD, so do not treat those names or values as final. Ask each vendor which RFC and draft versions their JOSE or COSE libraries implement, and request the alg names and COSE algorithm values they use, so you can check them against the documents above.

How DeployOpen helps teams plan and migrate signing formats

DeployOpen works on JOSE vs COSE signing as a scoped implementation task inside the client's own infrastructure. We start by identifying which signing formats the client's web services and constrained devices actually use, then build, test and document the chosen approach so the client's security and compliance teams can review it.

How we scope

  • We inventory which services produce JWS objects and which devices or protocols produce COSE_Sign1 or COSE_Sign messages.
  • We record the algorithm and key choices in scope, including whether ML-DSA identifiers from RFC 9964 are needed for each format.
  • We agree the scope, deliverables and timeline in writing before any work starts, since most engagements are fixed-scope.

How we build

  • We configure signing libraries and key stores in the client's environment, using the seed-only private key format that RFC 9964 requires.
  • We test signed JWS and COSE objects across the client's verifiers, checking the algorithm names and COSE values registered for ML-DSA.
  • We document how composite signature drafts still in progress are handled, so the client knows which parts depend on drafts not yet final.

How we hand over

  • We deliver written documentation covering the chosen formats, key encodings, algorithm identifiers and verifier configuration.
  • We provide evidence of configuration and test results that the client's security and compliance reviewers can check themselves.
  • We walk the client's engineering team through the handover so they can operate and modify the signing setup after the engagement ends.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for signing deployments that change over time.
  • We can retest the signing setup when the client upgrades libraries or when the referenced RFCs and drafts change status.
  • Teams should confirm compatibility of their specific library and verifier versions with RFC 9964 before relying on them in production.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.