Function oqs_sys::common::OQS_MEM_secure_bcmp
source · pub unsafe extern "C" fn OQS_MEM_secure_bcmp(
a: *const c_void,
b: *const c_void,
len: usize
) -> c_int
Expand description
Constant time comparison of byte sequences a
and b
of length len
.
Returns 0 if the byte sequences are equal or if len
=0.
Returns 1 otherwise.
@param[in] a A byte sequence of length at least len
.
@param[in] b A byte sequence of length at least len
.
@param[in] len The number of bytes to compare.