sodium_increment

* Incrementing large numbers. * The sodium_increment() function takes a pointer to an arbitrary-long unsigned number, and * increments it. * It runs in constant-time for a given length, and considers the number to be encoded in little- * endian format. * sodium_increment() can be used to increment nonces in constant time. * This function was introduced in libsodium 1.0.4.

extern (C)
void
sodium_increment
(
ubyte* n
,
const size_t nlen
)

Meta