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

In MPC-DisCSP4, a message containing a vector of ElGamal-encrypted shares. More...

Inheritance diagram for frodo2.algorithms.mpc_discsp.EncrSharesMsg:

Public Member Functions

 EncrSharesMsg (PaillierInteger[] shares, PaillierPublicKey publicKey, int agentID, boolean step)
 Constructor.
 EncrSharesMsg ()
 Empty constructor used for externalization.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
PaillierInteger[] getShares ()
PaillierPublicKey getPublicKey ()
int getAgentID ()
boolean step ()
String toString ()
Public Member Functions inherited from frodo2.communication.Message
 Message (MessageType type)
 Constructor.
 Message ()
 Empty constructor.
MessageType getType ()
void fakeSerialize ()
 Pretends to serialize the message.

Static Public Attributes

static final MessageType ENCR_SHARES_MSG_TYPE = new MessageType ("MPC", "EncrShares")
 The type of this message.

Private Attributes

PaillierInteger[] shares
 The encrypted shares.
PaillierPublicKey publicKey
 The public key used to encrypt.
int agentID
 The index of the agent owning the shares.
boolean step
 The step this message belongs to.

Additional Inherited Members

Protected Attributes inherited from frodo2.communication.Message
MessageType type
 The type of this message.

Detailed Description

In MPC-DisCSP4, a message containing a vector of ElGamal-encrypted shares.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ EncrSharesMsg() [1/2]

frodo2.algorithms.mpc_discsp.EncrSharesMsg.EncrSharesMsg ( PaillierInteger[] shares,
PaillierPublicKey publicKey,
int agentID,
boolean step )

Constructor.

Parameters
sharesthe encrypted shares
publicKeyThe public key used to encrypt
agentIDThe index of the agent owning the shares
stepthe step this message belongs to

References agentID, ENCR_SHARES_MSG_TYPE, publicKey, shares, and step.

◆ EncrSharesMsg() [2/2]

frodo2.algorithms.mpc_discsp.EncrSharesMsg.EncrSharesMsg ( )

Empty constructor used for externalization.

References ENCR_SHARES_MSG_TYPE.

Member Function Documentation

◆ getAgentID()

int frodo2.algorithms.mpc_discsp.EncrSharesMsg.getAgentID ( )

◆ getPublicKey()

PaillierPublicKey frodo2.algorithms.mpc_discsp.EncrSharesMsg.getPublicKey ( )
Returns
the public key used for encryption

References publicKey.

Referenced by frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.notifyIn().

◆ getShares()

PaillierInteger[] frodo2.algorithms.mpc_discsp.EncrSharesMsg.getShares ( )
Returns
the encrypted shares

References shares.

Referenced by frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.notifyIn().

◆ readExternal()

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

Reimplemented from frodo2.communication.Message.

References frodo2.algorithms.mpc_discsp.PaillierPublicKey.nsquare, and frodo2.algorithms.mpc_discsp.PaillierInteger.readExternal().

Here is the call graph for this function:

◆ step()

boolean frodo2.algorithms.mpc_discsp.EncrSharesMsg.step ( )
Returns
the step this message belongs to

◆ toString()

String frodo2.algorithms.mpc_discsp.EncrSharesMsg.toString ( )
See also
Message.toString()

Reimplemented from frodo2.communication.Message.

◆ writeExternal()

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

Reimplemented from frodo2.communication.Message.

References frodo2.algorithms.mpc_discsp.PaillierInteger.writeExternal().

Here is the call graph for this function:

Member Data Documentation

◆ agentID

int frodo2.algorithms.mpc_discsp.EncrSharesMsg.agentID
private

The index of the agent owning the shares.

Referenced by EncrSharesMsg(), and getAgentID().

◆ ENCR_SHARES_MSG_TYPE

◆ publicKey

PaillierPublicKey frodo2.algorithms.mpc_discsp.EncrSharesMsg.publicKey
private

The public key used to encrypt.

Referenced by EncrSharesMsg(), and getPublicKey().

◆ shares

PaillierInteger [] frodo2.algorithms.mpc_discsp.EncrSharesMsg.shares
private

The encrypted shares.

Referenced by EncrSharesMsg(), and getShares().

◆ step

boolean frodo2.algorithms.mpc_discsp.EncrSharesMsg.step
private

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