/// The "h" function defined in the SCRAM RFC.
The "h" function defined in the SCRAM RFC.
The " h " function defined in the SCRAM RFC .
fn h(&self, str: &[u8]) -> Vec<u8> {
        match self {
            ScramVersion::Sha1 => hash::<Sha1>(str),
            ScramVersion::Sha256 => hash::<Sha256>(str),
        }
    }
fn h ( & self , str : & [ u8 ] ) -> Vec < u8 > { match self { ScramVersion :: Sha1 => hash :: < Sha1 > ( str ) , ScramVersion :: Sha256 => hash :: < Sha256 > ( str ) , } }
The "h" function defined in the SCRAM RFC.
The " h " function defined in the SCRAM RFC .
&self
str
&[u8]