Documentation
¶
Index ¶
- func CheckInterval(val, min, max *big.Int) bool
- func Clone(int2 *big.Int) *big.Int
- func GetInt(val int64) *big.Int
- func Hex2int(hexStr string) *big.Int
- type Curve
- func (c *Curve) AddPoint(P, Q *Point) (*Point, error)
- func (c *Curve) ComputeY(x *big.Int) *big.Int
- func (c *Curve) ConvertToMontgomeryCurve() *MontgomeryCurve
- func (c *Curve) G() *Point
- func (c *Curve) INF() *Point
- func (c *Curve) IsOnCurve(P *Point) bool
- func (c *Curve) MulPoint(d *big.Int, P *Point) (*Point, error)
- func (c *Curve) NegPoint(P *Point) (*Point, error)
- func (c *Curve) String() string
- type ECDSA
- type ICurve
- type MontgomeryCurve
- type Point
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInterval ¶
Types ¶
type Curve ¶
func (*Curve) ConvertToMontgomeryCurve ¶
func (c *Curve) ConvertToMontgomeryCurve() *MontgomeryCurve
type MontgomeryCurve ¶
type MontgomeryCurve struct {
Curve
}
MontgomeryCurve by^2 = x^3 + ax^2 + x https://en.wikipedia.org/wiki/Montgomery_curve
func NewCurve25519 ¶
func NewCurve25519() *MontgomeryCurve
type Point ¶
func GetKeyPair ¶
func GetKeyPair(curve *MontgomeryCurve) (*big.Int, *Point)
func (*Point) IsAtInfinity ¶
Click to show internal directories.
Click to hide internal directories.