Skip to content

Commit

Permalink
Fix From<u64> impl on Scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed May 27, 2022
1 parent 2097fec commit 22ef9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p384/src/arithmetic/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl From<ScalarCore<NistP384>> for Scalar {
impl From<u64> for Scalar {
fn from(n: u64) -> Scalar {
let mut limbs = NonMontFe::default();
limbs[limbs.len() - 1] = n;
limbs[0] = n;
let mut fe = Fe::default();
fiat_p384_scalar_to_montgomery(&mut fe, &limbs);
Scalar(fe)
Expand Down

0 comments on commit 22ef9b4

Please sign in to comment.