emp-toolkit
halfgate_gen.h File Reference
#include "io_channel.h"
#include "net_io_channel.h"
#include "file_io_channel.h"
#include "block.h"
#include "utils.h"
#include "prp.h"
#include "hash.h"
#include "garble/garble_gate_halfgates.h"
#include <iostream>

Go to the source code of this file.

Classes

class  HalfGateGen< T, rt >
 
class  HalfGateGen< T, RTCktOpt::off >
 

Functions

template<typename T , RTCktOpt rt>
bool halfgate_gen_is_public (GarbleCircuit *gc, const block &b, int party)
 
template<typename T , RTCktOpt rt>
block halfgate_gen_public_label (GarbleCircuit *gc, bool b)
 
template<typename T , RTCktOpt rt>
block halfgate_gen_and (GarbleCircuit *gc, const block &a, const block &b)
 
template<typename T , RTCktOpt rt>
block halfgate_gen_xor (GarbleCircuit *gc, const block &a, const block &b)
 
template<typename T , RTCktOpt rt>
block halfgate_gen_not (GarbleCircuit *gc, const block &a)
 

Function Documentation

§ halfgate_gen_and()

template<typename T , RTCktOpt rt>
block halfgate_gen_and ( GarbleCircuit gc,
const block a,
const block b 
)

§ halfgate_gen_is_public()

template<typename T , RTCktOpt rt>
bool halfgate_gen_is_public ( GarbleCircuit gc,
const block b,
int  party 
)

§ halfgate_gen_not()

template<typename T , RTCktOpt rt>
block halfgate_gen_not ( GarbleCircuit gc,
const block a 
)

§ halfgate_gen_public_label()

template<typename T , RTCktOpt rt>
block halfgate_gen_public_label ( GarbleCircuit gc,
bool  b 
)

§ halfgate_gen_xor()

template<typename T , RTCktOpt rt>
block halfgate_gen_xor ( GarbleCircuit gc,
const block a,
const block b 
)