For now loading so: string priv_accepted = "..." CryptoPP::DL_PrivateKey_EC<CryptoPP::ECP> k1; string decoded; CryptoPP::StringSource ss1(priv_key_accepted.c_str(), true, new CryptoPP::Base64Decoder(new CryptoPP::StringSink(decoded))); k1.Load(CryptoPP::StringStore((const CryptoPP::byte*)decoded.data(), decoded.size()).Ref()); CryptoPP::Integer priv_int = k1.GetPrivateExponent();
CryptoPP::SecByteBlock privKey; size_t encodedSize = priv_int.MinEncodedSize(CryptoPP::Integer::UNSIGNED); privKey.resize(encodedSize); priv_int.Encode(privKey.BytePtr(), encodedSize, CryptoPP::Integer::UNSIGNED); still no effect. Do anybody no proper way to do it? -- You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.