Bytesrw_crypto.VerifyConstant time byte equality checking.
Note. The functions raise Invalid_argument on sequence length mismatch or empty sequences. In the context where these functions should be used, these conditions usually means something is not done right.
val equal_slices : Bytesrw.Bytes.Slice.t -> Bytesrw.Bytes.Slice.t -> boolequal_slices s0 s1 checks in constant time that the bytes in the range of s0 and s1 are equal. Raises Invalid_argument if the length of slices are not positive and equal.
equal_strings s0 s1 checks in constant time that the bytes of s0 and s1 are equal. Raises Invalid_argument if the length of strings are not positive and equal.
equal_bytes b0 b1 checks in constant time that the bytes of b1 and b2 are equal. Raises Invalid_argument if the length of bytes are not positive and equal.