fp25519

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elt

type Elt struct {
	// contains filtered or unexported fields
}

Elt is an element of the field modulo 2²⁵⁵-19.

func (*Elt) Int

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

Int returns z as a big integer.

func (*Elt) Inv

func (z *Elt) Inv(x *Elt) *Elt

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

func (*Elt) Mul

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

Mul computes z = x*y (mod p) and returns it.

func (*Elt) SetInt

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

SetInt sets z = x (mod p) and returns it.

func (*Elt) Sqr

func (z *Elt) Sqr(x *Elt) *Elt

Sqr computes z = x² (mod p) and returns it.

Jump to

Keyboard shortcuts

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