crypto/internal/fips140/ecdsa.Curve.N (field)
35 uses
crypto/internal/fips140/ecdsa (current package)
ecdsa.go#L58: N *bigmod.Modulus
ecdsa.go#L75: c.N, err = bigmod.NewModulus(order)
ecdsa.go#L79: two, _ := bigmod.NewNat().SetBytes([]byte{2}, c.N)
ecdsa.go#L80: c.nMinus2 = bigmod.NewNat().ExpandFor(c.N).Sub(two, c.N).Bytes(c.N)
ecdsa.go#L168: if len(D) != c.N.Size() {
ecdsa.go#L171: d, err := bigmod.NewNat().SetBytes(D, c.N)
ecdsa.go#L178: priv := &PrivateKey{pub: *pub, d: d.Bytes(c.N)}
ecdsa.go#L214: d: k.Bytes(c.N),
ecdsa.go#L228: b := make([]byte, c.N.Size())
ecdsa.go#L242: if excess := len(b)*8 - c.N.BitLen(); excess > 0 {
ecdsa.go#L256: if k, err := bigmod.NewNat().SetBytes(b, c.N); err == nil && k.IsZero() == 0 {
ecdsa.go#L257: p, err := c.newPoint().ScalarBaseMult(k.Bytes(c.N))
ecdsa.go#L329: return e.Bytes(c.N)
ecdsa.go#L351: r, err := bigmod.NewNat().SetOverflowingBytes(Rx, c.N)
ecdsa.go#L366: s, err := bigmod.NewNat().SetBytes(priv.d, c.N)
ecdsa.go#L370: s.Mul(r, c.N)
ecdsa.go#L371: s.Add(e, c.N)
ecdsa.go#L372: s.Mul(kInv, c.N)
ecdsa.go#L379: return &Signature{r.Bytes(c.N), s.Bytes(c.N)}, nil
ecdsa.go#L385: kBytes, err := c.ordInverse(k.Bytes(c.N))
ecdsa.go#L388: _, err := kInv.SetBytes(kBytes, c.N)
ecdsa.go#L398: kInv.Exp(k, c.nMinus2, c.N)
ecdsa.go#L408: if size := c.N.Size(); len(hash) >= size {
ecdsa.go#L410: if excess := len(hash)*8 - c.N.BitLen(); excess > 0 {
ecdsa.go#L414: _, err := e.SetOverflowingBytes(hash, c.N)
ecdsa.go#L463: r, err := bigmod.NewNat().SetBytes(sig.R, c.N)
ecdsa.go#L470: s, err := bigmod.NewNat().SetBytes(sig.S, c.N)
ecdsa.go#L486: p1, err := c.newPoint().ScalarBaseMult(e.Mul(w, c.N).Bytes(c.N))
ecdsa.go#L491: p2, err := Q.ScalarMult(Q, w.Mul(r, c.N).Bytes(c.N))
ecdsa.go#L501: v, err := bigmod.NewNat().SetOverflowingBytes(Rx, c.N)
 |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |