Skip to content

Commit 7e9ba1f

Browse files
committed
Test the finalize output
1 parent 179be6b commit 7e9ba1f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_nist_cavs_detail.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,9 +2040,8 @@ auto test_vectors_monte_xof(const nist::cavs::test_vector_container_type& test_v
20402040
#endif
20412041

20422042
this_hash.process_bytes(current_data);
2043-
this_hash.finalize();
2044-
const auto output_status = this_hash.get_digest(MDi);
2045-
BOOST_TEST(output_status == boost::crypt::state::success);
2043+
BOOST_TEST(this_hash.finalize() == boost::crypt::state::success);
2044+
BOOST_TEST(this_hash.get_digest(MDi) == boost::crypt::state::success);
20462045

20472046
// An alias for finding the output length
20482047
// We assume the hash will never be all 0s except for failure

0 commit comments

Comments
 (0)