crypto: fix build with Go 1.5

This commit is contained in:
Felix Lange 2015-07-27 19:13:45 +02:00
parent d18d256442
commit 453d2c9ce1
1 changed files with 8 additions and 1 deletions

View File

@ -60,7 +60,14 @@ type BitCurve struct {
} }
func (BitCurve *BitCurve) Params() *elliptic.CurveParams { 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. // IsOnBitCurve returns true if the given (x,y) lies on the BitCurve.