aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/kat_stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/kat_stream.cpp')
-rw-r--r--src/tests/kat_stream.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tests/kat_stream.cpp b/src/tests/kat_stream.cpp
index 6492ffee5..707f5d62d 100644
--- a/src/tests/kat_stream.cpp
+++ b/src/tests/kat_stream.cpp
@@ -61,11 +61,16 @@ size_t stream_test(const std::string& algo,
size_t test_stream()
{
- std::ifstream vec(TEST_DATA_DIR "/stream.vec");
+ auto test = [](const std::string& input)
+ {
+ std::ifstream vec(input);
- return run_tests_bb(vec, "StreamCipher", "Out", true,
+ return run_tests_bb(vec, "StreamCipher", "Out", true,
[](std::map<std::string, std::string> m) -> size_t
{
return stream_test(m["StreamCipher"], m["Key"], m["In"], m["Out"], m["Nonce"]);
});
+ };
+
+ return run_tests_in_dir(TEST_DATA_DIR "/stream", test);
}