package ed25519
import "github.com/theupdateframework/notary/Godeps/_workspace/src/github.com/agl/ed25519"
Package ed25519 implements the Ed25519 signature algorithm. See http://ed25519.cr.yp.to/.
Index ¶
- Constants
- func GenerateKey(rand io.Reader) (publicKey *[PublicKeySize]byte, privateKey *[PrivateKeySize]byte, err error)
- func Sign(privateKey *[PrivateKeySize]byte, message []byte) *[SignatureSize]byte
- func Verify(publicKey *[PublicKeySize]byte, message []byte, sig *[SignatureSize]byte) bool
Constants ¶
const ( PublicKeySize = 32 PrivateKeySize = 64 SignatureSize = 64 )
Functions ¶
func GenerateKey ¶
func GenerateKey(rand io.Reader) (publicKey *[PublicKeySize]byte, privateKey *[PrivateKeySize]byte, err error)
GenerateKey generates a public/private key pair using randomness from rand.
func Sign ¶
Sign signs the message with privateKey and returns a signature.
func Verify ¶
Verify returns true iff sig is a valid signature of message by publicKey.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Godeps/_workspace/src/github.com/agl/ed25519/edwards25519 | Package edwards25519 implements operations in GF(2**255-19) and on an Edwards curve that is isomorphic to curve25519. |
Godeps/_workspace/src/github.com/agl/ed25519/extra25519 |
- Version
- v0.2.0
- Published
- Feb 25, 2016
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 1 day ago –
Tools for package owners.