Skip to main content

split_serial

Function split_serial 

Source
pub fn split_serial(content: &[u8]) -> Option<EntryReference>
Expand description

Split an MTC serial number, (log_number << 48) | index, from INTEGER content octets retaining any sign padding. Returns None for empty, negative or over-u64 content. The draft’s nonzero-log-number rule is not enforced here.