Updated: October 28, 2024 |
Fixed-time memory comparison
#include <qcrypto/qcrypto.h>
int qcrypto_memcmp(const uint8_t *v1, const uint8_t *v2, size_t size)
To resist timing attacks, this function compares the inputs in fixed time relative to the size.
A value of 1 if the values are equal, 0 otherwise.