From 6841c554cbbeb619ac9e1d40bb20da4b707818d2 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Sun, 28 Aug 2022 02:47:10 -0400 Subject: local mathjax --- templates/index.html | 15 +-------------- templates/key-commitment.html | 21 ++++++--------------- templates/mac-truncation.html | 11 +---------- templates/nonce-reuse.html | 11 +---------- 4 files changed, 9 insertions(+), 49 deletions(-) (limited to 'templates') 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 @@ - - - - - - + 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 < polyglot.enc /tmp/decrypt-aes-gcm 5c3cb198432b0903e58de9c9647bd241 4a4f5247454c424f52474553 > /tmp/polyglot-first.jpg < polyglot.enc /tmp/decrypt-aes-gcm df923ae8976230008a081d23205d7a4f 4a4f5247454c424f52474553 > /tmp/polyglot-second.bmp - +
Attack outline. @@ -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"")
- - + 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) - - + 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)) - - + -- cgit v1.2.3