-
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.
- Loading branch information
1 parent
3ab6262
commit 82cfb12
Showing
4 changed files
with
39 additions
and
24 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
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
// 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 "test_nist_cavs_detail.hpp" | ||
|
||
#include <boost/crypt/hash/sha1.hpp> | ||
|
||
auto main() -> int | ||
{ | ||
bool result_is_ok { true }; | ||
|
||
{ | ||
nist::cavs::test_vector_container_type test_vectors_short { }; | ||
|
||
static_cast<void>(nist::cavs::detail::parse_file_vectors("SHA1ShortMsg.rsp", test_vectors_short)); | ||
|
||
result_is_ok = (nist::cavs::test_vectors_oneshot<boost::crypt::sha1_hasher>(test_vectors_short) && result_is_ok); | ||
|
||
BOOST_TEST(result_is_ok); | ||
} | ||
|
||
|
||
{ | ||
nist::cavs::test_vector_container_type test_vectors_long { }; | ||
|
||
static_cast<void>(nist::cavs::detail::parse_file_vectors("SHA1LongMsg.rsp", test_vectors_long)); | ||
|
||
result_is_ok = (nist::cavs::test_vectors_oneshot<boost::crypt::sha1_hasher>(test_vectors_long) && result_is_ok); | ||
|
||
BOOST_TEST(result_is_ok); | ||
} | ||
|
||
return boost::report_errors(); | ||
} |