Expose expand_message_xmd
This commit is contained in:
+3
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user