]> Cypherpunks.ru repositories - gogost.git/blobdiff - gost3410/curve.go
Slightly more endianness documentation
[gogost.git] / gost3410 / curve.go
index 42b7e465476f28cf6a9a8401370fd451e4628748..6cc113548e3d6fff5a0d851408ad4a70dd8f434d 100644 (file)
@@ -88,6 +88,8 @@ 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)
 }