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.
Click to show internal directories.
Click to hide internal directories.