c++ - Export Public Key parameters from Crypto++ ELGamalKeys -
i using cryptopp , trying export steps of each encryption/decryption can learn how elgamal works.
i have been trying learn elgamal encryption way of site:
https://cryptographyacademy.com/elgamal/
i able find subgrouporder, subgroupgenerator, , modulus of elgamalkeys::publickey, unable find 3rd parameter of publickey computed using alice's private exponent. according site:
next alice chooses secret key sk=a between 1 , p−1 , computes a=g^a mod p alice publish public key pk=(p,g,a).
how access parameter publickey explicitly?
Comments
Post a Comment