pub struct CryptoHeader<'a> {
pub fixed: CryptoHeaderFixed,
pub kdf_params: KdfParams,
pub extensions: Vec<ExtensionTlv<'a>>,
pub header_hmac: [u8; 32],
pub hmac_covered_bytes: &'a [u8],
}Fields§
§fixed: CryptoHeaderFixed§kdf_params: KdfParams§extensions: Vec<ExtensionTlv<'a>>§header_hmac: [u8; 32]§hmac_covered_bytes: &'a [u8]Implementations§
Source§impl<'a> CryptoHeader<'a>
impl<'a> CryptoHeader<'a>
pub fn parse( bytes: &'a [u8], volume_crypto_header_length: u32, ) -> Result<Self, FormatError>
pub fn validate_extension_semantics(&self) -> Result<(), FormatError>
Trait Implementations§
Source§impl<'a> Clone for CryptoHeader<'a>
impl<'a> Clone for CryptoHeader<'a>
Source§fn clone(&self) -> CryptoHeader<'a>
fn clone(&self) -> CryptoHeader<'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 CryptoHeader<'a>
impl<'a> Debug for CryptoHeader<'a>
Source§impl<'a> PartialEq for CryptoHeader<'a>
impl<'a> PartialEq for CryptoHeader<'a>
Source§fn eq(&self, other: &CryptoHeader<'a>) -> bool
fn eq(&self, other: &CryptoHeader<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for CryptoHeader<'a>
impl<'a> StructuralPartialEq for CryptoHeader<'a>
Auto Trait Implementations§
impl<'a> Freeze for CryptoHeader<'a>
impl<'a> RefUnwindSafe for CryptoHeader<'a>
impl<'a> Send for CryptoHeader<'a>
impl<'a> Sync for CryptoHeader<'a>
impl<'a> Unpin for CryptoHeader<'a>
impl<'a> UnsafeUnpin for CryptoHeader<'a>
impl<'a> UnwindSafe for CryptoHeader<'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