# Functions
KeyGen generates a new PublicKey and it's associated SecretKey.
NewPublicKey returns an initialized paillier.PublicKey and caches N, N² and (N-1)/2.
NewSecretKey generates primes p and q suitable for the scheme, and returns the initialized SecretKey.
NewSecretKeyFromPrimes generates a new SecretKey.
ValidateN performs basic checks to make sure the modulus is valid: - log₂(n) = params.BitsPaillier.
ValidatePrime checks whether p is a suitable prime for Paillier.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Ciphertext represents an integer of the for (1+N)ᵐρᴺ (mod N²), representing the encryption of m ∈ ℤₙˣ.
PublicKey is a Paillier public key.
SecretKey is the secret key corresponding to a Public Paillier Key.