Hi all!

I want to get the coordinates out of a ecc public key. Is there a possibility as for the private exponent?

CryptoPP::AutoSeededRandomPool random;
CryptoPP::DL_PrivateKey_EC<CryptoPP::ECP> privKey;
CryptoPP::DL_PublicKey_EC<CryptoPP::ECP> pubKey;
privKey.Initialize(random, parameter);
privKey.MakePublicKey(pubKey);

CryptoPP::Integer privExp = privKey.GetPrivateExponent();
std::cout << "e = " << privExp;

I am using crypto++ v5.2.1.

Thanks, Luigi.



Reply via email to