mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-07 20:53:55 -05:00
28 lines
439 B
C++
28 lines
439 B
C++
/*
|
|
* AtlasSecret.cpp
|
|
*
|
|
*/
|
|
|
|
#include "AtlasSecret.h"
|
|
#include "TinyMC.h"
|
|
|
|
#include "Protocols/Shamir.hpp"
|
|
#include "Protocols/ShamirMC.hpp"
|
|
#include "Protocols/MAC_Check_Base.hpp"
|
|
#include "Secret.hpp"
|
|
|
|
namespace GC
|
|
{
|
|
|
|
typename AtlasSecret::MC* AtlasSecret::new_mc(typename AtlasSecret::mac_key_type mac_key)
|
|
{
|
|
return new MC(mac_key);
|
|
}
|
|
|
|
AtlasShare::AtlasShare(const AtlasSecret& other) :
|
|
AtlasShare(other.get_bit(0))
|
|
{
|
|
}
|
|
|
|
}
|