aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/xmss
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-03 06:19:51 -0400
committerJack Lloyd <[email protected]>2017-09-03 06:19:51 -0400
commit31b0a9094a0a182d4a1fcbe1ec7c301b3950e941 (patch)
tree32ce8f9275afe6b960a39e220f0dfae4025bf251 /src/lib/pubkey/xmss
parent240e9ee5b6c15ce3f801afaa440f7bf422fba000 (diff)
Clean up use of <limits> header
Don't include it where it is not needed, included it where it is used.
Diffstat (limited to 'src/lib/pubkey/xmss')
-rw-r--r--src/lib/pubkey/xmss/xmss_address.h2
-rw-r--r--src/lib/pubkey/xmss/xmss_index_registry.cpp1
-rw-r--r--src/lib/pubkey/xmss/xmss_index_registry.h7
-rw-r--r--src/lib/pubkey/xmss/xmss_publickey.h1
-rw-r--r--src/lib/pubkey/xmss/xmss_tools.h6
5 files changed, 3 insertions, 14 deletions
diff --git a/src/lib/pubkey/xmss/xmss_address.h b/src/lib/pubkey/xmss/xmss_address.h
index 0ae0092a9..2268084ea 100644
--- a/src/lib/pubkey/xmss/xmss_address.h
+++ b/src/lib/pubkey/xmss/xmss_address.h
@@ -8,8 +8,6 @@
#ifndef BOTAN_XMSS_ADDRESS_H__
#define BOTAN_XMSS_ADDRESS_H__
-#include <cstdint>
-#include <limits>
#include <botan/xmss_tools.h>
namespace Botan {
diff --git a/src/lib/pubkey/xmss/xmss_index_registry.cpp b/src/lib/pubkey/xmss/xmss_index_registry.cpp
index 73f962820..530d926c4 100644
--- a/src/lib/pubkey/xmss/xmss_index_registry.cpp
+++ b/src/lib/pubkey/xmss/xmss_index_registry.cpp
@@ -8,6 +8,7 @@
**/
#include <botan/xmss_index_registry.h>
+#include <limits>
namespace Botan {
diff --git a/src/lib/pubkey/xmss/xmss_index_registry.h b/src/lib/pubkey/xmss/xmss_index_registry.h
index 176eae7b7..4a00b4a90 100644
--- a/src/lib/pubkey/xmss/xmss_index_registry.h
+++ b/src/lib/pubkey/xmss/xmss_index_registry.h
@@ -8,14 +8,7 @@
#ifndef BOTAN_XMSS_INDEX_REGISTRY_H__
#define BOTAN_XMSS_INDEX_REGISTRY_H__
-#include <stdint.h>
-#include <cstddef>
-#include <limits>
-#include <memory>
-#include <string>
#include <botan/hash.h>
-#include <botan/secmem.h>
-#include <botan/types.h>
#include <botan/atomic.h>
#include <botan/mutex.h>
diff --git a/src/lib/pubkey/xmss/xmss_publickey.h b/src/lib/pubkey/xmss/xmss_publickey.h
index 39e20b4cf..99e5e0a7e 100644
--- a/src/lib/pubkey/xmss/xmss_publickey.h
+++ b/src/lib/pubkey/xmss/xmss_publickey.h
@@ -10,7 +10,6 @@
#include <cstddef>
#include <iterator>
-#include <limits>
#include <memory>
#include <string>
#include <botan/alg_id.h>
diff --git a/src/lib/pubkey/xmss/xmss_tools.h b/src/lib/pubkey/xmss/xmss_tools.h
index 109ab91bd..2fcb2f86d 100644
--- a/src/lib/pubkey/xmss/xmss_tools.h
+++ b/src/lib/pubkey/xmss/xmss_tools.h
@@ -8,12 +8,10 @@
#ifndef BOTAN_XMSS_TOOLS_H__
#define BOTAN_XMSS_TOOLS_H__
-#include <stdint.h>
-#include <iterator>
-#include <type_traits>
#include <botan/cpuid.h>
-#include <botan/types.h>
#include <botan/secmem.h>
+#include <iterator>
+#include <type_traits>
namespace Botan {