type crypto/internal/bigmod.Nat
72 uses
crypto/internal/bigmod (current package)
nat.go#L48: type Nat struct {
nat.go#L62: func NewNat() *Nat {
nat.go#L64: return &Nat{limbs}
nat.go#L68: func (x *Nat) expand(n int) *Nat {
nat.go#L85: func (x *Nat) reset(n int) *Nat {
nat.go#L96: func (x *Nat) set(y *Nat) *Nat {
nat.go#L106: func (x *Nat) setBig(n *big.Int) *Nat {
nat.go#L119: func (x *Nat) Bytes(m *Modulus) []byte {
nat.go#L142: func (x *Nat) SetBytes(b []byte, m *Modulus) (*Nat, error) {
nat.go#L157: func (x *Nat) SetOverflowingBytes(b []byte, m *Modulus) (*Nat, error) {
nat.go#L178: func (x *Nat) setBytes(b []byte, m *Modulus) error {
nat.go#L199: func (x *Nat) Equal(y *Nat) choice {
nat.go#L213: func (x *Nat) IsZero() choice {
nat.go#L228: func (x *Nat) cmpGeq(y *Nat) choice {
nat.go#L246: func (x *Nat) assign(on choice, y *Nat) *Nat {
nat.go#L262: func (x *Nat) add(y *Nat) (c uint) {
nat.go#L277: func (x *Nat) sub(y *Nat) (c uint) {
nat.go#L300: nat *Nat
nat.go#L303: rr *Nat // R*R for montgomeryRepresentation
nat.go#L307: func rr(m *Modulus) *Nat {
nat.go#L415: func (m *Modulus) Nat() *Nat {
nat.go#L422: func (x *Nat) shiftIn(y uint, m *Modulus) *Nat {
nat.go#L461: func (out *Nat) Mod(x *Nat, m *Modulus) *Nat {
nat.go#L490: func (x *Nat) ExpandFor(m *Modulus) *Nat {
nat.go#L497: func (out *Nat) resetFor(m *Modulus) *Nat {
nat.go#L510: func (x *Nat) maybeSubtractModulus(always choice, m *Modulus) {
nat.go#L523: func (x *Nat) Sub(y *Nat, m *Modulus) *Nat {
nat.go#L536: func (x *Nat) Add(y *Nat, m *Modulus) *Nat {
nat.go#L549: func (x *Nat) montgomeryRepresentation(m *Modulus) *Nat {
nat.go#L559: func (x *Nat) montgomeryReduction(m *Modulus) *Nat {
nat.go#L573: func (x *Nat) montgomeryMul(a *Nat, b *Nat, m *Modulus) *Nat {
nat.go#L714: func (x *Nat) Mul(y *Nat, m *Modulus) *Nat {
nat.go#L725: func (out *Nat) Exp(x *Nat, e []byte, m *Modulus) *Nat {
nat.go#L731: table := [(1 << 4) - 1]*Nat{ // table[i] = x ^ (i+1)
nat.go#L774: func (out *Nat) ExpShortVarTime(x *Nat, e uint, m *Modulus) *Nat {
crypto/ecdsa
ecdsa.go#L206: func randomPoint[Point nistPoint[Point]](c *nistCurve[Point], rand io.Reader) (k *bigmod.Nat, p Point, err error) {
ecdsa.go#L370: func inverse[Point nistPoint[Point]](c *nistCurve[Point], kInv, k *bigmod.Nat) {
ecdsa.go#L390: func hashToNat[Point nistPoint[Point]](c *nistCurve[Point], e *bigmod.Nat, hash []byte) {
crypto/rsa
rsa.go#L647: m, c *bigmod.Nat
 |
The pages are generated with Golds v0.7.6. (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. |