crypto/internal/bigmod.Nat.Mod (method)

5 uses

	crypto/internal/bigmod (current package)
		nat.go#L439: func (out *Nat) Mod(x *Nat, m *Modulus) *Nat {

	crypto/rsa
		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#L679: 		m.Sub(t0.Mod(m2, P), P)
		rsa.go#L683: 		m.ExpandFor(N).Mul(t0.Mod(Q.Nat(), N), N)