Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangxiecrypto committed Oct 20, 2023
1 parent 92ef8f8 commit 29c0d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ot/mpz-ot-core/src/ferret/spcot/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl Receiver<state::Extension> {

let bs: Vec<bool> = alpha
.iter_msb0()
.skip(u32::BITS as usize - h)
.skip(32 - h)
// Computes alpha_i XOR r_i XOR 1.
.zip(rs.iter())
.map(|(alpha, &r)| alpha == r)
Expand Down Expand Up @@ -140,7 +140,7 @@ impl Receiver<state::Extension> {

let alpha_bar_vec: Vec<bool> = alpha
.iter_msb0()
.skip(u32::BITS as usize - h)
.skip(32 - h)
.map(|a| !a)
.collect();

Expand Down

0 comments on commit 29c0d40

Please sign in to comment.