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_signature.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_signature.cpp')
-rw-r--r-- | src/lib/pubkey/xmss/xmss_signature.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/pubkey/xmss/xmss_signature.cpp b/src/lib/pubkey/xmss/xmss_signature.cpp index 497a25f2b..8dbb17909 100644 --- a/src/lib/pubkey/xmss/xmss_signature.cpp +++ b/src/lib/pubkey/xmss/xmss_signature.cpp @@ -6,6 +6,7 @@ **/ #include <botan/internal/xmss_signature.h> +#include <cmath> namespace Botan { @@ -13,7 +14,7 @@ XMSS_Signature::XMSS_Signature(XMSS_Parameters::xmss_algorithm_t oid, const secure_vector<uint8_t>& raw_sig) : m_leaf_idx(0), m_randomness(0, 0x00), m_tree_sig() { - BOTAN_ASSERT(sizeof(size_t) >= ceil(static_cast<float>( + BOTAN_ASSERT(sizeof(size_t) >= std::ceil(static_cast<float>( (XMSS_Parameters(oid)).tree_height()) / 8.f), "System type \"size_t\" not big enough to support" " leaf index."); |