aboutsummaryrefslogtreecommitdiff
path: root/csprng.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-06-04 16:55:28 -0400
committerRob Austein <sra@hactrn.net>2015-06-04 16:55:28 -0400
commitcf865e9d768ab2dad37f82f071f0050b20f18506 (patch)
tree9bcdd8a495d5d72953f37ffbed6b03af214c7c38 /csprng.c
parent9176df4906ae90df7b0b1e16485571fd3d3132d8 (diff)
Disable HMAC-SHA-384 tests as neither my implementation nor PyCrypto
passes them. Add missing copyright notices, other trivial cleanup (whitespace, etc).
Diffstat (limited to 'csprng.c')
-rw-r--r--csprng.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/csprng.c b/csprng.c
index becd3f7..198534c 100644
--- a/csprng.c
+++ b/csprng.c
@@ -1,8 +1,7 @@
/*
* csprng.c
- * ------------------------------
- *
- * HAL interface to Cryptech CSPRNG/TRNG.
+ * --------
+ * HAL interface to Cryptech CSPRNG.
*
* Authors: Joachim Strömbergson, Paul Selkirk, Rob Austein
* Copyright (c) 2014-2015, SUNET
@@ -38,19 +37,10 @@
#include <stddef.h>
#include <stdio.h>
-#if 0
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <sys/ioctl.h>
-#endif
-
#include "cryptech.h"
#ifndef WAIT_FOR_CSPRNG_VALID
-#define WAIT_FOR_CSPRNG_VALID 1
+#define WAIT_FOR_CSPRNG_VALID 1
#endif
hal_error_t hal_get_random(void *buffer, const size_t length)