verify library

Functions

cmov(Uint8List r, Uint8List x, int len, int b) → void
Copies the contents of x to r if b 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 and b in constant time. Returns true if they are identical, false otherwise. This function avoids early exits that could leak information.