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

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

func Sign(privateKey *[PrivateKeySize]byte, message []byte) *[SignatureSize]byte

Sign signs the message with privateKey and returns a signature.

func Verify

func Verify(publicKey *[PublicKeySize]byte, message []byte, sig *[SignatureSize]byte) bool

Verify returns true iff sig is a valid signature of message by publicKey.

Source Files

ed25519.go

Directories

PathSynopsis
Godeps/_workspace/src/github.com/agl/ed25519/edwards25519Package 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
linux/amd64
Imports
4 packages
Last checked
2 hours ago

Tools for package owners.