Discover Packages
Standard library
crypto
ecdsa
package
standard library
Version:
go1.3.1
Opens a new window with list of versions in this module.
Published: Aug 13, 2014
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 55,982
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package ecdsa implements the Elliptic Curve Digital Signature Algorithm, as
defined in FIPS 186-3.
Sign signs an arbitrary length hash (which should be the result of hashing a
larger message) using the private key, priv. It returns the signature as a
pair of integers. The security of the private key depends on the entropy of
rand.
Verify verifies the signature in r, s of hash using the public key, pub. Its
return value records whether the signature is valid.
PrivateKey represents a ECDSA private key.
GenerateKey generates a public and private key pair.
PublicKey represents an ECDSA public key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.