From 38c94a11573ef5e99cf7a624b162fb0d94283c93 Mon Sep 17 00:00:00 2001 From: th4s Date: Wed, 11 Sep 2024 21:03:09 +0200 Subject: [PATCH] Only preprocess online part for transcript. --- crates/tls/mpc/src/follower.rs | 3 +-- crates/tls/mpc/src/leader.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/tls/mpc/src/follower.rs b/crates/tls/mpc/src/follower.rs index 910f3809fa..393240cf89 100644 --- a/crates/tls/mpc/src/follower.rs +++ b/crates/tls/mpc/src/follower.rs @@ -149,8 +149,7 @@ impl MpcTlsFollower { self.prf.preprocess().await?; let preprocess_encrypt = self.config.common().tx_config().max_online_size(); - let preprocess_decrypt = self.config.common().rx_config().max_online_size() - + self.config.common().rx_config().max_offline_size(); + let preprocess_decrypt = self.config.common().rx_config().max_online_size(); futures::try_join!( self.encrypter.preprocess(preprocess_encrypt), diff --git a/crates/tls/mpc/src/leader.rs b/crates/tls/mpc/src/leader.rs index 5212eaba8c..312cdb8df7 100644 --- a/crates/tls/mpc/src/leader.rs +++ b/crates/tls/mpc/src/leader.rs @@ -136,8 +136,7 @@ impl MpcTlsLeader { self.prf.preprocess().await?; let preprocess_encrypt = self.config.common().tx_config().max_online_size(); - let preprocess_decrypt = self.config.common().rx_config().max_online_size() - + self.config.common().rx_config().max_offline_size(); + let preprocess_decrypt = self.config.common().rx_config().max_online_size(); futures::try_join!( self.encrypter.preprocess(preprocess_encrypt),