sodium_is_zero

Testing for all zeros.

It's execution time is constant for a given length.

  1. alias sodium_is_zero = deimos.sodium.utils.sodium_is_zero
    alias sodium_is_zero = deimos.sodium.utils.sodium_is_zero
  2. bool sodium_is_zero(ubyte[] a)

Return Value

1 if the nlen bytes vector pointed by n contains only zeros. 0 if non-zero bits are found.

See Also

Meta