From 15dfcf5abaacb3885859dcbe5fa2c29cf259cb0d Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 30 May 2014 01:42:36 -0700 Subject: Hardened Base64, making tomcrypt to properly generate secure random numbers under windows, and ditched tomcryptmath for tommath. --- includes/Base64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/Base64.h') diff --git a/includes/Base64.h b/includes/Base64.h index d039c73..8d0b71d 100644 --- a/includes/Base64.h +++ b/includes/Base64.h @@ -7,7 +7,7 @@ namespace Balau { class Base64 { public: static String encode(const uint8_t * data, int len); - static int decode(const String & str_in, uint8_t * data_out); + static int decode(const String & str_in, uint8_t * data_out, size_t outLen = static_cast(-1)); static const double ratio; private: -- cgit v1.2.3