pub struct Context<'a> {
pub config: Config<'a>,
pub lane_length: u32,
pub memory_blocks: u32,
pub pwd: &'a [u8],
pub salt: &'a [u8],
pub segment_length: u32,
}Expand description
Structure containing settings for the Argon2 algorithm. A combination of the original argon2_context and argon2_instance_t.
Fields§
§config: Config<'a>The config for this context.
lane_length: u32The length of a lane.
memory_blocks: u32The number of memory blocks.
pwd: &'a [u8]The password.
salt: &'a [u8]The salt.
segment_length: u32The length of a segment.
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for Context<'a>
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'a>
impl<'a> UnwindSafe for Context<'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