encrypt

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 14

Documentation

Overview

Package encrypt represents the nodes current encryption state. It is used by the datapath to learn current encryption configuration and managed by golang linux datapath ./pkg/datapath/linux/ objects. This will reflect any key rotations/updates. +groupName=maps

Index

Constants

View Source
const (
	// MapName name of map used to pin map for datapath
	MapName = "cilium_encrypt_state"

	// MaxEntries represents the maximum number of current encryption contexts
	MaxEntries = 1
)

Variables

View Source
var Cell = cell.Module(
	"encryptmap",
	"IPsec encrypt map",
	cell.Provide(newEncryptMap),
)

Functions

This section is empty.

Types

type EncryptKey

type EncryptKey struct {
	Key uint32 `align:"ctx"`
}

EncryptKey is the context ID for the encryption session

func (EncryptKey) New

func (k EncryptKey) New() bpf.MapKey

func (EncryptKey) String

func (k EncryptKey) String() string

String pretty print the EncryptKey

type EncryptMap added in v1.19.0

type EncryptMap interface {
	Update(key EncryptKey, val EncryptValue) error
	Lookup(key EncryptKey) (EncryptValue, error)
	UnpinIfExists() error
}

type EncryptValue

type EncryptValue struct {
	KeyID uint8
}

EncryptValue is ID assigned to the keys

func (EncryptValue) New

func (v EncryptValue) New() bpf.MapValue

func (EncryptValue) String

func (v EncryptValue) String() string

String pretty print the EncryptValue.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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