Utility functions

int crypto_memneq(const void *a, const void *b, size_t size)

Compare two areas of memory without leaking timing information.

Parameters

const void *a

One area of memory

const void *b

Another area of memory

size_t size

The size of the area.

Description

Returns 0 when data is equal, 1 otherwise.