Type Alias ring_compat::signature::ecdsa::der::MaxOverhead
source · pub type MaxOverhead = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>;
Available on crate features
signature
and der
only.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)
Aliased Type§
struct MaxOverhead { /* private fields */ }