Dear all,
I have a public key which i can Load and Save to binary without any issue. It is 292 byte large in binary format.
I saved my public key to base64 like this:
verifKey.Save(CryptoPP::Base64Encoder(new CryptoPP::FileSink("verifkey", false), false).Ref());
Then decoded it like this:
std::string key_binary;
CryptoPP::FileSource("verifkey", true, new Base64Decoder(new CryptoPP::StringSink(key_binary)));
The resulting string is 291 byte large. And if I try to load it into a public key with a StringSource, I get a decoding exception.
If I use a HexEncoder and a HexDecoder, everything works fine (the decoded string is 292 bytes and loading works)
Is this a known issue?
Thanks