type crypto/internal/bigmod.Modulus
27 uses
crypto/internal/bigmod (current package)
nat.go#L131: func (x *Nat) Bytes(m *Modulus) []byte {
nat.go#L154: func (x *Nat) SetBytes(b []byte, m *Modulus) (*Nat, error) {
nat.go#L169: func (x *Nat) SetOverflowingBytes(b []byte, m *Modulus) (*Nat, error) {
nat.go#L190: func (x *Nat) setBytes(b []byte, m *Modulus) error {
nat.go#L307: type Modulus struct {
nat.go#L319: func rr(m *Modulus) *Nat {
nat.go#L354: func NewModulusFromBig(n *big.Int) (*Modulus, error) {
nat.go#L360: m := &Modulus{}
nat.go#L383: func (m *Modulus) Size() int {
nat.go#L388: func (m *Modulus) BitLen() int {
nat.go#L393: func (m *Modulus) Nat() *Nat {
nat.go#L400: func (x *Nat) shiftIn(y uint, m *Modulus) *Nat {
nat.go#L439: func (out *Nat) Mod(x *Nat, m *Modulus) *Nat {
nat.go#L468: func (x *Nat) ExpandFor(m *Modulus) *Nat {
nat.go#L475: func (out *Nat) resetFor(m *Modulus) *Nat {
nat.go#L488: func (x *Nat) maybeSubtractModulus(always choice, m *Modulus) {
nat.go#L501: func (x *Nat) Sub(y *Nat, m *Modulus) *Nat {
nat.go#L514: func (x *Nat) Add(y *Nat, m *Modulus) *Nat {
nat.go#L527: func (x *Nat) montgomeryRepresentation(m *Modulus) *Nat {
nat.go#L537: func (x *Nat) montgomeryReduction(m *Modulus) *Nat {
nat.go#L551: func (x *Nat) montgomeryMul(a *Nat, b *Nat, m *Modulus) *Nat {
nat.go#L692: func (x *Nat) Mul(y *Nat, m *Modulus) *Nat {
nat.go#L703: func (out *Nat) Exp(x *Nat, e []byte, m *Modulus) *Nat {
nat.go#L752: func (out *Nat) ExpShort(x *Nat, e uint, m *Modulus) *Nat {
crypto/ecdsa
ecdsa.go#L565: N *bigmod.Modulus
crypto/rsa
rsa.go#L218: n, p, q *bigmod.Modulus // moduli for CRT with Montgomery precomputed constants
rsa.go#L649: N *bigmod.Modulus
|
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. |