crypto: fix build with Go 1.5

pull/17440/head
Felix Lange 9 years ago committed by Jeffrey Wilcke
parent 0cdc7647aa
commit 0397c66c4d
  1. 9
      crypto/curve.go

@ -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.

Loading…
Cancel
Save