encryption

package
v1.13.13 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MPL-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package encryption provides modules for the partition encryption handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler reads encryption config, creates appropriate encryption provider, handles encrypted partition open and close.

func NewHandler

func NewHandler(encryptionConfig block.EncryptionSpec, volumeID string, helpers Helpers) (*Handler, error)

NewHandler creates new Handler.

func (*Handler) Close

func (h *Handler) Close(ctx context.Context, encryptedPath string) error

Close encrypted partition.

func (*Handler) FormatAndEncrypt added in v1.8.0

func (h *Handler) FormatAndEncrypt(ctx context.Context, logger *zap.Logger, path string) error

FormatAndEncrypt formats and encrypts the volume.

func (*Handler) Name added in v1.12.0

func (h *Handler) Name() string

Name returns the name of the handler.

func (*Handler) Open

func (h *Handler) Open(ctx context.Context, logger *zap.Logger, devicePath, mappedName string) (string, int, []string, error)

Open encrypted partition.

type Helpers added in v1.11.0

type Helpers struct {
	GetSystemInformation helpers.SystemInformationGetter
	TPMLocker            helpers.TPMLockFunc
	SaltGetter           helpers.SaltGetter
}

Helpers provides helper methods for encryption handling.

type NodeParams added in v1.5.0

type NodeParams struct {
	UUID string
}

NodeParams contains node information relevant for the encryption handler.

Directories

Path Synopsis
Package helpers defines encryption handlers.
Package helpers defines encryption handlers.
Package keys contains various encryption KeyHandler implementations.
Package keys contains various encryption KeyHandler implementations.

Jump to

Keyboard shortcuts

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