Expose expand_message_xmd

This commit is contained in:
daxpedda
2021-07-08 18:55:53 -07:00
committed by Kevin Lewi
parent 52d68d6f77
commit ff54d32fdd
+3 -3
View File
@@ -75,9 +75,9 @@ fn xor(x: &[u8], y: &[u8]) -> Result<Vec<u8>, InternalPakeError> {
Ok(x.iter().zip(y).map(|(&x1, &x2)| x1 ^ x2).collect())
}
// Corresponds to the expand_message_xmd() function defined in
// https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-10.txt
pub(crate) fn expand_message_xmd<H: Hash>(
/// Corresponds to the expand_message_xmd() function defined in
/// https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-10.txt
pub fn expand_message_xmd<H: Hash>(
msg: &[u8],
dst: &[u8],
len_in_bytes: usize,