diff --git a/.codespellrc b/.codespellrc index e2713029..f84f6770 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,3 +1,3 @@ [codespell] skip = .git,target,Cargo.lock -ignore-words-list = acsend,crate,keypair,daa +ignore-words-list = acsend,crate,keypair,daa,de,ser diff --git a/tss-esapi/src/structures/buffers/private.rs b/tss-esapi/src/structures/buffers/private.rs index e16f7d87..ce7aa408 100644 --- a/tss-esapi/src/structures/buffers/private.rs +++ b/tss-esapi/src/structures/buffers/private.rs @@ -10,6 +10,8 @@ buffer_type!(Private, ::std::mem::size_of::<_PRIVATE>(), TPM2B_PRIVATE); impl_mu_standard!(Private, TPM2B_PRIVATE); impl Serialize for Private { + /// Serialise the [Private] data into it's bytes representation of the TCG + /// TPM2B_PRIVATE structure. fn serialize(&self, serializer: S) -> std::result::Result where S: Serializer, @@ -23,6 +25,8 @@ impl Serialize for Private { } impl<'de> Deserialize<'de> for Private { + /// Deserialise the [Private] data from it's bytes representation of the TCG + /// TPM2B_PRIVATE structure. fn deserialize(deserializer: D) -> std::result::Result where D: Deserializer<'de>, diff --git a/tss-esapi/src/structures/tagged/public.rs b/tss-esapi/src/structures/tagged/public.rs index f29376da..b243e413 100644 --- a/tss-esapi/src/structures/tagged/public.rs +++ b/tss-esapi/src/structures/tagged/public.rs @@ -495,6 +495,8 @@ impl TryFrom for Public { impl_mu_standard!(Public, TPMT_PUBLIC); impl Serialize for Public { + /// Serialise the [Public] data into it's bytes representation of the TCG + /// TPMT_PUBLIC structure. fn serialize(&self, serializer: S) -> std::result::Result where S: Serializer, @@ -508,6 +510,8 @@ impl Serialize for Public { } impl<'de> Deserialize<'de> for Public { + /// Deserialise the [Public] data from it's bytes representation of the TCG + /// TPMT_PUBLIC structure. fn deserialize(deserializer: D) -> std::result::Result where D: Deserializer<'de>,