[−][src]Struct libpasta::primitives::Argon2
Parameter set for Argon2.
This implementation is backed by the argon2rs
crate.
Implementations
impl Argon2
[src]
pub fn default() -> Primitive
[src]
Get the default Argon2i parameter set
pub fn new(passes: u32, lanes: u32, kib: u32) -> Primitive
[src]
Creates a new Argon2i instance
Trait Implementations
impl Debug for Argon2
[src]
impl PrimitiveImpl for Argon2
[src]
pub fn compute<'a>(&'a self, password: &[u8], salt: &[u8]) -> Vec<u8>
[src]
pub fn params_as_vec(&self) -> Vec<(&'static str, String)>
[src]
pub fn hash_id(&self) -> Hashes
[src]
pub fn verify(&self, password: &[u8], salt: &[u8], hash: &[u8]) -> bool
[src]
pub fn update_key(&self, _config: &Config) -> Option<Primitive>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Argon2
impl Send for Argon2
impl Sync for Argon2
impl Unpin for Argon2
impl UnwindSafe for Argon2
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub 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>,