aboutsummaryrefslogtreecommitdiff
path: root/src/cc20rng/test.c
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2016-11-21 11:45:58 +0100
committerFredrik Thulin <fredrik@thulin.net>2016-11-21 14:14:09 +0100
commite7f5fdebef90d0be01edeabd4ea260138ed1fbd0 (patch)
tree2396c0328e3bbee3f8286fe3c0b443bef4c76d58 /src/cc20rng/test.c
parentc4678339908e413cbc6751cf863267807acafc85 (diff)
add RNG using ChaCha20 as CSPRNGHEADmaster
Diffstat (limited to 'src/cc20rng/test.c')
-rw-r--r--src/cc20rng/test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cc20rng/test.c b/src/cc20rng/test.c
new file mode 100644
index 0000000..e2bdae0
--- /dev/null
+++ b/src/cc20rng/test.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+#include "cc20_prng.h"
+
+int main()
+{
+ uint32_t i;
+ i = chacha20_prng_self_test();
+ printf("test result: %i (%s)\n", i, (i == 0)?"FAIL":"SUCCESS");
+}