Documentation ¶
Index ¶
- Variables
- func Add(r, p, q *Ge25519)
- func Double(r *Ge25519, p *Ge25519)
- func DoubleScalarmultVartime(r, p1 *Ge25519, s1, s2 *modm.Bignum256)
- func Pack(r []byte, p *Ge25519)
- func ScalarmultBaseNiels(r *Ge25519, s *modm.Bignum256)
- func UnpackVartime(r *Ge25519, p []byte, negative bool) bool
- type Ge25519
Constants ¶
This section is empty.
Variables ¶
View Source
var Basepoint = Ge25519{ curve25519.Bignum25519{0x0325d51a, 0x018b5823, 0x00f6592a, 0x0104a92d, 0x01a4b31d, 0x01d6dc5c, 0x027118fe, 0x007fd814, 0x013cd6e5, 0x0085a4db}, curve25519.Bignum25519{0x02666658, 0x01999999, 0x00cccccc, 0x01333333, 0x01999999, 0x00666666, 0x03333333, 0x00cccccc, 0x02666666, 0x01999999}, curve25519.Bignum25519{0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, curve25519.Bignum25519{0x01b7dda3, 0x01a2ace9, 0x025eadbb, 0x0003ba8a, 0x0083c27e, 0x00abe37d, 0x01274732, 0x00ccacdd, 0x00fd78b7, 0x019e1d7c}, }
Basepoint in curve25519
View Source
var NielsBaseMultiples = [256][96]byte{}/* 256 elements not displayed */
NielsBaseMultiples multiples of the base point in packed {ysubx, xaddy, t2d} form
Functions ¶
func DoubleScalarmultVartime ¶
DoubleScalarmultVartime computes [s1]p1 + [s2]basepoint
func ScalarmultBaseNiels ¶
ScalarmultBaseNiels computes [s]basepoint
Types ¶
type Ge25519 ¶
type Ge25519 struct { X curve25519.Bignum25519 Y curve25519.Bignum25519 Z curve25519.Bignum25519 T curve25519.Bignum25519 }
Ge25519 a point in curve25519
Click to show internal directories.
Click to hide internal directories.