diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-07 12:25:52 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-07 12:25:52 -0500 |
commit | 1c88fd6f59564f4933fd3d897503a5492feb726c (patch) | |
tree | 6a8be7f9450da1d651330e58a0eca5caa1791ac7 /validat5.cpp | |
parent | 52035583de5c9e41a29899256857a0ff18818664 (diff) | |
download | cryptopp-git-1c88fd6f59564f4933fd3d897503a5492feb726c.tar.gz |
Add search for test vectors and test data (GH #760)
Diffstat (limited to 'validat5.cpp')
-rw-r--r-- | validat5.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/validat5.cpp b/validat5.cpp index b0b27849..e451c308 100644 --- a/validat5.cpp +++ b/validat5.cpp @@ -214,13 +214,19 @@ bool ValidateMD5() bool ValidateSHA()
{
std::cout << "\nSHA validation suite running...\n";
- return RunTestDataFile(CRYPTOPP_DATA_DIR "TestVectors/sha.txt");
+ return RunTestDataFile("TestVectors/sha.txt");
}
bool ValidateSHA2()
{
- std::cout << "\nSHA validation suite running...\n";
- return RunTestDataFile(CRYPTOPP_DATA_DIR "TestVectors/sha.txt");
+ std::cout << "\nSHA-2 validation suite running...\n";
+ return RunTestDataFile("TestVectors/sha2.txt");
+}
+
+bool ValidateSHA3()
+{
+ std::cout << "\nSHA-3 validation suite running...\n";
+ return RunTestDataFile("TestVectors/sha3.txt");
}
bool ValidateTiger()
@@ -367,12 +373,12 @@ bool ValidateHAVAL() bool ValidatePanama()
{
- return RunTestDataFile(CRYPTOPP_DATA_DIR "TestVectors/panama.txt");
+ return RunTestDataFile("TestVectors/panama.txt");
}
bool ValidateWhirlpool()
{
- return RunTestDataFile(CRYPTOPP_DATA_DIR "TestVectors/whrlpool.txt");
+ return RunTestDataFile("TestVectors/whrlpool.txt");
}
#ifdef CRYPTOPP_REMOVED
@@ -441,7 +447,7 @@ bool ValidateMD5MAC() bool ValidateHMAC()
{
- return RunTestDataFile(CRYPTOPP_DATA_DIR "TestVectors/hmac.txt");
+ return RunTestDataFile("TestVectors/hmac.txt");
}
#ifdef CRYPTOPP_REMOVED
@@ -2016,7 +2022,7 @@ bool ValidateBLAKE2b() bool ValidateSM3()
{
- return RunTestDataFile(CRYPTOPP_DATA_DIR "TestVectors/sm3.txt");
+ return RunTestDataFile("TestVectors/sm3.txt");
}
NAMESPACE_END // Test
|