Skip to content

Commit

Permalink
Add reference to regular/pre-hash domain separation in FIPS 204
Browse files Browse the repository at this point in the history
  • Loading branch information
jschneider-bensch committed Oct 1, 2024
1 parent 7434ebc commit 243b812
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libcrux-ml-dsa/src/ml_dsa_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,12 @@ pub(crate) fn verify_pre_hashed<
/// string within the buffer.
/// If a pre_hash option is provided the domain separated context
/// string is extended by the pre-hash OID.
///
/// Refer to line 10 of Algorithm 2 (and line 5 of Algorithm 3, resp.) in [FIPS
/// 204](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf#section.5)
/// for details on the domain separation for regular ML-DSA. Line
/// 23 of Algorithm 4 (and line 18 of Algorithm 5,resp.) describe domain separation for the HashMl-DSA
/// variant.
fn domain_separate_context(
context: &[u8],
pre_hash_oid: Option<&PreHashOID>,
Expand Down

0 comments on commit 243b812

Please sign in to comment.