//
pkg.gl
Category
github.com/emmansun/gmsm
internal
bigmod
package
0.27.4
Repository:
https://github.com/emmansun/gmsm.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
2
Files
632 SLOC
#
Functions
NewModulusFromBig
NewModulusFromBig creates a new Modulus from a [big.Int].
NewNat
NewNat returns a new nat with a size of zero, just like new(Nat), but with the preallocated capacity to hold a number of up to preallocTarget bits.
#
Structs
Modulus
Modulus is used for modular arithmetic, precomputing relevant constants.
Nat
Nat represents an arbitrary natural number Each Nat has an announced length, which is the number of limbs it has stored.