mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-11 21:31:09 +00:00
Whitespace fixes.
This commit is contained in:
parent
a89177f80e
commit
d549fdc8f9
3 changed files with 29 additions and 28 deletions
|
|
@ -454,6 +454,7 @@ impl FieldElement {
|
|||
|
||||
FieldElement(limbs)
|
||||
}
|
||||
|
||||
#[cfg(not(feature="radix_51"))]
|
||||
fn reduce(input: &[i64; 10]) -> FieldElement { //FeCombine
|
||||
let mut c = [0i64;10];
|
||||
|
|
@ -964,6 +965,7 @@ impl FieldElement {
|
|||
|
||||
h
|
||||
}
|
||||
|
||||
#[cfg(feature="radix_51")]
|
||||
#[inline(always)]
|
||||
fn square_inner(&self) -> [u64; 5] {
|
||||
|
|
@ -1170,8 +1172,7 @@ impl FieldElement {
|
|||
/// - `(0u8, zero)` if `v` is zero;
|
||||
/// - `(0u8, garbage)` if `u/v` is nonsquare.
|
||||
///
|
||||
pub fn sqrt_ratio(u: &FieldElement, v: &FieldElement)
|
||||
-> (u8, FieldElement) {
|
||||
pub fn sqrt_ratio(u: &FieldElement, v: &FieldElement) -> (u8, FieldElement) {
|
||||
// Using the same trick as in ed25519 decoding, we merge the
|
||||
// inversion, the square root, and the square test as follows.
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue