aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_block.cpp')
-rw-r--r--src/tests/test_block.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tests/test_block.cpp b/src/tests/test_block.cpp
index 51241d69b..9da33ef0e 100644
--- a/src/tests/test_block.cpp
+++ b/src/tests/test_block.cpp
@@ -10,10 +10,10 @@ using namespace Botan;
namespace {
-bool block_test(const std::string& algo,
- const std::string& key_hex,
- const std::string& in_hex,
- const std::string& out_hex)
+size_t block_test(const std::string& algo,
+ const std::string& key_hex,
+ const std::string& in_hex,
+ const std::string& out_hex)
{
const secure_vector<byte> key = hex_decode_locked(key_hex);
const secure_vector<byte> pt = hex_decode_locked(in_hex);
@@ -58,17 +58,17 @@ bool block_test(const std::string& algo,
}
}
- return (fails == 0);
+ return fails;
}
}
size_t test_block()
{
- std::ifstream vec(CHECKS_DIR "/block.vec");
+ std::ifstream vec(TEST_DATA_DIR "/block.vec");
return run_tests_bb(vec, "BlockCipher", "Out", true,
- [](std::map<std::string, std::string> m) -> bool
+ [](std::map<std::string, std::string> m) -> size_t
{
return block_test(m["BlockCipher"], m["Key"], m["In"], m["Out"]);
});