From 550d0a16dbaee74f398005b3ae59e00703dbf0ec Mon Sep 17 00:00:00 2001 From: "sinu.eth" <65924192+sinui0@users.noreply.github.com> Date: Wed, 17 Jan 2024 11:19:28 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: dan --- ot/mpz-ot/src/ideal/shared/cot.rs | 2 +- ot/mpz-ot/src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ot/mpz-ot/src/ideal/shared/cot.rs b/ot/mpz-ot/src/ideal/shared/cot.rs index 3266c2b8..2e88c5ad 100644 --- a/ot/mpz-ot/src/ideal/shared/cot.rs +++ b/ot/mpz-ot/src/ideal/shared/cot.rs @@ -114,7 +114,7 @@ mod tests { use super::*; #[tokio::test] - async fn test_ideal_ot() { + async fn test_ideal_cot_shared() { let mut rng = ChaCha12Rng::seed_from_u64(0); let values = Block::random_vec(&mut rng, 8); diff --git a/ot/mpz-ot/src/lib.rs b/ot/mpz-ot/src/lib.rs index 6a9d9713..4a41d144 100644 --- a/ot/mpz-ot/src/lib.rs +++ b/ot/mpz-ot/src/lib.rs @@ -74,13 +74,13 @@ pub trait COTSender: ProtocolMessage where T: Send + Sync, { - /// Obliviously transfers the correlations to the receiver. + /// Obliviously transfers the correlated messages to the receiver. /// /// # Arguments /// /// * `sink` - The IO sink to the receiver. /// * `stream` - The IO stream from the receiver. - /// * `msgs` - The `0`-bit messages to obliviously transfer. + /// * `msgs` - The `0`-bit messages to use during the oblivious transfer. async fn send_correlated< Si: IoSink + Send + Unpin, St: IoStream + Send + Unpin, @@ -311,7 +311,7 @@ pub trait COTSenderShared { /// # Arguments /// /// * `id` - The unique identifier for this transfer. - /// * `msgs` - The `0`-bit messages to obliviously transfer. + /// * `msgs` - The `0`-bit messages to use during the oblivious transfer. async fn send_correlated(&self, id: &str, msgs: &[T]) -> Result<(), OTError>; }