Struct libpasta::config::DEFAULT_ALG [−]
pub struct DEFAULT_ALG { /* fields omitted */ }
Default algorithm to use for new hash computations.
Methods from __Deref<Target = Algorithm>
pub fn hash(&self, password: &str) -> Output
[src]
pub fn hash(&self, password: &str) -> Output
Type-safe function to compute the hash of a password.
pub fn hash_with_salt(&self, password: &[u8], salt: &[u8]) -> Vec<u8>
[src]
pub fn hash_with_salt(&self, password: &[u8], salt: &[u8]) -> Vec<u8>
Computes the hash output for given password and salt.
pub fn verify(&self, password: &[u8], salt: &[u8], hash: &[u8]) -> bool
[src]
pub fn verify(&self, password: &[u8], salt: &[u8], hash: &[u8]) -> bool
Verifies the password, salt and hash are matching by recursively re-computing the hash and verifying the final value.
pub fn needs_migrating(&self, prim: &Primitive) -> bool
[src]
pub fn needs_migrating(&self, prim: &Primitive) -> bool
Test whether the current 'Algorithm` is sufficiently secure.
pub fn to_wrapped(&self, outer: Primitive) -> Self
[src]
pub fn to_wrapped(&self, outer: Primitive) -> Self
Copies self
into a new Algorithm
wrapped by outer
Trait Implementations
impl __Deref for DEFAULT_ALG
impl __Deref for DEFAULT_ALG
type Target = Algorithm
The resulting type after dereferencing.
fn deref(&self) -> &Algorithm
fn deref(&self) -> &Algorithm
Dereferences the value.
impl LazyStatic for DEFAULT_ALG
impl LazyStatic for DEFAULT_ALG
fn initialize(lazy: &Self)
fn initialize(lazy: &Self)
Auto Trait Implementations
impl Send for DEFAULT_ALG
impl Send for DEFAULT_ALG
impl Sync for DEFAULT_ALG
impl Sync for DEFAULT_ALG