Documentation ¶
Overview ¶
Package ecdsa implements the Elliptic Curve Digital Signature Algorithm, as defined in FIPS 186-3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsOnCurve ¶
func CheckIsOnCurve(c *bitelliptic.BitCurve, k *big.Int) bool
TODO: add to tests, new functionality function to check if a given private key is correct
Types ¶
type PrivateKey ¶
PrivateKey represents a ECDSA private key.
func GenerateFromPrivateKey ¶
func GenerateFromPrivateKey(d *big.Int, c *bitelliptic.BitCurve) (priv *PrivateKey, err error)
TODO: add to tests, new functionality GenerateKey generates a key pair of public key matching the given private key.
func GenerateKey ¶
func GenerateKey(c *bitelliptic.BitCurve, rand io.Reader) (priv *PrivateKey, err error)
GenerateKey generates a public&private key pair.
Click to show internal directories.
Click to hide internal directories.