sodium_is_zero

Testing for all zeros.

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

extern (C) @nogc nothrow pure
int
sodium_is_zero
(
const(ubyte)* n
,
const size_t nlen
)

Return Value

Type: int

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

See Also

Meta