nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ ocrypto_constant_time_equal()

int ocrypto_constant_time_equal ( const void *  x,
const void *  y,
size_t  length 
)

#include <crypto/nrf_oberon/include/ocrypto_constant_time.h>

Variable length comparison.

Parameters
xMemory region to compare with y.
yMemory region to compare with x.
lengthNumber of bytes to compare, length > 0.
Return values
1If x and y point to equal memory regions.
0Otherwise.