X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=gost3410%2Fcurve.go;h=6cc113548e3d6fff5a0d851408ad4a70dd8f434d;hb=0ad3c46736ab347028125436c7d8435003969f53;hp=3c2093aac7293f22e01bfa5cd21e689ac3b14dc4;hpb=33c64ca2cd4627d19976baa28e23c78630977a27;p=gogost.git diff --git a/gost3410/curve.go b/gost3410/curve.go index 3c2093a..6cc1135 100644 --- a/gost3410/curve.go +++ b/gost3410/curve.go @@ -88,8 +88,10 @@ func NewCurve(p, q, a, b, x, y, e, d, co *big.Int) (*Curve, error) { return &c, nil } +// Get the size of the point's coordinate in bytes. +// 32 for 256-bit curves, 64 for 512-bit ones. func (c *Curve) PointSize() int { - return PointSize(c.P) + return pointSize(c.P) } func (c *Curve) pos(v *big.Int) {