Skip to content

Commit

Permalink
Skip undebuggable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos committed Jan 6, 2024
1 parent fc1c695 commit abb957d
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions libsignal-service/src/cipher.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{convert::TryFrom, time::SystemTime};
use std::{convert::TryFrom, fmt, time::SystemTime};

use aes::cipher::block_padding::{Iso7816, RawPadding};
use libsignal_protocol::{
Expand Down Expand Up @@ -34,6 +34,18 @@ pub struct ServiceCipher<S, R> {
local_device_id: u32,
}

impl<S, R> fmt::Debug for ServiceCipher<S, R> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("ServiceCipher")
.field("protocol_store", &"...")
.field("csprng", &"...")
.field("trust_root", &"...")
.field("local_uuid", &self.local_uuid)
.field("local_device_id", &self.local_device_id)
.finish()
}
}

impl<S, R> ServiceCipher<S, R>
where
S: ProtocolStore + KyberPreKeyStore + SenderKeyStore + Clone,
Expand Down Expand Up @@ -429,7 +441,16 @@ pub async fn get_preferred_protocol_address<S: SessionStore>(
/// is then validated against the `trust_root` baked into the client to ensure that the sender's
/// identity was not forged.
#[allow(clippy::too_many_arguments)]
#[tracing::instrument]
#[tracing::instrument(skip(
ciphertext,
trust_root,
identity_store,
session_store,
pre_key_store,
signed_pre_key_store,
sender_key_store,
kyber_pre_key_store
))]
async fn sealed_sender_decrypt(
ciphertext: &[u8],
trust_root: &PublicKey,
Expand Down

0 comments on commit abb957d

Please sign in to comment.