emp-toolkit
Elgamal Class Reference

#include <elgamal.h>

Public Member Functions

 Elgamal (NetIO *io, int party, int length)
 
bool setup_omega ()
 
 ~Elgamal ()
 
void commit (bn_t r, eb_tpl com, bool b, PRG *prg)
 
bool check_eq (eb_tpl new_com, eb_tpl old_com, bn_t r_diff)
 
void send (eb_tpl *X)
 
void open ()
 
void recv (eb_t *X, bool *b)
 
void open (eb_tpl *Xs, bool *b, eb_t *X)
 
void recovery (bool *b, bn_t omega)
 

Public Attributes

NetIOio
 
eb_t g
 
eb_t h
 
eb_t hTbl [RELIC_EB_TABLE_MAX]
 
const eb_t * gTbl
 
bn_t w
 
bn_t q
 
int party
 
PRG prg
 
int length
 
eb_tplcom = nullptr
 
eb_tplnA = nullptr
 
eb_tplnB = nullptr
 
bn_tplelgl_s = nullptr
 
bn_tplelgl_t = nullptr
 
bn_t * r = nullptr
 

Constructor & Destructor Documentation

§ Elgamal()

Elgamal::Elgamal ( NetIO io,
int  party,
int  length 
)
inline

§ ~Elgamal()

Elgamal::~Elgamal ( )
inline

Member Function Documentation

§ check_eq()

bool Elgamal::check_eq ( eb_tpl  new_com,
eb_tpl  old_com,
bn_t  r_diff 
)
inline

§ commit()

void Elgamal::commit ( bn_t  r,
eb_tpl  com,
bool  b,
PRG prg 
)
inline

§ open() [1/2]

void Elgamal::open ( )
inline

§ open() [2/2]

void Elgamal::open ( eb_tpl Xs,
bool *  b,
eb_t *  X 
)
inline

§ recovery()

void Elgamal::recovery ( bool *  b,
bn_t  omega 
)
inline

§ recv()

void Elgamal::recv ( eb_t *  X,
bool *  b 
)
inline

§ send()

void Elgamal::send ( eb_tpl X)
inline

§ setup_omega()

bool Elgamal::setup_omega ( )
inline

Member Data Documentation

§ com

eb_tpl* Elgamal::com = nullptr

§ elgl_s

bn_tpl* Elgamal::elgl_s = nullptr

§ elgl_t

bn_tpl * Elgamal::elgl_t = nullptr

§ g

eb_t Elgamal::g

§ gTbl

const eb_t* Elgamal::gTbl

§ h

eb_t Elgamal::h

§ hTbl

eb_t Elgamal::hTbl[RELIC_EB_TABLE_MAX]

§ io

NetIO* Elgamal::io

§ length

int Elgamal::length

§ nA

eb_tpl * Elgamal::nA = nullptr

§ nB

eb_tpl * Elgamal::nB = nullptr

§ party

int Elgamal::party

§ prg

PRG Elgamal::prg

§ q

bn_t Elgamal::q

§ r

bn_t* Elgamal::r = nullptr

§ w

bn_t Elgamal::w

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