Documentation ¶
Index ¶
- func IsOnCurve(p *Point) bool
- type Point
- type PointJacobian
- func (p *PointJacobian) Add(a, b *PointJacobian) *PointJacobian
- func (p *PointJacobian) Double(v *PointJacobian) *PointJacobian
- func (p *PointJacobian) Equal(v *PointJacobian) int
- func (p *PointJacobian) FromAffine(v *Point) *PointJacobian
- func (p *PointJacobian) ScalarBaseMult(k []byte) *PointJacobian
- func (p *PointJacobian) ScalarMult(q *PointJacobian, k []byte) *PointJacobian
- func (p *PointJacobian) Select(a, b *PointJacobian, cond int) *PointJacobian
- func (p *PointJacobian) Set(v *PointJacobian) *PointJacobian
- func (p *PointJacobian) Zero() *PointJacobian
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Point ¶
type Point struct {
// contains filtered or unexported fields
}
func (*Point) FromJacobian ¶
func (p *Point) FromJacobian(v *PointJacobian) *Point
FromJacobian reverses the Jacobian transform. If the point is ∞ it returns 0, 0.
func (*Point) NewGenerator ¶
type PointJacobian ¶
type PointJacobian struct {
// contains filtered or unexported fields
}
func (*PointJacobian) Add ¶
func (p *PointJacobian) Add(a, b *PointJacobian) *PointJacobian
Add set p = a + b.
func (*PointJacobian) Double ¶
func (p *PointJacobian) Double(v *PointJacobian) *PointJacobian
Add set p = a + a.
func (*PointJacobian) Equal ¶
func (p *PointJacobian) Equal(v *PointJacobian) int
func (*PointJacobian) FromAffine ¶
func (p *PointJacobian) FromAffine(v *Point) *PointJacobian
FromAffine returns a Jacobian Z value for the affine point (x, y). If x and y are zero, it assumes that they represent the point at infinity because (0, 0) is not on the any of the curves handled here.
func (*PointJacobian) ScalarBaseMult ¶
func (p *PointJacobian) ScalarBaseMult(k []byte) *PointJacobian
func (*PointJacobian) ScalarMult ¶
func (p *PointJacobian) ScalarMult(q *PointJacobian, k []byte) *PointJacobian
func (*PointJacobian) Select ¶
func (p *PointJacobian) Select(a, b *PointJacobian, cond int) *PointJacobian
func (*PointJacobian) Set ¶
func (p *PointJacobian) Set(v *PointJacobian) *PointJacobian
func (*PointJacobian) Zero ¶
func (p *PointJacobian) Zero() *PointJacobian
Click to show internal directories.
Click to hide internal directories.