Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
liang-xiaojian authored Oct 27, 2023
1 parent 2b14e3a commit cf00eb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libspu/mpc/cheetah/yacl_ot/yacl_ferret.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,24 +172,24 @@ struct YaclFerretOT::Impl {
MITCCRHExp<8> mitccrh_exp_{};

inline void SendRCOT(absl::Span<uint128_t> output) {
SPU_ENFORCE( is_sender_ );
SPU_ENFORCE(is_sender_);
ferret_->send_rcot(output);
}

inline void RecvRCOT(absl::Span<uint8_t> choices,
absl::Span<uint128_t> output) {
SPU_ENFORCE( !is_sender_ );
SPU_ENFORCE(!is_sender_);
ferret_->recv_rcot(output, choices);
}

inline void SendCOT(uint128_t* output, size_t n) {
SPU_ENFORCE( is_sender_ );
SPU_ENFORCE(is_sender_);
ferret_->send_cot(absl::MakeSpan(output, n));
}

inline void RecvCOT(absl::Span<const uint8_t> choices,
absl::Span<uint128_t> output) {
SPU_ENFORCE( !is_sender_ );
SPU_ENFORCE(!is_sender_);
ferret_->recv_cot(output, choices);
}

Expand Down

0 comments on commit cf00eb7

Please sign in to comment.