aboutsummaryrefslogtreecommitdiffstats
path: root/src/passhash
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-05-12 14:47:53 +0000
committerlloyd <[email protected]>2011-05-12 14:47:53 +0000
commit44aa55d0aeb96d452450df5c024db7275a560925 (patch)
treeaadfe42a7f9bd2c546a8d3c47fb5a1b639baf43d /src/passhash
parent6b97d4b061b07f036dc3f823d6cd082fa67a71bb (diff)
Add base64_decode. Seems to work OK, though incremental decoding is
not well tested.
Diffstat (limited to 'src/passhash')
-rw-r--r--src/passhash/bcrypt/bcrypt.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/passhash/bcrypt/bcrypt.cpp b/src/passhash/bcrypt/bcrypt.cpp
index e533c6081..bb2e9095a 100644
--- a/src/passhash/bcrypt/bcrypt.cpp
+++ b/src/passhash/bcrypt/bcrypt.cpp
@@ -11,11 +11,6 @@
#include <botan/blowfish.h>
#include <botan/base64.h>
-#include <botan/pipe.h>
-#include <botan/b64_filt.h>
-#include <iostream>
-#include <stdio.h>
-
namespace Botan {
namespace {
@@ -89,10 +84,7 @@ MemoryVector<byte> bcrypt_base64_decode(std::string input)
for(size_t i = 0; i != input.size(); ++i)
input[i] = OPENBSD_BASE64_SUB[static_cast<byte>(input[i])];
- //return base64_decode(input);
- Pipe pipe(new Base64_Decoder);
- pipe.process_msg(input);
- return pipe.read_all();
+ return base64_decode(input);
}
std::string make_bcrypt(const std::string& pass,