pub struct PasswordSection {
pub salt: [u8; 16],
pub iterations: u32,
pub memory_kib: u32,
pub parallelism: u8,
pub wrapped_key: [u8; 40],
}Expand description
The fixed 65-byte password section.
Fields§
§salt: [u8; 16]Argon2id salt.
iterations: u32Argon2id time cost.
memory_kib: u32Argon2id memory cost in KiB.
parallelism: u8Argon2id lanes.
wrapped_key: [u8; 40]The session key wrapped with the derived KEK.
Trait Implementations§
Source§impl Clone for PasswordSection
impl Clone for PasswordSection
Source§fn clone(&self) -> PasswordSection
fn clone(&self) -> PasswordSection
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 moreimpl Copy for PasswordSection
Source§impl Debug for PasswordSection
impl Debug for PasswordSection
impl Eq for PasswordSection
Source§impl PartialEq for PasswordSection
impl PartialEq for PasswordSection
impl StructuralPartialEq for PasswordSection
Auto Trait Implementations§
impl Freeze for PasswordSection
impl RefUnwindSafe for PasswordSection
impl Send for PasswordSection
impl Sync for PasswordSection
impl Unpin for PasswordSection
impl UnsafeUnpin for PasswordSection
impl UnwindSafe for PasswordSection
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