Documentation ¶
Overview ¶
Package elliptic provides a mockable wrapper for crypto/elliptic.
Index ¶
- type Impl
- func (*Impl) GenerateKey(curve elliptic.Curve, rand io.Reader) (priv []byte, x *big.Int, y *big.Int, err error)
- func (*Impl) Marshal(curve elliptic.Curve, x *big.Int, y *big.Int) []byte
- func (*Impl) MarshalCompressed(curve elliptic.Curve, x *big.Int, y *big.Int) []byte
- func (*Impl) P224() elliptic.Curve
- func (*Impl) P256() elliptic.Curve
- func (*Impl) P384() elliptic.Curve
- func (*Impl) P521() elliptic.Curve
- func (*Impl) Unmarshal(curve elliptic.Curve, data []byte) (x *big.Int, y *big.Int)
- func (*Impl) UnmarshalCompressed(curve elliptic.Curve, data []byte) (x *big.Int, y *big.Int)
- type Interface
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) MarshalCompressed ¶
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) }
Click to show internal directories.
Click to hide internal directories.