From a6971ade94bea9f7889fb39fecb5a8c2ded73008 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 2 Dec 2015 09:03:37 +0100 Subject: svg: add colored annotations Also, show the IV in the master key decryption process --- Documentation/file-content-encryption.svg | 149 +++++++++----- Documentation/file-name-encryption.svg | 72 +++++-- Documentation/master-key.svg | 329 +++++++++++++++++++----------- 3 files changed, 369 insertions(+), 181 deletions(-) (limited to 'Documentation') diff --git a/Documentation/file-content-encryption.svg b/Documentation/file-content-encryption.svg index ca5b92c..38a6f6b 100644 --- a/Documentation/file-content-encryption.svg +++ b/Documentation/file-content-encryption.svg @@ -19,19 +19,19 @@ + refY="0" + refX="0" + id="marker5544" + style="overflow:visible" + inkscape:isstock="true"> + style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1" + transform="matrix(-0.4,0,0,-0.4,-4,0)" + inkscape:connector-curvature="0" /> @@ -137,9 +137,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="0.98994949" - inkscape:cx="41.107625" - inkscape:cy="-17.942649" + inkscape:zoom="1.4" + inkscape:cx="209.93662" + inkscape:cy="128.77455" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true" @@ -174,7 +174,7 @@ image/svg+xml - + @@ -187,9 +187,9 @@ style="opacity:1;fill:#b0b0b0;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" id="rect4273-2" width="202.04813" - height="249.80321" + height="229.68066" x="498.51782" - y="118.70068" /> + y="138.82323" /> myfile.txt IV Authentication tag + x="530.06659" + y="306.5853" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.00295734px;font-family:sans-serif;-inkscape-font-specification:sans-serif;letter-spacing:0px">authentication tag Ciphertext + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.00295734px;font-family:sans-serif;-inkscape-font-specification:sans-serif;letter-spacing:0px">Ciphertext + N + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.00295734px;font-family:sans-serif;-inkscape-font-specification:sans-serif;letter-spacing:0px;fill:#000000;fill-opacity:1;">N + Master key + + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker-end:url(#marker5544)" + d="m 361.41732,336.31276 0,-35.99645" + id="path5536" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cc" /> + + IV + AAD diff --git a/Documentation/file-name-encryption.svg b/Documentation/file-name-encryption.svg index 3496bc1..19298c5 100644 --- a/Documentation/file-name-encryption.svg +++ b/Documentation/file-name-encryption.svg @@ -9,9 +9,9 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="158.73834mm" - height="31.410738mm" - viewBox="0 0 562.45868 111.29788" + width="158.73833mm" + height="39.28363mm" + viewBox="0 0 562.45863 139.19395" id="svg2" version="1.1" inkscape:version="0.91 r13725" @@ -135,8 +135,8 @@ inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="1.979899" - inkscape:cx="260.73066" - inkscape:cy="35.861249" + inkscape:cx="279.63722" + inkscape:cy="70.50185" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true" @@ -161,7 +161,7 @@ spacingx="3.543307" spacingy="3.5433069" originx="-116.36615" - originy="-716.05732" /> + originy="-688.1612" /> @@ -179,14 +179,14 @@ inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - transform="translate(-116.36615,-225.00692)"> + transform="translate(-116.36614,-225.00693)"> + y="251.7364" /> Directory X lrpyui0m-ypX4u0PNJ... Master key + + + + IV + id="tspan4157-9-7-3-8" + x="347.14761" + y="283.80792" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.00295734px;font-family:sans-serif;-inkscape-font-specification:sans-serif;letter-spacing:0px;fill:#aa00d4">IV diff --git a/Documentation/master-key.svg b/Documentation/master-key.svg index dff9a9a..bfc404a 100644 --- a/Documentation/master-key.svg +++ b/Documentation/master-key.svg @@ -9,25 +9,57 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="196.16408mm" - height="40.672203mm" - viewBox="0 0 695.06956 144.1141" + width="158.81688mm" + height="62.826447mm" + viewBox="0 0 562.73697 222.61338" id="svg2" version="1.1" inkscape:version="0.91 r13725" sodipodi:docname="master-key.svg"> + + + + inkscape:isstock="true" + inkscape:collect="always"> + + + + id="path11350" /> + originx="-16.196071" + originy="-900.13387" /> @@ -144,190 +176,259 @@ inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - transform="translate(-14.173229,32.683695)"> + transform="translate(-16.196072,70.385088)"> - + height="144.27431" + x="23.745562" + y="0.86738396" /> + x="34.379395" + y="14.30587" /> gocryptfs.conf User password Encrypted master key - Scrypt parameters + x="23.782686" + y="-62.798473" /> Scrypt - - AES-256-GCM - - - KEK Master key + x="465.00812" + y="100.67143" /> + + IV + + Encrypted master key + IV + authentication tag + Ciphertext + + + + + KEK + + + -- cgit v1.2.3