Option for larger MAC keys in binary computation.

This commit is contained in:
Marcel Keller
2025-04-15 11:26:30 +10:00
parent 85f2d094a9
commit 63806f5b35

View File

@@ -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)
{
}
};