Skip to content
IAM Insights

Explainers · Glossary

ES256

ECDSA P-256 with SHA-256

By Boston Identity · Explained · 5 min read

The short answer

ES256 is the label a signed token carries when it was signed with ECDSA on the P-256 curve and the SHA-256 hash. The signature is a fixed 64 bytes, and anyone with the signer's public key can check it.

What it is
A standard
Defined by
IETF, RFC 7518 (JWA), section 3.4
Who it's for
Teams that sign or check tokens and credentials
In our briefings
35By month of the source: 2025-12: 0, 2026-01: 0, 2026-02: 1, 2026-03: 1, 2026-04: 2, 2026-05: 2, 2026-06: 3, 2026-07: 4, 2026-08: 0, 2026-09: 2, 2026-10: 9, 2026-11: 00by month, last 12
01

What is ES256?

ES256 is one entry in RFC 7518, the JSON Web Algorithms (JWA) specification from the Internet Engineering Task Force (IETF). JWA registers the algorithms and identifiers used by JSON Web Signature (JWS), JSON Web Encryption and JSON Web Key (JWK), where JSON is the JavaScript Object Notation text format.§1 When a signed token's "alg" header says ES256, the signature was made with the Elliptic Curve Digital Signature Algorithm (ECDSA) on the P-256 curve, with SHA-256 as the hash function.§3.4

The RFC gives the reason to pick elliptic curves over RSA. ECDSA can give security equivalent to RSA with shorter keys and faster processing for many operations, so its signatures are much smaller than equally strong RSA ones.§3.4 The RFC rates ES256 "Recommended+" for implementations. The plus means the requirement is likely to get stronger in a future version.§3.1 Only HS256 is rated Required, so software can conform to the RFC without supporting ES256.§3.1

Not the same as HS256, which computes a message authentication code from a key both sides share.§3.2 With ES256 only the signer holds the private key, and verifiers use the matching public key.§3.4

02

How does ES256 work?

Two parties take part: a signer, such as a token service or a workload, holding a P-256 private key, and a verifier holding the matching public key. The signer works on the JWS Signing Input, the encoded header and payload of the token.

Figure steps
  1. The signer computes the raw signature
  2. The signer writes R and S as fixed-length bytes
  3. The signer joins them into the 64-byte signature
  4. The verifier checks the length
  5. The verifier splits and validates
Fig. 1

The signer turns its two 256-bit numbers into one 64-byte value labelled ES256, and the verifier refuses any other length before handing the pieces and the public key to the validator.

Drawn from RFC 7518, sections 3.4 and 6.2

Swipe for the full figure →

  1. The signer computes the raw signature

    The signer runs ECDSA P-256 SHA-256 over the JWS Signing Input with its private key. The output is a pair of numbers, R and S, each a 256-bit unsigned integer.§3.4

  2. The signer writes R and S as fixed-length bytes

    The signer turns R and S each into a 32-octet sequence in big-endian order. The RFC says these sequences must not be shortened by dropping leading zero octets.§3.4

  3. The signer joins them into the 64-byte signature

    The signer concatenates R and then S. The resulting 64-octet sequence is the JWS Signature, and the "alg" header value ES256 tells the receiver which algorithm made it.§3.4 The RFC notes that many ECDSA libraries produce this concatenation directly.

  4. The verifier checks the length

    The verifier first checks that the signature is exactly 64 octets. If it is any other length, validation has failed.§3.4

  5. The verifier splits and validates

    The verifier splits the 64 octets into two 32-octet halves, R first and S second. It then submits the JWS Signing Input, R, S and the signer's public key, the point (x, y), to an ECDSA P-256 SHA-256 validator.§3.4 Written as a JWK, that public key has "kty" set to EC, "crv" set to P-256, and "x" and "y" coordinates.§6.2

03

Why does ES256 matter now?

ES256 shows up as a required or accepted algorithm in new identity specifications. The IETF's draft Workload Identity Token, the credential at the bottom of its workload-identity stack, says ES256 must be supported.1 RFC 9711, which standardizes the Entity Attestation Token (EAT) for devices, defines one profile for constrained devices, and its receivers accept ES256, ES384 and ES512.2

That choice now meets a deadline. An IETF draft on post-quantum requirements notes that the workload credentials draft requires ES256 and that another agent delegation-chain draft uses only Ed25519. Meanwhile ML-DSA, a post-quantum signature algorithm, already has a defined form for JOSE and COSE, the JSON and binary signing families, in RFC 9964.3 The same draft cites Executive Order 14412, signed on 22 June 2026, which asks federal systems to move signatures to post-quantum algorithms by the end of 2031.3 We read this as a sign that agent and workload records signed with ES256 today may need a planned move to a different algorithm.

04

Where does it fit?

Compared withHow ES256 differs
JSON Web SignatureJWS is the signed-message format, and ES256 is one value its "alg" header can name. JWA registers those values so the JWS specification can stay unchanged as algorithms come and go.§1
JSON Web Key (JWK)A JWK is how the public key is written down so a verifier can find it. For ES256 that is an elliptic-curve key with "crv" set to P-256 and both coordinates present.§6.2
COSECOSE is the binary counterpart of the JSON formats. The same algorithm name shows up there: the RFC 9711 constrained-device profile uses COSE_Sign1 and expects receivers to accept ES256.2
05

What goes wrong?

  • Encoding mistakes break verification. R and S must keep their leading zero octets, and a verifier must fail any signature that is not exactly 64 octets.§3.4 The RFC notes that many ECDSA libraries produce this form directly; we read that as a warning that some do not, so a signer should check the format before sending.
  • Among the ECDSA algorithms, the 64-octet length is specific to ES256. ES384 and ES512 signatures are 96 and 132 octets, so a verifier's length check has to follow the "alg" value.§3.4
  • A P-256 public key must carry "x" and "y" coordinates at full size, and the RFC does not support point compression for P-256.§6.2
  • An algorithm's status is not fixed. The registry lets implementation requirements change as cryptography evolves, including a move to Deprecated.§7.1
  • In the IETF workload credential, the token binds one key to one name, and how the workload proves it holds that key is left to three sibling drafts.1
  • The post-quantum requirements draft finds that the agent identity work now being written does not yet treat algorithm strength as a design parameter.3
06

What should a security leader ask?

  1. 01

    Which of our tokens, workload credentials and agent records are signed with ES256 today, and who owns each signing key?

  2. 02

    If we had to switch those signatures to a post-quantum algorithm by 2031, which verifiers would break first?

  3. 03

    Do our verifiers reject ES256 signatures that are not exactly 64 bytes, and do we test that?

  4. 04

    Which vendors in our token path can already sign or verify ML-DSA in JOSE or COSE?

07

Sources

›Evidence: 3 claims from 3 briefings
  1. 1BI-FIND-2026-0374 · The IETF's workload credential binds one key to one name and says nothing else about the software holding itThe credential at the bottom of the IETF's workload-identity stack is a key with a name attached, and the draft forbids using it any other way. A Workload Identity Token is a signed JWT whose subject is one workload identifier and whose cnf claim carries the workload's public key; section 5.1 says the workload 'MUST prove possession of the corresponding private key' and the token 'MUST NOT be used as a bearer token'. How it proves that is left to three sibling drafts (the proof token, HTTP message signatures, mutual TLS), so the credential on its own authenticates nothing: it is the thing the proof points at. ES256 must be supported, the token's lifetime should be hours and the proof's minutes, and no audience claim exists because the proof, not the credential, is what gets aimed at a recipient.
  2. 2BI-FIND-2025-0413 · RFC 9711 standardizes the attestation token and sets no security floor for the device that signs itEAT keeps the full flexibility of CWT, JWT, COSE and JOSE, and the RFC says a profile has to narrow those options to guarantee interoperability. Only a full profile may be named in the eat_profile claim. The one profile the RFC defines, urn:ietf:rfc:rfc9711, is for constrained devices: CBOR only, COSE_Sign1 signing, receivers that accept ES256, ES384 and ES512, the verification key named by key ID or UEID, and a new unique nonce for every token request. Any deviation, even requiring one extra claim, needs a different identifier. Outside that profile, all EAT use must still provide freshness, and the EAT nonce is one option among several.
  3. 3BI-FIND-2026-0664 · Agent-delegation records signed today become deniable once timestamps can be forgedThe agent identity work now being written does not yet treat algorithm strength as a design parameter. The draft finds that the WIMSE AI identity management draft names no signature algorithm, the WIMSE workload credentials draft requires ES256, and Atakora's delegation-chain draft is Ed25519 only, while the serialization pieces already exist (ML-DSA for JOSE and COSE is RFC 9964). The deadline is no longer hypothetical: Executive Order 14412, signed on 22 June 2026, asks federal systems to move key establishment to post-quantum algorithms by the end of 2030 and signatures by the end of 2031, and CNSA 2.0 expects new national-security acquisitions to comply from 1 January 2027.

›In our briefings

What our briefings say about ES256 itself, with the most direct claims first.

  1. The draft keeps ES256 and RS256 as a way back. An authenticator SHALL use ML-DSA-65 or ML-DSA-44 when the relying party offers -49 or -48, SHOULD default to RS256 and ES256 when the relying party does not support ML-DSA, and "may fallback" to ES256 or RS256 when ML-DSA key generation or signing fails (§6.3). The draft's text never uses the word "downgrade", and it puts a detailed security analysis of ML-DSA beyond its scope. We read the error fallback as a downgrade path that only the relying party can close, by no longer offering the classical algorithms.

    A 2025 post-quantum passkey draft lets the private key sit encrypted on flash or disk, for want of ML-DSA hardwareBI-FIND-2025-0629

  2. In Uppalapati's survey, the WIMSE AI identity management draft names no signature algorithm and does not discuss post-quantum cryptography; the WIMSE workload credentials draft, a working group document, requires general-purpose implementations to support ES256; and Atakora's delegation-chain draft is Ed25519 only. Individual drafts that do provide for post-quantum issuance address issuance alone, the draft says. The encoding work is further along, with ML-DSA for JOSE and COSE already published as RFC 9964. Executive Order 14412 (June 2026) sets the dates: it directs guidance moving federal high-value assets and high-impact systems to post-quantum key establishment by 31 December 2030 and post-quantum signatures by 31 December 2031. CNSA 2.0 expects newly acquired national-security systems to comply from 1 January 2027. The draft sets no transition date of its own. It uses these policy dates as the ceiling for the date each specification must state, a bound on how long classical algorithms stay permitted and not a prediction of when a quantum computer appears, and it invites discussion of how that date should be chosen.

    Agent delegation records not anchored in trusted time become deniable once timestamps can be forgedBI-FIND-2026-0664

›Cited in 35 briefings

Every briefing that discusses this term, newest first.

  1. From trust level L2 up, an agent audit draft no longer lets the agent vouch for itself

    Draft · · IETF Datatracker · Raza Sharif, CyberSecAI · Oct 26, 2026

  2. AGTP's agent identity document is tamper-evident only with its optional issuer signature

    Draft · · IETF Datatracker · Chris Hood, Nomotic, Inc. · Oct 30, 2026

  3. Verifiable Intent stops an AI agent from passing its buying authority on, and v0.1 has no protocol to revoke it

    Article · · Verifiable Intent (GitHub, agent-intent/verifiable-intent) · Verifiable Intent Working Group · Apr 18, 2026

  4. The OAuth working group split over a token-binding draft that never says what DPoP lacks

    Draft · · IETF Datatracker · Justin Richer et al. · Jul 28, 2026

  5. SPIFFE's JWT-SVID spec says its own tokens can be replayed, and sets no hard cap on how long they live

    Article · · SPIFFE project (GitHub) · SPIFFE project · Jul 1, 2026

  6. AGTP's merchant draft has agents check the seller before paying, but the seller's own server runs the swap check

    Draft · · IETF Datatracker · Chris Hood, Nomotic, Inc. · Oct 30, 2026

  7. Sweeney's delegation draft concedes its server is trusted with users' credentials, and drops an interop claim

    Draft · · IETF Datatracker · Kieran Sweeney · Oct 13, 2026

  8. Cross-App Access draft warns that one stolen sign-in token could reach every app the identity provider permits

    Draft · · IETF Datatracker · Aaron Parecki et al. · May 21, 2026

  9. WIMSE credentials -03: a valid signature proves trust-domain membership, not which workload is calling

    Draft · · IETF Datatracker · Brian Campbell et al. · Jul 2, 2026

  10. AGTP checks that an agent ID is signed; binding it to the connection is an add-on in the author's patent notice

    Draft · · IETF Datatracker · Chris Hood, Nomotic, Inc. · Jun 28, 2026

  11. Agent URI draft -04 ties an agent's name to a key document and bars OAuth servers from trusting the name alone

    Draft · · IETF Datatracker · Yaswanth Narvaneni et al. · Oct 20, 2026

  12. Agent delegation records not anchored in trusted time become deniable once timestamps can be forged

    Draft · · IETF Datatracker · V.K. Uppalapati · Sep 29, 2026

  13. Drake's agent-mail draft puts hardware-maker proof on hold, but its abstract still offers it

    Draft · · IETF Datatracker · Christopher Drake, 1id.com · Oct 27, 2026

  14. An IETF draft caps each attestation verdict at its worst check and leaves the unchecked parts to the relying party

    Draft · · IETF Datatracker · Thomas Fossati et al. · May 26, 2026

  15. Delegation receipts for AI agents, revision 15: holding a copy of a receipt no longer lets you extend the chain

    Draft · · IETF Datatracker · Ryan Nelson, Authproof · Oct 22, 2026

  16. A COSE Receipt signs a Merkle root, not the entry, and RFC 9942 recommends checking signature and proof as one result

    Article · · RFC Editor · Orie Steele et al. · Jun 30, 2026

  17. The IETF's stronger workload proof is built for the proxy in the middle, and it still leaves replay protection optional

    Draft · · IETF Datatracker · Joseph A. Salowey et al. · Oct 20, 2026

  18. An OAuth profile for AI agents makes every hand-off cut privileges, but a shorter expiry alone counts as a cut

    Draft · · IETF Datatracker · Angel Cruz · Feb 7, 2026

  19. A transparency-log profile for agents exposes edited and dropped records; an action nobody logged leaves no gap

    Draft · · IETF Datatracker · Pinar Emirdag et al. · Oct 12, 2026

  20. Schrock's receipts prove a named key approved one exact agent action, and the draft lists at length what they cannot prove

    Draft · · IETF Datatracker · Iman Schrock, EMILIA Protocol · Sep 12, 2026

  21. Cisco's SD-Card puts an A2A Agent Card in a selective-disclosure token, and leaves its registry out of scope

    Draft · · IETF Datatracker · Suhas Nandakumar et al. · Mar 2, 2026

  22. IPC passes a delegation chain between services; its signature proves only the last signer

    Draft · · IETF Datatracker · Ravi Kant Sharma, Ericsson · Jul 23, 2026

  23. A June OAuth draft logs each hand-off between AI agents, but the per-hop limits the act claim lacks are optional

    Draft · · IETF Datatracker · Dapeng Liu et al. · Jun 8, 2026

  24. A 'decentralized' agent identity draft blocks risky calls when its Registry is down, and did:aip is taken

    Draft · · IETF Datatracker · Paras Singla · Apr 17, 2026

  25. WIMSE leaves its application proof choice open, with different integrity coverage

    Draft · · IETF Datatracker · Brian Campbell et al. · Oct 16, 2025

  26. RFC 9864 deprecates ambiguous signature identifiers without prohibiting their use

    Article · · IETF / RFC Editor · Michael B. Jones et al. · Oct 1, 2025

  27. Auth0's DPoP explainer leaves out the access-token hash that RFC 9449 requires on every API call

    Article · · Auth0 Blog · Andrea Chiarelli · Aug 25, 2025

  28. Arm's PSA attestation RFC trusts two device states, and its Table 1 labels one as root-of-trust debug

    Article · · RFC Editor · Hannes Tschofenig et al. · Jun 13, 2025

  29. A 2025 post-quantum passkey draft lets the private key sit encrypted on flash or disk, for want of ML-DSA hardware

    Draft · · IETF Internet-Draft · Aditya Mitra et al. · Apr 2, 2025

  30. RFC 9711 standardizes the attestation token and sets no security floor for the device that signs it

    Article · · RFC Editor · Laurence Lundblade et al. · Apr 2025

  31. FAPI 2.0 issues only sender-constrained access tokens and leaves public clients out

    Article · · OpenID Foundation · Daniel Fett et al. · Feb 22, 2025

  32. DPoP token binding depends on checks at the resource server

    Article · · RFC Editor · Daniel Fett et al. · Sep 2023

  33. RFC 9053 allows identity inputs in COSE key derivation to be omitted

    Article · · IETF / RFC Editor · Jim Schaad · Aug 1, 2022

  34. RFC 7519 makes "none" mandatory to implement and leaves refusing an unwanted algorithm as a SHOULD

    Article · · RFC Editor · Michael B. Jones et al. · May 1, 2015

  35. RFC 7518 (2015) required one JWS signing algorithm, the shared-secret HS256, and barred accepting "none" by default

    Article · · RFC Editor · Michael B. Jones, Microsoft · May 1, 2015

Related terms

What appears alongside ES256 in the same briefings.

JSON Web SignatureJSON Web Key (JWK)JSON Web Algorithms (JWA)COSEJSON Canonicalization SchemeJSON Web Token Best Current PracticesJOSERFC 9943 SCITT architecture

Was this explainer useful?

Share this explainer

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem that involves ES256? Talk to Boston Identity