# What is ES256?

> 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.

Explainer by Boston Identity, 2026-10-28. 5 min read. https://insights.bostonidentity.com/glossary/es256

- What it is: standard
- Defined by: IETF, RFC 7518 (JWA), section 3.4
- Who it's for: Teams that sign or check tokens and credentials

## 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 [S1 §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 [S1 §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 [S1 §3.4]. The RFC rates ES256 "Recommended+" for implementations. The plus means the requirement is likely to get stronger in a future version [S1 §3.1]. Only HS256 is rated Required, so software can conform to the RFC without supporting ES256 [S1 §3.1].

Think of it like this: Think of an embossed seal that only its owner can press, while anyone holding a copy of the pattern can check an impression. The comparison stops at meaning: a valid seal shows which key signed, not that the signed statement is true.

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

## 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: 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.]

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 [S1 §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 [S1 §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 [S1 §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 [S1 §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 [S1 §3.4]. Written as a JWK, that public key has "kty" set to EC, "crv" set to P-256, and "x" and "y" coordinates [S1 §6.2].

## 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 [BI-FIND-2026-0374](https://insights.bostonidentity.com/ref/BI-FIND-2026-0374). 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 [BI-FIND-2025-0413](https://insights.bostonidentity.com/ref/BI-FIND-2025-0413).

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 [BI-FIND-2026-0664](https://insights.bostonidentity.com/ref/BI-FIND-2026-0664). 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 [BI-FIND-2026-0664](https://insights.bostonidentity.com/ref/BI-FIND-2026-0664). We read this as a sign that agent and workload records signed with ES256 today may need a planned move to a different algorithm.

## Where does it fit?

- Compared with JSON Web Signature: JWS 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 [S1 §1].
- Compared with 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 [S1 §6.2].
- Compared with COSE: COSE 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 [BI-FIND-2025-0413](https://insights.bostonidentity.com/ref/BI-FIND-2025-0413).

## 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 [S1 §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 [S1 §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 [S1 §6.2].
- An algorithm's status is not fixed. The registry lets implementation requirements change as cryptography evolves, including a move to Deprecated [S1 §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 [BI-FIND-2026-0374](https://insights.bostonidentity.com/ref/BI-FIND-2026-0374).
- The post-quantum requirements draft finds that the agent identity work now being written does not yet treat algorithm strength as a design parameter [BI-FIND-2026-0664](https://insights.bostonidentity.com/ref/BI-FIND-2026-0664).

## What should a security leader ask?

1. Which of our tokens, workload credentials and agent records are signed with ES256 today, and who owns each signing key?
2. If we had to switch those signatures to a post-quantum algorithm by 2031, which verifiers would break first?
3. Do our verifiers reject ES256 signatures that are not exactly 64 bytes, and do we test that?
4. Which vendors in our token path can already sign or verify ML-DSA in JOSE or COSE?

## Sources

- [S1] [RFC 7518: JSON Web Algorithms (JWA)](https://www.rfc-editor.org/rfc/rfc7518.txt) (IETF / RFC Editor, Standards Track RFC, May 2015)

## Evidence

- [BI-FIND-2026-0374](https://insights.bostonidentity.com/ref/BI-FIND-2026-0374): The 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. (from "The IETF's workload credential binds one key to one name and says nothing else about the software holding it")
- [BI-FIND-2025-0413](https://insights.bostonidentity.com/ref/BI-FIND-2025-0413): EAT 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. (from "RFC 9711 standardizes the attestation token and sets no security floor for the device that signs it")
- [BI-FIND-2026-0664](https://insights.bostonidentity.com/ref/BI-FIND-2026-0664): The 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. (from "Agent-delegation records signed today become deniable once timestamps can be forged")

---

© 2026 Boston Identity LLC. All rights reserved. Published by Boston Identity LLC.
Quote up to 100 words with the credit "Boston Identity, IAM Insights" and a link to https://insights.bostonidentity.com/glossary/es256 as the source. Claim numbers may be cited freely. Training, fine-tuning and text-and-data-mining use of this page is permitted.
Terms: https://insights.bostonidentity.com/terms · How to cite: https://insights.bostonidentity.com/cite
