Skip to main content

increment

Function increment 

Source
pub fn increment(old: Option<&[u8]>) -> [u8; 8]
Expand description

Increments an optional big-endian counter with wrapping arithmetic.

Missing or malformed input is treated as zero. The returned array contains the incremented value in big-endian byte order.