pub fn read_der_length(data: &[u8], offset: &mut usize) -> Option<usize>Expand description
Reads a DER length from data starting at *offset.
Supports both short-form (1 byte) and long-form (multibyte) DER encodings.
Advances *offset by the number of length descriptor bytes.