Skip to main content

tlv

Function tlv 

Source
pub fn tlv(input: &[u8]) -> Option<(u8, &[u8], &[u8])>
Expand description

Split one DER TLV off the front of input: (tag, value, rest).

Exposed so a fuzz target can throw arbitrary bytes at the hand-rolled DER reader. A panic here would be a denial of service on every assertion that carries an x5c header.