Skip to main content

hash_legacy

Function hash_legacy 

Source
pub fn hash_legacy(
    mechanism: AuthMechanism,
    challenge: &[u8],
    secret: &[u8],
) -> Option<Vec<u8>>
Expand description

Mechanisms 3 (MD5) and 4 (SHA-1): f(challenge) = HASH(challenge ‖ secret).

Returns None for other mechanisms.