From 3863e01e2207198c20bf278c107f24a8cfbf1a73 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 29 Apr 2014 20:45:32 -0400 Subject: Some more work done on the middle network protocol. Handshake most likely has no more possible flaws to it, next thing to do is to do the same with the data packets. Wrote a couple more functions. --- toxcore/crypto_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/crypto_core.h') diff --git a/toxcore/crypto_core.h b/toxcore/crypto_core.h index de8656c7..1fca8078 100644 --- a/toxcore/crypto_core.h +++ b/toxcore/crypto_core.h @@ -29,7 +29,7 @@ /* return zero if the buffer contains only zeros. */ uint8_t crypto_iszero(uint8_t *buffer, uint32_t blen); -/* Use this instead of memcmp; not vulnerable to timing attacks. +/* Use this instead of memcmp; not vulnerable to timing attacks. returns 0 if both mem locations of length are equal. */ unsigned int crypto_cmp(uint8_t *mem1, uint8_t *mem2, uint32_t length); -- cgit v1.2.3