Skip to main content

scram_hash_len

Function scram_hash_len 

Source
pub fn scram_hash_len(mechanism: SaslMechanism) -> usize
Expand description

Output byte length of the underlying hash function for a SCRAM mechanism.

The length is 32 for SHA-256 and 64 for SHA-512. This function panics on a non-SCRAM mechanism.

ยงPanics

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