fp

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPastaFpParams

func GetPastaFpParams() *native.Field4Params

func PastaFpNew

func PastaFpNew() *native.Field4

Types

type Fp

type Fp fiatPastaFpMontgomeryDomainFieldElement

type PastaFpArithmetic

type PastaFpArithmetic struct{}

func (PastaFpArithmetic) Add

func (PastaFpArithmetic) Add(out, arg1, arg2 *[native.Field4Limbs]uint64)

func (PastaFpArithmetic) FromBytes

func (PastaFpArithmetic) FromMontgomery

func (PastaFpArithmetic) FromMontgomery(out, arg *[native.Field4Limbs]uint64)

func (PastaFpArithmetic) Invert

func (f PastaFpArithmetic) Invert(wasInverted *int, out, arg *[native.Field4Limbs]uint64)

func (PastaFpArithmetic) Mul

func (PastaFpArithmetic) Mul(out, arg1, arg2 *[native.Field4Limbs]uint64)

func (PastaFpArithmetic) Neg

func (PastaFpArithmetic) Neg(out, arg *[native.Field4Limbs]uint64)

func (PastaFpArithmetic) Selectznz

func (PastaFpArithmetic) Selectznz(out, arg1, arg2 *[native.Field4Limbs]uint64, choice int)

func (PastaFpArithmetic) Sqrt

func (f PastaFpArithmetic) Sqrt(wasSquare *int, out, arg *[native.Field4Limbs]uint64)

func (PastaFpArithmetic) Square

func (PastaFpArithmetic) Square(out, arg *[native.Field4Limbs]uint64)

func (PastaFpArithmetic) Sub

func (PastaFpArithmetic) Sub(out, arg1, arg2 *[native.Field4Limbs]uint64)

func (PastaFpArithmetic) ToBytes

func (PastaFpArithmetic) ToMontgomery

func (PastaFpArithmetic) ToMontgomery(out, arg *[native.Field4Limbs]uint64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL