Documentation
¶
Overview ¶
Package eddsa implements the EdDSA signature algorithm according to RFC8032.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Verify ¶
Verify uses a public key, a message and a signature. It will return nil if sig is a valid signature for msg created by key public, or an error otherwise.
func VerifyWithChecks ¶
VerifyWithChecks uses a public key buffer, a message and a signature. It will return nil if sig is a valid signature for msg created by key public, or an error otherwise. Compared to `Verify`, it performs additional checks around the canonicality and ensures the public key does not have a small order.
Types ¶
type EdDSA ¶
type EdDSA struct {
// Secret being already hashed + bit tweaked
Secret kyber.Scalar
// Public is the corresponding public key
Public kyber.Point
// contains filtered or unexported fields
}
EdDSA is a structure holding the data necessary to make a series of EdDSA signatures.
func NewEdDSA ¶
NewEdDSA will return a freshly generated key pair to use for generating EdDSA signatures.
func (*EdDSA) MarshalBinary ¶
MarshalBinary will return the representation used by the reference implementation of SUPERCOP ref10, which is "seed || Public".
func (*EdDSA) UnmarshalBinary ¶
UnmarshalBinary transforms a slice of bytes into a EdDSA signature.