verify library
Functions
-
cmov(
Uint8List r, Uint8List x, int len, int b) → void -
Copies the contents of
x
tor
ifb
is 1, otherwise does nothing. The operation is performed in constant time, without its time varying depending on the data, only on the length. -
verify(
Uint8List a, Uint8List b) → bool -
Compares two byte arrays
a
andb
in constant time. Returnstrue
if they are identical,false
otherwise. This function avoids early exits that could leak information.