Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwample committed Jun 29, 2024
1 parent 00e7204 commit 43cf3de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/obfs4/src/common/x25519_elligator2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ mod test {

// check if the public key derived from the representative (top bit 0)
// is off the subgroup
let mut yr_255 = repr.clone();
let mut yr_255 = repr;
yr_255[31] &= 0xbf;
let pk_255 = EdwardsPoint::from_representative::<RFC9380>(&yr_255)
.expect("from_repr_255, should never fail");
Expand All @@ -383,7 +383,7 @@ mod test {

// check if the public key derived from the representative (top two bits 0 - as
// our representatives are) is off the subgroup.
let mut yr_254 = repr.clone();
let mut yr_254 = repr;
yr_254[31] &= 0x3f;
let pk_254 = EdwardsPoint::from_representative::<RFC9380>(&yr_254)
.expect("from_repr_254, should never fail");
Expand Down

0 comments on commit 43cf3de

Please sign in to comment.