Interface PaillierKey
- All Known Implementing Classes:
PaillierPrivateKey,PaillierPublicKey
public interface PaillierKey
This interface represents a Paillier key used in the Paillier cryptosystem.
It provides methods to retrieve the modulus and the value of n.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the modulus used in the Paillier cryptosystem.getN()Retrieves the value of n, which is part of the Paillier key.
-
Method Details
-
getN
BigInteger getN()Retrieves the value of n, which is part of the Paillier key.- Returns:
- The value of n as a
BigInteger.
-
getModulus
BigInteger getModulus()Retrieves the modulus used in the Paillier cryptosystem.- Returns:
- The modulus as a
BigInteger.
-