summaryrefslogtreecommitdiff
path: root/test/default/box_easy2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/default/box_easy2.c')
-rw-r--r--test/default/box_easy2.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/default/box_easy2.c b/test/default/box_easy2.c
index c8753ee..5e22677 100644
--- a/test/default/box_easy2.c
+++ b/test/default/box_easy2.c
@@ -1,5 +1,3 @@
-#include <stdio.h>
-#include <string.h>
#define TEST_NAME "box_easy2"
#include "cmptest.h"
@@ -21,12 +19,12 @@ int main(void)
crypto_box_keypair(alicepk, alicesk);
crypto_box_keypair(bobpk, bobsk);
- 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_box_easy(c, m, mlen, nonce, bobpk, alicesk);
- if (crypto_box_open_easy(m2, c, mlen + crypto_box_MACBYTES,
- nonce, alicepk, bobsk) != 0) {
+ if (crypto_box_open_easy(m2, c, mlen + crypto_box_MACBYTES, nonce, alicepk,
+ bobsk) != 0) {
printf("open() failed");
return 1;
}