On Nov 19, 10:11 am, Olivier Ruskovini <[email protected]> wrote:
> Hello,
>
> I would like to use custom BASE32 alphabet with Base32Decoder class
> but my code doesn't work, it crashes cause of an inifinite Loop :
>
> CryptoPP::Base32Decoder decoder;
> static int decodingArray[256];
> static const byte myAlphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
>
> CryptoPP::Base32Decoder::InitializeDecodingLookupArray(decodingArray,myAlphabet,
> 32,true);
> b32_decoder.Initialize(CryptoPP::MakeParameters(CryptoPP::Name::DecodingLookupArray(),
> (const int *)decodingArray, false));
>
> It crashes here in "Initialize function" cause of an infinite loop (i
> have checked this with a debugger).
Have a look at base32.cpp. There are only three functions, so it could
be a copy/paste implementation for you.

Jeff

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to