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();