File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
crypto/src/math/ec/rfc8032 Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -670,9 +670,12 @@ public static void Precompute()
670
670
671
671
ds [ t ] = PointCopy ( p ) ;
672
672
673
- for ( int s = 1 ; s < PrecompSpacing ; ++ s )
673
+ if ( b + t != PrecompBlocks + PrecompTeeth - 2 )
674
674
{
675
- PointDouble ( p ) ;
675
+ for ( int s = 1 ; s < PrecompSpacing ; ++ s )
676
+ {
677
+ PointDouble ( p ) ;
678
+ }
676
679
}
677
680
}
678
681
Original file line number Diff line number Diff line change @@ -622,9 +622,12 @@ public static void Precompute()
622
622
623
623
ds [ t ] = PointCopy ( p ) ;
624
624
625
- for ( int s = 1 ; s < PrecompSpacing ; ++ s )
625
+ if ( b + t != PrecompBlocks + PrecompTeeth - 2 )
626
626
{
627
- PointDouble ( p ) ;
627
+ for ( int s = 1 ; s < PrecompSpacing ; ++ s )
628
+ {
629
+ PointDouble ( p ) ;
630
+ }
628
631
}
629
632
}
630
633
You can’t perform that action at this time.
0 commit comments