pub struct EncryptedHeader {
pub version: u8,
pub salt: [u8; 32],
pub nonce: [u8; 12],
}Expand description
Encrypted file header
Fields§
§version: u8Format version
salt: [u8; 32]Salt for key derivation
nonce: [u8; 12]Nonce for encryption
Implementations§
Trait Implementations§
Source§impl Clone for EncryptedHeader
impl Clone for EncryptedHeader
Source§fn clone(&self) -> EncryptedHeader
fn clone(&self) -> EncryptedHeader
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 Debug for EncryptedHeader
impl Debug for EncryptedHeader
Auto Trait Implementations§
impl Freeze for EncryptedHeader
impl RefUnwindSafe for EncryptedHeader
impl Send for EncryptedHeader
impl Sync for EncryptedHeader
impl Unpin for EncryptedHeader
impl UnsafeUnpin for EncryptedHeader
impl UnwindSafe for EncryptedHeader
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