Discover Packages
github.com/icattlecoder/go
src
pkg
crypto
ecdsa
package
Version:
v0.0.0-...-1d03baa
Opens a new window with list of versions in this module.
Published: Jan 21, 2013
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. It
returns true iff the signature is valid.
PrivateKey represents a ECDSA private key.
GenerateKey generates a public&private key pair.
PublicKey represents an ECDSA public key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.