6 NAMESPACE_BEGIN(CryptoPP)
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];
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];
Used to pass byte array input as part of a NameValuePairs object.
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.
static void InitializeDecodingLookupArray(int *lookup, const byte *alphabet, unsigned int base, bool caseInsensitive)
Intializes BaseN lookup array.
void IsolatedInitialize(const NameValuePairs ¶meters)
Initialize or reinitialize this object, without signal propagation.
int GetIntValueWithDefault(const char *name, int defaultValue) const
Get a named value with type int, with default.
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.
void IsolatedInitialize(const NameValuePairs ¶meters)
Initialize or reinitialize this object, without signal propagation.
Interface for retrieving values given their names.