A Paillier public key.
More...
|
| BigInteger | n |
| | The first part of the public encryption key.
|
| BigInteger | nsquare |
| | n^2
|
|
| int | bitLength |
| | Number of bits of n.
|
| BigInteger | g |
| | The second part of the public encryption key.
|
| final SecureRandom | rand |
| | A source of randomness.
|
A Paillier public key.
- Author
- Thomas Leaute
◆ PaillierPublicKey() [1/2]
| frodo2.algorithms.mpc_discsp.PaillierPublicKey.PaillierPublicKey |
( |
| ) |
|
Empty constructor used for externalization.
◆ PaillierPublicKey() [2/2]
| frodo2.algorithms.mpc_discsp.PaillierPublicKey.PaillierPublicKey |
( |
BigInteger | n, |
|
|
BigInteger | nsquare, |
|
|
int | bitLength, |
|
|
BigInteger | g ) |
Constructor.
- Parameters
-
| n | The first part of the public encryption key |
| nsquare | n^2 |
| bitLength | Number of bits of n |
| g | The second part of the public encryption key |
References bitLength, g, n, and nsquare.
◆ encrypt()
| PaillierInteger frodo2.algorithms.mpc_discsp.PaillierPublicKey.encrypt |
( |
BigInteger | plaintext | ) |
|
◆ fakeEncrypt()
| PaillierInteger frodo2.algorithms.mpc_discsp.PaillierPublicKey.fakeEncrypt |
( |
BigInteger | plaintext | ) |
|
◆ readExternal()
| void frodo2.algorithms.mpc_discsp.PaillierPublicKey.readExternal |
( |
ObjectInput | in | ) |
throws IOException, ClassNotFoundException |
- See also
- java.io.Externalizable#readExternal(java.io.ObjectInput)
◆ toString()
| String frodo2.algorithms.mpc_discsp.PaillierPublicKey.toString |
( |
| ) |
|
- See also
- java.lang.Object#toString()
◆ writeExternal()
| void frodo2.algorithms.mpc_discsp.PaillierPublicKey.writeExternal |
( |
ObjectOutput | out | ) |
throws IOException |
- See also
- java.io.Externalizable#writeExternal(java.io.ObjectOutput)
◆ bitLength
| int frodo2.algorithms.mpc_discsp.PaillierPublicKey.bitLength |
|
private |
| BigInteger frodo2.algorithms.mpc_discsp.PaillierPublicKey.g |
|
private |
| BigInteger frodo2.algorithms.mpc_discsp.PaillierPublicKey.n |
|
package |
◆ nsquare
| BigInteger frodo2.algorithms.mpc_discsp.PaillierPublicKey.nsquare |
|
package |
◆ rand
| final SecureRandom frodo2.algorithms.mpc_discsp.PaillierPublicKey.rand |
|
private |
The documentation for this class was generated from the following file: