Skip to content

Commit 581020b

Browse files
committed
Rename method to oddMultiplesProjective.
1 parent 12209a4 commit 581020b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎ecc/p384/p384opt.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (c curve) scalarMultOmega(x1, y1 *big.Int, k []byte, omega uint) (x, y *big
9696

9797
var R projectivePoint
9898
Q := zeroPoint().toProjective()
99-
TabP := newAffinePoint(x1, y1).oddMultiplesProy(omega)
99+
TabP := newAffinePoint(x1, y1).oddMultiplesProjective(omega)
100100
for i := len(L) - 1; i > 0; i-- {
101101
for j := uint(0); j < omega-1; j++ {
102102
Q.completeAdd(Q, Q)

‎ecc/p384/point.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ func (ap affinePoint) oddMultiples(n uint) []jacobianPoint {
8787
return t
8888
}
8989

90-
// OddMultiplesProy calculates the points iP for i={1,3,5,7,..., 2^(n-1)-1}
90+
// oddMultiplesProjective calculates the points iP for i={1,3,5,7,..., 2^(n-1)-1}
9191
// Ensure that 1 < n < 31, otherwise it returns an empty slice.
92-
func (ap affinePoint) oddMultiplesProy(n uint) []projectivePoint {
92+
func (ap affinePoint) oddMultiplesProjective(n uint) []projectivePoint {
9393
var t []projectivePoint
9494
if n > 1 && n < 31 {
9595
P := ap.toProjective()

0 commit comments

Comments
 (0)