diff options
author | irungentoo <irungentoo@gmail.com> | 2014-05-01 19:20:28 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-05-01 19:20:28 -0400 |
commit | 47aa53a3840f81b42e0f78dea03a57ebd7c3ebb5 (patch) | |
tree | f5c00a5ab3269b00e3d111bf136850f3f4ea5e60 /toxcore/crypto_core.h | |
parent | 19a4b1e443f015e38d04decbe8e042acb17d8ae8 (diff) |
Protocol implementation is starting to look ok.
Still need to decide exactly how data packets will work though.
Diffstat (limited to 'toxcore/crypto_core.h')
-rw-r--r-- | toxcore/crypto_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/crypto_core.h b/toxcore/crypto_core.h index 7ee5f59e..c5969453 100644 --- a/toxcore/crypto_core.h +++ b/toxcore/crypto_core.h | |||
@@ -43,7 +43,7 @@ | |||
43 | /* Use this instead of memcmp; not vulnerable to timing attacks. | 43 | /* Use this instead of memcmp; not vulnerable to timing attacks. |
44 | returns 0 if both mem locations of length are equal, | 44 | returns 0 if both mem locations of length are equal, |
45 | return -1 if they are not. */ | 45 | return -1 if they are not. */ |
46 | unsigned int crypto_cmp(uint8_t *mem1, uint8_t *mem2, uint32_t length); | 46 | int crypto_cmp(uint8_t *mem1, uint8_t *mem2, uint32_t length); |
47 | 47 | ||
48 | /* Encrypts plain of length length to encrypted of length + 16 using the | 48 | /* Encrypts plain of length length to encrypted of length + 16 using the |
49 | * public key(32 bytes) of the receiver and the secret key of the sender and a 24 byte nonce. | 49 | * public key(32 bytes) of the receiver and the secret key of the sender and a 24 byte nonce. |