diff options
author | lloyd <[email protected]> | 2010-09-03 13:18:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-03 13:18:54 +0000 |
commit | 449c9b9467c3e8dc08015094100162aea209623e (patch) | |
tree | cef38093356e6418b46640b43505f861db139ffe /checks/common.h | |
parent | 466548a644640fc73b24c8a4185a317f780a698f (diff) |
Use the standalone version of the hex decoder instead of the wrapper that
previously existed in misc.cpp that emulated it via a pipe and filter.
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()); } |