Skip to content

Commit

Permalink
remove duplicated check in falcon verification
Browse files Browse the repository at this point in the history
Minor change removing a duplicated check of `h_digest==pubkey_com`at
`src/dsa/rpo_falcon512/signature.rs#L100`, which is already done at
`src/dsa/rpo_falcon512/signature.rs#L95`.
  • Loading branch information
arnaucube committed Jan 26, 2025
1 parent a424652 commit 38148bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.14.0 (TBD)

- [BREAKING] Increment minimum supported Rust version to 1.84.
- Removed duplicated check in RpoFalcon512 verification (#368).

## 0.13.2 (2025-01-24)

Expand Down
2 changes: 1 addition & 1 deletion src/dsa/rpo_falcon512/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Signature {
}

let c = hash_to_point_rpo256(message, &self.nonce);
h_digest == pubkey_com && verify_helper(&c, &self.s2, self.pk_poly())
verify_helper(&c, &self.s2, self.pk_poly())
}
}

Expand Down

0 comments on commit 38148bd

Please sign in to comment.