aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aes_keywrap.c2
-rw-r--r--asn1.c4
-rw-r--r--asn1_internal.h1
-rw-r--r--csprng.c3
-rw-r--r--ecdsa.c4
-rw-r--r--errorstrings.c6
-rw-r--r--hal_io_eim.c6
-rw-r--r--hash.c4
-rw-r--r--modexp.c2
-rw-r--r--pbkdf2.c6
-rw-r--r--tests/test-aes-key-wrap.c1
-rw-r--r--tests/test-ecdsa.c3
-rw-r--r--tests/test-hash.c1
-rw-r--r--tests/test-pbkdf2.c8
-rw-r--r--tests/test-rsa.c2
15 files changed, 2 insertions, 51 deletions
diff --git a/aes_keywrap.c b/aes_keywrap.c
index 7b90c9d..b10a70b 100644
--- a/aes_keywrap.c
+++ b/aes_keywrap.c
@@ -41,8 +41,6 @@
* then split the result back to 64-bit blocks immediately afterwards.
*/
-#include <stdio.h>
-#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
diff --git a/asn1.c b/asn1.c
index 2ea44bd..54f022a 100644
--- a/asn1.c
+++ b/asn1.c
@@ -46,11 +46,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <stdio.h>
#include <stdint.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <string.h>
#include <assert.h>
#include "hal.h"
diff --git a/asn1_internal.h b/asn1_internal.h
index f6e470f..5dc2a13 100644
--- a/asn1_internal.h
+++ b/asn1_internal.h
@@ -42,7 +42,6 @@
#define _HAL_ASN1_H_
#include <stdint.h>
-#include <stdlib.h>
#include <tfm.h>
diff --git a/csprng.c b/csprng.c
index 235bd12..1051bbd 100644
--- a/csprng.c
+++ b/csprng.c
@@ -32,10 +32,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <assert.h>
#include <stdint.h>
-#include <stddef.h>
-#include <stdio.h>
#include "hal.h"
diff --git a/ecdsa.c b/ecdsa.c
index e2da87e..be97723 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -65,11 +65,7 @@
* in a relatively type-safe manner before calling libtom.
*/
-#include <stdio.h>
#include <stdint.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <string.h>
#include <assert.h>
#include "hal.h"
diff --git a/errorstrings.c b/errorstrings.c
index 1a234dd..5a79546 100644
--- a/errorstrings.c
+++ b/errorstrings.c
@@ -32,12 +32,6 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <string.h>
-#include <assert.h>
-
#include "hal.h"
#define DEFINE_HAL_ERROR(_code_,_text_) \
diff --git a/hal_io_eim.c b/hal_io_eim.c
index 3687b95..bc907b5 100644
--- a/hal_io_eim.c
+++ b/hal_io_eim.c
@@ -34,12 +34,8 @@
*/
#include <stdio.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/ioctl.h>
#include <stdint.h>
-#include <arpa/inet.h>
+#include <arpa/inet.h> /* htonl/ntohl */
#include "novena-eim.h"
#include "hal.h"
diff --git a/hash.c b/hash.c
index e06278d..52dbbf0 100644
--- a/hash.c
+++ b/hash.c
@@ -37,10 +37,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/ioctl.h>
#include "hal.h"
diff --git a/modexp.c b/modexp.c
index 11a8d21..1512284 100644
--- a/modexp.c
+++ b/modexp.c
@@ -41,8 +41,6 @@
#include <stdio.h>
#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
#include <assert.h>
#include "hal.h"
diff --git a/pbkdf2.c b/pbkdf2.c
index 4ad1e3a..1c43fe4 100644
--- a/pbkdf2.c
+++ b/pbkdf2.c
@@ -34,13 +34,7 @@
#include <assert.h>
#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <stdint.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/ioctl.h>
#include "hal.h"
diff --git a/tests/test-aes-key-wrap.c b/tests/test-aes-key-wrap.c
index f8467ec..b784c54 100644
--- a/tests/test-aes-key-wrap.c
+++ b/tests/test-aes-key-wrap.c
@@ -33,7 +33,6 @@
*/
#include <stdio.h>
-#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
diff --git a/tests/test-ecdsa.c b/tests/test-ecdsa.c
index 558120b..23d9720 100644
--- a/tests/test-ecdsa.c
+++ b/tests/test-ecdsa.c
@@ -46,10 +46,7 @@
#include <stdio.h>
#include <stdint.h>
-#include <stdlib.h>
#include <string.h>
-#include <assert.h>
-#include <errno.h>
#include <sys/time.h>
diff --git a/tests/test-hash.c b/tests/test-hash.c
index 144b1b9..2a5c18b 100644
--- a/tests/test-hash.c
+++ b/tests/test-hash.c
@@ -33,7 +33,6 @@
*/
#include <stdio.h>
-#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
diff --git a/tests/test-pbkdf2.c b/tests/test-pbkdf2.c
index 0688226..3668153 100644
--- a/tests/test-pbkdf2.c
+++ b/tests/test-pbkdf2.c
@@ -32,15 +32,9 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <assert.h>
-#include <string.h>
#include <stdio.h>
-#include <stdlib.h>
#include <stdint.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/ioctl.h>
+#include <string.h>
#include <hal.h>
diff --git a/tests/test-rsa.c b/tests/test-rsa.c
index 46afa03..0707127 100644
--- a/tests/test-rsa.c
+++ b/tests/test-rsa.c
@@ -40,9 +40,7 @@
#include <stdio.h>
#include <stdint.h>
-#include <stdlib.h>
#include <string.h>
-#include <assert.h>
#include <errno.h>
#include <sys/time.h>