summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/crypto_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/auto_tests/crypto_test.c b/auto_tests/crypto_test.c
index 6b9f6113..01c545c8 100644
--- a/auto_tests/crypto_test.c
+++ b/auto_tests/crypto_test.c
@@ -5,7 +5,12 @@
5#include <check.h> 5#include <check.h>
6#include <stdlib.h> 6#include <stdlib.h>
7#include <time.h> 7#include <time.h>
8#ifndef VANILLA_NACL
8#include <sodium.h> 9#include <sodium.h>
10#else
11#include <crypto_box.h>
12#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES)
13#endif
9 14
10void rand_bytes(uint8_t *b, size_t blen) 15void rand_bytes(uint8_t *b, size_t blen)
11{ 16{