We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73ab30f commit 41689beCopy full SHA for 41689be
curve25519-dalek/src/field.rs
@@ -306,6 +306,7 @@ impl FieldElement {
306
FieldElement::sqrt_ratio_i(&FieldElement::ONE, self)
307
}
308
309
+ #[cfg(feature = "group")]
310
/// Handle 48 bytes like a big integer and reduce mod order
311
/// i.e. big_int(48 bytes) % p
312
/// but without using any reduce methods
@@ -317,17 +318,16 @@ impl FieldElement {
317
318
// and the 2nd half as the lo value
319
let mut arr = [0u8; 32];
320
for i in 0..24 {
- arr[i] = bytes[23-i];
321
+ arr[i] = bytes[23 - i];
322
323
let mut hi = FieldElement::from_bytes(&arr);
324
- arr[i] = bytes[47-i];
325
+ arr[i] = bytes[47 - i];
326
327
let lo = FieldElement::from_bytes(&arr);
328
hi *= &FieldElement::F_2_192;
329
&hi + &lo
330
-
331
332
333
#[cfg(test)]
0 commit comments