func crypto/internal/bigmod.NewNat
46 uses
crypto/internal/bigmod (current package)
nat.go#L70: func NewNat() *Nat {
nat.go#L320: rr := NewNat().ExpandFor(m)
nat.go#L361: m.nat = NewNat().setBig(n)
nat.go#L401: d := NewNat().resetFor(m)
nat.go#L489: t := NewNat().set(x)
nat.go#L504: t := NewNat().set(x)
nat.go#L541: one := NewNat().ExpandFor(m)
nat.go#L695: xR := NewNat().set(x).montgomeryRepresentation(m) // xR = x * R mod m
nat.go#L711: NewNat(), NewNat(), NewNat(), NewNat(), NewNat(),
nat.go#L712: NewNat(), NewNat(), NewNat(), NewNat(), NewNat(),
nat.go#L713: NewNat(), NewNat(), NewNat(), NewNat(), NewNat(),
nat.go#L723: tmp := NewNat().ExpandFor(m)
nat.go#L753: xR := NewNat().set(x).montgomeryRepresentation(m)
nat.go#L762: tmp := NewNat().ExpandFor(m)
crypto/ecdsa
ecdsa.go#L203: k = bigmod.NewNat()
ecdsa.go#L300: kInv := bigmod.NewNat()
ecdsa.go#L307: r, err := bigmod.NewNat().SetOverflowingBytes(Rx, c.N)
ecdsa.go#L319: e := bigmod.NewNat()
ecdsa.go#L322: s, err := bigmod.NewNat().SetBytes(priv.D.Bytes(), c.N)
ecdsa.go#L509: r, err := bigmod.NewNat().SetBytes(rBytes, c.N)
ecdsa.go#L513: s, err := bigmod.NewNat().SetBytes(sBytes, c.N)
ecdsa.go#L518: e := bigmod.NewNat()
ecdsa.go#L522: w := bigmod.NewNat()
ecdsa.go#L541: v, err := bigmod.NewNat().SetOverflowingBytes(Rx, c.N)
crypto/rsa
rsa.go#L489: m, err := bigmod.NewNat().SetBytes(plaintext, N)
rsa.go#L495: return bigmod.NewNat().ExpShort(m, e, N).Bytes(N), nil
rsa.go#L650: t0 = bigmod.NewNat()
rsa.go#L657: c, err = bigmod.NewNat().SetBytes(ciphertext, N)
rsa.go#L661: m = bigmod.NewNat().Exp(c, priv.D.Bytes(), N)
rsa.go#L665: Qinv, err := bigmod.NewNat().SetBytes(priv.Precomputed.Qinv.Bytes(), P)
rsa.go#L669: c, err = bigmod.NewNat().SetBytes(ciphertext, N)
rsa.go#L675: m = bigmod.NewNat().Exp(t0.Mod(c, P), priv.Precomputed.Dp.Bytes(), P)
rsa.go#L677: m2 := bigmod.NewNat().Exp(t0.Mod(c, Q), priv.Precomputed.Dq.Bytes(), Q)
rsa.go#L689: c1 := bigmod.NewNat().ExpShort(m, uint(priv.E), 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. |