diff options
Diffstat (limited to 'articles/2022-09-25-ductf-file-magic.md')
-rw-r--r-- | articles/2022-09-25-ductf-file-magic.md | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/articles/2022-09-25-ductf-file-magic.md b/articles/2022-09-25-ductf-file-magic.md index f4b55c9..f7db40f 100644 --- a/articles/2022-09-25-ductf-file-magic.md +++ b/articles/2022-09-25-ductf-file-magic.md @@ -99,11 +99,15 @@ the IV directly as follows: - $m$: first plaintext block - $c$: first ciphertext block -$$ c = AES(m \oplus IV) \\ +$$ + +c = AES(m \oplus IV) \\ AES^{-1}(c) = m \oplus IV \\ -AES^{-1}(c) \oplus m = IV $$ +AES^{-1}(c) \oplus m = IV + +$$ All blocks in ciphertext after the first are now "uncontrollable" because IV and plaintext are set. @@ -252,4 +256,5 @@ File::create("iv").unwrap().write_all(&iv).unwrap(); ``` I am also still looking for team mates for upcoming CTF events and would be -happy to hack together with you! Just [contact](https://metamuffin.org/contact) me. +happy to hack together with you! Just [contact](https://metamuffin.org/contact) +me. |