Skip to content

Commit

Permalink
Remove duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Jan 14, 2025
1 parent 1aa4806 commit 5085cbd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/boost/crypt2/hash/detail/sha3_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,6 @@ template <concepts::writable_output_range Range>
}
else
{
if (data_span.size() * sizeof(value_type) < digest_size)
{
return state::insufficient_output_length;
}

sha_digest_impl(
compat::span<compat::byte, digest_size>(
compat::as_writable_bytes(data_span).data(),
Expand Down

0 comments on commit 5085cbd

Please sign in to comment.