diff options
author | irungentoo <irungentoo@gmail.com> | 2013-12-07 21:13:07 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-12-07 21:13:07 -0500 |
commit | 606c2c12abfa0de9b2947dcdbbb47f8f8230852a (patch) | |
tree | 29be424206696fa8aad5ae7aabd76b2ff00b75f1 /toxcore/net_crypto.c | |
parent | 1c45e5993858a4fc0e85858975e3206a657b9f94 (diff) |
Small fixes.
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 8be1059e..6b64c1b6 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -170,7 +170,7 @@ static void increment_nonce(uint8_t *nonce) | |||
170 | } | 170 | } |
171 | 171 | ||
172 | #if crypto_box_NONCEBYTES != crypto_secretbox_NONCEBYTES | 172 | #if crypto_box_NONCEBYTES != crypto_secretbox_NONCEBYTES |
173 | /*if they no longer equal each other, this function must be slit into two.*/ | 173 | /*if they no longer equal each other, this function must be split into two.*/ |
174 | #error random_nonce(): crypto_box_NONCEBYTES must equal crypto_secretbox_NONCEBYTES. | 174 | #error random_nonce(): crypto_box_NONCEBYTES must equal crypto_secretbox_NONCEBYTES. |
175 | #endif | 175 | #endif |
176 | /* Fill the given nonce with random bytes. */ | 176 | /* Fill the given nonce with random bytes. */ |
@@ -189,7 +189,7 @@ static uint8_t base_nonce[crypto_box_NONCEBYTES]; | |||
189 | static uint8_t nonce_set = 0; | 189 | static uint8_t nonce_set = 0; |
190 | 190 | ||
191 | #if crypto_box_NONCEBYTES != crypto_secretbox_NONCEBYTES | 191 | #if crypto_box_NONCEBYTES != crypto_secretbox_NONCEBYTES |
192 | /*if they no longer equal each other, this function must be slit into two.*/ | 192 | /*if they no longer equal each other, this function must be split into two.*/ |
193 | #error new_nonce(): crypto_box_NONCEBYTES must equal crypto_secretbox_NONCEBYTES. | 193 | #error new_nonce(): crypto_box_NONCEBYTES must equal crypto_secretbox_NONCEBYTES. |
194 | #endif | 194 | #endif |
195 | /* Gives a nonce guaranteed to be different from previous ones.*/ | 195 | /* Gives a nonce guaranteed to be different from previous ones.*/ |