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 {
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) ]
You can’t perform that action at this time.
0 commit comments