Helper method; works here and on ElGamalPublicKey, always gives the multiplicative inverse of the public key ElementModP. (Only computed once, so it can be reused efficiently.)
Helper method; works here and on ElGamalPublicKey, always gives the public key ElementModP.
Helper method; works here and on ElGamalKeypair, always gives the public key.
Helper method; works here and on ElGamalSecretKey, always gives the secret key ElementModQ.
Given an ElementModQ to be the secret key, creates a keypair.
Creates a fresh keypair using a strong, random value.
Generated using TypeDoc
A tuple of an ElGamal public and secret key.