Commit graph

13 commits

Author SHA1 Message Date
1625f9561c Byte-at-a-time ECB decryption 2025-02-15 20:10:44 +01:00
54a4cef76e Move oracle to cipher 2025-02-15 13:18:17 +01:00
f9f27c772e ECB/CBC Detection Oracle 2025-02-15 13:14:53 +01:00
3e03aedb9e AES CBC Mode
Implement AES CBC mode. Also fix key initialization, as it turns out,
Nettle AES keys cannot be initialized for encryption and decryption at
the same time. Hence, initialize the key when encryption/decryption is
invoked instead.
2025-02-15 13:14:53 +01:00
522883fa1f PKCS#7 padding 2025-02-09 17:41:40 +01:00
9388cf69ba Detect AES in ECB mode 2025-02-09 12:19:33 +01:00
2bf53562bf AES in ECB mode 2025-02-09 12:19:07 +01:00
bc0b59dc65 Set 1 - Challenge 4-6 2025-02-09 12:19:07 +01:00
b7b11efb0d Fix score
Doesn't really matter all that much but there's also no reason to
divide by 2
2025-02-08 16:36:49 +01:00
19036e4dec Single-byte XOR cipher 2025-02-08 08:24:57 +01:00
067f29127a Fixed XOR 2025-02-08 06:33:30 +01:00
efbe8b98dc Remove root.zig 2025-02-08 06:31:45 +01:00
d7a7e8a4ad Convert hex to base64 2025-02-07 21:35:45 +01:00