Struct sasl::mechanisms::Sha1
[−]
[src]
pub struct Sha1;
A ScramProvider
which provides SCRAM-SHA-1 and SCRAM-SHA-1-PLUS
Trait Implementations
impl ScramProvider for Sha1
[src]
fn name() -> &'static str
The name of the hash function.
fn hash(data: &[u8]) -> Vec<u8>
A function which hashes the data using the hash function.
fn hmac(data: &[u8], key: &[u8]) -> Vec<u8>
A function which performs an HMAC using the hash function.
fn derive(data: &[u8], salt: &[u8], iterations: usize) -> Vec<u8>
A function which does PBKDF2 key derivation using the hash function.