1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 09:19:31 +00:00

Merge pull request #2544 from enkore/docs/ids-chunklayout

docs/data structures: add chunk layout diagram
This commit is contained in:
enkore 2017-05-21 17:46:01 +02:00 committed by GitHub
commit 334a7007da
3 changed files with 4 additions and 3 deletions

View file

@ -451,9 +451,10 @@ Encryption
AES_-256 is used in CTR mode (so no need for padding). A 64 bit initialization
vector is used, a MAC is computed on the encrypted chunk
and both are stored in the chunk.
The header of each chunk is: ``TYPE(1)`` + ``MAC(32)`` + ``NONCE(8)`` + ``CIPHERTEXT``.
Encryption and MAC use two different keys.
and both are stored in the chunk. Encryption and MAC use two different keys.
Each chunk consists of ``TYPE(1)`` + ``MAC(32)`` + ``NONCE(8)`` + ``CIPHERTEXT``:
.. figure:: encryption.png
In AES-CTR mode you can think of the IV as the start value for the counter.
The counter itself is incremented by one after each 16 byte block.

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.