summaryrefslogtreecommitdiff
path: root/coreutils/md5_sha1_sum.c
AgeCommit message (Collapse)Author
2006-12-16inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko
2006-11-23md5sum: make -c grok formats like "68b329da9893e34099c7d8ad5cb9c940 *foo".Denis Vlasenko
Also eradicate 95 bytes of bloat.
2006-10-26rename functions to more understandable namesDenis Vlasenko
2006-10-12bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko
Renaming...
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
2006-09-28Tried to find sha1_crypt - nope... ok, save few bytes in md5_sha1_sum.cDenis Vlasenko
(time to sleep, 02:28 in the morning)...
2006-08-06Teach md5sum and sha1sum to work the way other applets do so I don't have toRob Landley
teach scripts/individual new tricks. And while I'm at it, teach scripts/individual other new tricks. Now builds 198 applets, some of which I should teach it to hardlink together because they're really the same app...
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
2006-07-26Patch from Shaun Jackman, set optind by hand if we don't call getopt.Rob Landley
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.