darkbio-crypto 0.13.0

Cryptography primitives and wrappers
Documentation
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36" version="29.3.6">
  <diagram name="Module Hierarchy" id="2sXwACe8bV9k3hpylSA9">
    <mxGraphModel dx="952" dy="696" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="i2qF8xEKmW8EnwS0ETso-3" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;verticalAlign=top;fontStyle=1;fontSize=14;spacingTop=5;shadow=0;fontColor=#333333;" value="Digital Signatures" vertex="1">
          <mxGeometry height="200" width="330" x="160" y="130" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-4" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=0;" value="&lt;b&gt;xDSA&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Composite MLDSA&lt;/font&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="340" y="170" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-5" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;shadow=0;" value="&lt;b&gt;EdDSA&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Ed25519 · RFC-8032&lt;/font&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="180" y="264" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-6" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=0;" value="&lt;b&gt;MLDSA&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size: 10px;&quot;&gt;Level 3 · RFC-&lt;/font&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;9881&lt;/span&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="340" y="264" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-7" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;shadow=0;" value="&lt;b&gt;RSA&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;2048-bit · RFC-8017&lt;/font&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="180" y="170" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-8" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;verticalAlign=top;fontStyle=1;fontSize=14;spacingTop=5;shadow=0;fontColor=#333333;" value="Encryption" vertex="1">
          <mxGeometry height="200" width="330" x="530" y="130" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-9" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=0;" value="&lt;b&gt;xHPKE&lt;/b&gt;&lt;font style=&quot;&quot;&gt;&lt;b&gt;&amp;nbsp;· RFC-9180&lt;/b&gt;&lt;/font&gt;&lt;div&gt;&lt;font style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;X-WING KEM&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="550" y="170" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-10" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;shadow=0;dashed=1;" value="&lt;b&gt;X25519&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;RFC-7748&lt;/font&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="710" y="264" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-11" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=0;dashed=1;" value="&lt;b&gt;MLKEM&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;ML-KEM-768 (Level 3)&lt;/font&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="550" y="264" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-12" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;shadow=0;" value="&lt;b&gt;STREAM&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;ChaCha20-Poly1305&lt;/font&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="710" y="170" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-13" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;verticalAlign=top;fontStyle=1;fontSize=14;spacingTop=5;fontColor=#333333;shadow=0;" value="Key Derivation" vertex="1">
          <mxGeometry height="100" width="330" x="530" y="370" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-14" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;shadow=0;" value="&lt;b&gt;Argon2&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;id variant · RFC-9106&lt;/font&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="550" y="410" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-15" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;verticalAlign=top;fontStyle=1;fontSize=14;spacingTop=5;fontColor=#333333;shadow=0;" value="Serialization" vertex="1">
          <mxGeometry height="100" width="330" x="160" y="370" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-16" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=0;" value="&lt;b&gt;CBOR&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Restricted&amp;nbsp;·&amp;nbsp;RFC-8949&lt;/font&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="180" y="410" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-19" edge="1" parent="1" source="i2qF8xEKmW8EnwS0ETso-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#b85450;strokeWidth=2;endArrow=classic;shadow=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fillColor=#f8cecc;" target="i2qF8xEKmW8EnwS0ETso-5">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="405" y="240" />
              <mxPoint x="245" y="240" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-20" edge="1" parent="1" source="i2qF8xEKmW8EnwS0ETso-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#d6b656;strokeWidth=2;endArrow=classic;shadow=0;fillColor=#fff2cc;" target="i2qF8xEKmW8EnwS0ETso-6">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-21" edge="1" parent="1" source="i2qF8xEKmW8EnwS0ETso-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#d6b656;strokeWidth=2;endArrow=classic;shadow=0;fillColor=#fff2cc;" target="i2qF8xEKmW8EnwS0ETso-11">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="615" y="250" />
              <mxPoint x="615" y="250" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-22" edge="1" parent="1" source="i2qF8xEKmW8EnwS0ETso-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#b85450;strokeWidth=2;endArrow=classic;shadow=0;fillColor=#f8cecc;" target="i2qF8xEKmW8EnwS0ETso-10">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="615" y="240" />
              <mxPoint x="775" y="240" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-23" parent="1" style="rounded=1;whiteSpace=wrap;html=1;strokeWidth=1;dashed=1;" value="" vertex="1">
          <mxGeometry height="120" width="180" x="680" y="490" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-24" parent="1" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;" value="&lt;b&gt;Legend&lt;/b&gt;" vertex="1">
          <mxGeometry height="20" width="60" x="690" y="495" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-25" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" value="" vertex="1">
          <mxGeometry height="15" width="20" x="690" y="520" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-26" parent="1" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;" value="Quantum secure" vertex="1">
          <mxGeometry height="15" width="80" x="720" y="520" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-27" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" value="" vertex="1">
          <mxGeometry height="15" width="20" x="690" y="560" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-28" parent="1" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;" value="Quantum insecure" vertex="1">
          <mxGeometry height="15" width="100" x="720" y="560" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-29" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" value="" vertex="1">
          <mxGeometry height="15" width="20" x="690" y="540" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-30" parent="1" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;" value="Quantum secure (hopefully)" vertex="1">
          <mxGeometry height="15" width="130" x="720" y="540" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-31" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" value="" vertex="1">
          <mxGeometry height="15" width="20" x="690" y="580" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-32" parent="1" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;" value="Quantum irrelevant" vertex="1">
          <mxGeometry height="15" width="100" x="720" y="580" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-33" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;shadow=0;" value="&lt;b&gt;HKDF&lt;/b&gt;&lt;br&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;SHA256&lt;/span&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp;·&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;RFC-5869&lt;/span&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="710" y="410" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-34" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=0;" value="&lt;b&gt;COSE&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;sign-encrypt · RFC-&lt;/font&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;8152&lt;/span&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="340" y="410" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-35" edge="1" parent="1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#d6b656;strokeWidth=2;endArrow=classic;shadow=0;fillColor=#fff2cc;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="i2qF8xEKmW8EnwS0ETso-4">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="510" y="435" />
              <mxPoint x="510" y="195" />
            </Array>
            <mxPoint x="470" y="435" as="sourcePoint" />
            <mxPoint x="655" y="620" as="targetPoint" />
          </mxGeometry>
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-36" edge="1" parent="1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#d6b656;strokeWidth=2;endArrow=classic;shadow=0;fillColor=#fff2cc;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="i2qF8xEKmW8EnwS0ETso-9">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="510" y="435" />
              <mxPoint x="510" y="195" />
            </Array>
            <mxPoint x="470" y="435" as="sourcePoint" />
            <mxPoint x="549.99" y="171.49" as="targetPoint" />
          </mxGeometry>
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-37" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;verticalAlign=top;fontStyle=1;fontSize=14;spacingTop=5;fontColor=#333333;shadow=0;" value="Credential / Attestation" vertex="1">
          <mxGeometry height="100" width="330" x="160" y="510" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-38" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=0;" value="&lt;b&gt;CWT&lt;/b&gt;&lt;br&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;RFC-8392&lt;/span&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="340" y="550" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-39" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=0;" value="&lt;b&gt;EAT&lt;/b&gt;&lt;br&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;RFC-9711&lt;/span&gt;" vertex="1">
          <mxGeometry height="50" width="130" x="180" y="550" as="geometry" />
        </mxCell>
        <mxCell id="i2qF8xEKmW8EnwS0ETso-42" edge="1" parent="1" source="i2qF8xEKmW8EnwS0ETso-38" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#d6b656;strokeWidth=2;endArrow=classic;shadow=0;fillColor=#fff2cc;entryX=0.5;entryY=1;entryDx=0;entryDy=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" target="i2qF8xEKmW8EnwS0ETso-34">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="550" y="580" as="sourcePoint" />
            <mxPoint x="550" y="624" as="targetPoint" />
          </mxGeometry>
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>