diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-01-11 23:36:46 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-01-11 23:36:46 -0500 |
commit | 9a5e359bb3795bf33073d1fa4a3a63a151312b33 (patch) | |
tree | 91c99cb30f31a79f9e25e7637b064af55a53c4f5 /base64.cpp | |
parent | f16bd037227f9881571fd0905559ccf6ad95cc70 (diff) | |
download | cryptopp-git-9a5e359bb3795bf33073d1fa4a3a63a151312b33.tar.gz |
Fixed IsolatedInitialize (Issue 108)
Diffstat (limited to 'base64.cpp')
-rw-r--r-- | base64.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -47,6 +47,13 @@ void Base64URLEncoder::IsolatedInitialize(const NameValuePairs ¶meters) (Name::Log2Base(), 6, true)));
}
+void Base64Decoder::IsolatedInitialize(const NameValuePairs ¶meters)
+{
+ 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 ¶meters)
+{
+ BaseN_Decoder::IsolatedInitialize(CombinedNameValuePairs(
+ parameters,
+ MakeParameters(Name::DecodingLookupArray(), GetDecodingLookupArray(), false)(Name::Log2Base(), 6, true)));
+}
+
const int *Base64URLDecoder::GetDecodingLookupArray()
{
static volatile bool s_initialized = false;
|