type crypto/internal/bigmod.Nat
72 uses
crypto/internal/bigmod (current package)
nat.go#L56: type Nat struct {
nat.go#L70: func NewNat() *Nat {
nat.go#L72: return &Nat{limbs}
nat.go#L76: func (x *Nat) expand(n int) *Nat {
nat.go#L95: func (x *Nat) reset(n int) *Nat {
nat.go#L108: func (x *Nat) set(y *Nat) *Nat {
nat.go#L118: func (x *Nat) setBig(n *big.Int) *Nat {
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#L211: func (x *Nat) Equal(y *Nat) choice {
nat.go#L225: func (x *Nat) IsZero() choice {
nat.go#L240: func (x *Nat) cmpGeq(y *Nat) choice {
nat.go#L258: func (x *Nat) assign(on choice, y *Nat) *Nat {
nat.go#L274: func (x *Nat) add(y *Nat) (c uint) {
nat.go#L289: func (x *Nat) sub(y *Nat) (c uint) {
nat.go#L312: nat *Nat
nat.go#L315: rr *Nat // R*R for montgomeryRepresentation
nat.go#L319: func rr(m *Modulus) *Nat {
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#L709: table := [(1 << 4) - 1]*Nat{ // table[i] = x ^ (i+1)
nat.go#L752: func (out *Nat) ExpShort(x *Nat, e uint, m *Modulus) *Nat {
crypto/ecdsa
ecdsa.go#L202: func randomPoint[Point nistPoint[Point]](c *nistCurve[Point], rand io.Reader) (k *bigmod.Nat, p Point, err error) {
ecdsa.go#L366: func inverse[Point nistPoint[Point]](c *nistCurve[Point], kInv, k *bigmod.Nat) {
ecdsa.go#L386: func hashToNat[Point nistPoint[Point]](c *nistCurve[Point], e *bigmod.Nat, hash []byte) {
crypto/rsa
rsa.go#L648: m, c *bigmod.Nat
|
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. |