aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-07-28 06:59:52 +0800
committerFelix Lange <fjl@twurst.com>2015-07-28 06:59:52 +0800
commit572e78cee056951c12cfc1c941b48b0fcc1ed6ed (patch)
tree189b425236c9f133a3855228274ca129378fe332
parentd18d256442e2dc3413ebd9f571e1a5f6be366c09 (diff)
parent453d2c9ce16c4405b297a2c4f1136661896da5c6 (diff)
downloaddexon-572e78cee056951c12cfc1c941b48b0fcc1ed6ed.tar
dexon-572e78cee056951c12cfc1c941b48b0fcc1ed6ed.tar.gz
dexon-572e78cee056951c12cfc1c941b48b0fcc1ed6ed.tar.bz2
dexon-572e78cee056951c12cfc1c941b48b0fcc1ed6ed.tar.lz
dexon-572e78cee056951c12cfc1c941b48b0fcc1ed6ed.tar.xz
dexon-572e78cee056951c12cfc1c941b48b0fcc1ed6ed.tar.zst
dexon-572e78cee056951c12cfc1c941b48b0fcc1ed6ed.zip
Merge pull request #1536 from fjl/fix-go1.5-build
crypto: fix build with Go 1.5
-rw-r--r--crypto/curve.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/curve.go b/crypto/curve.go
index 841766a30..48f3f5e9c 100644
--- a/crypto/curve.go
+++ b/crypto/curve.go
@@ -60,7 +60,14 @@ type BitCurve struct {
}
func (BitCurve *BitCurve) Params() *elliptic.CurveParams {
- return &elliptic.CurveParams{BitCurve.P, BitCurve.N, BitCurve.B, BitCurve.Gx, BitCurve.Gy, BitCurve.BitSize}
+ return &elliptic.CurveParams{
+ P: BitCurve.P,
+ N: BitCurve.N,
+ B: BitCurve.B,
+ Gx: BitCurve.Gx,
+ Gy: BitCurve.Gy,
+ BitSize: BitCurve.BitSize,
+ }
}
// IsOnBitCurve returns true if the given (x,y) lies on the BitCurve.