Skip to content

Commit

Permalink
fix: set kos state after base OT (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
themighty1 authored Sep 26, 2023
1 parent c5dd879 commit c2e0803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ot/mpz-ot/src/kos/sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,13 @@ where
Block::random(&mut thread_rng())
};

self.state = State::Initialized(sender);

// Set up base OT if not already done
self.base
.setup(&mut into_base_sink(sink), &mut into_base_stream(stream))
.await?;

self.state = State::Initialized(sender);

self._setup_with_delta(sink, stream, delta)
.await
.map_err(OTError::from)
Expand Down

0 comments on commit c2e0803

Please sign in to comment.