summaryrefslogtreecommitdiff
path: root/auto_tests/crypto_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/crypto_test.c')
-rw-r--r--auto_tests/crypto_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/auto_tests/crypto_test.c b/auto_tests/crypto_test.c
index 4a77b49a..e7201a34 100644
--- a/auto_tests/crypto_test.c
+++ b/auto_tests/crypto_test.c
@@ -285,8 +285,9 @@ void increment_nonce_number_cmp(uint8_t *nonce, uint32_t num)
285 for (i = crypto_box_NONCEBYTES - sizeof(num1); i != 0; --i) { 285 for (i = crypto_box_NONCEBYTES - sizeof(num1); i != 0; --i) {
286 ++nonce[i - 1]; 286 ++nonce[i - 1];
287 287
288 if (nonce[i - 1] != 0) 288 if (nonce[i - 1] != 0) {
289 break; 289 break;
290 }
290 } 291 }
291 } 292 }
292 293
@@ -300,8 +301,9 @@ START_TEST(test_increment_nonce)
300 301
301 uint8_t n[crypto_box_NONCEBYTES]; 302 uint8_t n[crypto_box_NONCEBYTES];
302 303
303 for (i = 0; i < crypto_box_NONCEBYTES; ++i) 304 for (i = 0; i < crypto_box_NONCEBYTES; ++i) {
304 n[i] = rand(); 305 n[i] = rand();
306 }
305 307
306 uint8_t n1[crypto_box_NONCEBYTES]; 308 uint8_t n1[crypto_box_NONCEBYTES];
307 309