rustfmt src/backend/vector/scalar_mul (no changes besides formatting)

This commit is contained in:
Jan Bujak 2023-04-11 11:13:28 +00:00
parent 0db8783be8
commit 219995dbc9
No known key found for this signature in database
GPG key ID: 3B438F83D43341D4
5 changed files with 402 additions and 406 deletions

View file

@ -174,5 +174,4 @@ mod test {
} }
} }
} }
} }

View file

@ -124,5 +124,4 @@ impl VartimePrecomputedMultiscalarMul for VartimePrecomputedStraus {
Some(R.into()) Some(R.into())
} }
} }
} }

View file

@ -121,5 +121,4 @@ impl VartimeMultiscalarMul for Straus {
Some(Q.into()) Some(Q.into())
} }
} }
} }

View file

@ -41,5 +41,4 @@ pub fn mul(point: &EdwardsPoint, scalar: &Scalar) -> EdwardsPoint {
} }
Q.into() Q.into()
} }
} }

View file

@ -62,7 +62,8 @@ pub fn mul(a: &Scalar, A: &EdwardsPoint, b: &Scalar) -> EdwardsPoint {
let table_B = &BASEPOINT_ODD_LOOKUP_TABLE; let table_B = &BASEPOINT_ODD_LOOKUP_TABLE;
#[cfg(not(feature = "precomputed-tables"))] #[cfg(not(feature = "precomputed-tables"))]
let table_B = &NafLookupTable5::<CachedPoint>::from(&crate::constants::ED25519_BASEPOINT_POINT); let table_B =
&NafLookupTable5::<CachedPoint>::from(&crate::constants::ED25519_BASEPOINT_POINT);
let mut Q = ExtendedPoint::identity(); let mut Q = ExtendedPoint::identity();
@ -97,5 +98,4 @@ pub fn mul(a: &Scalar, A: &EdwardsPoint, b: &Scalar) -> EdwardsPoint {
Q.into() Q.into()
} }
} }