pub struct SectionHashEntry<'a> {
pub reference_type: u8,
pub reference: &'a [u8],
pub hash: &'a [u8],
}Expand description
One entry in the authentication message section-hash loop (§9.4.3 Table 42).
Each entry pairs a reference (locating the payload section the hash covers)
with the truncated hash itself. reference length is the 4-bit
reference_length; hash length is the section-wide section_hash_length.
Fields§
§reference_type: u84-bit reference_type (§9.4.3 Table 45): 1 = same ES, 2 = component_tag ES.
reference: &'a [u8]reference_byte field — its semantics depend on reference_type.
hash: &'a [u8]The (possibly truncated) section hash, section_hash_length bytes.
Trait Implementations§
Source§impl<'a> Clone for SectionHashEntry<'a>
impl<'a> Clone for SectionHashEntry<'a>
Source§fn clone(&self) -> SectionHashEntry<'a>
fn clone(&self) -> SectionHashEntry<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SectionHashEntry<'a>
impl<'a> Debug for SectionHashEntry<'a>
impl<'a> Eq for SectionHashEntry<'a>
Source§impl<'a> PartialEq for SectionHashEntry<'a>
impl<'a> PartialEq for SectionHashEntry<'a>
Source§fn eq(&self, other: &SectionHashEntry<'a>) -> bool
fn eq(&self, other: &SectionHashEntry<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for SectionHashEntry<'a>
impl<'a> Serialize for SectionHashEntry<'a>
impl<'a> StructuralPartialEq for SectionHashEntry<'a>
Source§impl<'a> Yokeable<'a> for SectionHashEntry<'static>
impl<'a> Yokeable<'a> for SectionHashEntry<'static>
Source§type Output = SectionHashEntry<'a>
type Output = SectionHashEntry<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for SectionHashEntry<'a>
impl<'a> RefUnwindSafe for SectionHashEntry<'a>
impl<'a> Send for SectionHashEntry<'a>
impl<'a> Sync for SectionHashEntry<'a>
impl<'a> Unpin for SectionHashEntry<'a>
impl<'a> UnsafeUnpin for SectionHashEntry<'a>
impl<'a> UnwindSafe for SectionHashEntry<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more