elliptic

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package elliptic provides a mockable wrapper for crypto/elliptic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) GenerateKey

func (*Impl) GenerateKey(curve elliptic.Curve, rand io.Reader) (priv []byte, x *big.Int, y *big.Int, err error)

func (*Impl) Marshal

func (*Impl) Marshal(curve elliptic.Curve, x *big.Int, y *big.Int) []byte

func (*Impl) MarshalCompressed

func (*Impl) MarshalCompressed(curve elliptic.Curve, x *big.Int, y *big.Int) []byte

func (*Impl) P224

func (*Impl) P224() elliptic.Curve

func (*Impl) P256

func (*Impl) P256() elliptic.Curve

func (*Impl) P384

func (*Impl) P384() elliptic.Curve

func (*Impl) P521

func (*Impl) P521() elliptic.Curve

func (*Impl) Unmarshal

func (*Impl) Unmarshal(curve elliptic.Curve, data []byte) (x *big.Int, y *big.Int)

func (*Impl) UnmarshalCompressed

func (*Impl) UnmarshalCompressed(curve elliptic.Curve, data []byte) (x *big.Int, y *big.Int)

type Interface

type Interface interface {
	GenerateKey(curve elliptic.Curve, rand io.Reader) (priv []byte, x *big.Int, y *big.Int, err error)
	Marshal(curve elliptic.Curve, x *big.Int, y *big.Int) []byte
	MarshalCompressed(curve elliptic.Curve, x *big.Int, y *big.Int) []byte
	P224() elliptic.Curve
	P256() elliptic.Curve
	P384() elliptic.Curve
	P521() elliptic.Curve
	Unmarshal(curve elliptic.Curve, data []byte) (x *big.Int, y *big.Int)
	UnmarshalCompressed(curve elliptic.Curve, data []byte) (x *big.Int, y *big.Int)
}

Jump to

Keyboard shortcuts

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