9 static const byte s_stdVec[] =
10 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
12 static const byte s_urlVec[] =
13 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
14 static const byte s_padding =
'=';
21 const char *lineBreak = insertLineBreaks ?
"\n" :
"";
26 (Name::PaddingByte(), s_padding)
27 (Name::GroupSize(), insertLineBreaks ? maxLineLength : 0)
30 (Name::Log2Base(), 6,
true)));
38 const char *lineBreak = insertLineBreaks ?
"\n" :
"";
43 (Name::PaddingByte(), s_padding)
44 (Name::GroupSize(), insertLineBreaks ? maxLineLength : 0)
47 (Name::Log2Base(), 6,
true)));
50 const int *Base64Decoder::GetDecodingLookupArray()
52 static volatile bool s_initialized =
false;
53 static int s_array[256];
57 InitializeDecodingLookupArray(s_array, s_stdVec, 64,
false);
63 const int *Base64URLDecoder::GetDecodingLookupArray()
65 static volatile bool s_initialized =
false;
66 static int s_array[256];
70 InitializeDecodingLookupArray(s_array, s_urlVec, 64,
false);
used to pass byte array input as part of a NameValuePairs object
int GetIntValueWithDefault(const char *name, int defaultValue) const
Get a named value with type int, with default.
T GetValueWithDefault(const char *name, T defaultValue) const
Get a named value.
AlgorithmParameters MakeParameters(const char *name, const T &value, bool throwIfNotUsed=true)
Create an object that implements NameValuePairs.
Classes for the Base64Encoder, Base64Decoder, Base64URLEncoder and Base64URLDecoder.
void IsolatedInitialize(const NameValuePairs ¶meters)
Crypto++ library namespace.
void IsolatedInitialize(const NameValuePairs ¶meters)
Initialize or reinitialize this object, without signal propagation.
Interface for retrieving values given their names.