~kf5jwc/cryptopals-challenges

challenge-18 1 year, 17 days ago .tar.gz browse log

Challenge 18, CTR decryption

challenge-17 1 year, 17 days ago .tar.gz browse log

So, wow, that was a lot of learning.

The mask itself isn't important. The mask can be calculated on the fly every time you want to create it (though caching would probably be an improvement) so that you don't need to guess the right bit flip to +1 the value; the plaintext value can be directly xor'd with the desired value because the operations I insert are commutative.

Also I picked a fairly roundabout way to implement the block breaker and mask.

Set-2 1 year, 1 month ago .tar.gz browse log

Finished set 2!
-----BEGIN PGP SIGNATURE-----

iQFDBAABCAAtFiEERfcyQJpfGbju1JIwCdiOeVx9cgYFAlxF8lkPHGt5bGVAa2Y1
andjLnVzAAoJEAnYjnlcfXIGdN0H/jhbS//ZTOBIRhPkiaLeoetVUwZD9Y2C9azd
25wlTd9zggSb8acFBvHWnbbgqMAncQxjDnXwvjURnpUQvJVj3AtadeK/drR2M0jN
isse/c6ZZy9ZcZqBj2dwSuIiVVq6T4lWrayaJ5KW5FXYwhw7gX2Cs+7RwxGs7d6h
Q92ouF1wzk2wrely0rEDmTBHV7jOXoObkPdMKfSdVp9alf6iG39UbQSvul9n8rMv
G1W4vbOZfCUX/yN+Xp5/4LKU9vRZq4+VAANdcEvunNwgLA6ZsHS2b9GzXsemeajG
9GhbBUdwXYkacgy2Lp8+e2FeUbyFLRMktIq36x2Bh5V8rnlh7iE=
=4pSW
-----END PGP SIGNATURE-----

challenge-16 1 year, 1 month ago .tar.gz browse log

A working CBC padding attack :o

challenge-14 1 year, 1 month ago .tar.gz browse log

So, the challenge-12 solution works for #14 too.

challenge-15 1 year, 2 months ago .tar.gz browse log

Split out the padding validation

challenge-12 1 year, 3 months ago .tar.gz browse log

Encryption oracles!

Also a reorganization to compile the aes things together.

challenge-13 1 year, 2 months ago .tar.gz browse log

Forging profiles because of ECB

challenge-11 1 year, 3 months ago .tar.gz browse log

Challenge 11

challenge-10 1 year, 3 months ago .tar.gz browse log

A big reorganization and progress

So, solved #10 in this, somehow, too.

Instead of having crates organized by challenge number, they're now organized by focus. I can move through challenges faster this way.
1 / 2

Branches