Function sodiumoxide::utils::increment_le [] [src]

pub fn increment_le(x: &mut [u8])

increment_le() treats x as an unsigned little-endian number and increments it.

WARNING: this method does not check for arithmetic overflow. When used for incrementing nonces it is the callers responsibility to ensure that any given nonce value is only used once. If the caller does not do that the cryptographic primitives in sodiumoxide will not uphold any security guarantees (i.e. they will break)