summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-23 23:34:48 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-23 23:34:48 -0400
commit3ee10576bb90ad0c143411b54ae7252dabd2c5d9 (patch)
treed1ed1b382fffa18ebb36c55597036028ce76bb5b /test.cpp
parent7b1d3a7d71ec6a4be04508f902c1b4da64318030 (diff)
downloadcryptopp-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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test.cpp b/test.cpp
index bde24f8e..d6c9fab4 100644
--- a/test.cpp
+++ b/test.cpp
@@ -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";