Struct pbkdf2::Pbkdf2 [−][src]
This is supported on crate feature
simple
only.PBKDF2 type for use with PasswordHasher
.
Trait Implementations
impl Clone for Pbkdf2
[src]
impl Copy for Pbkdf2
[src]
impl Debug for Pbkdf2
[src]
impl Eq for Pbkdf2
[src]
impl McfHasher for Pbkdf2
[src]
fn upgrade_mcf_hash<'a>(
&self,
hash: &'a str
) -> Result<PasswordHash<'a>, HasherError>
[src]
&self,
hash: &'a str
) -> Result<PasswordHash<'a>, HasherError>
pub fn verify_mcf_hash(
&self,
password: &[u8],
mcf_hash: &str
) -> Result<(), VerifyError> where
Self: PasswordVerifier,
[src]
&self,
password: &[u8],
mcf_hash: &str
) -> Result<(), VerifyError> where
Self: PasswordVerifier,
impl PartialEq<Pbkdf2> for Pbkdf2
[src]
impl PasswordHasher for Pbkdf2
[src]
type Params = Params
Algorithm-specific parameters.
fn hash_password<'a>(
&self,
password: &[u8],
alg_id: Option<Ident<'a>>,
version: Option<Decimal>,
params: Params,
salt: Salt<'a>
) -> Result<PasswordHash<'a>, HasherError>
[src]
&self,
password: &[u8],
alg_id: Option<Ident<'a>>,
version: Option<Decimal>,
params: Params,
salt: Salt<'a>
) -> Result<PasswordHash<'a>, HasherError>
pub fn hash_password_simple(
&self,
password: &[u8],
salt: &'a str
) -> Result<PasswordHash<'a>, HasherError>
[src]
&self,
password: &[u8],
salt: &'a str
) -> Result<PasswordHash<'a>, HasherError>
impl StructuralEq for Pbkdf2
[src]
impl StructuralPartialEq for Pbkdf2
[src]
Auto Trait Implementations
impl RefUnwindSafe for Pbkdf2
impl Send for Pbkdf2
impl Sync for Pbkdf2
impl Unpin for Pbkdf2
impl UnwindSafe for Pbkdf2
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> PasswordVerifier for T where
T: PasswordHasher,
[src]
T: PasswordHasher,
pub fn verify_password(
&self,
password: &[u8],
hash: &PasswordHash<'_>
) -> Result<(), VerifyError>
[src]
&self,
password: &[u8],
hash: &PasswordHash<'_>
) -> Result<(), VerifyError>
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
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>,