summaryrefslogtreecommitdiff
path: root/bin/md5
AgeCommit message (Collapse)Author
2014-03-26Ignore the -b option if cksum is called as-is (e.g. "cksum -b /bsd")Lawrence Teo
as documented on the cksum(1) man page. "looks right" deraadt@ ok millert@
2014-03-20missed a turdTed Unangst
2014-03-20purge sum and sysvsum code. ok deraadt jmc lteo millertTed Unangst
a few initial leftovers spotted by naddy
2014-03-20remove insecure MD4 checksum algorithm; ok tedu@, man page ok jmc@Christian Weisgerber
"A collision attack published in 2007 can find collisions for full MD4 in less than two hash operations."
2014-03-17use Ex;Jason McIntyre
2014-03-07When using the -C option, exit with an exit status of 1 if any of theLawrence Teo
files specified on the command line do not exist in the checklist. ok deraadt@ tedu@
2014-01-30Add MISSING to the list of possible results of a checklist comparisonLawrence Teo
(md5.1 already has this).
2014-01-24bump the year for ISO/IEC 8802:3 from 1989 to 1996;Jason McIntyre
ingo recommends not defining a new St macro for every revision here ok sobrado schwarze
2014-01-20Do not use .Ar for fixed strings, it is intended for argument placeholders.Ingo Schwarze
We could switch to .Cm, but jmc@ thinks that just removing the markup from the algorith names is better in this case. Otherwise, the total amount of markup could be considered excessive.
2014-01-20The strings "1" and "2" are not placeholders for arguments,Ingo Schwarze
but have to be given verbatim on the command line, so use .Cm. Found while testing mandocdb(8), ok jmc@.
2014-01-15add -C to the man page, and adjust usage();Jason McIntyre
ok lteo
2014-01-15Add support for a -C option. It works on a checklist like -c but onlyLawrence Teo
does the checksum comparison for selected files that are specified on the command line. idea discussed with deraadt@ and tedu@ manpage feedback jmc@ feedback/OK deraadt@ millert@
2014-01-12Also move case 'c' into the #ifdef for a smaller binary. It will fall intoTheo de Raadt
default, giving a nice failure. I have not removed -c from the usage() or getopt() because it is too much butchering...
2014-01-11use -DSHA2_ONLY to be more clear about what we are butcheringTheo de Raadt
idea from tedu
2014-01-10depluralizeTheo de Raadt
ok jmc
2014-01-10catch up to the fact that md5/sha* got merged, and document -c consistently;Jason McIntyre
some style and cleanup tweaks while here ok deraadt
2014-01-10Add MISSING to the list of possible results of a checklist comparison.Lawrence Teo
2014-01-10When using a checklist, print MISSING for non-existent files.Lawrence Teo
Based on an earlier diff by tedu@ Requested by deraadt@ OK deraadt@
2014-01-10tedu merged the hash manual pages back together. This goes even further,Theo de Raadt
repairing the documentation for the -c option.
2014-01-10the -c option is really a mode change, incompatible with other options.Ted Unangst
(there are some others too, but -c is particularly misleading.) split it out in synopsis and usage. ok deraadt
2014-01-08Fix wrapping of usage message for cksum.Todd C. Miller
2014-01-08err() not errx() when fopen fails.Todd C. Miller
2014-01-08Remove NHASHES, it is not needed and is incompatible with #ifdef SMALL.Todd C. Miller
Remove style_hash and style_cksum, adjust the style of the selected algorithms based on rflag and qflag instead.
2014-01-08sort options;Jason McIntyre
2014-01-08Remove pmode, fix hfile open mode, check return value when writingTodd C. Miller
file name to stdout.
2014-01-08Add -DSMALL support to kill a lot of the unncecessary hashes and checksumsTheo de Raadt
that the install media won't need ok millert, but he used the word butcher!
2014-01-08Add support for -h hashfile. This is very useful with with -p, in a pipeline,Theo de Raadt
to deliver the hash output to a different location. ok millert
2013-12-29update sha256(1) to better reflect that it documents sha512 now too.Jason McIntyre
that led me to whack some unneccessary mark up and quoting (and phrasing), and the changes to the other pages are really just to unify the newer text layout; tedu provided feedback and answers (thanks);
2013-12-23install a link as sha512. simplify program internals; there are onlyTed Unangst
two modes. ok deraadt gilles jca
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
ok guenther step
2013-04-15SHA-224 is to SHA-256 as SHA-384 is to SHA-512. It was added in aTodd C. Miller
later revision of FIPS-180. OK miod@ jmc@ guenther@ djm@
2013-03-30Return an exit code of 1 if the file cannot be opened (e.g. file doesLawrence Teo
not exist), or if there is an error reading the file stream. From Patrik Lundin, thanks! ok deraadt
2012-12-04replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)Theo de Raadt
ok guenther
2012-09-22last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-07-08The algorithm name is "SHA-256" as per FIPS 180-2 (-3).Christian Weisgerber
2012-05-13recommend sha256; from Lawrence TeoJason McIntyre
ok millert
2012-02-26Fix several manpage titles, from Lawrence Teo.Christiano F. Haesbaert
ok dcoppa@ jmc@ schwarze@.
2011-07-05fix memset sizeof, found by jsg. ok krwTed Unangst
2010-11-07more EXIT STATUS bits; from Daniel DickmanJason McIntyre
2010-10-27Use a 32KB data buffer instead of a 1KB buffer.Todd C. Miller
2010-10-25Use stdio when reading in the file to be checksummed. This can improveTodd C. Miller
performance due to the internal buffering stdio does wrt the optimal read size (st_blksize). OK mikeb@
2010-09-03add an EXIT STATUS section for /bin;Jason McIntyre
2010-07-13update our recommended hash function to sha256 and note md5 is broken.Ted Unangst
ok deraadt jmc millert sobrado
2010-07-13no need for userland to refer to section 2/3 pages;Jason McIntyre
2010-07-12replace rmd160 links with sha256. it's way more popular and more better, too.Ted Unangst
too many oks to enumerate. while here, add Xr to the relevant libc functions in each page.
2010-03-26dispense with some wacky escape sequences;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-08-16replace ".Ar file ..." with ".Ar" whenever possible.Igor Sobrado
ok jmc@
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-09-06adapt to sha2(3) API changes; ok millert@Damien Miller