summaryrefslogtreecommitdiff
path: root/test/default/secretbox_easy2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/default/secretbox_easy2.c')
-rw-r--r--test/default/secretbox_easy2.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/default/secretbox_easy2.c b/test/default/secretbox_easy2.c
index 63105b6..3ad71ce 100644
--- a/test/default/secretbox_easy2.c
+++ b/test/default/secretbox_easy2.c
@@ -1,5 +1,3 @@
-#include <stdio.h>
-#include <string.h>
#define TEST_NAME "secretbox_easy2"
#include "cmptest.h"
@@ -17,12 +15,12 @@ int main(void)
unsigned long long i;
randombytes_buf(k, sizeof k);
- mlen = (unsigned long long) randombytes_uniform((uint32_t) sizeof m);
+ mlen = (unsigned long long)randombytes_uniform((uint32_t)sizeof m);
randombytes_buf(m, mlen);
randombytes_buf(nonce, sizeof nonce);
crypto_secretbox_easy(c, m, mlen, nonce, k);
- crypto_secretbox_open_easy(m2, c, mlen + crypto_secretbox_MACBYTES,
- nonce, k);
+ crypto_secretbox_open_easy(m2, c, mlen + crypto_secretbox_MACBYTES, nonce,
+ k);
printf("%d\n", memcmp(m, m2, mlen));
for (i = 0; i < mlen + crypto_secretbox_MACBYTES - 1; i++) {