#include <string>
#include "block.h"
#include <sstream>
#include <bitset>
#include <cstddef>
#include <gmp.h>
#include "config.h"
#include "prg.h"
#include "utils.hpp"
Go to the source code of this file.
|
template<typename T > |
void | delete_array_null (T *ptr) |
|
void | error (const char *s, int line=0, const char *file=nullptr) |
|
template<class... Ts> |
void | run_function (void *function, const Ts &... args) |
|
void | parse_party_and_port (char **arg, int *party, int *port) |
|
std::string | Party (int p) |
|
template<typename T = uint64_t> |
std::string | m128i_to_string (const __m128i var) |
|
double | wallClock () |
|
uint64_t | timeStamp () |
|
template<typename T > |
T | bool_to_int (const bool *data, size_t len=0) |
|
block | bool_to128 (const bool *data) |
|
void | int64_to_bool (bool *data, uint64_t input, int length) |
|
std::string | hex_to_binary (std::string hex) |
|
string | change_base (string str, int old_base, int new_base) |
|
string | dec_to_bin (const string &dec) |
|
string | bin_to_dec (const string &bin2) |
|
§ ALICE
§ BOB
§ macro_str
#define macro_str |
( |
|
a | ) |
#a |
§ macro_xstr
§ PUBLIC
§ bin_to_dec()
string bin_to_dec |
( |
const string & |
bin2 | ) |
|
|
inline |
§ bool_to128()
block bool_to128 |
( |
const bool * |
data | ) |
|
|
inline |
§ bool_to_int()
template<typename T >
T bool_to_int |
( |
const bool * |
data, |
|
|
size_t |
len = 0 |
|
) |
| |
§ change_base()
string change_base |
( |
string |
str, |
|
|
int |
old_base, |
|
|
int |
new_base |
|
) |
| |
|
inline |
§ dec_to_bin()
string dec_to_bin |
( |
const string & |
dec | ) |
|
|
inline |
§ delete_array_null()
template<typename T >
void delete_array_null |
( |
T * |
ptr | ) |
|
|
inline |
§ error()
void error |
( |
const char * |
s, |
|
|
int |
line = 0 , |
|
|
const char * |
file = nullptr |
|
) |
| |
|
inline |
§ hex_to_binary()
std::string hex_to_binary |
( |
std::string |
hex | ) |
|
|
inline |
§ int64_to_bool()
void int64_to_bool |
( |
bool * |
data, |
|
|
uint64_t |
input, |
|
|
int |
length |
|
) |
| |
|
inline |
§ m128i_to_string()
template<typename T = uint64_t>
std::string m128i_to_string |
( |
const __m128i |
var | ) |
|
§ parse_party_and_port()
void parse_party_and_port |
( |
char ** |
arg, |
|
|
int * |
party, |
|
|
int * |
port |
|
) |
| |
|
inline |
§ Party()
std::string Party |
( |
int |
p | ) |
|
|
inline |
§ run_function()
template<class... Ts>
void run_function |
( |
void * |
function, |
|
|
const Ts &... |
args |
|
) |
| |
§ timeStamp()
§ wallClock()