[−][src]Struct argon2::Context
Structure to hold Argon2 inputs.
Fields
out: &'o mut [u8]
Output array.
pwd: Option<&'p mut [u8]>
Password array.
salt: Option<&'sa mut [u8]>
Salt array.
secret: Option<&'se mut [u8]>
Secret array.
ad: Option<&'ad mut [u8]>
Associated data array.
t_cost: u32
Number of passes.
m_cost: u32
Amount of memory requested (KB)
lanes: u32
Number of lanes.
threads: u32
Maximum number of threads.
version: Version
Version number.
flags: Flags
Array of bool options
Methods
impl<'o, 'p, 'sa, 'se, 'ad> Context<'o, 'p, 'sa, 'se, 'ad>
[src]
pub const MIN_LANES: u32
[src]
Minimum number of lanes (degree of parallelism).
pub const MAX_LANES: u32
[src]
Maximum number of lanes (degree of parallelism).
pub const SYNC_POINTS: u32
[src]
Number of synchronization points between lanes per pass.
pub const MIN_THREADS: u32
[src]
Minimum number of threads.
pub const MAX_THREADS: u32
[src]
Maximum number of threads.
pub const MIN_OUTLEN: u32
[src]
Minimum digest size in bytes.
pub const MAX_OUTLEN: u32
[src]
Maximum digest size in bytes.
pub const MIN_TIME: u32
[src]
Minimum number of passes.
pub const MAX_TIME: u32
[src]
Maximum number of passes.
pub const MIN_PWD_LENGTH: u32
[src]
Minimum password length in bytes.
pub const MAX_PWD_LENGTH: u32
[src]
Maximum password length in bytes.
pub const MIN_AD_LENGTH: u32
[src]
Minimum associated data length in bytes.
pub const MAX_AD_LENGTH: u32
[src]
Maximum associated data length in bytes.
pub const MIN_SALT_LENGTH: u32
[src]
Minimum salt length in bytes.
pub const MAX_SALT_LENGTH: u32
[src]
Maximum salt length in bytes.
pub const MIN_SECRET_LENGTH: u32
[src]
Minimum key length in bytes.
pub const MAX_SECRET_LENGTH: u32
[src]
Maximum key length in bytes.
Auto Trait Implementations
impl<'o, 'p, 'sa, 'se, 'ad> Send for Context<'o, 'p, 'sa, 'se, 'ad>
impl<'o, 'p, 'sa, 'se, 'ad> Sync for Context<'o, 'p, 'sa, 'se, 'ad>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,