Type Definition ecdsa::der::MaxOverhead

source ·
pub type MaxOverhead = U9;
Expand description

Maximum overhead of an ASN.1 DER-encoded ECDSA signature for a given curve: 9-bytes.

Includes 3-byte ASN.1 DER header:

  • 1-byte: ASN.1 SEQUENCE tag (0x30)
  • 2-byte: length

…followed by two ASN.1 INTEGER values, which each have a header whose maximum length is the following:

  • 1-byte: ASN.1 INTEGER tag (0x02)
  • 1-byte: length
  • 1-byte: zero to indicate value is positive (INTEGER is signed)