Documentation ¶
Overview ¶
This Package implements operations for large complex numbers modulo P. The functions can be used for a Diffie-Hellman key exchange, where P is usually a prime number.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModulusGroup ¶
func (*ModulusGroup) AsCurve ¶
func (m *ModulusGroup) AsCurve() elliptic.Curve
Returns an elliptic.Curve-Wrapper around this group. The *elliptic.CurveParams returned by the .Params() method the Curve should not be used for doing ScalarMult, etc.!
func (*ModulusGroup) Exponent ¶
func (m *ModulusGroup) Exponent(dr, di, sr, si *big.Int, scalar []byte)
func (*ModulusGroup) Multiply ¶
func (m *ModulusGroup) Multiply(dr, di, ar, ai, br, bi *big.Int)
Click to show internal directories.
Click to hide internal directories.