diff options
Diffstat (limited to 'toxcore/crypto_core.c')
-rw-r--r-- | toxcore/crypto_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/crypto_core.c b/toxcore/crypto_core.c index 3f3e7b48..0b1971e7 100644 --- a/toxcore/crypto_core.c +++ b/toxcore/crypto_core.c | |||
@@ -33,7 +33,7 @@ | |||
33 | /* Use this instead of memcmp; not vulnerable to timing attacks. | 33 | /* Use this instead of memcmp; not vulnerable to timing attacks. |
34 | returns 0 if both mem locations of length are equal, | 34 | returns 0 if both mem locations of length are equal, |
35 | return -1 if they are not. */ | 35 | return -1 if they are not. */ |
36 | unsigned int crypto_cmp(uint8_t *mem1, uint8_t *mem2, uint32_t length) | 36 | int crypto_cmp(uint8_t *mem1, uint8_t *mem2, uint32_t length) |
37 | { | 37 | { |
38 | if (length == 16) { | 38 | if (length == 16) { |
39 | return crypto_verify_16(mem1, mem2); | 39 | return crypto_verify_16(mem1, mem2); |