From 453d2c9ce16c4405b297a2c4f1136661896da5c6 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 27 Jul 2015 19:13:45 +0200 Subject: [PATCH] crypto: fix build with Go 1.5 --- crypto/curve.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crypto/curve.go b/crypto/curve.go index 841766a304..48f3f5e9ce 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.