aboutsummaryrefslogtreecommitdiffstats
path: root/checks/pbkdf.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-12-31 14:14:22 +0000
committerlloyd <[email protected]>2013-12-31 14:14:22 +0000
commitabefc88850c37fe97b4a8588aa13fcdefd9f7b5e (patch)
tree5beb26d3e1770a56aeeddafb5157a413f8b3605d /checks/pbkdf.cpp
parentd291e3e82513e046abfdf4b38d38a55483f789fd (diff)
Tests
Diffstat (limited to 'checks/pbkdf.cpp')
-rw-r--r--checks/pbkdf.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/checks/pbkdf.cpp b/checks/pbkdf.cpp
index 936422bb0..43a77d7f4 100644
--- a/checks/pbkdf.cpp
+++ b/checks/pbkdf.cpp
@@ -1,6 +1,5 @@
-#include "validate.h"
+#include "tests.h"
-#include <botan/libstate.h>
#include <botan/lookup.h>
#include <botan/hex.h>
#include <iostream>
@@ -36,11 +35,11 @@ std::string pbkdf_test(const std::string& algo,
}
-void test_pbkdf()
+size_t test_pbkdf()
{
std::ifstream vec("checks/pbkdf.vec");
- run_tests(vec, "PBKDF", "Output", true,
+ return run_tests(vec, "PBKDF", "Output", true,
[](std::map<std::string, std::string> m)
{
return pbkdf_test(m["PBKDF"], m["Passphrase"], m["Salt"],