Replace OpenSSL base64 impl with a simple direct impl.

Unit tests, too.
This commit is contained in:
John Hood
2015-10-04 20:16:25 -04:00
parent 1307dc4a0f
commit db311f92f7
8 changed files with 256 additions and 88 deletions
+4
View File
@@ -44,7 +44,10 @@ using std::string;
long int myatoi( const char *str );
class PRNG;
namespace Crypto {
class CryptoException : public std::exception {
public:
string text;
@@ -84,6 +87,7 @@ namespace Crypto {
public:
Base64Key(); /* random key */
Base64Key(PRNG &prng);
Base64Key( string printable_key );
string printable_key( void ) const;
unsigned char *data( void ) { return key; }