func crypto/internal/bigmod.NewNat

45 uses

	crypto/internal/bigmod (current package)
		nat.go#L62: func NewNat() *Nat {
		nat.go#L308: 	rr := NewNat().ExpandFor(m)
		nat.go#L383: 	m.nat = NewNat().setBig(n)
		nat.go#L423: 	d := NewNat().resetFor(m)
		nat.go#L511: 	t := NewNat().set(x)
		nat.go#L526: 	t := NewNat().set(x)
		nat.go#L563: 	one := NewNat().ExpandFor(m)
		nat.go#L717: 	xR := NewNat().set(x).montgomeryRepresentation(m) // xR = x * R mod m
		nat.go#L733: 		NewNat(), NewNat(), NewNat(), NewNat(), NewNat(),
		nat.go#L734: 		NewNat(), NewNat(), NewNat(), NewNat(), NewNat(),
		nat.go#L735: 		NewNat(), NewNat(), NewNat(), NewNat(), NewNat(),
		nat.go#L745: 	tmp := NewNat().ExpandFor(m)
		nat.go#L778: 	xR := NewNat().set(x).montgomeryRepresentation(m)

	crypto/ecdsa
		ecdsa.go#L207: 	k = bigmod.NewNat()
		ecdsa.go#L304: 	kInv := bigmod.NewNat()
		ecdsa.go#L311: 	r, err := bigmod.NewNat().SetOverflowingBytes(Rx, c.N)
		ecdsa.go#L323: 	e := bigmod.NewNat()
		ecdsa.go#L326: 	s, err := bigmod.NewNat().SetBytes(priv.D.Bytes(), c.N)
		ecdsa.go#L514: 	r, err := bigmod.NewNat().SetBytes(rBytes, c.N)
		ecdsa.go#L518: 	s, err := bigmod.NewNat().SetBytes(sBytes, c.N)
		ecdsa.go#L523: 	e := bigmod.NewNat()
		ecdsa.go#L527: 	w := bigmod.NewNat()
		ecdsa.go#L546: 	v, err := bigmod.NewNat().SetOverflowingBytes(Rx, c.N)

	crypto/rsa
		rsa.go#L488: 	m, err := bigmod.NewNat().SetBytes(plaintext, N)
		rsa.go#L494: 	return bigmod.NewNat().ExpShortVarTime(m, e, N).Bytes(N), nil
		rsa.go#L649: 		t0   = bigmod.NewNat()
		rsa.go#L656: 		c, err = bigmod.NewNat().SetBytes(ciphertext, N)
		rsa.go#L660: 		m = bigmod.NewNat().Exp(c, priv.D.Bytes(), N)
		rsa.go#L664: 		Qinv, err := bigmod.NewNat().SetBytes(priv.Precomputed.Qinv.Bytes(), P)
		rsa.go#L668: 		c, err = bigmod.NewNat().SetBytes(ciphertext, N)
		rsa.go#L674: 		m = bigmod.NewNat().Exp(t0.Mod(c, P), priv.Precomputed.Dp.Bytes(), P)
		rsa.go#L676: 		m2 := bigmod.NewNat().Exp(t0.Mod(c, Q), priv.Precomputed.Dq.Bytes(), Q)
		rsa.go#L688: 		c1 := bigmod.NewNat().ExpShortVarTime(m, uint(priv.E), N)