summaryrefslogtreecommitdiff
path: root/toxcore/crypto_core.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-04-29 20:45:32 -0400
committerirungentoo <irungentoo@gmail.com>2014-04-29 20:45:32 -0400
commit3863e01e2207198c20bf278c107f24a8cfbf1a73 (patch)
treea49a417a68d9ccff7dd30824021bc6e1b408795f /toxcore/crypto_core.h
parent94545c3b50c6f87af702692ba171cacc577c669a (diff)
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.
Diffstat (limited to 'toxcore/crypto_core.h')
-rw-r--r--toxcore/crypto_core.h2
1 files changed, 1 insertions, 1 deletions
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 @@
29/* return zero if the buffer contains only zeros. */ 29/* return zero if the buffer contains only zeros. */
30uint8_t crypto_iszero(uint8_t *buffer, uint32_t blen); 30uint8_t crypto_iszero(uint8_t *buffer, uint32_t blen);
31 31
32/* Use this instead of memcmp; not vulnerable to timing attacks. 32/* Use this instead of memcmp; not vulnerable to timing attacks.
33 returns 0 if both mem locations of length are equal. */ 33 returns 0 if both mem locations of length are equal. */
34unsigned int crypto_cmp(uint8_t *mem1, uint8_t *mem2, uint32_t length); 34unsigned int crypto_cmp(uint8_t *mem1, uint8_t *mem2, uint32_t length);
35 35