crypto/elliptic.CurveParams.N (field)
19 uses
crypto/elliptic (current package)
elliptic.go#L76: N := curve.Params().N
nistec.go#L23: N: bigFromDecimal("26959946667150639794667015087019625940457807714424391721682722368061"),
nistec.go#L44: N: bigFromDecimal("115792089210356248762697446949407573529996955224135760342422259061068512044369"),
nistec.go#L62: N: bigFromDecimal("394020061963944792122790401001436138050797392704654" +
nistec.go#L85: N: bigFromDecimal("68647976601306097149819007990813932172694353001433" +
nistec.go#L197: byteSize := (curve.params.N.BitLen() + 7) / 8
nistec.go#L203: s.Mod(s, curve.params.N)
nistec_p256.go#L19: if k.Cmp(c.params.N) >= 0 {
nistec_p256.go#L21: k = new(big.Int).Mod(k, c.params.N)
params.go#L17: N *big.Int // the order of the base point
crypto/ecdsa
ecdsa.go#L100: size := (k.Curve.Params().N.BitLen() + 7) / 8
ecdsa.go#L667: c.N, err = bigmod.NewModulusFromBig(params.N)
ecdsa.go#L671: c.nMinus2 = new(big.Int).Sub(params.N, big.NewInt(2)).Bytes()
ecdsa_legacy.go#L37: orderBits := c.Params().N.BitLen()
ecdsa_legacy.go#L81: N := c.Params().N
ecdsa_legacy.go#L137: N := c.Params().N
ecdsa_legacy.go#L175: N := c.Params().N
crypto/x509
sec1.go#L61: privateKey := make([]byte, (key.Curve.Params().N.BitLen()+7)/8)
sec1.go#L110: curveOrder := curve.Params().N
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |