Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Kwiatkowski committed Feb 28, 2019
1 parent d1ee3b1 commit d2f0f90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/isogeny/curve_ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ func (c *CurveOperations) Fp2ToBytes(output []byte, fp2 *Fp2Element) {
// convert to bytes in little endian form
for i := 0; i < c.Params.Bytelen; i++ {
// set i = j*8 + k
fp2 := i / 8
tmp := i / 8
k := uint64(i % 8)
output[i] = byte(a.A[fp2] >> (8 * k))
output[i+c.Params.Bytelen] = byte(a.B[fp2] >> (8 * k))
output[i] = byte(a.A[tmp] >> (8 * k))
output[i+c.Params.Bytelen] = byte(a.B[tmp] >> (8 * k))
}
}

Expand Down

3 comments on commit d2f0f90

@78877i
Copy link

@78877i 78877i commented on d2f0f90 Apr 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bc1qu0xvwp0cvglxmsc6lyyw6tktdlvlspta506mrd

@78877i
Copy link

@78877i 78877i commented on d2f0f90 Apr 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bc1qu0xvwp0cvglxmsc6lyyw6tktdlvlspta506mrd

#30

@78877i
Copy link

@78877i 78877i commented on d2f0f90 Apr 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.