mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
42 lines
921 B
C++
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_ */
|