Skip to content

Commit

Permalink
Handle review comment and syntax warn
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Oct 21, 2024
1 parent 88f44af commit 8e55eac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/boost/crypt/hash/sha1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class sha1_hasher

private:

boost::crypt::array<boost::crypt::uint32_t, 5> intermediate_hash_ { UINT32_C(0x67452301), UINT32_C(0xEFCDAB89), UINT32_C(0x98BADCFE), UINT32_C(0x10325476), UINT32_C(0xC3D2E1F0) };
boost::crypt::array<boost::crypt::uint32_t, 5> intermediate_hash_ { 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0 };
boost::crypt::array<boost::crypt::uint8_t, 64> buffer_ {};

boost::crypt::size_t buffer_index_ {};
Expand Down
4 changes: 2 additions & 2 deletions test/test_nist_cavs_detail.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::size_t>(Seed.size()), static_cast<std::size_t>(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()) };

Expand Down

0 comments on commit 8e55eac

Please sign in to comment.