type crypto/internal/bigmod.Modulus
27 uses
crypto/internal/bigmod (current package)
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#L295: type Modulus struct {
nat.go#L307: func rr(m *Modulus) *Nat {
nat.go#L376: func NewModulusFromBig(n *big.Int) (*Modulus, error) {
nat.go#L382: m := &Modulus{}
nat.go#L405: func (m *Modulus) Size() int {
nat.go#L410: func (m *Modulus) BitLen() int {
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#L774: func (out *Nat) ExpShortVarTime(x *Nat, e uint, m *Modulus) *Nat {
crypto/ecdsa
ecdsa.go#L570: N *bigmod.Modulus
crypto/rsa
rsa.go#L221: n, p, q *bigmod.Modulus // moduli for CRT with Montgomery precomputed constants
rsa.go#L648: N *bigmod.Modulus
 |
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. |