Skip to content

Commit

Permalink
Fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Aug 17, 2023
1 parent c2f5cc3 commit 7c3ddd9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mpz-circuits/src/ops/uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl<'a> BitXor for Tracer<'a, BinaryRepr> {
self.state,
BinaryRepr::Array(
a.into_iter()
.zip(b.into_iter())
.zip(b)
.map(|(a, b)| {
let c = Tracer::new(self.state, a) ^ Tracer::new(self.state, b);
c.value
Expand Down
6 changes: 3 additions & 3 deletions ot/mpz-ot-core/src/extension/kos15/sender/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl Kos15Sender<state::BaseReceive> {
impl Kos15Sender<state::Setup> {
pub fn send(&mut self, inputs: &[[Block; 2]]) -> Result<ExtSenderPayload, ExtSenderCoreError> {
send_from(
&mut self.0.count,
&self.0.count,
&mut self.0.sent,
&mut self.0.table,
&self.0.base_choices,
Expand Down Expand Up @@ -216,7 +216,7 @@ impl Kos15Sender<state::RandSetup> {
derandomize: ExtDerandomize,
) -> Result<ExtSenderPayload, ExtSenderCoreError> {
send_from(
&mut self.0.count,
&self.0.count,
&mut self.0.sent,
&mut self.0.table,
&self.0.base_choices,
Expand Down Expand Up @@ -273,7 +273,7 @@ impl Kos15Sender<state::RandSetup> {
}

fn send_from(
count: &mut usize,
count: &usize,
sent: &mut usize,
table: &mut KosMatrix,
base_choices: &[bool],
Expand Down
2 changes: 1 addition & 1 deletion ot/mpz-ot/src/kos/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl<const N: usize> ObliviousReceiveOwned<bool, [Block; N]>
let mut plaintext: Vec<[Block; N]> = Vec::with_capacity(choices.len());
for ((key, choice), msgs) in keys
.iter()
.zip(choices.into_iter())
.zip(choices)
.zip(ciphertexts.chunks_exact(2 * N * Block::LEN))
{
let cipher = Aes128::new(&key.to_be_bytes().into());
Expand Down

0 comments on commit 7c3ddd9

Please sign in to comment.