seedengine

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: AGPL-3.0 Imports: 11 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) DerivePodSecret

func (s *SeedEngine) DerivePodSecret(policyHash [hashSize]byte) ([]byte, error)

DerivePodSecret derives a secret for a pod from the policy hash 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