File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,7 @@ impl FieldElement {
306
306
FieldElement :: sqrt_ratio_i ( & FieldElement :: ONE , self )
307
307
}
308
308
309
+ #[ cfg( feature = "group" ) ]
309
310
/// Handle 48 bytes like a big integer and reduce mod order
310
311
/// i.e. big_int(48 bytes) % p
311
312
/// but without using any reduce methods
@@ -317,17 +318,16 @@ impl FieldElement {
317
318
// and the 2nd half as the lo value
318
319
let mut arr = [ 0u8 ; 32 ] ;
319
320
for i in 0 ..24 {
320
- arr[ i] = bytes[ 23 - i] ;
321
+ arr[ i] = bytes[ 23 - i] ;
321
322
}
322
323
let mut hi = FieldElement :: from_bytes ( & arr) ;
323
324
for i in 0 ..24 {
324
- arr[ i] = bytes[ 47 - i] ;
325
+ arr[ i] = bytes[ 47 - i] ;
325
326
}
326
327
let lo = FieldElement :: from_bytes ( & arr) ;
327
328
hi *= & FieldElement :: F_2_192 ;
328
329
& hi + & lo
329
330
}
330
-
331
331
}
332
332
333
333
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments