diff options
author | Jack Lloyd <[email protected]> | 2017-09-21 13:49:14 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-21 13:49:14 -0400 |
commit | 5cc5e1bd3fac87186f511a48cee9cda86e4607ca (patch) | |
tree | ea64916bb405f215bc5aed2cddfecdc85322bada /src/lib/pubkey/xmss/xmss_privatekey.cpp | |
parent | b331caf9ae61410aaa6e7e7fc4b33267562bd78e (diff) |
Clean up header includes
Avoid including build.h or assert.h directly, instead always take
them though types.h
Avoid math.h in favor of cmath
Diffstat (limited to 'src/lib/pubkey/xmss/xmss_privatekey.cpp')
-rw-r--r-- | src/lib/pubkey/xmss/xmss_privatekey.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/pubkey/xmss/xmss_privatekey.cpp b/src/lib/pubkey/xmss/xmss_privatekey.cpp index 3f2f949ca..753893c8c 100644 --- a/src/lib/pubkey/xmss/xmss_privatekey.cpp +++ b/src/lib/pubkey/xmss/xmss_privatekey.cpp @@ -17,6 +17,7 @@ #include <botan/internal/xmss_signature_operation.h> #include <botan/xmss_privatekey.h> +#include <cmath> namespace Botan { @@ -26,7 +27,7 @@ XMSS_PrivateKey::XMSS_PrivateKey(const secure_vector<uint8_t>& raw_key) m_wots_priv_key(m_wots_params.oid(), m_public_seed), m_index_reg(XMSS_Index_Registry::get_instance()) { - BOTAN_ASSERT(sizeof(size_t) >= ceil( + BOTAN_ASSERT(sizeof(size_t) >= std::ceil( static_cast<float>(XMSS_PublicKey::m_xmss_params.tree_height()) / 8.f), "System type \"size_t\" not big enough to support" " leaf index."); |