summaryrefslogtreecommitdiff
path: root/auto_tests/crypto_test.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-05-01 19:20:28 -0400
committerirungentoo <irungentoo@gmail.com>2014-05-01 19:20:28 -0400
commit47aa53a3840f81b42e0f78dea03a57ebd7c3ebb5 (patch)
treef5c00a5ab3269b00e3d111bf136850f3f4ea5e60 /auto_tests/crypto_test.c
parent19a4b1e443f015e38d04decbe8e042acb17d8ae8 (diff)
Protocol implementation is starting to look ok.
Still need to decide exactly how data packets will work though.
Diffstat (limited to 'auto_tests/crypto_test.c')
-rw-r--r--auto_tests/crypto_test.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/auto_tests/crypto_test.c b/auto_tests/crypto_test.c
index 917aa81d..39893515 100644
--- a/auto_tests/crypto_test.c
+++ b/auto_tests/crypto_test.c
@@ -9,12 +9,6 @@
9#include <check.h> 9#include <check.h>
10#include <stdlib.h> 10#include <stdlib.h>
11#include <time.h> 11#include <time.h>
12#ifndef VANILLA_NACL
13#include <sodium.h>
14#else
15#include <crypto_box.h>
16#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES)
17#endif
18 12
19void rand_bytes(uint8_t *b, size_t blen) 13void rand_bytes(uint8_t *b, size_t blen)
20{ 14{
@@ -276,6 +270,7 @@ START_TEST(test_large_data_symmetric)
276} 270}
277END_TEST 271END_TEST
278 272
273
279#define DEFTESTCASE(NAME) \ 274#define DEFTESTCASE(NAME) \
280 TCase *NAME = tcase_create(#NAME); \ 275 TCase *NAME = tcase_create(#NAME); \
281 tcase_add_test(NAME, test_##NAME); \ 276 tcase_add_test(NAME, test_##NAME); \