[][src]Struct argon2::OwnedContext

pub struct OwnedContext {
    pub out: Vec<u8>,
    pub pwd: Option<Vec<u8>>,
    pub salt: Option<Vec<u8>>,
    pub secret: Option<Vec<u8>>,
    pub ad: Option<Vec<u8>>,
    pub t_cost: u32,
    pub m_cost: u32,
    pub lanes: u32,
    pub threads: u32,
    pub version: Version,
    pub flags: Flags,
}

Structure to hold Argon2 inputs. Unlike Context, this version owns all of the input values.

Fields

out: Vec<u8>

Output array.

pwd: Option<Vec<u8>>

Password array.

salt: Option<Vec<u8>>

Salt array.

secret: Option<Vec<u8>>

Secret array.

ad: Option<Vec<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 OwnedContext[src]

pub fn borrowed<'a>(&'a mut self) -> Context<'a, 'a, 'a, 'a, 'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]