package
4.10.0
Repository: https://github.com/laisky/go-utils.git
Documentation: pkg.go.dev

# Packages

Package mem is a multi-key KMS in pure memory.

# Constants

EncryptedItemVer1 encrypted item in ver1 layout type EncryptedItem struct { Version EncryptedItemVer KekID uint16 DekID []byte Ciphertext []byte } layout: - [0,1): version - [1,3): dek id length - [3,5): kek id - [5,5+len(dek id)): dek id - [5+len(dek id),5+len(dek id)+len(ciphertext)]: ciphertext.
StatusImplemented status implemented.
StatusNoKeK need call `AddKek` add at least one kek.
StatusReady status ok.

# Structs

EncryptedData encrypted data.

# Interfaces

Interface interface of kms.

# Type aliases

EncryptedDataVer version of encrypted data.
Status status of kms.