Interface ElGamal_Key
- All Known Implementing Classes:
ElGamalPrivateKey,ElGamalPublicKey
public interface ElGamal_Key
Interface representing an ElGamal key.
-
Method Summary
Modifier and TypeMethodDescriptiongetP()Retrieves the prime modulus \( p \) associated with the key.voidset_additive(boolean additive) Sets whether the key supports additive homomorphism.
-
Method Details
-
getP
BigInteger getP()Retrieves the prime modulus \( p \) associated with the key.- Returns:
- the prime modulus \( p \)
-
set_additive
void set_additive(boolean additive) Sets whether the key supports additive homomorphism.- Parameters:
additive- true if the key supports additive homomorphism, false otherwise
-