Skip to main content

Module key

Module key 

Source
Expand description

The repository key and everything derived from it.

The key file holds a 32-byte master key, never a cipher key. Different ciphers take keys of different lengths — AES-256-SIV wants 64 bytes, AES-256-GCM-SIV and XChaCha20 want 32 — and the key file is as frozen as the data format once it sits in a user’s backups. Deriving per suite is what keeps a future suite from stranding it.

Structs§

MasterKey
The repository key.
SuiteKey
A working key derived for one cipher suite.

Constants§

MASTER_KEY_LEN
Length of the master key stored in the key file.
SIV_KEY_LEN
Length of the key AES-256-SIV expects: an S2V half and a CTR half.