<mxfile host="app.diagrams.net"><diagram id="tls-handshake" name="TLS 1.3: before the HTTP exchange"><mxGraphModel dx="900" dy="1040" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="900" pageHeight="1040" background="#ffffff"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="shape-0" value="TLS 1.3: before the HTTP exchange" style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=27;fontColor=#172b4d;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="36" y="26" width="828" height="26" as="geometry"/></mxCell>
<mxCell id="shape-1" value="A simplified full handshake with server certificate authentication." style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=18;fontColor=#526176;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="36" y="70" width="828" height="26" as="geometry"/></mxCell>
<mxCell id="shape-2" value="" style="rounded=1;arcSize=12;whiteSpace=wrap;html=0;fillColor=#eff6ff;strokeColor=#1d4ed8;strokeWidth=1.75;dashed=0;" vertex="1" parent="1"><mxGeometry x="60" y="120" width="230" height="78" as="geometry"/></mxCell>
<mxCell id="shape-3" value="Client" style="text;html=0;whiteSpace=wrap;overflow=visible;align=center;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=21;fontColor=#172b4d;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="70" y="130" width="210" height="26" as="geometry"/></mxCell>
<mxCell id="shape-4" value="Validates the server" style="text;html=0;whiteSpace=wrap;overflow=visible;align=center;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=17;fontColor=#526176;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="70" y="162" width="210" height="26" as="geometry"/></mxCell>
<mxCell id="shape-5" value="" style="rounded=1;arcSize=12;whiteSpace=wrap;html=0;fillColor=#ecfdf5;strokeColor=#047857;strokeWidth=1.75;dashed=0;" vertex="1" parent="1"><mxGeometry x="610" y="120" width="230" height="78" as="geometry"/></mxCell>
<mxCell id="shape-6" value="HTTPS server" style="text;html=0;whiteSpace=wrap;overflow=visible;align=center;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=21;fontColor=#172b4d;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="620" y="130" width="210" height="26" as="geometry"/></mxCell>
<mxCell id="shape-7" value="Presents its certificate" style="text;html=0;whiteSpace=wrap;overflow=visible;align=center;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=17;fontColor=#526176;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="620" y="162" width="210" height="26" as="geometry"/></mxCell>
<mxCell id="shape-8" style="edgeStyle=none;rounded=0;html=0;strokeColor=#64748b;strokeWidth=2.25;endArrow=none;endFill=1;startArrow=none;startFill=1;dashed=1;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="175" y="198" as="sourcePoint"/><mxPoint x="175" y="964" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="shape-9" style="edgeStyle=none;rounded=0;html=0;strokeColor=#64748b;strokeWidth=2.25;endArrow=none;endFill=1;startArrow=none;startFill=1;dashed=1;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="725" y="198" as="sourcePoint"/><mxPoint x="725" y="964" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="shape-10" value="1  Offer parameters and a key share" style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=20;fontColor=#1d4ed8;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="230" y="222" width="440" height="26" as="geometry"/></mxCell>
<mxCell id="shape-11" value="" style="rounded=1;arcSize=12;whiteSpace=wrap;html=0;fillColor=#eff6ff;strokeColor=#1d4ed8;strokeWidth=1.75;dashed=0;" vertex="1" parent="1"><mxGeometry x="230" y="256" width="440" height="49" as="geometry"/></mxCell>
<mxCell id="shape-12" value="ClientHello + key_share" style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Courier New;fontSize=17;fontColor=#172b4d;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="246" y="268" width="408" height="25" as="geometry"/></mxCell>
<mxCell id="shape-13" style="edgeStyle=none;rounded=0;html=0;strokeColor=#1d4ed8;strokeWidth=2.25;endArrow=block;endFill=1;startArrow=none;startFill=1;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="175" y="323" as="sourcePoint"/><mxPoint x="725" y="323" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="shape-14" value="2  Select parameters and a key share" style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=20;fontColor=#047857;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="230" y="350" width="440" height="26" as="geometry"/></mxCell>
<mxCell id="shape-15" value="" style="rounded=1;arcSize=12;whiteSpace=wrap;html=0;fillColor=#ecfdf5;strokeColor=#047857;strokeWidth=1.75;dashed=0;" vertex="1" parent="1"><mxGeometry x="230" y="384" width="440" height="49" as="geometry"/></mxCell>
<mxCell id="shape-16" value="ServerHello + key_share" style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Courier New;fontSize=17;fontColor=#172b4d;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="246" y="396" width="408" height="25" as="geometry"/></mxCell>
<mxCell id="shape-17" style="edgeStyle=none;rounded=0;html=0;strokeColor=#047857;strokeWidth=2.25;endArrow=block;endFill=1;startArrow=none;startFill=1;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="725" y="451" as="sourcePoint"/><mxPoint x="175" y="451" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="shape-18" value="3  Protected handshake messages" style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=20;fontColor=#047857;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="230" y="478" width="440" height="26" as="geometry"/></mxCell>
<mxCell id="shape-19" value="" style="rounded=1;arcSize=12;whiteSpace=wrap;html=0;fillColor=#ecfdf5;strokeColor=#047857;strokeWidth=1.75;dashed=0;" vertex="1" parent="1"><mxGeometry x="230" y="512" width="440" height="99" as="geometry"/></mxCell>
<mxCell id="shape-20" value="EncryptedExtensions&#xa;Certificate + CertificateVerify&#xa;Finished" style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Courier New;fontSize=17;fontColor=#172b4d;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="246" y="524" width="408" height="75" as="geometry"/></mxCell>
<mxCell id="shape-21" style="edgeStyle=none;rounded=0;html=0;strokeColor=#047857;strokeWidth=2.25;endArrow=block;endFill=1;startArrow=none;startFill=1;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="725" y="629" as="sourcePoint"/><mxPoint x="175" y="629" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="shape-22" value="" style="rounded=1;arcSize=12;whiteSpace=wrap;html=0;fillColor=#eff6ff;strokeColor=#1d4ed8;strokeWidth=1.75;dashed=1;" vertex="1" parent="1"><mxGeometry x="52" y="688" width="310" height="74" as="geometry"/></mxCell>
<mxCell id="shape-23" value="Check the hostname, trust chain,&#xa;signature, and Finished." style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=18;fontColor=#172b4d;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="66" y="698" width="282" height="50" as="geometry"/></mxCell>
<mxCell id="shape-24" value="4  Client confirms the handshake" style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=20;fontColor=#1d4ed8;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="230" y="800" width="440" height="26" as="geometry"/></mxCell>
<mxCell id="shape-25" value="" style="rounded=1;arcSize=12;whiteSpace=wrap;html=0;fillColor=#eff6ff;strokeColor=#1d4ed8;strokeWidth=1.75;dashed=0;" vertex="1" parent="1"><mxGeometry x="230" y="834" width="440" height="49" as="geometry"/></mxCell>
<mxCell id="shape-26" value="Finished" style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Courier New;fontSize=17;fontColor=#172b4d;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="246" y="846" width="408" height="25" as="geometry"/></mxCell>
<mxCell id="shape-27" style="edgeStyle=none;rounded=0;html=0;strokeColor=#1d4ed8;strokeWidth=2.25;endArrow=block;endFill=1;startArrow=none;startFill=1;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="175" y="901" as="sourcePoint"/><mxPoint x="725" y="901" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="shape-28" value="Protected HTTP data in both directions" style="text;html=0;whiteSpace=wrap;overflow=visible;align=center;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=18;fontColor=#172b4d;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="230" y="936" width="440" height="26" as="geometry"/></mxCell>
<mxCell id="shape-29" style="edgeStyle=none;rounded=0;html=0;strokeColor=#6d28d9;strokeWidth=2.25;endArrow=block;endFill=1;startArrow=block;startFill=1;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="175" y="970" as="sourcePoint"/><mxPoint x="725" y="970" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="shape-30" style="edgeStyle=none;rounded=0;html=0;strokeColor=#cbd5e1;strokeWidth=1;endArrow=none;endFill=1;startArrow=none;startFill=1;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="36" y="983" as="sourcePoint"/><mxPoint x="864" y="983" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="shape-31" value="Handshake keys protect the server flight after ServerHello. Resumption and 0-RTT are omitted." style="text;html=0;whiteSpace=wrap;overflow=visible;align=left;verticalAlign=top;spacing=0;fontFamily=Arial;fontSize=16;fontColor=#526176;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="36" y="998" width="828" height="26" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
