6 NAMESPACE_BEGIN(CryptoPP)
8 static const byte s_vecUpper[] = "ABCDEFGHIJKMNPQRSTUVWXYZ23456789";
9 static const byte s_vecLower[] = "abcdefghijkmnpqrstuvwxyz23456789";
13 bool uppercase = parameters.GetValueWithDefault(Name::Uppercase(),
true);
16 MakeParameters(Name::EncodingLookupArray(), uppercase ? &s_vecUpper[0] : &s_vecLower[0],
false)(Name::Log2Base(), 5,
true)));
19 void Base32Decoder::IsolatedInitialize(
const NameValuePairs ¶meters)
23 MakeParameters(Name::DecodingLookupArray(), GetDefaultDecodingLookupArray(),
false)(Name::Log2Base(), 5,
true)));
26 const int *Base32Decoder::GetDefaultDecodingLookupArray()
28 static volatile bool s_initialized =
false;
29 static int s_array[256];
33 InitializeDecodingLookupArray(s_array, s_vecUpper, 32,
true);
Converts given data to base 32, the default code is based on draft-ietf-idn-dude-02.txt.
void Initialize(const NameValuePairs ¶meters=g_nullNameValuePairs, int propagation=-1)
initialize or reinitialize this object
interface for retrieving values given their names