diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2016-04-23 23:34:48 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2016-04-23 23:34:48 -0400 |
| commit | 3ee10576bb90ad0c143411b54ae7252dabd2c5d9 (patch) | |
| tree | d1ed1b382fffa18ebb36c55597036028ce76bb5b /test.cpp | |
| parent | 7b1d3a7d71ec6a4be04508f902c1b4da64318030 (diff) | |
| download | cryptopp-git-3ee10576bb90ad0c143411b54ae7252dabd2c5d9.tar.gz | |
Make test program aware of CRYPTOPP_USE_FIPS_202_SHA3, use alternate all.txt
Diffstat (limited to 'test.cpp')
| -rw-r--r-- | test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -281,6 +281,12 @@ int CRYPTOPP_API main(int argc, char *argv[]) {
// TestDataFile() adds CRYPTOPP_DATA_DIR as required
std::string fname = (argv[2] ? argv[2] : "all");
+#if defined(CRYPTOPP_USE_FIPS_202_SHA3)
+ if (fname == "sha3")
+ fname = "sha3_fips_202";
+ if (fname == "all")
+ fname = "all_fips_202";
+#endif
if (fname.find(".txt") == std::string::npos)
fname = "TestVectors/" + fname + ".txt";
|
