mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
/*
|
|
* ValueInterface.h
|
|
*
|
|
*/
|
|
|
|
#ifndef MATH_VALUEINTERFACE_H_
|
|
#define MATH_VALUEINTERFACE_H_
|
|
|
|
#include "Tools/Exceptions.h"
|
|
#include "Math/Setup.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;
|
|
static const false_type invertible;
|
|
static const false_type binary;
|
|
|
|
template<class T>
|
|
static void init(bool mont = true) { (void) mont; }
|
|
static void init_default(int, bool = true) {}
|
|
static void init_field(const bigint& = {}, bool = true) {}
|
|
|
|
static void read_or_generate_setup(const string&, const OnlineOptions&) {}
|
|
template<class T>
|
|
static void generate_setup(string, int, int) {}
|
|
template<class T>
|
|
static void write_setup(int nplayers) { get_prep_sub_dir<T>(nplayers, true); }
|
|
static void write_setup(string) {}
|
|
static void check_setup(const string& directory);
|
|
static const char* fake_opts() { return ""; }
|
|
|
|
static bigint pr() { throw runtime_error("no prime modulus"); }
|
|
|
|
void normalize() {}
|
|
|
|
void randomize_part(PRNG&, int) { throw not_implemented(); }
|
|
};
|
|
|
|
#endif /* MATH_VALUEINTERFACE_H_ */
|