shortw

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConstCanonicalName = "Curve-Name"
	ConstPDecimal      = "39402006196394479212279040100143613805079739270465446667948293404245721771496870329047266088258938001861606973112319"
	ConstNDecimal      = "39402006196394479212279040100143613805079739270465446667946905279627659399113263569398956308152294913554433653942643"
	ConstBHex          = "b3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef"
	ConstGxHex         = "aa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"
	ConstGyHex         = "3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"
	ConstBitSize       = 384
)

Curve parameters.

View Source
const (
	ConstW = 6
)

Implementation parameters.

Variables

This section is empty.

Functions

This section is empty.

Types

type Affine

type Affine struct {
	X, Y big.Int
}

Affine is a stub affine point type.

func NewAffine

func NewAffine(x, y *big.Int) *Affine

func (*Affine) Coordinates

func (a *Affine) Coordinates() (X, Y *big.Int)

func (*Affine) Jacobian

func (a *Affine) Jacobian() *Jacobian

func (*Affine) Projective

func (a *Affine) Projective() *Projective

func (*Affine) Set

func (a *Affine) Set(q *Affine)

type Curve

type Curve interface {
	elliptic.Curve

	// Inverse computes the inverse of k modulo the order N. Satisfies the
	// crypto/ecdsa.invertable interface.
	Inverse(k *big.Int) *big.Int
}

Curve extends the standard elliptic.Curve interface.

func CURVENAME

func CURVENAME() Curve

CURVENAME returns a Curve which implements CanonicalName.

type Jacobian

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

Jacobian is a stub jacobian point type.

func (*Jacobian) Add

func (p *Jacobian) Add(q, r *Jacobian)

func (*Jacobian) Affine

func (p *Jacobian) Affine() *Affine

func (*Jacobian) CMov

func (p *Jacobian) CMov(q *Jacobian, c uint)

func (*Jacobian) CNeg

func (p *Jacobian) CNeg(c uint)

func (*Jacobian) Double

func (p *Jacobian) Double(q *Jacobian)

func (*Jacobian) Neg

func (p *Jacobian) Neg()

func (*Jacobian) Projective

func (p *Jacobian) Projective() *Projective

func (*Jacobian) Set

func (p *Jacobian) Set(q *Jacobian)

type Projective

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

Projective is a stub projective point type.

func (*Projective) Affine

func (p *Projective) Affine() *Affine

func (*Projective) CNeg

func (p *Projective) CNeg(c uint)

func (*Projective) CompleteAdd

func (p *Projective) CompleteAdd(q, r *Projective)

func (*Projective) Neg

func (p *Projective) Neg()

Jump to

Keyboard shortcuts

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