package
0.2.0
Repository: https://github.com/unit-io/unitdb.git
Documentation: pkg.go.dev

# Functions

New builds a new MAC using a 256-bit/32 byte encryption key, a numeric epoch and numeric pseudo-random salt.
Signature signature is used in the message encryption to validate signature of the message signature is added to the destination slice.
SignatureToUint32 returns uint32 for signature.

# Constants

EpochSize length of epoch.
MessageOffset offset for the message without overhead.

# Structs

MAC has the ability to encrypt and decrypt (short) messages as long as they share the same key and the same epoch.