Skip to content

Commit

Permalink
dudect clean: initial removal of expanded public/private key
Browse files Browse the repository at this point in the history
  • Loading branch information
eschorn1 committed Oct 15, 2024
1 parent 76c9ff0 commit 54a4959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,9 @@ macro_rules! functionality {
rng: &mut impl CryptoRngCore, message: &[u8],
) -> Result<[u8; SIG_LEN], &'static str> {
let (_pk, sk) = ml_dsa::key_gen::<true, K, L, PK_LEN, SK_LEN>(rng, ETA)?;
let esk = ml_dsa::sign_start::<true, K, L, SK_LEN>(ETA, &sk)?;
//let esk = ml_dsa::sign_start::<true, K, L, SK_LEN>(ETA, &sk)?;
let sig = ml_dsa::sign_finish::<true, K, L, LAMBDA_DIV4, SIG_LEN, SK_LEN, W1_LEN>(
rng, BETA, GAMMA1, GAMMA2, OMEGA, TAU, &esk, message, &[1], &[2], &[3], false
rng, BETA, GAMMA1, GAMMA2, OMEGA, TAU, &sk, message, &[1], &[2], &[3], false
)?;
Ok(sig)
}
Expand Down

0 comments on commit 54a4959

Please sign in to comment.