ed25519

package
v1.372.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled

func IsEnabled(cfg *Config) bool

IsEnabled for ed25519.

Types

type Config

type Config struct {
	Public  string `yaml:"public,omitempty" json:"public,omitempty" toml:"public,omitempty"`
	Private string `yaml:"private,omitempty" json:"private,omitempty" toml:"private,omitempty"`
}

Config for ed25519.

func (*Config) PrivateKey added in v1.214.1

func (c *Config) PrivateKey() (ed25519.PrivateKey, error)

PrivateKey ed25519.

func (*Config) PublicKey added in v1.214.1

func (c *Config) PublicKey() (ed25519.PublicKey, error)

PublicKey ed25519.

type Generator added in v1.367.0

type Generator struct {
	// contains filtered or unexported fields
}

Generator for hmac.

func NewGenerator added in v1.367.0

func NewGenerator(gen *rand.Generator) *Generator

NewGenerator for ed25519.

func (*Generator) Generate added in v1.367.0

func (g *Generator) Generate() (pub string, pri string, err error)

Generate key pair with Ed25519.

type None added in v1.324.0

type None struct {
	algo.Signer
}

None for ed25519.

func (*None) PrivateKey added in v1.324.0

func (a *None) PrivateKey() ed25519.PrivateKey

PrivateKey for none.

func (*None) PublicKey added in v1.324.0

func (a *None) PublicKey() ed25519.PublicKey

PublicKey for none.

type Signer added in v1.367.0

type Signer interface {
	algo.Signer

	// PublicKey for ed25519.
	PublicKey() ed25519.PublicKey

	// PrivateKey for ed25519.
	PrivateKey() ed25519.PrivateKey
}

Signer for ed25519.

func NewSigner added in v1.367.0

func NewSigner(cfg *Config) (Signer, error)

NewSigner for ed25519.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL