Skip to content

Commit

Permalink
k256: normalize before calling is_odd() in sng0() (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri authored and tarcieri committed Mar 15, 2022
1 parent d661ea9 commit 71ca52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k256/src/arithmetic/hash2curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl FromOkm for FieldElement {

impl Sgn0 for FieldElement {
fn sgn0(&self) -> Choice {
self.is_odd()
self.normalize().is_odd()
}
}

Expand Down

0 comments on commit 71ca52d

Please sign in to comment.