emp-toolkit
integer.hpp File Reference

Go to the source code of this file.

Functions

void add_full (Bit *dest, Bit *carryOut, const Bit *op1, const Bit *op2, const Bit *carryIn, int size)
 
void sub_full (Bit *dest, Bit *borrowOut, const Bit *op1, const Bit *op2, const Bit *borrowIn, int size)
 
void mul_full (Bit *dest, const Bit *op1, const Bit *op2, int size)
 
void ifThenElse (Bit *dest, const Bit *tsrc, const Bit *fsrc, int size, Bit cond)
 
void condNeg (Bit cond, Bit *dest, const Bit *src, int size)
 
void div_full (Bit *vquot, Bit *vrem, const Bit *op1, const Bit *op2, int size)
 
void init (Bit *bits, const bool *b, int length, int party)
 

Function Documentation

§ add_full()

void add_full ( Bit dest,
Bit carryOut,
const Bit op1,
const Bit op2,
const Bit carryIn,
int  size 
)
inline

§ condNeg()

void condNeg ( Bit  cond,
Bit dest,
const Bit src,
int  size 
)
inline

§ div_full()

void div_full ( Bit vquot,
Bit vrem,
const Bit op1,
const Bit op2,
int  size 
)
inline

§ ifThenElse()

void ifThenElse ( Bit dest,
const Bit tsrc,
const Bit fsrc,
int  size,
Bit  cond 
)
inline

§ init()

void init ( Bit bits,
const bool *  b,
int  length,
int  party 
)
inline

§ mul_full()

void mul_full ( Bit dest,
const Bit op1,
const Bit op2,
int  size 
)
inline

§ sub_full()

void sub_full ( Bit dest,
Bit borrowOut,
const Bit op1,
const Bit op2,
const Bit borrowIn,
int  size 
)
inline