From 58ab1dbc509c255c351deb93ec69d03f54c6ec58 Mon Sep 17 00:00:00 2001 From: Roman Walch <9820846+rw0x0@users.noreply.github.com> Date: Wed, 22 Jan 2025 15:56:50 +0100 Subject: [PATCH] fix of fix --- iris-mpc-gpu/src/threshold_ring/protocol.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iris-mpc-gpu/src/threshold_ring/protocol.rs b/iris-mpc-gpu/src/threshold_ring/protocol.rs index 10392fd28..c9d5a5750 100644 --- a/iris-mpc-gpu/src/threshold_ring/protocol.rs +++ b/iris-mpc-gpu/src/threshold_ring/protocol.rs @@ -916,7 +916,7 @@ impl Circuits { result::group_start().unwrap(); self.comms[idx] .send_view( - &send_bufs.slice(range.to_owned()), + &send_bufs.slice(0..range.len()), self.next_id, &streams[idx], ) @@ -952,7 +952,7 @@ impl Circuits { .unwrap(); } for (idx, res) in res.iter_mut().enumerate() { - let mut rcv = res.b.slice(range.to_owned()); + let mut rcv = res.b.slice(0..range.len()); self.comms[idx] .receive_view(&mut rcv, self.prev_id, &streams[idx]) .unwrap();