olm/lib/crypto-algorithms
2023-12-09 14:48:21 +01:00
..
aes.c OLMKit: Make the project build 2016-09-27 14:07:30 +02:00
aes.h Fix 3ds build 2023-12-09 14:48:21 +01:00
aes_test.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
arcfour.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
arcfour.h Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
arcfour_test.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
base64.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
base64.h Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
base64_test.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
blowfish.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
blowfish.h Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
blowfish_test.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
des.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
des.h Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
des_test.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
md2.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
md2.h Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
md2_test.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
md5.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
md5.h Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
md5_test.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
README.md Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
rot-13.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
rot-13.h Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
rot-13_test.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
sha1.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
sha1.h Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
sha1_test.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00
sha256.c OLMKit: Make the project build 2016-09-27 14:07:30 +02:00
sha256.h Fix 3ds build 2023-12-09 14:48:21 +01:00
sha256_test.c Merge commit 'c61e5359cb454ae20c0b7b057c3a7b53e2beefd6' as 'lib/crypto-algorithms' 2015-02-26 16:43:06 +00:00

crypto-algorithms

About

These are basic implementations of standard cryptography algorithms, written by Brad Conte (brad@bradconte.com) from scratch and without any cross-licensing. They exist to provide publically accessible, restriction-free implementations of popular cryptographic algorithms, like AES and SHA-1. These are primarily intended for educational and pragmatic purposes (such as comparing a specification to actual implementation code, or for building an internal application that computes test vectors for a product). The algorithms have been tested against standard test vectors.

This code is released into the public domain free of any restrictions. The author requests acknowledgement if the code is used, but does not require it. This code is provided free of any liability and without any quality claims by the author.

Note that these are not cryptographically secure implementations. They have no resistence to side-channel attacks and should not be used in contexts that need cryptographically secure implementations.

These algorithms are not optimized for speed or space. They are primarily designed to be easy to read, although some basic optimization techniques have been employed.

Building

The source code for each algorithm will come in a pair of a source code file and a header file. There should be no inter-header file dependencies, no additional libraries, no platform-specific header files, or any other complicating matters. Compiling them should be as easy as adding the relevent source code to the project.