diff options
Diffstat (limited to 'checks/common.h')
-rw-r--r-- | checks/common.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/checks/common.h b/checks/common.h index 1b1e89bbf..493e2fc74 100644 --- a/checks/common.h +++ b/checks/common.h @@ -11,6 +11,7 @@ #include <botan/secmem.h> #include <botan/filter.h> #include <botan/rng.h> +#include <botan/hex.h> using Botan::byte; using Botan::u32bit; @@ -21,9 +22,6 @@ void strip_newlines(std::string& line); void strip(std::string& line); std::vector<std::string> parse(const std::string& line); -std::string hex_encode(const byte in[], u32bit len); -Botan::SecureVector<byte> decode_hex(const std::string&); - Botan::Filter* lookup(const std::string& algname, const std::vector<std::string>& params); @@ -75,7 +73,7 @@ class Fixed_Output_RNG : public Botan::RandomNumberGenerator } Fixed_Output_RNG(const std::string& in_str) { - Botan::SecureVector<byte> in = decode_hex(in_str); + Botan::SecureVector<byte> in = Botan::hex_decode(in_str); buf.insert(buf.end(), in.begin(), in.begin() + in.size()); } |