Skip to main content

signature_shortened

Function signature_shortened 

Source
fn signature_shortened(body: &[u8]) -> Option<Vec<u8>>
Expand description

A version 4 signature’s body with its numbers in their shortest form (no leading zero bits, RFC 9580, 3.2), and those of a signature embedded in its unhashed area (a signing subkey’s back-signature, where GnuPG writes it); never anything in its hashed area, which the signature covers. None when nothing needed it, when its algorithm’s are not numbers (Ed25519’s own octets) or do not read whole, or when a length is said too short: only ever shorter, as GnuPG’s fault is.