Function nrfxlib_sys::ocrypto_constant_time_equal
source · pub unsafe extern "C" fn ocrypto_constant_time_equal(
x: *const c_void,
y: *const c_void,
length: usize
) -> c_int
Expand description
Variable length comparison.
x
- Memory region to compare with *y
- .y
- Memory region to compare with *x
- .length
- Number of bytes to compare, *length
- > 0.
Returns 1 If * x
- and * y
- point to equal memory regions.
Returns 0 Otherwise.