From 6515c8d42cfe6b448a73ef5811b3a14c8363ea6c Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 1 Dec 2015 21:13:38 +0100 Subject: [PATCH] Add svgs explaining the encryption steps --- .gitignore | 4 +- Documentation/.gitignore | 2 + Documentation/file-content-encryption.svg | 459 ++++++++++++++++++++++ Documentation/file-name-encryption.svg | 328 ++++++++++++++++ Documentation/master-key.svg | 333 ++++++++++++++++ 5 files changed, 1123 insertions(+), 3 deletions(-) create mode 100644 Documentation/.gitignore create mode 100644 Documentation/file-content-encryption.svg create mode 100644 Documentation/file-name-encryption.svg create mode 100644 Documentation/master-key.svg diff --git a/.gitignore b/.gitignore index 051ac5e..5108eb7 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,4 @@ # binary releases /*.tar.gz - -# manpage generated by MANPAGE-render.bash -/gocryptfs.1 +c diff --git a/Documentation/.gitignore b/Documentation/.gitignore new file mode 100644 index 0000000..e35bb1d --- /dev/null +++ b/Documentation/.gitignore @@ -0,0 +1,2 @@ +# Rendered manpage +*.1 diff --git a/Documentation/file-content-encryption.svg b/Documentation/file-content-encryption.svg new file mode 100644 index 0000000..ca5b92c --- /dev/null +++ b/Documentation/file-content-encryption.svg @@ -0,0 +1,459 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + myfile.txt + File ID + Block N + IV + Authentication tag + Ciphertext + + ... + ... + + Plaintext + + + AES-256-GCM + /dev/urandom + + + + + + + + + N + + + + + diff --git a/Documentation/file-name-encryption.svg b/Documentation/file-name-encryption.svg new file mode 100644 index 0000000..3496bc1 --- /dev/null +++ b/Documentation/file-name-encryption.svg @@ -0,0 +1,328 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + Directory X + gocryptfs.diriv + + + AES-256-CBC + + + + "letter.doc" + + + lrpyui0m-ypX4u0PNJ... + IV + + diff --git a/Documentation/master-key.svg b/Documentation/master-key.svg new file mode 100644 index 0000000..096e890 --- /dev/null +++ b/Documentation/master-key.svg @@ -0,0 +1,333 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + gocryptfs.conf + User password + Encrypted master key + Scrypt parameters + + + Scrypt + + + + AES-256-GCM + + + KEK + Master key + + + +