From 007bfb29de17f4cf03bcfd1341c576bb2d8283c3 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 3 Jan 2013 16:31:03 +0100 Subject: Fix markup of Repository Format section --- README.rst | 41 ++++++++++++++++------------------------- 1 file changed, 16 insertions(+), 25 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 60f2063..2fbff23 100644 --- a/README.rst +++ b/README.rst @@ -120,37 +120,28 @@ Remote ID Repository Format ................. -``EncSign(X)`` - Sign and Encrypt to GPG key holder -``Encrypt(K,X)`` - Encrypt using symmetric-key algorithm -``Hash(X)`` - SHA-2/256 - -``B`` - branch list -``L`` - list of the hash (``Hi``) and key (``Ki``) for each packfile -``R`` - Remote ID - +| `EncSign(X):` Sign and Encrypt to GPG key holder +| `Encrypt(K,X):` Encrypt using symmetric-key algorithm +| `Hash(X):` SHA-2/256 +| +| `B:` branch list +| `L:` list of the hash (`Hi`) and key (`Ki`) for each packfile +| `R:` Remote ID | | To write the repository: | -| Store each packfile ``P`` as ``Encrypt(Ki, P) -> P'`` in filename ``Hi`` -| where ``Ki`` is a new random string and ``Hash(P') -> Hi`` -| Store ``EncSign(B || L || R)`` in the manifest +| Store each packfile `P` as `Encrypt(Ki, P)` → `P'` in filename `Hi` +| where `Ki` is a new random string and `Hash(P')` → `Hi` +| Store `EncSign(B || L || R)` in the manifest | | To read the repository: | -| Decrypt and verify manifest using GPG keyring ``-> (B, L, R)`` -| Warn if ``R`` does not match previously seen Remote ID -| for each ``Hi, Ki in L``: -| Get file ``Hi`` from the server ``-> P'`` -| Verify ``Hash(P')`` matches ``Hi`` -| Decrypt ``P'`` using ``Ki`` -> ``P`` then open ``P`` with git -| -| Only packs mentioned in ``L`` are downloaded. +| Get manifest, decrypt and verify using GPG keyring → `(B, L, R)` +| Warn if `R` does not match previously seen Remote ID +| for each `Hi, Ki` in `L`: +| Get file `Hi` from the server → `P'` +| Verify `Hash(P')` matches `Hi` +| Decrypt `P'` using `Ki` → `P` then open `P` with git Manifest file ............. -- cgit v1.2.3