Function keynesis::memsec::memeq[][src]

pub unsafe fn memeq(v1: *const u8, v2: *const u8, len: usize) -> bool

compare the equality of the 2 given arrays, constant in time

Panics

The function will panic if it is called with a len of 0.

Safety

Expecting to have both valid pointer and the count to fit in both the allocated memories