Holds an MDC packet.
A modification detection code packet. This packet appears after a SEIP packet. See Section 5.14 of RFC 4880 for details.
Creates an MDC packet.
Gets the packet's hash value.
pub fn computed_hash(&self) -> &[u8][src]
Gets the computed hash value.
Returns whether the data protected by the MDC is valid.
impl SerializeInto for MDC[src]
fn serialized_len(&self) -> usize[src]
Serializes the packet to a vector.
fn from_reader<R: 'a + Read>(reader: R) -> Result<Self>[src]
Reads from the given file. Read more
Reads from the given slice. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from
source. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
Feeds a slice of this type into the given [
Hasher]. Read more
type Error = Infallible
The type returned in the event of a conversion error.