10 const byte s_stdVec[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
11 const byte s_urlVec[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
12 const byte s_padding =
'=';
20 const char *lineBreak = insertLineBreaks ?
"\n" :
"";
25 (Name::PaddingByte(), s_padding)
26 (Name::GroupSize(), insertLineBreaks ? maxLineLength : 0)
29 (Name::Log2Base(), 6,
true)));
37 const char *lineBreak = insertLineBreaks ?
"\n" :
"";
42 (Name::PaddingByte(), s_padding)
43 (Name::GroupSize(), insertLineBreaks ? maxLineLength : 0)
46 (Name::Log2Base(), 6,
true)));
53 MakeParameters(Name::DecodingLookupArray(), GetDecodingLookupArray(),
false)(Name::Log2Base(), 6,
true)));
56 const int *Base64Decoder::GetDecodingLookupArray()
58 static volatile bool s_initialized =
false;
59 static int s_array[256];
63 InitializeDecodingLookupArray(s_array, s_stdVec, 64,
false);
73 MakeParameters(Name::DecodingLookupArray(), GetDecodingLookupArray(),
false)(Name::Log2Base(), 6,
true)));
76 const int *Base64URLDecoder::GetDecodingLookupArray()
78 static volatile bool s_initialized =
false;
79 static int s_array[256];
83 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.
void IsolatedInitialize(const NameValuePairs ¶meters)
Initialize or reinitialize this object, without signal propagation.
T GetValueWithDefault(const char *name, T defaultValue) const
Get a named value.
Combines two sets of NameValuePairs.
void IsolatedInitialize(const NameValuePairs ¶meters)
Initialize or reinitialize this object, without signal propagation.
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)
void IsolatedInitialize(const NameValuePairs ¶meters)
Initialize or reinitialize this object, without signal propagation.
Crypto++ library namespace.
void IsolatedInitialize(const NameValuePairs ¶meters)
Initialize or reinitialize this object, without signal propagation.
Interface for retrieving values given their names.