9 #include <openssl/sha.h> 80 return 3 *
sizeof(
block);
82 return 2 *
sizeof(
block);
102 block *output_labels);
126 block *output_labels,
bool *outputs);
129 const bool *bits, uint64_t n);
garble_type_e
Definition: garble.h:15
block global_key
Definition: garble.h:71
block garble_create_delta(void)
block * wires
Definition: garble.h:63
int garble_garble(garble_circuit *gc, const block *input_labels, block *output_labels)
int garble_check(garble_circuit *gc, const unsigned char hash[SHA_DIGEST_LENGTH])
__m128i block
Definition: block.h:8
int garble_circuit_from_file(garble_circuit *gc, char *fname)
garble_fixed_wire_e
Definition: garble.h:42
int idx
Definition: garble.h:49
int garble_save(const garble_circuit *gc, FILE *f, bool wires)
block fixed_label
Definition: garble.h:69
void garble_create_input_labels(block *labels, uint64_t n, block *delta, bool privacyfree)
uint64_t output
Definition: garble.h:39
garble_fixed_wire_e type
Definition: garble.h:48
int garble_new(garble_circuit *gc, uint64_t n, uint64_t m, garble_type_e type)
garble_gate_type_e type
Definition: garble.h:37
size_t garble_size(const garble_circuit *gc, bool wires)
garble_gate_type_e
Definition: garble.h:25
garble_type_e type
Definition: garble.h:59
int garble_circuit_to_file(garble_circuit *gc, char *fname)
size_t garble_table_size(const garble_circuit *gc)
Definition: garble.h:76
int garble_eval(const garble_circuit *gc, const block *input_labels, block *output_labels, bool *outputs)
void garble_extract_labels(block *extracted_labels, const block *labels, const bool *bits, uint64_t n)
int garble_load(garble_circuit *gc, FILE *f, bool wires)
int garble_from_buffer(garble_circuit *gc, const char *buf, bool wires)
int garble_to_buffer(const garble_circuit *gc, char *buf, bool wires)
uint64_t r
Definition: garble.h:57
int * outputs
Definition: garble.h:64
bool * output_perms
Definition: garble.h:67
int garble_map_outputs(const block *output_labels, const block *map, bool *vals, uint64_t m)
block * table
Definition: garble.h:62
void garble_hash(const garble_circuit *gc, unsigned char hash[SHA_DIGEST_LENGTH])
void garble_delete(garble_circuit *gc)
garble_gate * gates
Definition: garble.h:61