What JWS means and where engineers meet it
You are most likely to meet JWS (JSON Web Signature) in a vendor answer, a tender question or an audit request that names JWS or an alg value. JWS is the structure defined in RFC 7515, published in May 2015 as a Proposed Standard, for representing a digitally signed or MACed message using JSON-based data structures. The sources listed on this page place JWS in the JOSE family, alongside JWE (JSON Web Encryption) and JWA (JSON Web Algorithms), which RFC 7518 defines as the registry of algorithm identifiers used with JWS, JWE and JWK. JWS provides signing and message authentication codes. It does not encrypt the content, which is the job of JWE. A JWS used for a JWT carries the JWT claims set as its payload, so the token can be verified by anyone holding the right key, but the claims remain readable.
Engineers meet JWS most often in application code that issues or checks JWTs, in OAuth and OpenID Connect integrations, in API gateways that validate bearer tokens, and in vendor documentation that lists supported signing algorithms. The Compact Serialization, three base64url-encoded parts joined by periods (protected header, payload and signature), is the form that appears in HTTP Authorization headers. RFC 7515 notes that this form is intended for space-constrained settings, which matters for post-quantum work because larger signatures add directly to token size. The JSON Serialization, which can carry several signatures over the same content, shows up less often but appears in systems that require multiple signers.
The practical check is the alg Header Parameter. RFC 7515 Section 4.1.1 requires it to be present, and a JWS signature is not valid if the value is unsupported. When a reviewer asks whether a product supports post-quantum signing, confirm which alg values the product accepts, for example whether ML-DSA identifiers defined in RFC 9964 are listed, and whether verifiers on both sides of the connection understand them. Ask the vendor to name the library and version that performs the check, because support for a new identifier depends on the implementation and not only on the specification.
Names, serializations and algorithm identifiers for JWS
This table lists the names, serialization forms and algorithm identifiers that appear when JWS is discussed or configured, with the COSE counterpart noted only where it helps tell the two families apart. Read each row as a question to answer in your own environment: which serialization your library emits, which alg value your signer and verifier accept, and which specification defines the value you see in a vendor document. The main takeaway is that ML-DSA support in JWS depends on the alg value and the library version, so confirm both before relying on a token format.
| Item | What it is | Where it appears |
|---|---|---|
| Full name and abbreviation | JSON Web Signature, abbreviated JWS. It is a data structure for a digitally signed or MACed message, built on JSON-based structures. | RFC 7515, the specification that defines JWS. Vendor documents often use JWS and JWT interchangeably, which is imprecise. |
| Algorithm registry | The JSON Web Algorithms registry, which assigns the alg identifiers used with JWS, JWE and JWK. Values are registered in IANA registries. | RFC 7518, JSON Web Algorithms (JWA). RFC 9864 updates it and deprecates polymorphic identifiers such as the generic EdDSA value. |
| Compact serialization | Three base64url-encoded parts joined by periods: protected header, payload and signature. It supports one signature and no unprotected header. | Compact tokens in HTTP Authorization headers. Because size matters here, larger post-quantum signatures add directly to token length. |
| JSON serialization, general syntax | A JSON object that can carry several signatures or MACs over the same content, listed in a signatures array. | Use cases needing multiple signers. Check whether your library supports this form before assuming it does. |
| JSON serialization, flattened syntax | A single-signature form of the JSON serialization, with the signature members placed at the top level of the object. | Often used when one signer is involved. Confirm which form your verifier expects to avoid parsing failures. |
| ML-DSA-44 (JOSE alg value) | Identifier for ML-DSA at the parameter set defined in NIST FIPS 204, registered by RFC 9964 with JOSE implementation requirement Optional. | The equivalent COSE algorithm value is -48. Use the alg string, not the COSE number, in JWS headers. |
| ML-DSA-65 (JOSE alg value) | Identifier for the ML-DSA-65 parameter set, registered by RFC 9964. The signature is 3309 bytes according to RFC 9964 Table 1. | The equivalent COSE algorithm value is -49. Signature size is the main driver of token growth here. |
| ML-DSA-87 (JOSE alg value) | Identifier for the ML-DSA-87 parameter set, registered by RFC 9964. The signature is 4627 bytes according to RFC 9964 Table 1. | The equivalent COSE algorithm value is -50. Largest of the three ML-DSA signatures listed in these rows. |
| Key type AKP | A new key type for ML-DSA key pairs, with public and private parameters carried in the JWK representation. | RFC 9964. Check that your key tooling recognizes kty AKP before exporting keys. |
Where JWS shows up in systems and reviews
JWS appears wherever systems need a signed, tamper-evident JSON structure, from signed tokens to signed API payloads. The cards below cover the settings where engineers and reviewers meet JWS directly, and what to check in each one for post-quantum readiness.
JWT signing
A JSON Web Token (JWT) that is signed uses JWS as its outer structure, with the claims set as the payload. Most identity providers and API gateways sign access tokens this way, so the alg value in the protected header decides which signing algorithm a verifier must accept. Check which alg values the issuer emits and which ones your verifiers accept, because a verifier that rejects an unknown alg will reject a token signed with a new post-quantum algorithm until it is updated.
Authorization headers in HTTP
RFC 7515 says the Compact Serialization is intended for space-constrained settings such as HTTP Authorization headers. A compact JWS carries its three parts as base64url strings joined by periods, and every byte added to the signature is added to each request that carries the token. Larger post-quantum signatures therefore raise header size directly, so check header limits in proxies, load balancers and client libraries before choosing a signature algorithm for bearer tokens.
Signed API payloads
Services sometimes sign request or response bodies with JWS instead of, or alongside, a transport-level signature. The JSON Serialization can carry several signatures over the same content, and the flattened form carries one. When reviewing such an API, confirm which serialization it uses, which alg values each verifier accepts, and whether the signing keys can be rotated to a new algorithm without changing the message format.
Algorithm identifiers in JOSE registries
The alg values that JWS uses are registered in RFC 7518, and RFC 9864 deprecates the generic EdDSA registration in favor of fully-specified identifiers. Post-quantum algorithms follow the same pattern, with ML-DSA values defined in RFC 9964. A reviewer should match each alg value in a vendor's documentation against these registrations, because a value that is not registered is not something a standards-based verifier is required to understand.
Vendor documents and audit questions
Vendor security questionnaires and audit requests often ask which signing algorithms a product uses for tokens and signed messages. Answers should name the JWS alg values the product emits and accepts, the version of the library or service that applies them, and whether the product can verify post-quantum signatures. Ask vendors to point to the specific alg registrations they rely on, and to confirm compatibility for the versions you run.
Signed token size and key sizes
RFC 9964 Table 1 gives the sizes of ML-DSA private keys, public keys and signatures in bytes, with signatures ranging from 2420 bytes for ML-DSA-44 to 4627 bytes for ML-DSA-87. A signature of this size, base64url-encoded in a compact JWS, is much larger than the signatures used by common classical alg values, so token size is a practical cost to measure before rollout. Confirm these sizes against the RFC and test header and key handling in your own stack.
How a JWS carries a signature in practice
In practice, a JWS in its Compact Serialization is a single string made of three base64url-encoded parts joined by periods: the protected header, the payload and the signature. The protected header is a JSON object that describes how the signature was made, and it is the part an implementation reads first. The payload carries the content being signed, which for a JWT is the claims set. The signature is computed over the protected header and the payload together, so changing either one invalidates it. Because the Compact Serialization supports only one signature and has no unprotected header, every value an verifier needs to check the message must sit inside the protected header. That constraint is what makes the format small enough for settings such as HTTP Authorization headers, and it is also why larger signatures have a direct effect on token size.
The alg header parameter names the algorithm used to produce the signature, such as ES256 or HS256. RFC 7515 Section 4.1.1 requires that alg be present and that implementations understand and process it. It also states that a JWS signature is not valid if the alg value is unsupported. For a migration, this means a verifier that does not implement a newly added post-quantum identifier will reject the token outright instead of falling back to another algorithm. Before changing any issuer or verifier, check which alg values each library in your stack accepts, and confirm the exact identifiers against the registry in RFC 7518 and the updates in RFC 9864, since the sources listed here do not establish that every library supports the same set.
The Compact and JSON serializations differ by role rather than by algorithm. The Compact Serialization is the form most often seen in tokens, where one signature is enough and compactness matters. The JSON Serialization is a JSON object that can carry several signatures or MACs over the same content, through a general syntax with a signatures array or a flattened syntax for a single signature. Teams that issue tokens for a single verifier will mostly encounter the Compact form, while systems that need multiple signers, such as several parties countersigning a document, rely on the JSON form. When reviewing a vendor document, check which serialization it describes, because a statement about one does not automatically describe the other.
Standardization status of JWS and its post-quantum algorithms
JWS is specified in RFC 7515, "JSON Web Signature (JWS)," which was published in May 2015 as a Proposed Standard. The algorithm identifiers used with JWS are registered in RFC 7518, "JSON Web Algorithms (JWA)," published the same month, also as a Proposed Standard. RFC 9864, published in October 2025, updated those identifier rules: it defines fully-specified identifiers for JOSE and COSE, deprecates polymorphic identifiers, and updates RFCs 7518, 8037 and 9053. Teams reviewing a product's JWS support should check which of these identifiers it accepts, since the older generic values are the ones now being deprecated. The sources listed here do not say how individual libraries or products have adopted the October 2025 changes, so confirm that against each product's documentation and release notes.
RFC 9964, published in May 2026 as a Proposed Standard, defines the JOSE serialization of ML-DSA as specified in NIST FIPS 204. It registers three JWS alg values, ML-DSA-44, ML-DSA-65 and ML-DSA-87, and it defines a new key type, AKP. The document specifies no HashML-DSA (pre-hash) algorithms, and it requires the ctx parameter to be the empty string for these algorithms. A reviewer asking whether a product supports pre-hash ML-DSA in JWS should expect this document to answer no, and should ask the vendor to confirm that directly. The sources listed on this page do not show any HashML-DSA registration in RFC 9964.
These specifications are published by the IETF through the RFC Editor, and the algorithm and key-size work in RFC 9964 depends on NIST FIPS 204. Publication of an RFC does not mean a library, service or appliance has implemented the ML-DSA values, so whether a specific product issues or validates ML-DSA JWS tokens is for the reader to confirm from that product's own documentation, test results or release notes.
Where the JWS parts and algorithm identifiers sit in a token
The diagram starts at the protected header, the first of the three base64url-encoded parts in the Compact Serialization defined by RFC 7515. The header carries the alg parameter, which MUST be present and processed, and an unsupported value makes the signature invalid. The payload follows, holding the JWT claims set when the JWS is used for a JWT. The signature closes the token and is computed over the header and payload. The alg values are named in RFC 7518 and RFC 9864, and the ML-DSA values in RFC 9964. Check that a verifier recognizes the exact alg identifier for the version you run, and budget for the larger ML-DSA signatures when the token travels in a space-constrained header.
The three parts of a compact JWS and the RFCs that define each.
What a JWS-based system needs for a post-quantum migration
This sequence gives you a verified list of every place your system creates or checks JWS and JWT signatures, which algorithm values each component accepts, and what your vendors support. The output is evidence you can review and send back to them, not a claim that any component is compliant.
Inventory where tokens are signed and verified
Identify every service, library, gateway and job that creates or verifies a JWS or JWT, including those in vendor products you run. Record the signer, the verifier, the serialization used (Compact or JSON) and where the token travels, such as an HTTP Authorization header. Done when each token flow has a named owner and a row in a shared inventory, and you can point to the code or configuration that performs each operation.
Record the alg values each component accepts
For each signer and verifier in the inventory, list the alg values it is configured to produce and the values it will accept. The alg header is mandatory under RFC 7515 Section 4.1.1, and a signature with an unsupported value is not valid, so this list shows exactly what a migration has to change. Check library settings, allow-lists and framework defaults rather than assuming them. Done when the list is written per component and version.
Confirm ML-DSA support in each component
Ask each library and service whether it implements the ML-DSA alg values defined in RFC 9964, which are ML-DSA-44, ML-DSA-65 and ML-DSA-87. Note that RFC 9964 registers these values with a JOSE implementation requirement of Optional, so support is not guaranteed by the standard and must be confirmed per product. Also confirm that the implementation sets the ctx parameter to the empty string, as the RFC requires. Done when each component has a recorded yes, no or unknown, with the version tested.
Plan for larger signatures in constrained headers
RFC 7515 describes the Compact Serialization as intended for space-constrained settings such as HTTP Authorization headers. RFC 9964 Table 1 lists ML-DSA signatures as 2420, 3309 and 4627 bytes for the three parameter sets, which is much larger than common classical signatures. Measure your current token sizes, identify where headers have a fixed limit at a proxy, load balancer or client, and note which flows would need a different transport or serialization. Done when you have a list of flows where the increase would exceed a known limit, and each is marked for testing.
Test token creation and verification in staging
Run a staging environment where one signer and one verifier exchange tokens using each candidate alg value, including the verifier's rejection of unsupported values. Confirm that verification fails cleanly for an unknown alg and that the token survives every intermediary in the path. Record the library versions, the alg values tested and the observed token sizes. Done when the test results are saved with enough detail that another engineer could reproduce them.
Ask vendors which alg values they support
Send each vendor that issues or verifies tokens for you a written question listing the alg values you need, asking for the exact product version, whether ML-DSA values from RFC 9964 are supported, and whether the feature is enabled by default. Ask what the vendor's roadmap says for the alg values they do not yet support. Ask for the answer in writing with the version it applies to. Done when each vendor's answer is on file, dated and tied to a version, and each gap is logged with an owner.
Record the gaps and the evidence
Consolidate the inventory, alg acceptance records, ML-DSA support answers, size measurements and staging results into one review document. Mark each token flow as supported, unsupported, unknown or untested, and list the decision owner for each. Do not describe any product as compliant or certified on the basis of this work, since no supplied source establishes that. Done when a security lead or auditor can trace every statement in the document back to a test result, a vendor answer or a configuration file.
Terms that get mixed up with JWS in vendor answers
Vendor answers about JWS often blur neighboring terms, such as JWE, COSE identifiers and ML-DSA parameter sets. Each card below separates one pair so reviewers can check exactly which format, identifier or parameter set a vendor means.
JWS is not JWE
JWS provides signing and MACs over a payload, while JWE provides encryption of the payload. A vendor saying a token is 'signed and encrypted' may be describing a nested JWE wrapping a JWS, or only one of the two. RFC 7519 describes a JWT as a JWS or a JWE, and a JWS carries the claims set as readable payload. When reviewing a vendor answer, ask which layer protects confidentiality and which protects integrity, and confirm whether the tokens they issue are JWS, JWE or both.
RFC 7519 textJOSE and COSE identifiers differ
JWS uses JOSE algorithm identifiers defined in the JSON Web Algorithms registry, while COSE, the CBOR-based counterpart, uses integer values in its own registry. The same algorithm can carry different names in each system, so a vendor quoting a COSE value in a JWS context has made a mismatch. RFC 9052 states COSE applies the JOSE approach to CBOR with binary encoding instead of base64url. Ask the vendor which registry each identifier comes from.
RFC 9052 textGeneric EdDSA is deprecated
The generic JOSE EdDSA registration is marked Deprecated by RFC 9864. That document instead defines fully-specified identifiers for Ed25519 and Ed448, which name the curve explicitly. A vendor answer listing only 'EdDSA' should be asked which curve is in use and whether it follows the fully-specified values. Confirm the exact identifier in the configuration rather than accepting the general name.
RFC 9864 textML-DSA parameter sets in tenders
RFC 9964 defines three JWS algorithm values for ML-DSA: ML-DSA-44, ML-DSA-65 and ML-DSA-87. These parameter sets differ in key and signature sizes, which affects token length when signatures are embedded in JWS. Tenders that ask for 'ML-DSA' without naming a parameter set leave the size and security level open. Ask the bidder which of the three values it supports and what sizes it has tested, since the RFC gives per-set figures in its size table.
RFC 9964 textPre-hash ML-DSA is absent
RFC 9964 specifies no HashML-DSA, or pre-hash, algorithms for JWS, and it requires the ctx parameter to be the empty string for the algorithms it defines. A vendor describing a pre-hash ML-DSA option in a JWS context is describing something the RFC does not register. Ask whether any signing path uses a pre-hash variant and which specification governs it.
RFC 9964 textQuestions readers ask about JWS
What does JWS stand for?
JWS stands for JSON Web Signature. RFC 7515, "JSON Web Signature (JWS)", defines it as a data structure representing a digitally signed or MACed message, built from JSON-based data structures. The name points to its job: it lets a recipient check that a message came from the holder of a key and was not changed in transit. RFC 7515 was published in May 2015 as a Proposed Standard by M. Jones, J. Bradley and N. Sakimura. Its companion algorithm registry, RFC 7518 (JSON Web Algorithms), defines the identifiers used with JWS, and RFC 9864 has since updated that registry.
Is JWS the same as JWT?
No. A JWT (JSON Web Token) is a set of claims, and a JWS is one way to protect that set against tampering. RFC 7519 says that a JWS used for a JWT carries the claims set as its payload, while a JWE carries claims as encrypted plaintext. JWS provides signing and MACs, and JWE provides encryption. So a signed JWT is a JWT whose claims are wrapped in a JWS, but a JWS can carry any payload, not only claims. Teams that say "we use JWT" usually mean they use a signed JWS underneath.
Is JWS standardized, and who maintains it?
Yes. JWS is defined in RFC 7515, which is an IETF Proposed Standard. The algorithm identifiers that go with it are registered in RFC 7518, and RFC 9864 (October 2025, Proposed Standard) defines fully-specified algorithm identifiers for JOSE and COSE, deprecates polymorphic identifiers, and updates RFCs 7518, 8037 and 9053. The IETF's JOSE Working Group is the body responsible for this family of specifications. Confirm the exact RFC number and version your vendor implements, because a product may support only some of these documents.
Does JWS support post-quantum signatures, and which RFC defines them?
JWS can carry post-quantum signatures through ML-DSA, the signature algorithm standardized in NIST FIPS 204. RFC 9964, "ML-DSA for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE)", was published in May 2026 as a Proposed Standard by M. Prorock and O. Steele. It registers the JWS alg values ML-DSA-44, ML-DSA-65 and ML-DSA-87 with the JOSE implementation requirement "Optional". The document specifies no HashML-DSA (pre-hash) algorithms. Support in a given library or product is a separate question, so check its release notes against RFC 9964.
How big are ML-DSA signatures in a JWS, and why does it matter?
RFC 9964 Table 1 gives the sizes in bytes. For the signature alone, ML-DSA-44 is 2420, ML-DSA-65 is 3309 and ML-DSA-87 is 4627. Public keys are 1312, 1952 and 2592 bytes, and private keys are 2560, 4032 and 4896 bytes, with the priv parameter always a 32-byte seed. RFC 7515 notes that the Compact Serialization is aimed at space-constrained settings such as HTTP Authorization headers, which is where larger signatures add to token size. Test header limits, proxy limits and cookie limits on your own stack before rolling out.
What changes for a team that already uses JWTs?
Most of the change is in the algorithm field and the key format, not in the token's structure. The alg header parameter must be present, and a JWS is not valid if the value is unsupported, so a verifier that does not know ML-DSA will reject those tokens. RFC 9964 also adds a new key type, AKP (Algorithm Key Pair), used as JOSE kty "AKP", so key-handling code and JWK parsers may need updates. Plan a period where issuers and verifiers both accept old and new algorithms, and check every service that parses tokens, including gateways and logging tools.
What should I ask a vendor about JWS support?
Ask which RFCs the product implements, including RFC 7515, RFC 7518, RFC 9864 and RFC 9964, and which ML-DSA parameter sets (ML-DSA-44, ML-DSA-65, ML-DSA-87) it supports for signing and for verification. Ask whether it accepts the AKP key type and whether it handles the alg header correctly when a value is unknown. Ask for the version and release date where support appeared, and whether any algorithm is marked as optional or deprecated in their build. Ask how old and new algorithms can coexist during rollout, and request test vectors or interoperability results against RFC 9964 from their own tests.
Does JWS support hybrid public key encryption?
Not through JWS itself. JWS provides signatures and MACs, not encryption. Hybrid Public Key Encryption (HPKE) is covered separately. The draft draft-ietf-jose-hpke-encrypt-22, "Use of Hybrid Public Key Encryption (HPKE) with JSON Web Encryption (JWE)", is a JOSE Working Group Standards Track draft. As of 4 December 2026, the IETF Datatracker showed it waiting for an editor, with no RFC number assigned. Treat it as unpublished until an RFC number appears. Check the current Datatracker entry before relying on it in a vendor answer.
How DeployOpen helps teams plan JWS and token migrations
DeployOpen approaches JWS as a set of concrete parts: the JOSE algorithm identifiers your services accept, the key types that sign your tokens, and the places where signatures and keys are issued, validated and stored. Engagements are scoped in writing against the systems you run, so the migration plan covers your actual token flows rather than a generic checklist.
How we scope
- Inventory every service that issues or validates JWS, including the alg values each one accepts and rejects.
- Record which tokens use the Compact Serialization, since its space limits matter for larger signatures in HTTP Authorization headers.
- Agree the scope, deliverables and timeline in writing before any work starts, as is standard for fixed-scope engagements.
How we build
- Configure signing and verification to support the agreed alg values, and confirm that the alg header is checked on every validation path.
- Test the migration against your own token sizes, parsers and clients, since support for newer JOSE identifiers varies by library version.
- Document key types, key storage and rotation steps so your security team can review them against your own requirements.
How we hand over
- Deliver a written record of the JWS configuration, the alg values in use and the testing evidence collected during the work.
- Provide the runbook for key rotation and rollback, so your team can operate the new configuration without further help.
- List the open items, such as drafts or identifiers not yet published as RFCs, so you can track them after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial engagement ends.
- Retainers can cover re-testing when a library upgrade changes how JWS alg values or key types are handled.
- Ask any provider to confirm which RFC versions and library versions their work targets before agreeing the scope.

