summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html15
-rw-r--r--templates/key-commitment.html21
-rw-r--r--templates/mac-truncation.html11
-rw-r--r--templates/nonce-reuse.html11
4 files changed, 9 insertions, 49 deletions
diff --git a/templates/index.html b/templates/index.html
index e864b19..89ae0e1 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -132,19 +132,6 @@
</ol>
</div>
</details>
- <!-- <script id="MathJax-script" async src="/forbidden-salamanders/static/mathjax.js"></script> -->
- <!-- <script type="text/x-mathjax-config"> -->
- <!-- MathJax.Hub.Config({ TeX: { extensions: ["AMSmath.js", "AMSsymbols.js"] }}); -->
- <!-- </script> -->
-<script>
-MathJax = {
- tex: {
- extensions: ["AMSmath.js", "AMSsymbols.js"]
- }
-};
-</script>
-<script id="MathJax-script" async
- src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
-</script>
+ <script id="MathJax-script" async src="/forbidden-salamanders/static/tex-chtml.js"></script>
</body>
</html>
diff --git a/templates/key-commitment.html b/templates/key-commitment.html
index af1e656..7056541 100644
--- a/templates/key-commitment.html
+++ b/templates/key-commitment.html
@@ -109,7 +109,7 @@ go build -o /tmp/decrypt-aes-gcm /tmp/decrypt-aes-gcm.go
&lt; polyglot.enc /tmp/decrypt-aes-gcm 5c3cb198432b0903e58de9c9647bd241 4a4f5247454c424f52474553 &gt; /tmp/polyglot-first.jpg
&lt; polyglot.enc /tmp/decrypt-aes-gcm df923ae8976230008a081d23205d7a4f 4a4f5247454c424f52474553 &gt; /tmp/polyglot-second.bmp
</pre>
- <etails>
+ <details>
<summary>
Attack outline.
</summary>
@@ -225,8 +225,8 @@ go build -o /tmp/decrypt-aes-gcm /tmp/decrypt-aes-gcm.go
indicates the encryption of the JPEG cells under \(k_1\).
\[
\begin{array}{|c|c|}\hline
- \mathsf{JPEG} && & \mathtt{00}^{J-\vert \textrm{BMP}\vert} & \textrm{JPEG} & \mathtt{ffd9} \\
- C & C_H & \downarrow & \uparrow & \uparrow & \uparrow\\
+ \mathsf{JPEG} && & & \textrm{JPEG} & \mathtt{ffd9} \\
+ C & C_H & \downarrow & \mathtt{00}^{J-\vert \textrm{BMP}\vert}& \uparrow & \uparrow\\
\mathsf{BMP} && \textrm{BMP} & & & \\\hline
\end{array}
\]
@@ -257,8 +257,8 @@ go build -o /tmp/decrypt-aes-gcm /tmp/decrypt-aes-gcm.go
\]
\[
\begin{array}{|c|c|}\hline
- \mathsf{JPEG} && & \mathtt{00}^{J-\vert \textrm{BMP}\vert} & \mathrm{JPEG} & \mathtt{fffe} & J' & \mathtt{00}^{J'} & & \mathtt{00}^{14} & \mathtt{ffd9} \\
- C & C_{H} & \downarrow & \uparrow & \uparrow & \uparrow & \uparrow & \uparrow & X & \uparrow & \uparrow \\
+ \mathsf{JPEG} && & & \mathrm{JPEG} & \mathtt{fffe} & J' & & & & \mathtt{ffd9} \\
+ C & C_{H} & \downarrow & \mathtt{00}^{J-\vert \textrm{BMP}\vert}& \uparrow & \uparrow & \uparrow &\mathtt{00}^{J'} & X & \mathtt{00}^{14}& \uparrow \\
\mathsf{BMP} && \textrm{BMP} & & \\\hline
\end{array}
\]
@@ -276,15 +276,6 @@ with open('first.jpg', 'rb') as h:
with open('second.bmp', 'rb') as h:
bmp = h.read()
c, mac = att_merge_jpg_bmp(jpg, bmp, aad=b"")</pre></details>
-<script>
-MathJax = {
- tex: {
- extensions: ["AMSmath.js", "AMSsymbols.js"]
- }
-};
-</script>
-<script id="MathJax-script" async
- src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
-</script>
+ <script id="MathJax-script" async src="/forbidden-salamanders/static/tex-chtml.js"></script>
</body>
</html>
diff --git a/templates/mac-truncation.html b/templates/mac-truncation.html
index 9b36de9..7dfb906 100644
--- a/templates/mac-truncation.html
+++ b/templates/mac-truncation.html
@@ -374,15 +374,6 @@ m_forged = b"As was natural, this inordinate hope"
c_forged, aad_forged = xor(c, xor(m, m_forged)), b""
mac_forged = gmac(h, s, aad_forged, c_forged)</pre></details>
-<script>
-MathJax = {
- tex: {
- extensions: ["AMSmath.js", "AMSsymbols.js"]
- }
-};
-</script>
-<script id="MathJax-script" async
- src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
-</script>
+ <script id="MathJax-script" async src="/forbidden-salamanders/static/tex-chtml.js"></script>
</body>
</html>
diff --git a/templates/nonce-reuse.html b/templates/nonce-reuse.html
index 9049f4e..eff36b4 100644
--- a/templates/nonce-reuse.html
+++ b/templates/nonce-reuse.html
@@ -220,15 +220,6 @@ c_forged, aad_forged = xor(c1, xor(m1, m_forged)), b""
for h, s in possible_secrets:
print("MAC candidate": gmac(h, s, aad_forged, c_forged))</pre></details>
-<script>
-MathJax = {
- tex: {
- extensions: ["AMSmath.js", "AMSsymbols.js"]
- }
-};
-</script>
-<script id="MathJax-script" async
- src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
-</script>
+ <script id="MathJax-script" async src="/forbidden-salamanders/static/tex-chtml.js"></script>
</body>
</html>