diff options
author | lloyd <[email protected]> | 2013-11-18 01:43:02 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-11-18 01:43:02 +0000 |
commit | c83790b5bc35cd186da81276afcf6b17a4269520 (patch) | |
tree | 33c1d0f502cc8b57bf3ef70d60dacebc4f6bd1d1 /checks/validate.h | |
parent | 6162cefdbe4df65a4ab1046950874a7319158e06 (diff) |
Generalize file reading test runner, use it for KDF and PBKDF
Diffstat (limited to 'checks/validate.h')
-rw-r--r-- | checks/validate.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/checks/validate.h b/checks/validate.h index 3499bf8c0..e1a8acfd5 100644 --- a/checks/validate.h +++ b/checks/validate.h @@ -5,6 +5,9 @@ #include <botan/types.h> #include <botan/rng.h> #include <string> +#include <functional> +#include <istream> +#include <map> using Botan::RandomNumberGenerator; @@ -33,5 +36,13 @@ size_t do_tls_tests(RandomNumberGenerator& rng); void test_ocb(); void test_hkdf(); +void test_pbkdf(); +void test_kdf(); + +void run_tests(std::istream& src, + const std::string& name_key, + const std::string& output_key, + bool clear_between_cb, + std::function<std::string (std::map<std::string, std::string>)> cb); #endif |