diff --git a/include/boost/crypt/hash/sha1.hpp b/include/boost/crypt/hash/sha1.hpp index 1f6916c1..5162eb1e 100644 --- a/include/boost/crypt/hash/sha1.hpp +++ b/include/boost/crypt/hash/sha1.hpp @@ -55,7 +55,7 @@ class sha1_hasher private: - boost::crypt::array intermediate_hash_ { UINT32_C(0x67452301), UINT32_C(0xEFCDAB89), UINT32_C(0x98BADCFE), UINT32_C(0x10325476), UINT32_C(0xC3D2E1F0) }; + boost::crypt::array intermediate_hash_ { 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0 }; boost::crypt::array buffer_ {}; boost::crypt::size_t buffer_index_ {}; diff --git a/test/test_nist_cavs_detail.hpp b/test/test_nist_cavs_detail.hpp index e21670de..1e6d1280 100644 --- a/test/test_nist_cavs_detail.hpp +++ b/test/test_nist_cavs_detail.hpp @@ -390,12 +390,12 @@ auto test_vectors_monte(const nist::cavs::test_vector_container_type& test_vecto local_array_type Seed { }; const std::size_t - max_copy + copy_len { (std::min)(static_cast(Seed.size()), static_cast(seed_init.size())) }; - std::copy(seed_init.cbegin(), seed_init.cend(), Seed.begin()); + std::copy(seed_init.cbegin(), seed_init.cbegin() + copy_len, Seed.begin()); bool result_is_ok { (!test_vectors_monte.empty()) };