Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PublicKey ¶
PublicKey represents a named ed25519 public key.
func ParsePublicKey ¶
ParsePublicKey decodes a serialized string, and returns a PublicKey struct, or an error.
type SecretKey ¶
type SecretKey struct {
// contains filtered or unexported fields
}
SecretKey represents a named ed25519 private key.
func LoadSecretKey ¶
LoadSecretKey decodes a <keyname>:<base64> pair into a SecretKey.
func (SecretKey) Sign ¶
Sign generates a signature for the fingerprint. If rand is nil, it will use rand.Reader.
func (SecretKey) ToPublicKey ¶
ToPublicKey derives the PublicKey from the SecretKey.
type Signature ¶
Signature represents a named ed25519 signature.
func ParseSignature ¶
ParseSignature decodes a <keyname>:<base64-signature-data> and returns a *Signature, or an error.
Click to show internal directories.
Click to hide internal directories.