-
Notifications
You must be signed in to change notification settings - Fork 0
/
Untitled Diagram.drawio
164 lines (164 loc) · 12.8 KB
/
Untitled Diagram.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<mxfile host="app.diagrams.net" modified="2021-01-22T06:42:31.753Z" agent="5.0 (Windows)" etag="bvjNy9qszvz_lgaWwYdD" version="14.2.6" type="github">
<diagram id="m5tf5fxcq8H1GciWqtPe" name="Page-1">
<mxGraphModel dx="2031" dy="1104" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="JHSvybwst3q2iPqDXoza-27" value="" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f9f7ed;strokeColor=#36393d;dashed=1;strokeWidth=2;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="330" y="10" width="260" height="900" as="geometry" />
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-1" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontStyle=0" parent="1" vertex="1">
<mxGeometry x="170" y="40" width="10" height="520" as="geometry" />
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-7" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;entryX=-0.1;entryY=0.011;entryDx=0;entryDy=0;entryPerimeter=0;rounded=1;fontStyle=0" parent="1" source="grwM2bD77l3cpqWwUeGF-2" target="grwM2bD77l3cpqWwUeGF-5" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="510" y="80" />
<mxPoint x="510" y="128" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-2" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontStyle=0" parent="1" vertex="1">
<mxGeometry x="450" y="40" width="20" height="520" as="geometry" />
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-6" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;entryX=1.008;entryY=0.024;entryDx=0;entryDy=0;entryPerimeter=0;rounded=1;fontStyle=0" parent="1" source="grwM2bD77l3cpqWwUeGF-3" target="grwM2bD77l3cpqWwUeGF-2" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="605" y="52" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-11" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.125;entryDx=0;entryDy=0;entryPerimeter=0;rounded=1;fontStyle=0" parent="1" source="grwM2bD77l3cpqWwUeGF-3" target="grwM2bD77l3cpqWwUeGF-9" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="760" y="90" />
<mxPoint x="760" y="90" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-14" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;rounded=1;fontStyle=0" parent="1" source="grwM2bD77l3cpqWwUeGF-3" target="grwM2bD77l3cpqWwUeGF-13" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="805" y="200" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-19" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;entryX=1.107;entryY=0.372;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=8;fontStyle=0" edge="1" parent="1" source="grwM2bD77l3cpqWwUeGF-3" target="grwM2bD77l3cpqWwUeGF-5">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="600" y="395" />
<mxPoint x="600" y="395" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-24" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=8;fontStyle=0" edge="1" parent="1" source="grwM2bD77l3cpqWwUeGF-3" target="JHSvybwst3q2iPqDXoza-23">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="800" y="720" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-3" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontStyle=0" parent="1" vertex="1">
<mxGeometry x="740" y="40" width="10" height="1050" as="geometry" />
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-4" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontStyle=0" parent="1" vertex="1">
<mxGeometry x="360" y="120" width="10" height="520" as="geometry" />
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-12" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;rounded=1;fontStyle=0" parent="1" source="grwM2bD77l3cpqWwUeGF-5" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="739" y="180" as="targetPoint" />
<Array as="points">
<mxPoint x="739" y="180" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-18" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=8;fontStyle=0" edge="1" parent="1" source="grwM2bD77l3cpqWwUeGF-5" target="JQpLg1kgaqUB1PpC1TLs-1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="515" y="430" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-21" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.014;entryY=0.607;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=8;fontStyle=0" edge="1" parent="1" source="grwM2bD77l3cpqWwUeGF-5" target="grwM2bD77l3cpqWwUeGF-3">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="710" y="677" />
<mxPoint x="710" y="677" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-5" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontStyle=0" parent="1" vertex="1">
<mxGeometry x="550" y="120" width="10" height="740" as="geometry" />
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-9" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=0" parent="1" vertex="1">
<mxGeometry x="820" y="80" width="10" height="80" as="geometry" />
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-10" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=0" parent="1" vertex="1">
<mxGeometry x="90" y="80" width="10" height="80" as="geometry" />
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-15" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;rounded=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1.056;entryY=0.304;entryDx=0;entryDy=0;entryPerimeter=0;fontStyle=0" parent="1" source="grwM2bD77l3cpqWwUeGF-13" target="grwM2bD77l3cpqWwUeGF-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="805" y="359" />
<mxPoint x="751" y="359" />
</Array>
<mxPoint x="805" y="339" as="sourcePoint" />
<mxPoint x="760" y="367" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="grwM2bD77l3cpqWwUeGF-13" value="Client generated a random symmetric key and encrypts it with the server's public key" style="rounded=1;whiteSpace=wrap;html=1;fontStyle=0;fontSize=8;" parent="1" vertex="1">
<mxGeometry x="780" y="230" width="50" height="100" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-20" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;fontSize=8;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.703;entryDx=0;entryDy=0;entryPerimeter=0;fontStyle=0" edge="1" parent="1" source="JQpLg1kgaqUB1PpC1TLs-1" target="grwM2bD77l3cpqWwUeGF-5">
<mxGeometry relative="1" as="geometry">
<mxPoint x="550" y="710" as="targetPoint" />
<Array as="points">
<mxPoint x="515" y="640" />
<mxPoint x="550" y="640" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="JQpLg1kgaqUB1PpC1TLs-1" value="Server will decrypt this message with its private key and extract the symmetric key sent by the client. This key is called "clientKey"" style="rounded=1;whiteSpace=wrap;html=1;fontSize=8;fontStyle=0" parent="1" vertex="1">
<mxGeometry x="490" y="470" width="50" height="140" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-7" value="Alice opens a TCP connection" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontStyle=0;fontSize=8;" vertex="1" parent="1">
<mxGeometry x="545" y="30" width="120" height="20" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-8" value="<div>Client handler <br></div><div>routine </div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="504" y="90" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-9" value="Alice" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="725" y="20" width="40" height="20" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-10" value="REPL" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="800" y="60" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-11" value="["connection_successful"] AND public key" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontSize=8;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="570" y="160" width="150" height="20" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-12" value="Start REPL" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontSize=8;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="755" y="70" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-13" value="<div>["server_key_exchange"] <br></div><div>AND a random symmetric key <br></div><div>encrypted with server's public key <br></div><div>AND client public key</div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontSize=8;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="590" y="350" width="130" height="50" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-22" value="<div>["server_key_ack"] <br></div><div>AND ["server_key_ack"] <br></div><div>encrypted with "clientKey"</div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontSize=8;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="605" y="640" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-25" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;entryX=1.186;entryY=0.819;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=8;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontStyle=0" edge="1" parent="1" source="JHSvybwst3q2iPqDXoza-23" target="grwM2bD77l3cpqWwUeGF-3">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="800" y="900" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-23" value="Verify if the tag ["server_key_ack"] and the encrypted tag are the same using the random symmetric key "clientKey"" style="rounded=1;whiteSpace=wrap;html=1;fontStyle=0;fontSize=8;" vertex="1" parent="1">
<mxGeometry x="760" y="770" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="JHSvybwst3q2iPqDXoza-26" value="SERVER" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontSize=12;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="430" y="20" width="60" height="20" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>