pub struct Header(/* private fields */);Expand description
A complete fixed-size FLOE header.
The encoded parameters are not authenticated until decryption initialization succeeds.
Implementations§
Source§impl Header
impl Header
Sourcepub fn unverified_parameters(&self) -> Result<Parameters>
pub fn unverified_parameters(&self) -> Result<Parameters>
Decodes the parameter set declared by this header.
This does not authenticate the header. Do not trust the result until
start_decryption or start_decryption_inferred successfully
authenticates the header.
§Errors
Returns Error::InvalidHeaderParameters if the encoded parameter set
is not supported.
Trait Implementations§
impl Copy for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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