Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ECDH = &EncryptECDH{}
Functions ¶
This section is empty.
Types ¶
type BitCurve ¶
type BitCurve struct { P *big.Int // the order of the underlying field N *big.Int // the order of the base point B *big.Int // the constant of the BitCurve equation Gx, Gy *big.Int // (x,y) of the base point BitSize int // the size of the underlying field }
A BitCurve represents a Koblitz Curve with a=0. See http://www.hyperelliptic.org/EFD/g1p/auto-shortw.html
func (*BitCurve) GenerateKey ¶
TODO: double check if it is okay GenerateKey returns a public/private key pair. The private key is generated using the given reader, which must return random data.
func (*BitCurve) ScalarBaseMult ¶
ScalarBaseMult returns k*G, where G is the base point of the group and k is an integer in big-endian form.
type EncryptECDH ¶
type EncryptECDH struct { PublicKey []byte }
func (*EncryptECDH) DoEncrypt ¶
func (e *EncryptECDH) DoEncrypt(d, k []byte) []byte
func (*EncryptECDH) Id ¶
func (e *EncryptECDH) Id() byte
Click to show internal directories.
Click to hide internal directories.