Skip to content

Commit

Permalink
oups
Browse files Browse the repository at this point in the history
  • Loading branch information
beltram committed Feb 19, 2024
1 parent 6b93882 commit 4dcd58f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion openmls/src/ciphersuite/mac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct Mac {

impl std::fmt::Debug for Mac {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{:x?}", self.mac_value.as_slice())
write!(f, "{}", hex::encode(self.mac_value.as_slice()))
}
}

Expand Down
8 changes: 4 additions & 4 deletions openmls/src/ciphersuite/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ use super::{LABEL_PREFIX, *};

/// Signature.
#[derive(
PartialEq, Eq, Clone, Serialize, Deserialize, TlsDeserialize, TlsSerialize, TlsSize,
PartialEq, Eq, Clone, Serialize, Deserialize, TlsDeserialize, TlsSerialize, TlsSize,
)]
pub struct Signature {
value: VLBytes,
}

impl std::fmt::Debug for Signature {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{:x?}", self.value.as_slice())
write!(f, "{}", hex::encode(self.value.as_slice()))
}
}

Expand Down Expand Up @@ -60,15 +60,15 @@ impl From<(&str, &[u8])> for SignContent {

/// A public signature key.
#[derive(
Eq, PartialEq, Hash, Clone, Serialize, Deserialize, TlsSerialize, TlsDeserialize, TlsSize,
Eq, PartialEq, Hash, Clone, Serialize, Deserialize, TlsSerialize, TlsDeserialize, TlsSize,
)]
pub struct SignaturePublicKey {
pub(in crate::ciphersuite) value: VLBytes,
}

impl std::fmt::Debug for SignaturePublicKey {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{:x?}", self.value.as_slice())
write!(f, "{}", hex::encode(self.value.as_slice()))
}
}

Expand Down
2 changes: 1 addition & 1 deletion openmls/src/extensions/external_pub_extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct ExternalPubExtension {

impl std::fmt::Debug for ExternalPubExtension {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{:x?}", self.external_pub.as_slice())
write!(f, "{}", hex::encode(self.external_pub.as_slice()))
}
}

Expand Down
2 changes: 1 addition & 1 deletion openmls/src/treesync/node/encryption_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub struct EncryptionKey {

impl std::fmt::Debug for EncryptionKey {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{:x?}", self.key.as_slice().to_vec())
write!(f, "{}", hex::encode(self.key.as_slice().to_vec()))
}
}

Expand Down

0 comments on commit 4dcd58f

Please sign in to comment.