fp25519

package
v0.0.0-...-3948e75 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Size = 32

Size of a field element in bytes.

Variables

This section is empty.

Functions

func Add

func Add(z *Elt, x *Elt, y *Elt)

func Inv

func Inv(z *Elt, x *Elt)

Inv computes z = 1/x (mod p).

func Mul

func Mul(z *Elt, x *Elt, y *Elt)

func Sqr

func Sqr(z *Elt, x *Elt)

Sqr computes z = x^2 (mod p).

Types

type Elt

type Elt [32]uint8

Elt is a field element.

func (*Elt) Int

func (x *Elt) Int() *big.Int

Int converts to a big integer.

func (*Elt) SetInt

func (x *Elt) SetInt(y *big.Int)

SetInt constructs a field element from a big integer.

Jump to

Keyboard shortcuts

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