Sorry for probably a silly question, but I cannot solve this problem alone

For some reason I cannot encode/decode rsa keys with some decoder. Below is
what I do:

string str;
Base32Encoder encoder(new StringSink(str));
rsaPublicKey.DEREncode(encoder.Ref());

StringSource src(str, true, new Base32Decoder);
RSA::PublicKey key;
key.BERDecode(src);


It always crashes on BERDecode. Also I tried to use key.Load()/key.Save() -
no help

Thank you in advance.
--
View this message in context: 
http://www.nabble.com/encode-decode-a-key-t1413483.html#a3808506
Sent from the Crypto++ forum at Nabble.com.

Reply via email to