Skip to content

Commit

Permalink
FieldElement.Inverse: remove useless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
bwesterb committed Jun 16, 2018
1 parent 5251d1f commit 38694ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions edwards25519/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,7 @@ func (fe *FieldElement) Inverse(a *FieldElement) *FieldElement {

t0.Square(a)
t1.Square(&t0)
for i = 1; i < 2; i++ {
t1.Square(&t1)
}
t1.Square(&t1)
t1.Mul(a, &t1)
t0.Mul(&t0, &t1)
t2.Square(&t0)
Expand Down

0 comments on commit 38694ea

Please sign in to comment.