Hi,
I'm trying to load a public key from a base 65 encoded string:
pubKeyEncBase64
pubKeyEncBase64 = // base64 encoded string
string pubKey;
// decode from base64 into pubKey
StringSource(pubKeyEncBase64, true, new Base64Decoder(new
StringSink(pubKey)));
StringSource src(pubKey.c_str(),true);
// try to load the Public Key
DSA::PublicKey PublicKey;
PublicKey.Load(src); <- Here the program throws BERDecodeErr
The last line throws BERDecodeErr
--
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.