mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 13:37:58 -05:00
Option for larger MAC keys in binary computation.
This commit is contained in:
@@ -10,8 +10,16 @@
|
||||
#include "Protocols/Share.h"
|
||||
#include "Math/Bit.h"
|
||||
|
||||
#ifdef LONG_BIT_MAC_KEY
|
||||
class gf2n_mac_key : public gf2n_long
|
||||
{
|
||||
typedef gf2n_long super;
|
||||
#else
|
||||
class gf2n_mac_key : public gf2n_short
|
||||
{
|
||||
typedef gf2n_short super;
|
||||
#endif
|
||||
|
||||
public:
|
||||
gf2n_mac_key()
|
||||
{
|
||||
@@ -19,7 +27,7 @@ public:
|
||||
|
||||
template<class T>
|
||||
gf2n_mac_key(const T& other) :
|
||||
gf2n_short(other)
|
||||
super(other)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user