summaryrefslogtreecommitdiff
path: root/bin/md5/md5.c
AgeCommit message (Collapse)Author
2008-09-06adapt to sha2(3) API changes; ok millert@Damien Miller
2008-07-29md5(1), sha1(1), rmd160(1), cksum(1) and sum(1) have different options;Igor Sobrado
while here, some KNF improvements. based on a diff for compress(1) written by millert@, fixes from guenther@ and pyr@. ok millert@, pyr@; (for the manual page tweaks) jmc@
2007-11-07properly exit >0 when encountering bad md5 in cheklistCharles Longeau
ok gilles@ millert@ From Tim van der Molen <tbvdm.lists at xs4all.nl>
2007-10-31clamp -ttttttttt test counter to 1B, so that it does not wrap negative;Theo de Raadt
from Nicholas Marriott, ok otto
2007-04-14if we define a constant for the OPTSTRING, we can as well use it.Alexander von Gernler
ok tedu@
2007-04-13allow multiple -t to increase the test count. cpus are getting too fast.Ted Unangst
ok grunk. with manpage from grunk and jmc
2007-03-29Fix a cust & pastoTodd C. Miller
Correctly compute amount of base64 padding in checklist mode
2007-03-29Do not print a warning that no valid checksums were found if thereTodd C. Miller
was a single fingerprint for a file that could not be opened. The warning that the file could not be opened is sufficient. From espie@
2007-03-28Supress warnings for the first getopt() pass. Otherwise,Todd C. Miller
any "unknown option" messages get printed twice.
2007-03-27Add base64 support to cksum and friends. Output encoding canTodd C. Miller
be set globally or on a per-algorithm basis when using multiple hash functions. OK espie@ simon@ deraadt@; man help from jmc@
2007-03-20augment the -q option, now if specifed with -c (checklist)Thordur I. Bjornsson
it will only print out the failed cases. OK millert@
2007-01-09align usage message correctlyTheo de Raadt
2006-11-17simplify synopsis and usage(); ok millertJason McIntyre
2006-11-16Add -r and -q options similar to what is supported by FreeBSD's md5Todd C. Miller
OK deraadt@ ckuethe@
2006-11-10Accept upper and lower case letters in a checksum, since this doesn'tTom Cosgrove
alter the value of the digest. Nor, for that matter, does case affect the name of the algorithm used. Partly from Matthew Clarke, clamat (at) telus (dot) net. ok djm@ millert@
2006-03-15Fix signed/unsigned comparisons by using size_tDavid Hill
Sprinkle some const ok ray@ jaredy@
2005-12-20Make "cksum -c" grok checklists generated with cksum, sum and sysvsum.Todd C. Miller
OK deraadt@
2005-08-17Exit unsuccessfully when comparing against a checklist file fails.Marco Pfatschbacher
OK markus@ millert@
2004-12-29Add support for multiple using algorithms. OK'd by several peopleTodd C. Miller
a while ago so get this out of my tree...
2004-12-10GNU md5sum uses tab not space to separate filename and hash. FixesTodd C. Miller
parsing of GNU-style checklist files for files with spaces in them. From Emil Mikulic; closes PR 4027
2004-05-04sync usage w/ man pageTodd C. Miller
2004-05-02Add support for cksum (3 varieties), md4, sha256, sha384, and sha512.Todd C. Miller
Consequently, cksum moves becomes a link to md5 and moves to /bin. The cksum man page could use some polishing.
2004-04-28Use the FOO_DIGEST_LENGTH macrosTodd C. Miller
2004-03-03Extend "md5 -c" to parse the output of GNU md5sum.Todd C. Miller
Adapted from patches by Lawrence Teo and tedu@. OK tedu@
2003-07-21Fix typo: unsigned -> unsigned char; from Thorsten GlaserTodd C. Miller
2003-06-25fix lots of proto issuesTheo de Raadt
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-11ansification, art okTheo de Raadt
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-04-28return from mainTheo de Raadt
2003-04-23strchr() should be strrchr(); zyrnixTodd C. Miller
2003-03-23Do not closed stdin; Andrey MatveevTodd C. Miller
2003-03-13Cast 3 to size_t to shut up stupid gcc on 64bit platforms.Todd C. Miller
2003-03-12Add -c option similar to GNU md5sum.Todd C. Miller
Original patch from zyrnix but significantly modified by me. deraadt@ OK
2003-01-14Report read() errors; noticed and OK by fgs@Todd C. Miller
2002-01-20Swap TEST_BLOCK_LEN and TEST_BLOCK_COUNT in benchmark printf.Camiel Dobbelaar
ok millert@
2001-09-06o) __progname aria;Mike Pechkin
millert@ ok.
2001-06-03Nope, that's not right either. Fix check for mutually exclusive args.Todd C. Miller
2001-06-03Obvious thinko: command line is wrong if it's too short, not too long.Marc Espie
2001-06-02Fix some typos and add missing test for string of 1 million a's.Todd C. Miller
2001-06-02New md5/sha1/rmd160 driver with a BSD copyright. Improvements:Todd C. Miller
o options that should be mutually exclusive are o time trial works reasonably when it finishes in < 1 sec o uses a function table instead of a bunch of globals
1999-10-07One single malloc, with a union to get the largest needed size,Marc Espie
should be enough.
1998-01-02use getopt; mph@pobox.comTheo de Raadt
1997-08-01warn not warnxTheo de Raadt
1997-07-17Adds rmd160 functionality.Todd C. Miller
1997-07-12md5(1) is now capable of doing md4, md5 and sha1 digests. CurrentlyTodd C. Miller
only md5 and sha1 are used.
1997-06-20boost TEST_BLOCK_LEN and TEST_BLOCK_COUNT a bit. this makes '-t' moreflipk
useful on fast boxes. also fflush(stdout) after printing the first test message so the user knows its actually doing something
1996-11-2464-bit cleanup + pedantic -W flagsNiklas Hallqvist
1996-11-12-Wall happinessNiklas Hallqvist
1996-06-11move to bin/md5 for `greater accessibility'Theo de Raadt