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
  2. bool sodium_is_zero(ubyte[] a)
    pragma(inline, true) @nogc nothrow pure @trusted
    bool
    sodium_is_zero
    (
    const ubyte[] a
    )

Return Value

Type: bool

ţrue if array a contains only zeros. false if non-zero bits are found.

See Also

Meta