Files
MP-SPDZ/Math/ValueInterface.h
2020-12-11 16:24:28 +11:00

42 lines
921 B
C++

/*
* ValueInterface.h
*
*/
#ifndef MATH_VALUEINTERFACE_H_
#define MATH_VALUEINTERFACE_H_
#include "Exceptions/Exceptions.h"
class OnlineOptions;
class bigint;
class PRNG;
class ValueInterface
{
public:
static const int MAX_EDABITS = 0;
static const false_type characteristic_two;
static const false_type prime_field;
template<class T>
static void init(bool mont = true) { (void) mont; }
static void init_default(int, bool = true) {}
static void init_field() {}
static void read_or_generate_setup(const string&, const OnlineOptions&) {}
template<class T>
static void generate_setup(string, int, int) {}
static bigint pr() { throw runtime_error("no prime modulus"); }
static int power_of_two(bool, int) { throw not_implemented(); }
void normalize() {}
void randomize_part(PRNG&, int) { throw not_implemented(); }
};
#endif /* MATH_VALUEINTERFACE_H_ */