verify library
Functions
-
cmov(
Uint8List r, Uint8List x, int len, int b) → void -
Copies the contents of
xtorifbis 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
aandbin constant time. Returnstrueif they are identical,falseotherwise. This function avoids early exits that could leak information.