summaryrefslogtreecommitdiff
path: root/coreutils/md5_sha1_sum.c
AgeCommit message (Collapse)Author
2006-05-16Make md5 calculation always go through an the buffer so that A) we don'tRob Landley
handle packets out of sequence if some data goes through the buffer and some doesn't, B) it works on systems that can't handle aligned access, C) we just have one code path to worry about. While we're at it, sizeof() and RESERVE_CONFIG_BUFFER() really don't combine well, which is why md5sum has been reading and processing data 4 bytes at a time. I suspect that the existence of CONFIG_MD5_SIZE_VS_SPEED to do loop unrolling and such in the algorithm was an attempt to work around that bug.
2006-05-10- typo in error-message: s/algotithm/algorithmBernhard Reutner-Fischer
- whitespace cleanup
2006-02-21Patch from Devin Bayer to split up hash_fd.c into md5.c and sha1.c. (I tweakedRob Landley
md5_sha1_sum.c to convert some #ifdef CONFIG to if(ENABLE).)
2005-12-15Eliminate unnecessary allocation from md5sum that was leaked without ever ↵Rob Landley
being used.
2005-10-27- Matthias Wenzel writes:Bernhard Reutner-Fischer
without the fix below md5sum will always report a correct md5 on _any_ wrongly formattet input files. - use short boilerplate and remove superfluous keyword extern.
2005-06-24tweak signed/unsigned char usage to avoid mismatchesMike Frysinger
2005-04-30On Wednesday 13 April 2005 09:12 pm, Shaun Jackman wrote:Rob Landley
> This patch fixes a memory leak in hash_file by using the BUFFER macros > instead of xmalloc. Please apply.
2005-04-16Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen
which were otherwise cluttering the global namespace.
2004-04-14Larry Doolittle writes:Eric Andersen
This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
2004-03-27s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen
s/fileno\(stdout\)/STDOUT_FILENO/g
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-02-22Return 1 upon failureGlenn L McGrath
2003-11-20Fix up the -s option, and make usage consitent with behaviour,Glenn L McGrath
patch by Steven Scholz
2003-11-18woops, we needed that functionGlenn L McGrath
2003-11-18Only use getopt and associated flags if checking is enabledGlenn L McGrath
2003-11-10Merge common parts of sha1sum and md5sum, which is everything except theGlenn L McGrath
algorithms. Move algorithms to hash_fd and make them available via a common function.