Skip to content

Commit

Permalink
NFC EC: Reduce scope of constant ONE.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Oct 19, 2023
1 parent c3fda8b commit 9dd6141
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ec/suite_b/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ impl Point {
}
}

const ONE: Elem<Unencoded> = Elem::from_hex("1");

/// Operations and values needed by all curve operations.
pub struct CommonOps {
pub num_limbs: usize,
Expand Down Expand Up @@ -86,6 +84,7 @@ impl CommonOps {

#[inline]
pub fn elem_unencoded(&self, a: &Elem<R>) -> Elem<Unencoded> {
const ONE: Elem<Unencoded> = Elem::from_hex("1");
self.elem_product(a, &ONE)
}

Expand Down

0 comments on commit 9dd6141

Please sign in to comment.