MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
32 template <
typename T,
typename = std::enable_if_t<std::is_
unsigned_v<T>>>
39 Wire(
Backend& backend, std::size_t number_of_simd) :
Base(backend, number_of_simd) {}
42 :
Base(backend, values.size()), values_(std::move(values)) {}
45 :
Base(backend, values.size()), values_(values) {}
55 const std::vector<T>&
GetValues()
const {
return values_; }
64 std::vector<T> values_;
67 template <
typename T,
typename = std::enable_if_t<std::is_
unsigned_v<T>>>
bool IsConstant() const noexcept final
Definition: arithmetic_gmw_wire.h:61
CircuitType
Definition: typedefs.h:165
MpcProtocol GetProtocol() const final
Definition: arithmetic_gmw_wire.h:51
const std::vector< T > & GetValues() const
Definition: arithmetic_gmw_wire.h:55
Wire(std::vector< T > &&values, Backend &backend)
Definition: arithmetic_gmw_wire.h:41
Wire(Backend &backend, std::size_t number_of_simd)
Definition: arithmetic_gmw_wire.h:39
MpcProtocol
Definition: typedefs.h:140
std::size_t GetBitLength() const final
Definition: arithmetic_gmw_wire.h:59
std::vector< T > & GetMutableValues()
Definition: arithmetic_gmw_wire.h:57
Wire(const std::vector< T > &values, Backend &backend)
Definition: arithmetic_gmw_wire.h:44
default
Definition: geninput.py:149
Definition: arithmetic_gmw_gate.h:45
Definition: arithmetic_gmw_wire.h:33
std::shared_ptr< Wire< T > > WirePointer
Definition: arithmetic_gmw_wire.h:68
T value_type
Definition: arithmetic_gmw_wire.h:37
Wire(T t, Backend &backend)
Definition: arithmetic_gmw_wire.h:47
CircuitType GetCircuitType() const final
Definition: arithmetic_gmw_wire.h:53