Struct sasl::mechanisms::Sha256
[−]
[src]
pub struct Sha256;
A ScramProvider
which provides SCRAM-SHA-256 and SCRAM-SHA-256-PLUS
Trait Implementations
impl ScramProvider for Sha256
[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.