Documentation
¶
Index ¶
- func Add(out, a, b *Bignum25519)
- func AddAfterBasic(out, a, b *Bignum25519)
- func AddReduce(out, a, b *Bignum25519)
- func Contract(out []byte, input *Bignum25519)
- func Copy(out, in *Bignum25519)
- func Expand(out *Bignum25519, in []byte)
- func Mul(out, in2, in *Bignum25519)
- func Neg(out, a *Bignum25519)
- func PowTwo252m3(two252m3, z *Bignum25519)
- func Recip(out, z *Bignum25519)
- func Square(out, in *Bignum25519)
- func SquareTimes(out, in *Bignum25519, count int)
- func Sub(out, a, b *Bignum25519)
- func SubAfterBasic(out, a, b *Bignum25519)
- func SubReduce(out, a, b *Bignum25519)
- func SwapConditional(a, b *Bignum25519, iswap uint64)
- type Bignum25519
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAfterBasic ¶
func AddAfterBasic(out, a, b *Bignum25519)
out = a + b, where a and/or b are the result of a basic op (add,sub)
func AddReduce ¶
func AddReduce(out, a, b *Bignum25519)
func Contract ¶
func Contract(out []byte, input *Bignum25519)
Take a fully reduced polynomial form number and contract it into a little-endian, 32-byte array
func Expand ¶
func Expand(out *Bignum25519, in []byte)
Take a little-endian, 32-byte number and expand it into polynomial form
func Square ¶
func Square(out, in *Bignum25519)
func SubAfterBasic ¶
func SubAfterBasic(out, a, b *Bignum25519)
out = a - b, where a and/or b are the result of a basic op (add,sub)
func SubReduce ¶
func SubReduce(out, a, b *Bignum25519)
Types ¶
type Bignum25519 ¶
type Bignum25519 [5]uint64
Click to show internal directories.
Click to hide internal directories.