Skip to content

Commit 41689be

Browse files
committed
forgot conditional compile flag
Signed-off-by: Michael Lodder <[email protected]>
1 parent 73ab30f commit 41689be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

curve25519-dalek/src/field.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ impl FieldElement {
306306
FieldElement::sqrt_ratio_i(&FieldElement::ONE, self)
307307
}
308308

309+
#[cfg(feature = "group")]
309310
/// Handle 48 bytes like a big integer and reduce mod order
310311
/// i.e. big_int(48 bytes) % p
311312
/// but without using any reduce methods
@@ -317,17 +318,16 @@ impl FieldElement {
317318
// and the 2nd half as the lo value
318319
let mut arr = [0u8; 32];
319320
for i in 0..24 {
320-
arr[i] = bytes[23-i];
321+
arr[i] = bytes[23 - i];
321322
}
322323
let mut hi = FieldElement::from_bytes(&arr);
323324
for i in 0..24 {
324-
arr[i] = bytes[47-i];
325+
arr[i] = bytes[47 - i];
325326
}
326327
let lo = FieldElement::from_bytes(&arr);
327328
hi *= &FieldElement::F_2_192;
328329
&hi + &lo
329330
}
330-
331331
}
332332

333333
#[cfg(test)]

0 commit comments

Comments
 (0)