ECDSA and EdDSA signature sizes by curve

Signature and key lengths in octets for ECDSA on the NIST curves and for the Edwards-curve schemes, with the RFC or standard each figure comes from.

On this page

ECDSA P-256 and Ed25519 signatures are 64 octets, and P-384 and Ed448 are 96 and 114 octets

If you are sizing certificates, DNSSEC records, JWTs or firmware signatures, the two figures you will use most are 64 octets for an ECDSA P-256 or Ed25519 signature and 96 octets for an ECDSA P-384 signature, with Ed448 signatures at 114 octets. These lengths follow from the encodings in RFC 6605 for DNSSEC algorithms 13 and 14, RFC 7518 for JWS, and RFC 8032 for the Edwards-curve schemes. This table is for platform, security and network engineers who need the signature and public key length for a given curve, and for compliance and procurement reviewers checking a size against a cited document. Every figure here is taken from those documents, so confirm any value against the version your product implements before you commit a buffer or record size.

The length depends on the encoding as well as the curve. For DNSSEC, RFC 6605 encodes each of r and s as a fixed 32 octets for P-256 and 48 octets for P-384, giving the 64- and 96-octet signatures above. For JWS, RFC 7518 uses the same fixed-length concatenation of R and S for ES256 and ES384, so the two figures match, but ES512 on P-521 produces 132 octets. For Ed25519 and Ed448, RFC 8032 defines a signature made of R and S at 32 octets each (64 total) and at 57 octets each (114 total), with public keys of 32 and 57 octets. A DER-encoded ECDSA signature in X.509, defined by RFC 3279, is a SEQUENCE of two INTEGERs and will not match the fixed-length figures, so do not compare the two directly.

Before you finalize a buffer, check which curve and encoding your implementation actually uses. Some embedded signing tools support only a subset of these curves. The MCUboot imgtool documentation lists ecdsa-p256 and ed25519 keys and does not list ecdsa-p384, so confirm support in the tool version you deploy. Also confirm the public key encoding your stack expects, because the DNSKEY point and the X.509 SubjectPublicKeyInfo are not the same length. The cited RFCs define the lengths; your vendor's documentation and your own test output confirm them for your version.

ECDSA and EdDSA public key and signature sizes in octets

This table lists the public key and signature lengths in octets for each ECDSA and EdDSA variant covered by the sources, with the identifier you will see in JOSE, DNSSEC or certificate tooling. Read each row as the fixed size the encoding uses for that curve, and check the source column before relying on a figure. The main takeaway is that the raw signature length depends on the encoding: JWS and DNSSEC use fixed-length r and s concatenation, while X.509 uses a DER SEQUENCE whose length varies.

Algorithm or identifierPublic key octetsSignature octetsSource
ECDSA P-256 with SHA-256 (ES256, DNSSEC algorithm 13)64 (uncompressed x | y)64 (r and s, 32 octets each)RFC 6605 Sections 4, 6.1; RFC 7518 Section 3.4
ECDSA P-384 with SHA-384 (ES384, DNSSEC algorithm 14)96 (uncompressed x | y)96 (r and s, 48 octets each)RFC 6605 Sections 4, 6.2; RFC 7518 Section 3.4
ECDSA P-521 with SHA-512 (ES512)Not stated in the sources listed132 (r and s, 521 bits each, JWS form)RFC 7518 Sections 3.1, 3.4
Ed25519 (id-Ed25519, 1.3.101.112)3264 (R 32 octets, S 32 octets)RFC 8032 Sections 5.1.5, 5.1.6; RFC 8410 Section 3
Ed448 (id-Ed448, 1.3.101.113)57114 (R 57 octets, S 57 octets)RFC 8032 Sections 5.2.5, 5.2.6; RFC 8410 Section 3

How to read the ECDSA and EdDSA size columns

The size columns on this page count octets, not bits, and they measure two different things: the public key octets a verifier must hold, and the signature octets that travel with each signed object. Before comparing a row to a deployment, confirm which encoding that deployment uses, because the same curve can produce different signature lengths depending on the format. In DNSSEC (RFC 6605, Section 4) and in JOSE (RFC 7518, Section 3.4), the ECDSA signature is a fixed-length concatenation of the integers r and s, each padded to the size of the curve. In X.509, RFC 3279 (Section 2.2.3) instead defines the signature as a DER Ecdsa-Sig-Value, a SEQUENCE of two INTEGERs, so its length varies with the values of r and s and is not the same as the fixed-length figure in the other formats.

For the DNSSEC rows, the public key column reflects the DNSKEY public key, which RFC 6605 (Section 4) defines as the uncompressed point x | y, with no prefix byte. The P-256 and P-384 example keys in RFC 6605 (Sections 6.1 and 6.2) decode from base64 to 64 octets and 96 octets respectively, which is the figure to check against a zone file. The JWS rows follow RFC 7518 (Section 3.4), and the EdDSA rows follow RFC 8032 (Sections 5.1 and 5.2), where the signature is R followed by S. Note that the curve parameter sets are cited to FIPS 186-3 (D.1.2.3 and D.1.2.4) in RFC 6605 (Section 3), so a reviewer tracing a curve to its source should follow that reference.

Where a column reports X.509 sizes, the BIT STRING wrapping adds octets beyond the raw key or signature, so a certificate field will not match the table figure byte for byte. For EdDSA, RFC 8410 (Section 6) encodes the signature directly in the BIT STRING with no additional ASN.1 wrapping, and its Ed25519 example public key is a 32-byte key inside a 33-byte BIT STRING (Section 10.1). Confirm the exact encoding your certificate authority and client libraries produce by inspecting a sample certificate, and check any ECDSA P-384 row against your own toolchain, since the facts for this topic do not show P-384 support in every product.

Where ECDSA and EdDSA signature sizes affect systems

ECDSA and EdDSA signatures are much smaller than RSA signatures, but the exact length depends on the curve and on how the signature is encoded. The cards below cover four places where those lengths change what gets sent, stored or verified, and what to confirm in each one.

DNSSEC records and zone response sizes

In DNSSEC algorithm 13 (ECDSAP256SHA256), each of r and s is encoded as 32 octets, so the signature is 64 octets. Algorithm 14 (ECDSAP384SHA384) uses 48 octets per value, giving a 96-octet signature. The DNSKEY public key is the uncompressed point x | y, which decodes to 64 octets for P-256 and 96 octets for P-384 in the RFC 6605 examples. Zone operators should check how these fixed sizes add up in signed responses, since each RRSIG and DNSKEY record carries them, and confirm the figures against the RFC 6605 examples for the algorithm they run.

RFC 6605

X.509 certificates and DER overhead

In X.509, an ECDSA signature is not the fixed-length r and s pair. RFC 3279 defines it as a DER SEQUENCE of two INTEGERs, so the encoded length varies with the values of r and s and adds tag and length bytes. An EdDSA signature is placed directly in the BIT STRING without extra ASN.1 wrapping, so its overhead is different. Engineers sizing certificate chains should measure encoded certificates rather than assume the raw signature length, and confirm the encoding rules for the profile their CA issues.

RFC 3279

JWS tokens and fixed-length signatures

JWS uses a different encoding from X.509. The ECDSA signature is a fixed-length concatenation of R and S, so ES256 signatures are 64 octets, ES384 signatures are 96 octets and ES512 signatures are 132 octets, with R and S each 521 bits for ES512. The EdDSA identifier with the Ed25519 curve uses a 32-octet public key in the x parameter. Token designers should account for these lengths and the base64url expansion when estimating header and token size, and check the JOSE registrations for the identifiers they use.

RFC 7518

Constrained firmware signing

The MCUboot imgtool documents support for ecdsa-p256 and ed25519 keys and does not list ecdsa-p384. Teams planning firmware signing on constrained devices should confirm that the bootloader and signing tool they use support the curve they choose, since a P-384 key may need a different toolchain or a custom integration. Signature lengths for Ed25519 (64 octets, with a 32-octet public key) are fixed and small, which matters for flash and transfer budgets. Check the imgtool documentation for the current list of supported key types before fixing a design.

MCUboot imgtool docs

ECDSA P-256, P-384, P-521, Ed25519 and Ed448 sizes one by one

ECDSA on the P-256 curve is the most widely referenced ECDSA configuration in the sources on this page. Its signature size depends on how the signature is encoded, so the figures below should be read against the encoding in use. The DNSSEC algorithm 13 (ECDSAP256SHA256) encodes r and s as 32 octets each, giving a 64-octet signature. The JOSE identifier ES256 pairs P-256 with SHA-256 and uses the same fixed-length concatenation of r and s, giving 64 octets. The public key in the DNSKEY form is the uncompressed point x | y, which decodes to 64 octets in the RFC 6605 example key. The curve is cited in RFC 6605 against FIPS 186-3 section D.1.2.3.

  • DNSSEC: algorithm 13, 32 octets each for r and s, 64-octet signature, 64-octet public key in the DNSKEY form.
  • JOSE: ES256, a fixed-length 64-octet concatenation of r and s.
  • X.509 and DER: the signature is an Ecdsa-Sig-Value SEQUENCE of two INTEGERs, so its length varies with the encoded integers and is not the same as the JOSE form.
  • Standards reference: FIPS 186-3 section D.1.2.3, as cited by RFC 6605.
  • Firmware reference: the MCUboot imgtool documentation lists ecdsa-p256 among the key types it supports.

Confirm the encoding your signing library produces before budgeting bytes, since the DER and fixed-length forms differ.

How to confirm the ECDSA or EdDSA size in your own deployment

This sequence lets you confirm the signature size your system actually produces and accepts for ECDSA or EdDSA, rather than relying on a table alone. Each step ends with a check you can record, so the result can be reviewed by your security, platform or procurement team. The sequence covers the curve and hash pair, the encoding, the documented size and the limits in the target system.

  1. Identify the curve and hash pair in use

    Start by listing every signing configuration in the system, including certificates, tokens, DNSSEC keys, firmware signing keys and any library settings. For each one, record the curve (for example P-256, P-384, P-521, Ed25519 or Ed448) and the hash that goes with it. Where a pair is named in a standard, such as ES256 for P-256 with SHA-256 in JWS, record the identifier as written. The output is a table with one row per signing use, which you will carry into the later steps. If a configuration does not state its curve, treat that as an open item rather than assuming a default.

  2. Determine the encoding for each use

    For each row, decide which encoding the protocol or format uses. JWS uses a fixed-length concatenation of r and s for ECDSA, DNSSEC uses fixed-length r and s with the public key as the uncompressed point x and y, and X.509 certificates use the DER form of Ecdsa-Sig-Value, a SEQUENCE of two INTEGERs. EdDSA in X.509 is carried directly in a BIT STRING. The encoding decides whether the signature length is fixed or varies with the integers, so write the encoding beside each row. Check this against the specification named for that protocol, not against the library's own description.

  3. Verify the documented size in the protocol specification

    Using the curve and encoding from the earlier steps, look up the size in the governing document. For example, RFC 6605 gives the DNSSEC ECDSA signature as 64 octets for P-256 and 96 octets for P-384, and RFC 8032 gives the Ed25519 signature as 64 octets and the Ed448 signature as 114 octets. For DER-encoded X.509 signatures, the length is not fixed, so the size must be measured from real certificates in your environment. Record the source and section next to each figure so a reviewer can trace it.

  4. Check the size against your libraries and devices

    Confirm that the software and hardware in the deployment accept the curve you recorded. Read the documentation of each signing library, HSM, firmware bootloader and verification component. For example, the MCUboot imgtool documentation lists ecdsa-p256 and ed25519 keys and does not list ecdsa-p384, so a P-384 firmware plan would need that gap confirmed with the vendor. Note any curve a component does not list, and record the version you are running, since support can differ between releases.

  5. Measure a real signature in the running system

    Generate or capture a signature from each configuration in a test environment and measure its length in octets. Compare the measured length with the documented size from the specification step. For fixed-length encodings the two should match. For DER-encoded X.509 signatures, record the observed range across several samples. Any mismatch is an item to investigate before you rely on the figure, because it may come from a different encoding, an extra wrapper or a different library version.

  6. Check buffer and message limits in the target system

    Find every fixed-size buffer, field length, packet or message limit that a signature passes through, such as token header fields, DNS response sizes, certificate chain limits in TLS stacks, and firmware manifest slots. Compare the largest measured signature, plus the surrounding overhead, with each limit. Record the margin for each limit. If a limit is smaller than the measured size, that configuration cannot be used as it stands and must be changed or escalated to the component owner.

  7. Ask the vendor which curves and encodings it supports

    Send each product vendor a written question listing the curves and encodings you need, for example P-256 and P-384 with DER-encoded X.509, and Ed25519 for firmware signing, along with the version you run. Ask them to confirm each combination in writing and to name the document or test that supports the answer. Keep the response with your deployment record. Where a vendor cannot answer, treat that curve or encoding as unconfirmed for that product until the gap is resolved.

What these ECDSA and EdDSA sizes do not tell you

The sizes on this page are the raw signature and key lengths defined by the RFCs cited for each encoding. They do not include certificate fields, chain overhead, or the token overhead added by a transport or format. An X.509 certificate carries the signature plus the issuer name, validity, subject, extensions, and the signature algorithm identifier, so the certificate is larger than the signature alone. A JWT or JWS adds base64url encoding around the header, payload, and signature, which expands the bytes on the wire. Before you size a buffer, a packet budget, or a token limit, add these layers on top of the figures here, and measure the result from the output of the implementation you run.

The encoding changes the number. An ECDSA signature in X.509 and CMS is the DER form defined as Ecdsa-Sig-Value, a SEQUENCE of two INTEGERs r and s, so its length varies with the leading bits of each value and the ASN.1 framing. In JWS, the same r and s are concatenated at fixed length, giving 64 octets for ES256. Those two lengths are not interchangeable. An EdDSA signature in X.509 is different again: it is placed directly in the BIT STRING with no additional ASN.1 wrapping. Check which encoding each field in your system expects before you compare numbers across formats.

The sources listed on this page do not give sizes for every curve in the family. The DNSSEC, JOSE and RFC 8032 figures cover the curves named in those documents, and the MCUboot imgtool documentation lists ecdsa-p256 and ed25519 but not ecdsa-p384. Where a curve or encoding is not covered, do not assume its size from a neighboring curve. Confirm the public key and signature lengths against the specification for your protocol and the library or device firmware you run, and record the version you tested.

Common questions about ECDSA and EdDSA signature sizes

How many bytes is an ECDSA P-256 signature?

An ECDSA P-256 signature is 64 octets when it is written in the fixed-length form used by JWS, where R and S are each 32 octets and are concatenated. The DNSSEC algorithm 13 (ECDSAP256SHA256) uses the same 64-octet length, with r and s each encoded as 32 octets (RFC 6605, Section 4). The fixed-length form is not the form used in X.509 certificates. There, the signature is a DER-encoded SEQUENCE of two INTEGERs, so its length varies with the values of r and s. Confirm which encoding your protocol or library uses before you size a buffer or a field.

How does an Ed25519 signature compare with a P-256 signature in size?

The sources give both figures on the same basis, and they are equal at the signature level. An Ed25519 signature is 64 octets, made of R (32 octets) and S (32 octets) (RFC 8032, Sections 5.1.5 and 5.1.6). A P-256 signature in the fixed-length JWS form is also 64 octets (RFC 7518, Section 3.4). The public keys differ: an Ed25519 public key is 32 octets (RFC 8032, Section 5.1.5), and the P-256 public key in DNSSEC is the uncompressed point x | y, which decodes to 64 octets (RFC 6605, Section 4). Where the X.509 encoding is used, the sizes of the final certificate fields will depend on the DER wrapping, so compare the sizes of the encoded artifact you actually ship.

Can a firmware signing tool that lists only ecdsa-p256 and ed25519 sign with P-384?

Not with the MCUboot imgtool as documented. The MCUboot imgtool documentation states that it supports ecdsa-p256 and ed25519 keys and does not list ecdsa-p384 (MCUboot imgtool documentation). A P-384 key therefore should not be assumed to work with that tool. If your firmware pipeline needs P-384, confirm with the MCUboot project or your vendor documentation whether a later version adds support, and check the exact version of imgtool you run before you plan a P-384 signing step.

Why is a DER X.509 ECDSA signature not 64 octets?

The X.509 form of an ECDSA signature is a DER encoding, not a raw concatenation. RFC 3279 defines it as Ecdsa-Sig-Value, a SEQUENCE of two INTEGERs, r and s (RFC 3279, Section 2.2.3). That SEQUENCE carries tag and length bytes, and each INTEGER carries its own tag and length. Because DER encodes INTEGERs in their minimal two's-complement form, a leading zero may be added when the high bit is set. The result is therefore a variable length that is usually longer than 64 octets. The 64-octet figure applies to the fixed-length r and s concatenation used in JWS and DNSSEC, which is a different encoding.

What is the signature length of Ed448?

An Ed448 signature is 114 octets, made of R (57 octets) and S (57 octets) (RFC 8032, Sections 5.2.5 and 5.2.6). The Ed448 public key is 57 octets (RFC 8032, Section 5.2.5). Ed448 is registered in JOSE with the crv value Ed448 under the EdDSA alg (RFC 8037, Sections 2 and 3.1). Its object identifier in X.509 is 1.3.101.113, assigned as id-Ed448 (RFC 8410, Section 3). Check that the libraries and HSMs in your chain accept Ed448 before you plan to use it, because the sources listed on this page do not say which products support it.

What is the signature length of ECDSA P-384 in DNSSEC and JWS?

In DNSSEC, algorithm 14 (ECDSAP384SHA384) encodes each of r and s as 48 octets, which gives a 96-octet signature (RFC 6605, Section 4). In JWS, ES384 (P-384 with SHA-384) gives a fixed-length signature of 96 octets (RFC 7518, Section 3.4). The P-384 example public key in RFC 6605 decodes to 96 octets (RFC 6605, Section 6.2). These figures apply to the fixed-length encodings. A DER-encoded X.509 P-384 signature has a variable length, as it does for P-256, so confirm the encoding for your certificate chain.

Which standard defines the ECDSA and EdDSA signatures I should size against?

The sources listed on this page cite FIPS 186-3 sections D.1.2.3 for the P-256 curve and D.1.2.4 for the P-384 curve (RFC 6605, Section 3). FIPS 186-5 specifies RSA, ECDSA and EdDSA as its three digital signature techniques and took effect on 3 February 2023, with FIPS 186-4 remaining in effect alongside it for one year (Federal Register FIPS 186-5 notice). Refer to the standards directly for normative definitions. For the byte-level layout of each signature, use the RFC sections named on this page.

How DeployOpen works on this

DeployOpen works on ECDSA and EdDSA signature sizes by starting from the systems that carry these signatures, such as DNSSEC zones, X.509 certificates, JOSE tokens and firmware images. Each engagement is fixed-scope, with the algorithms, curves and encodings agreed in writing before any work starts.

How we scope

  • Inventory which systems produce or verify ECDSA or EdDSA signatures, and which curve or algorithm identifier each one uses.
  • Record the encoding each system expects, such as DER Ecdsa-Sig-Value in X.509 or fixed-length R and S concatenation in JWS.
  • Agree the scope, deliverables and timeline in writing, and confirm which versions and components the work will cover.

How we build

  • Configure and test the signing and verification paths on the curves and algorithm identifiers the agreed scope names.
  • Check signature and public key lengths against the RFCs and vendor documentation for each deployed version, not from memory.
  • Test response sizes, token sizes and image metadata in your own environment, where size limits and middleboxes apply.

How we hand over

  • Document each algorithm, curve, key length and signature length in use, with the source specification cited for each figure.
  • Deliver configuration records and test results so your security and platform teams can review them directly.
  • Flag any curve or encoding the sources do not cover for your version, and list what to confirm with the vendor.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, covering changes to signature sizes after deployment.
  • Re-check size tables when a library, DNS server, token issuer or firmware toolchain is upgraded to a new version.
  • Retest signing and verification paths after each change, and update the handover documents to match the running configuration.

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.