seedengine

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package seedengine provides deterministic key derivation of ECDSA and symmetric keys from a secret seed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SeedEngine

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

SeedEngine provides deterministic key derivation of ECDSA and symmetric keys from a secret seed.

func New

func New(secretSeed []byte, salt []byte) (*SeedEngine, error)

New creates a new SeedEngine from a secret seed and a salt.

func (*SeedEngine) DeriveWorkloadSecret added in v1.1.0

func (s *SeedEngine) DeriveWorkloadSecret(workloadSecretID string) ([]byte, error)

DeriveWorkloadSecret derives a secret for a workload from the workload name and the secret seed.

func (*SeedEngine) GenerateMeshCAKey added in v0.8.1

func (s *SeedEngine) GenerateMeshCAKey() (*ecdsa.PrivateKey, error)

GenerateMeshCAKey generates a new random key for the mesh authority.

func (*SeedEngine) RootCAKey

func (s *SeedEngine) RootCAKey() *ecdsa.PrivateKey

RootCAKey returns the root CA key which is derived from the secret seed.

func (*SeedEngine) TransactionSigningKey

func (s *SeedEngine) TransactionSigningKey() *ecdsa.PrivateKey

TransactionSigningKey returns the transaction signing key which is derived from the secret seed.

Jump to

Keyboard shortcuts

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