package
1.50.0
Repository: https://github.com/onsonr/crypto.git
Documentation: pkg.go.dev

# Functions

Add adds two field elements in the Montgomery domain.
Divstep computes a divstep.
DivstepPrecomp returns the precomputed value for Bernstein-Yang-inversion (in montgomery form).
FromBytes deserializes a field element NOT in the Montgomery domain from bytes in little-endian order.
FromMontgomery translates a field element out of the Montgomery domain.
No description provided by the author
Msat returns the saturated representation of the prime modulus.
Mul multiplies two field elements in the Montgomery domain.
Nonzero outputs a single non-zero word if the input is non-zero and zero otherwise.
Opp negates a field element in the Montgomery domain.
Selectznz is a multi-limb conditional select.
SetOne returns the field element one in the Montgomery domain.
Square squares a field element in the Montgomery domain.
Sub subtracts two field elements in the Montgomery domain.
ToBytes serializes a field element NOT in the Montgomery domain to bytes in little-endian order.
ToMontgomery translates a field element into the Montgomery domain.

# Type aliases

MontgomeryDomainFieldElement is a field element in the Montgomery domain.
NonMontgomeryDomainFieldElement is a field element NOT in the Montgomery domain.