FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.mpc_discsp.PaillierInteger Class Reference

A Paillier-encrypted integer. More...

Inheritance diagram for frodo2.algorithms.mpc_discsp.PaillierInteger:

Public Member Functions

 PaillierInteger ()
 Empty constructor used for externalization.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
PaillierInteger add (PaillierInteger o)
 Computes the addition of the underlying plaintexts.
String toString ()

Package Functions

 PaillierInteger (BigInteger value, BigInteger nSquare)
 Constructor.

Package Attributes

BigInteger value
 The cyphertext.
BigInteger nSquare
 The modulo.

Detailed Description

A Paillier-encrypted integer.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ PaillierInteger() [1/2]

frodo2.algorithms.mpc_discsp.PaillierInteger.PaillierInteger ( )

Empty constructor used for externalization.

Referenced by add().

◆ PaillierInteger() [2/2]

frodo2.algorithms.mpc_discsp.PaillierInteger.PaillierInteger ( BigInteger value,
BigInteger nSquare )
package

Constructor.

Parameters
valuethe cyphertext
nSquarethe modulo

References nSquare, and value.

Member Function Documentation

◆ add()

PaillierInteger frodo2.algorithms.mpc_discsp.PaillierInteger.add ( PaillierInteger o)

Computes the addition of the underlying plaintexts.

Parameters
othe other cyphertext
Returns
a cyphertext that decrypts to the sum of the two underlying plaintexts

References PaillierInteger(), and value.

Here is the call graph for this function:

◆ readExternal()

void frodo2.algorithms.mpc_discsp.PaillierInteger.readExternal ( ObjectInput in) throws IOException, ClassNotFoundException
See also
java.io.Externalizable#readExternal(java.io.ObjectInput)

Referenced by frodo2.algorithms.mpc_discsp.EncrSharesMsg.readExternal().

◆ toString()

String frodo2.algorithms.mpc_discsp.PaillierInteger.toString ( )
See also
java.lang.Object#toString()

◆ writeExternal()

void frodo2.algorithms.mpc_discsp.PaillierInteger.writeExternal ( ObjectOutput out) throws IOException
See also
java.io.Externalizable#writeExternal(java.io.ObjectOutput)

Referenced by frodo2.algorithms.mpc_discsp.EncrSharesMsg.writeExternal().

Member Data Documentation

◆ nSquare

BigInteger frodo2.algorithms.mpc_discsp.PaillierInteger.nSquare
package

The modulo.

Referenced by PaillierInteger().

◆ value

BigInteger frodo2.algorithms.mpc_discsp.PaillierInteger.value
package

The documentation for this class was generated from the following file: