age

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Alias = "age"

Alias is the EncryptionKey.Platform value for age recipients.

Variables

This section is empty.

Functions

func NewKeyGroup

func NewKeyGroup(ctx context.Context, key entities.EncryptionKey) (result keys.MasterKey, err error)

NewKeyGroup builds an age MasterKey from key.ID, expected to be an age public recipient string ("age1..."). Unlike the KMS-backed key groups, age.MasterKeyFromRecipient validates the recipient and can fail, which is why KeyGroupFunc returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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