Documentation ¶ Index ¶ Constants func Paillier(rand io.Reader, pl *pool.Pool) (p, q *big.Int) Constants ¶ View Source const ( SecParam = 256 BitsBlumPrime = 4 * SecParam // = 1024 ) Variables ¶ This section is empty. Functions ¶ func Paillier ¶ func Paillier(rand io.Reader, pl *pool.Pool) (p, q *big.Int) Paillier generate the necessary integers for a Paillier key pair. p, q are safe primes ((p - 1) / 2 is also prime), and Blum primes (p = 3 mod 4) n = pq. Types ¶ This section is empty. Source Files ¶ View all Source files prime.go Click to show internal directories. Click to hide internal directories.