pkg

package
v0.0.0-...-219d96f Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErcCtxDone = fmt.Errorf("context done")
View Source
var NormalCurve = &stdelliptic.CurveParams{
	P:       big.NewInt(1017406263565141),
	N:       big.NewInt(446818759579),
	B:       big.NewInt(122098280450287),
	Gx:      big.NewInt(360935314348507),
	Gy:      big.NewInt(826173593427448),
	BitSize: 40,
	Name:    "NormalCurve",
}
View Source
var TinyCurve = &stdelliptic.CurveParams{
	P:       big.NewInt(10177),
	N:       big.NewInt(10331),
	B:       big.NewInt(-1),
	Gx:      big.NewInt(2),
	Gy:      big.NewInt(1),
	BitSize: 14,
	Name:    "TinyCurve",
}

Functions

func EccLogBSGS

func EccLogBSGS(ctx context.Context, threads int, curve stdelliptic.Curve, p Point, q Point) (*big.Int, *big.Int, error)

Types

type Point

type Point struct {
	X, Y *big.Int
}

func (Point) Equals

func (p Point) Equals(other Point) bool

func (Point) IsZero

func (p Point) IsZero() bool

func (Point) Key

func (p Point) Key() string

func (Point) String

func (p Point) String() string

Directories

Path Synopsis
Package elliptic implements several standard elliptic curves over prime fields.
Package elliptic implements several standard elliptic curves over prime fields.

Jump to

Keyboard shortcuts

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