MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
42 other.share_->Get().reset();
56 this->share_ = other.share_;
57 this->logger_ = other.logger_;
62 this->share_ = std::move(other.share_);
63 this->logger_ = std::move(other.logger_);
78 *
this = *
this + other;
85 *
this = *
this - other;
92 *
this = *
this * other;
99 *
this = *
this / other;
109 std::vector<SecureUnsignedInteger>
Unsimdify()
const;
115 std::size_t output_owner = std::numeric_limits<std::int64_t>::max())
const;
119 template <
typename T>
123 std::shared_ptr<ShareWrapper> share_{
nullptr};
124 std::shared_ptr<Logger> logger_{
nullptr};
127 std::string suffix =
"")
const;
Definition: share_wrapper.h:44
ShareWrapper & operator->()
Definition: secure_unsigned_integer.h:71
SecureUnsignedInteger & operator-=(const SecureUnsignedInteger &other)
Definition: secure_unsigned_integer.h:84
SecureUnsignedInteger(const SecureUnsignedInteger &other)
Definition: secure_unsigned_integer.h:37
SecureUnsignedInteger(const ShareWrapper &other)
Definition: secure_unsigned_integer.h:45
type
Definition: geninput.py:149
ShareWrapper operator>(const SecureUnsignedInteger &other) const
Definition: secure_unsigned_integer.cpp:176
SecureUnsignedInteger & operator*=(const SecureUnsignedInteger &other)
Definition: secure_unsigned_integer.h:91
std::vector< ShareWrapper > Split() const
splits the share into single wires.
Definition: share_wrapper.cpp:459
IntegerOperationType
Definition: typedefs.h:113
const ShareWrapper & operator->() const
Definition: secure_unsigned_integer.h:73
static ShareWrapper Concatenate(std::vector< ShareWrapper > &&input)
concatenates wires in multiple shares in one share.
Definition: share_wrapper.h:128
SecureUnsignedInteger & operator/=(const SecureUnsignedInteger &other)
Definition: secure_unsigned_integer.h:98
SecureUnsignedInteger()=default
SecureUnsignedInteger operator-(const SecureUnsignedInteger &other) const
Definition: secure_unsigned_integer.cpp:78
T As() const
converts the information on the wires to T in type Unsigned Integer. See the description in ShareWrap...
Definition: secure_unsigned_integer.cpp:283
SecureUnsignedInteger(ShareWrapper &&other)
Definition: secure_unsigned_integer.h:47
SecureUnsignedInteger operator*(const SecureUnsignedInteger &other) const
Definition: secure_unsigned_integer.cpp:111
SecureUnsignedInteger & operator+=(const SecureUnsignedInteger &other)
Definition: secure_unsigned_integer.h:77
SecureUnsignedInteger & operator=(const SecureUnsignedInteger &other)
Definition: secure_unsigned_integer.h:55
Definition: algorithm_description.cpp:35
std::shared_ptr< Share > SharePointer
Definition: conversion_gate.h:49
ShareWrapper operator==(const SecureUnsignedInteger &other) const
Definition: secure_unsigned_integer.cpp:209
Definition: secure_unsigned_integer.h:33
SecureUnsignedInteger(SecureUnsignedInteger &&other)
Definition: secure_unsigned_integer.h:40
SecureUnsignedInteger & operator=(SecureUnsignedInteger &&other)
Definition: secure_unsigned_integer.h:61
static AlgorithmDescription FromBristol(const std::string &path)
Definition: algorithm_description.cpp:37
SecureUnsignedInteger operator+(const SecureUnsignedInteger &other) const
Definition: secure_unsigned_integer.cpp:46
SecureUnsignedInteger Out(std::size_t output_owner=std::numeric_limits< std::int64_t >::max()) const
constructs an output gate, which reconstructs the cleartext result. The default parameter for the out...
Definition: secure_unsigned_integer.cpp:272
SecureUnsignedInteger operator/(const SecureUnsignedInteger &other) const
Definition: secure_unsigned_integer.cpp:144
Definition: share_wrapper.cpp:610
const ShareWrapper & Get() const
Definition: secure_unsigned_integer.h:69
constexpr std::string_view kRootDir
Definition: config.h:39
ShareWrapper Evaluate(const std::shared_ptr< const AlgorithmDescription > &algo) const
evaluates AlgorithmDescription also on this->share_ as input.
Definition: share_wrapper.h:144
ShareWrapper & Get()
Definition: secure_unsigned_integer.h:67
constexpr bool kDebug
Definition: config.h:36
std::vector< SecureUnsignedInteger > Unsimdify() const
decomposes this->share_->Get() into shares with exactly 1 SIMD value. See the description in ShareWra...
Definition: secure_unsigned_integer.cpp:261