keymanagement

package
v0.0.0-...-b180f38 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyInfo

type KeyInfo struct {
	ID           string
	PublicKey    []byte
	PrivateKey   []byte
	Algorithm    string
	CreatedAt    time.Time
	ExpiresAt    time.Time
	RotationTime time.Duration
	Version      int
	Status       KeyStatus
}

type KeyManager

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

func NewKeyManager

func NewKeyManager(
	quantumSafe *advanced.QuantumSafeEncryption,
	metrics *metrics.QuantumStorageMetrics,
	tracer tracing.Tracer,
) *KeyManager

func (*KeyManager) GenerateKeyPair

func (km *KeyManager) GenerateKeyPair(ctx context.Context, algorithm string) (*KeyInfo, error)

type KeyStatus

type KeyStatus string
const (
	KeyStatusActive   KeyStatus = "active"
	KeyStatusRotating KeyStatus = "rotating"
	KeyStatusRetired  KeyStatus = "retired"
	KeyStatusRevoked  KeyStatus = "revoked"
)

Jump to

Keyboard shortcuts

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