Skip to main content

Module crypto

Module crypto 

Source
Expand description

The cipher, the two frozen file formats, and the key they share.

Grouped because they move together or not at all: [format] is frozen with the data on disk, keyfile with the copies users hold, and cipher is what makes both mean anything. A change here rewrites bytes that already exist in someone’s history, which is why CHANGELOG.md lists them under their own heading rather than among ordinary changes.

Modules§

cipher
Encryption and decryption — the one pair of functions every path shares.
format
The on-disk format of an encrypted file.
key
The repository key and everything derived from it.
keyfile
Reading and writing the repository key on disk.