sodium_increment

Incrementing large numbers. The sodium_increment() function takes an ubyte array representing 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. Does nothing if the array is null

  1. alias sodium_increment = deimos.sodium.utils.sodium_increment
  2. void sodium_increment(ubyte[] n)
    pragma(inline, true) @nogc nothrow pure @trusted
    void
    sodium_increment
    (
    ubyte[] n
    )

See Also

Meta