Function keynesis::memsec::memcmp[][src]

pub unsafe fn memcmp(v1: *const u8, v2: *const u8, len: usize) -> Ordering
Expand description

Constant time comparison

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