mbedtls_psa_safer_memcmp() function
Constant-time buffer comparison
Syntax
static inline int mbedtls_psa_safer_memcmp(
const uint8_t *a,
const uint8_t *b,
size_t n);
Arguments
a
Left-hand buffer for comparison.
b
Right-hand buffer for comparison.
n
Amount of bytes to compare.
Return value
0 if the buffer contents are equal, non-zero otherwise