libressl-CRYPTO_memcmp3
Constant time memory comparison
Usage
Crypto Library
(libcrypto,
-lcrypto)
int
Overview
CRYPTO_memcmp() compares the len bytes pointed to by a and b for equality. It takes an amount of time dependent on len, but independent of the contents of the memory regions pointed to by a and b.
Return values
CRYPTO_memcmp() returns 0 if the content of the memory regions is equal or non-zero otherwise.