Skip to content

kaworu/cryptopals

Repository files navigation

Build Status

cryptopals

Just me going tough the cryptopals challenges. It is slow, insecure code by design. So, don't use it.

Building

Start by git submodule init && git submodule update. Then, simply make. You'll need Cmake (sorry) and a C11 compiler.

...and?

Type make test, sit back and enjoy the show. Alternatively, just check the Travis-CI build output.

...aaaand?

That's it. It's a bunch of functions in a lib wrapped by tests using the data from the challenges. It's should be easy to discover though, hopefully well commented and using the µnit Testing Framework.

coverage?

Before I get a coverage banner you can

% BUILD_TYPE=COVERAGE make
% ./build/testrunner --no-fork --log-visible debug --show-stderr \
    --param srp_server ./python/srp_server.py \
    --param mac_server ./python/hmac_padding_oracle.py \
    --param mac_filepath ./README.md
% lcov --directory build/CMakeFiles/cryptopals.dir/src \
    --base-directory build/CMakeFiles/cryptopals.dir/src \
    --gcov-tool $PWD/llvm-gcov.sh \
    --capture \
    -o cov.info
% genhtml cov.info -o output

About

Just me going through the cryptopals challenges

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages