testing

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package testing provides shared test utilities for tokenization module tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKekChain

func CreateKekChain(masterKey *cryptoDomain.MasterKey) *cryptoDomain.KekChain

CreateKekChain creates a test KEK chain with a single active KEK.

func CreateMasterKey

func CreateMasterKey() *cryptoDomain.MasterKey

CreateMasterKey creates a test master key with a random 32-byte key.

func CreateTestDek

func CreateTestDek(kek *cryptoDomain.Kek) cryptoDomain.Dek

CreateTestDek creates a test DEK for the given KEK.

func GetActiveKek

func GetActiveKek(kekChain *cryptoDomain.KekChain) *cryptoDomain.Kek

GetActiveKek retrieves the active KEK from a chain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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