Discover Packages
github.com/go-lang/go
src
pkg
crypto
ecdsa
package
Version:
v0.0.0-...-c6f61ee
Opens a new window with list of versions in this module.
Published: May 10, 2014
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
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.