MCPcopy
hub / github.com/tjfoc/gmsm / zForAffine

Function zForAffine

sm2/p256.go:109–115  ·  view source on GitHub ↗
(x, y *big.Int)

Source from the content-addressed store, hash-verified

107}
108
109func zForAffine(x, y *big.Int) *big.Int {
110 z := new(big.Int)
111 if x.Sign() != 0 || y.Sign() != 0 {
112 z.SetInt64(1)
113 }
114 return z
115}
116
117func (curve sm2P256Curve) Add(x1, y1, x2, y2 *big.Int) (*big.Int, *big.Int) {
118 var X1, Y1, Z1, X2, Y2, Z2, X3, Y3, Z3 sm2P256FieldElement

Callers 2

AddMethod · 0.85
DoubleMethod · 0.85

Calls 1

SignMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…