Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EdDSA ¶
type EdDSA struct { // Secret being already hashed + bit tweaked Secret abstract.Scalar // Public is the corresponding public key Public abstract.Point // contains filtered or unexported fields }
EdDSA implements the EdDSA signature algorithm according to the RFC https://tools.ietf.org/html/draft-josefsson-eddsa-ed25519-02
func NewEdDSA ¶
NewEdDSA will return a freshly generated key pair to use for generating EdDSA signatures. If stream == nil, it will take the random.Stream.
func (*EdDSA) MarshalBinary ¶
MarshalBinary will return the representation used by the reference implementation of SUPERCOP ref10 Namely seed || Public
func (*EdDSA) Sign ¶
Sign will return a EdDSA signature of the message msg using Ed25519. NOTE: Code taken from the Python implementation from the RFC https://tools.ietf.org/html/draft-josefsson-eddsa-ed25519-02
func (*EdDSA) UnmarshalBinary ¶
UnmarshalBinary transforms a slice of bytes into a EdDSA signature
Click to show internal directories.
Click to hide internal directories.