Go to file
Alain Mosnier 489f5e66b6 Completed the implementation, including testing, and fixed bugs 2017-12-13 11:12:47 +01:00
.gitignore Completed the implementation, including testing, and fixed bugs 2017-12-13 11:12:47 +01:00
LICENSE Initial commit 2017-12-12 20:48:09 +01:00
Makefile Completed the implementation, including testing, and fixed bugs 2017-12-13 11:12:47 +01:00
README.md Completed the implementation, including testing, and fixed bugs 2017-12-13 11:12:47 +01:00
sha-256.c Completed the implementation, including testing, and fixed bugs 2017-12-13 11:12:47 +01:00
sha-256.h Started a SHA-256 implementation. Buggy so far. 2017-12-13 00:52:28 +01:00
test.c Completed the implementation, including testing, and fixed bugs 2017-12-13 11:12:47 +01:00

README.md

sha-2

Contents

SHA-2 algorithm implementations.

At the moment, only a SHA-256 is implemented.

Design criteria

  • Easy to test, include in any project, compile and link.

  • ANSI C with as little specific C99 as possible (e.g. extended integer types are used, but not bool).

  • Portable. Makes no assumptions on the target system's endianess or word size.

  • The SHA-256 implementation is a straightforward implementation of the algorithm specified on Wikipedia. At the moment, no effort at all has been put in optimization.

License

This repository is made available in the public domain. See LICENSE FILE.