Documentation ¶
Index ¶
- Constants
- func Add(r, x, y *Bignum256)
- func Contract(out []byte, in *Bignum256)
- func ContractSlidingWindow(r *[256]int8, s *Bignum256, windowSize uint)
- func ContractWindow4(r *[64]int8, in *Bignum256)
- func Expand(out *Bignum256, in []byte)
- func ExpandRaw(out *Bignum256, in []byte)
- func IsAtMost128bitsVartime(a *Bignum256) bool
- func IsOneVartime(a *Bignum256) bool
- func IsZeroVartime(a *Bignum256) bool
- func LessThanOrEqualVartime(a, b *Bignum256, limbSize int) bool
- func LessThanVartime(a, b *Bignum256, limbSize int) bool
- func Mul(r, x, y *Bignum256)
- func SubVartime(out, a, b *Bignum256, limbSize int)
- type Bignum256
- type Element
Constants ¶
View Source
const ( BitsPerLimb = 56 LimbSize = 5 )
Variables ¶
This section is empty.
Functions ¶
func ContractSlidingWindow ¶
func ContractWindow4 ¶
func IsAtMost128bitsVartime ¶
can a fit in to (at most) 128 bits
func LessThanOrEqualVartime ¶
is a <= b
func SubVartime ¶
out = a - b, a must be larger than b
Types ¶
Click to show internal directories.
Click to hide internal directories.