Documentation ¶
Index ¶
- type PrivateKey
- type PublicKey
- type Scheme
- func (s Scheme) DerivePublic(priv *PrivateKey) (ret PublicKey)
- func (s Scheme) Generate(rng io.Reader) (retPub PublicKey, retPriv PrivateKey, _ error)
- func (s Scheme) MarshalPrivate(dst []byte, priv *PrivateKey)
- func (s Scheme) MarshalPublic(dst []byte, pub *PublicKey)
- func (s Scheme) ParsePrivate(x []byte) (PrivateKey, error)
- func (s Scheme) ParsePublic(x []byte) (PublicKey, error)
- func (s Scheme) PrivateKeySize() int
- func (s Scheme) PublicKeySize() int
- func (s Scheme) Sign(dst []byte, priv *PrivateKey, msg []byte)
- func (s Scheme) Sign512(dst []byte, priv *PrivateKey, input *sign.Input512)
- func (s Scheme) SignatureSize() int
- func (s Scheme) Verify(pub *PublicKey, msg, sig []byte) bool
- func (s Scheme) Verify512(pub *PublicKey, input *sign.Input512, sig []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey = [ed25519.PrivateKeySize]byte
func PrivateKeyFromStandard ¶
func PrivateKeyFromStandard(x ed25519.PrivateKey) (ret PrivateKey)
type Scheme ¶
type Scheme struct{}
func (Scheme) DerivePublic ¶
func (s Scheme) DerivePublic(priv *PrivateKey) (ret PublicKey)
func (Scheme) MarshalPrivate ¶
func (s Scheme) MarshalPrivate(dst []byte, priv *PrivateKey)
func (Scheme) MarshalPublic ¶
func (Scheme) ParsePrivate ¶
func (s Scheme) ParsePrivate(x []byte) (PrivateKey, error)
func (Scheme) PrivateKeySize ¶
func (Scheme) PublicKeySize ¶
func (Scheme) SignatureSize ¶
Click to show internal directories.
Click to hide internal directories.