point

package
v0.0.0-...-64543fc Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point struct {
	Curve elliptic.Curve
	X     *big.Int
	Y     *big.Int
}

func NewPoint

func NewPoint() *Point

func UPoint

func UPoint() *Point

func (*Point) Add

func (p *Point) Add(u *Point) *Point

func (*Point) IsEqual

func (p *Point) IsEqual(u *Point) bool

func (*Point) KDF

func (p *Point) KDF() (key []byte, err error)

func (*Point) Len

func (p *Point) Len() int

func (*Point) Marshal

func (p *Point) Marshal() []byte

Marshal converts a point into the uncompressed form specified in section 4.3.6 of ANSI X9.62.

func (*Point) Mul

func (p *Point) Mul(m *big.Int) *Point

func (*Point) Unmarshal

func (p *Point) Unmarshal(data []byte) error

Unmarshal converts a point, serialized by Marshal, into an x, y pair. It is an error if the point is not in uncompressed form or is not on the curve. On error, x = nil.

Jump to

Keyboard shortcuts

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