Trait sasl::common::scram::ScramProvider
source · pub trait ScramProvider {
type Secret: Secret;
// Required methods
fn name() -> &'static str;
fn hash(data: &[u8]) -> Vec<u8>;
fn hmac(data: &[u8], key: &[u8]) -> Result<Vec<u8>, InvalidLength>;
fn derive(
data: &Password,
salt: &[u8],
iterations: u32
) -> Result<Vec<u8>, DeriveError>;
}
Available on crate feature
scram
only.Expand description
A trait which defines the needed methods for SCRAM.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.