[][src]Function sodiumoxide::utils::add_le

pub fn add_le(x: &mut [u8], y: &[u8]) -> Result<(), ()>

add_le() treats x and y as unsigned little-endian numbers and adds y to x modulo 2^(8*len) in constant time.

add_le() will return Err<()> if the length of x is not equal to the length of y.

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