MCPcopy
hub / github.com/OpenNHP/opennhp / Params

Method Params

endpoints/kgc/curve/curve.go:193–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191}
192
193func (c *OfficialSM2Curve) Params() *CurveParams {
194 A := new(big.Int).Mod(big.NewInt(-3), c.curve.Params().P)
195
196 return &CurveParams{
197 P: c.curve.Params().P,
198 N: c.curve.Params().N,
199 A: A,
200 B: c.curve.Params().B,
201 Gx: c.curve.Params().Gx,
202 Gy: c.curve.Params().Gy,
203 BitSize: c.curve.Params().BitSize,
204 Name: c.curve.Params().Name,
205 }
206}
207
208func (c *OfficialSM2Curve) IsOnCurve(x, y *big.Int) bool {
209 return c.curve.IsOnCurve(x, y)

Callers

nothing calls this directly

Calls 1

ParamsMethod · 0.65

Tested by

no test coverage detected