summaryrefslogtreecommitdiff
path: root/base64.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-01-11 23:36:46 -0500
committerJeffrey Walton <noloader@gmail.com>2016-01-11 23:36:46 -0500
commit9a5e359bb3795bf33073d1fa4a3a63a151312b33 (patch)
tree91c99cb30f31a79f9e25e7637b064af55a53c4f5 /base64.cpp
parentf16bd037227f9881571fd0905559ccf6ad95cc70 (diff)
downloadcryptopp-git-9a5e359bb3795bf33073d1fa4a3a63a151312b33.tar.gz
Fixed IsolatedInitialize (Issue 108)
Diffstat (limited to 'base64.cpp')
-rw-r--r--base64.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/base64.cpp b/base64.cpp
index 68c48e8e..0edce9ea 100644
--- a/base64.cpp
+++ b/base64.cpp
@@ -47,6 +47,13 @@ void Base64URLEncoder::IsolatedInitialize(const NameValuePairs &parameters)
(Name::Log2Base(), 6, true)));
}
+void Base64Decoder::IsolatedInitialize(const NameValuePairs &parameters)
+{
+ BaseN_Decoder::IsolatedInitialize(CombinedNameValuePairs(
+ parameters,
+ MakeParameters(Name::DecodingLookupArray(), GetDecodingLookupArray(), false)(Name::Log2Base(), 6, true)));
+}
+
const int *Base64Decoder::GetDecodingLookupArray()
{
static volatile bool s_initialized = false;
@@ -60,6 +67,13 @@ const int *Base64Decoder::GetDecodingLookupArray()
return s_array;
}
+void Base64URLDecoder::IsolatedInitialize(const NameValuePairs &parameters)
+{
+ BaseN_Decoder::IsolatedInitialize(CombinedNameValuePairs(
+ parameters,
+ MakeParameters(Name::DecodingLookupArray(), GetDecodingLookupArray(), false)(Name::Log2Base(), 6, true)));
+}
+
const int *Base64URLDecoder::GetDecodingLookupArray()
{
static volatile bool s_initialized = false;