-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test SHAKE128 variable length output
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2024 Matt Borland | ||
// Copyright 2024 Christopher Kormanyos | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// https://www.boost.org/LICENSE_1_0.txt | ||
|
||
#include <boost/crypt/hash/shake128.hpp> | ||
|
||
#include "test_nist_cavs_detail.hpp" | ||
|
||
auto main() -> int | ||
{ | ||
bool result_is_ok { true }; | ||
|
||
{ | ||
nist::cavs::test_vector_container_type my_test_vectors_variable { }; | ||
|
||
std::vector<std::size_t> lengths {}; | ||
static_cast<void>(nist::cavs::detail::parse_file_vectors_variable_xof("SHAKE128VariableOut.rsp", my_test_vectors_variable, lengths)); | ||
|
||
result_is_ok = (nist::cavs::test_vectors_variable<boost::crypt::shake128_hasher>(my_test_vectors_variable, lengths) && result_is_ok); | ||
|
||
BOOST_TEST(result_is_ok); | ||
} | ||
|
||
return boost::report_errors(); | ||
} |