localpg

package
v0.0.0-...-d96e93c Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: AGPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	DB    *sql.DB
	KekID string // UUID string of the active KEK row in trace_crypto.kek
}

func New

func New(db *sql.DB, kekID string) *Provider

func (*Provider) Name

func (p *Provider) Name() keys.ProviderName

func (*Provider) UnwrapDEK

func (p *Provider) UnwrapDEK(rc keys.RecordCtx, w keys.WrappedDEK) ([]byte, error)

func (*Provider) WrapDEK

func (p *Provider) WrapDEK(rc keys.RecordCtx, dek32 []byte) (keys.WrappedDEK, error)

Jump to

Keyboard shortcuts

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