Skip to main content

hash_scram_password_with_salt

Function hash_scram_password_with_salt 

Source
pub fn hash_scram_password_with_salt(
    password: &[u8],
    mechanism: SaslMechanism,
    iterations: u32,
    salt: Vec<u8>,
) -> ScramCredential
Expand description

Test-only entry that lets callers fix the salt for golden vectors.

ยงPanics

Panics if validated key material has an impossible size or synchronized credential state is poisoned.