aboutsummaryrefslogtreecommitdiff
path: root/toys/sha1.c
AgeCommit message (Collapse)Author
2007-11-24Re-roll loop, making code smaller. Also localize all the crypto informationRob Landley
into a struct that can be blanked in finalize (no more zeroing local variables).
2007-11-24Untangle algorithm: use uint64_t for count, move union into struct, use structRob Landley
more consistently, simplify macros a bit, redo finalization. Also toybox code is gplv2 so remove confusing output to the contrarary (in a main() that's going to get yanked soon anyway, but just to be clear...)
2007-11-24More cleanup: consistent indents, uint32_t, rename functions and structs,Rob Landley
argument order, etc. Use "this" instead of "context" to annoy the c++ guys.
2007-11-24Whitespace change: 4 spaces become one tab.Rob Landley
2007-11-24Minimal changes to make it actually work on an x86-64 host.Rob Landley
2007-11-24Start with public domain SHA-1 in C by Steve Reid <steve@edmweb.com>Rob Landley
http://www.mirrors.wiretapped.net/security/cryptography/hashes/sha1/sha1.c