summaryrefslogtreecommitdiffstats
path: root/sbin/md5/md5.c
Commit message (Collapse)AuthorAgeFilesLines
* Teach md5(1) about sha512.delphij2012-08-011-2/+20
| | | | MFC after: 1 month
* Document the -c option in --help outputeadler2012-05-091-1/+1
| | | | | | | PR: bin/167463 Submitted by: "Bryan Drewery" <bryan@shatow.net> Approved by: cperciva MFC after: 3 days
* - add "check" option to MD5 and friends to compare files against known hash.eadler2011-11-131-7/+31
| | | | | | | | | PR: bin/146541 Submitted by: eadler Reviewed by: jhell@dataix.net Approved by: secteam (cperciva) Approved by: cperciva MFC after: 3 weeks
* Use RUSAGE_SELF for the current process instead of hardcoded valuekevlo2008-09-021-2/+2
|
* style(9) (verifed no-change in .o's)obrien2008-02-071-14/+13
|
* Fix an 11 year old mistake: Let the hash functions take a void* insteadphk2006-01-171-1/+1
| | | | of unsigned char* argument.
* In light of the recent 2^69 operation collision-finding attack on SHA1,cperciva2005-03-091-2/+20
| | | | | | | | add support for SHA256. Tested on: i386, sparc64 Tested using: NIST test vectors, built-in tests X-MFC-after: 5.4-RELEASE
* fix handling of an unknown progeam nameeik2004-06-221-1/+1
| | | | | Noticed by: Joshua Goodall <joshua@roughtrade.net> Approved by: ru
* Add sha1 and rmd160 checksum tools.eik2004-06-111-47/+134
| | | | | | | | Since the algorithms are already supported in libmd, the size increase is small when a dynamic root is used. Approved by: joerg, ru MFC after: 2 weeks
* Set exit code to 1 in case at least one of the input filesse2003-11-021-2/+9
| | | | could not be opened.
* Use __FBSDID() to quiet GCC 3.3 warnings.obrien2003-05-031-4/+2
|
* Improvements to md5.c so that it uses getrusage to timesilby2003-02-141-8/+12
| | | | benchmarks, and prints out results in float format.
* Change the -x option so that it does an actual REAL test ofsilby2003-01-261-11/+35
| | | | | | the correctness of this program. Previously, it printed out the MD5 values of some test strings, but did not tell you if they were correct or not!
* Fixphk2001-12-191-1/+3
| | | | | | | md5 -q -s foo to not expect input on stdin after hashing the string. MFC after: 1 week
* Add missing cast for improper time_t use in computation.dillon2001-10-281-1/+1
|
* Fix include ordering breakage from rev. 1.23.des2001-06-291-2/+2
| | | | Please-read-style(9): dd
* Only checksum stdin if nothing has been checksummed yet.ru2001-06-251-2/+2
| | | | PR: bin/28386
* Include missing header files which define functions for which gcc hasdd2001-06-241-0/+1
| | | | builtins (e.g., exit, strcmp).
* Fix argument processing.ru2001-05-221-51/+45
| | | | | | | Make this compile with WARNS=2. PR: bin/27524 MFC after: 3 days
* Update usage().obrien2000-11-081-1/+1
| | | | Submitted by: nectar
* Add -q quite mode.obrien1999-12-041-3/+11
|
* Make `-r -s' also match the BSDI output.obrien1999-11-111-1/+1
|
* Change the "-r" output format to match BSDI's default output format.obrien1999-11-091-2/+2
|
* Add a new "-r" (right) option that reverses the order a filename and theobrien1999-11-071-3/+15
| | | | hash is printed. This aids visual diffs.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Since we are using strlen() let's assign it to the correct type andbillf1999-07-211-2/+3
| | | | include the proper header.
* Fixes for -t option:kris1999-05-011-3/+4
| | | | | | | | | | * Don't buffer "Digesting..." output - flush it immediately. * Increase the number of repetitions by a factor of 100, and the block size by a factor of 10 so as to give meaningful results on modern machines (108 seconds on my P120, and ~26 seconds on a P-II 350). PR: bin/10604 Submitted by: Stanislav Shalunov <shalunov@lynxhub.lz.att.com>
* Correct use of .Nm. Spelling. Add rcsid, remove unused #includes, use err(3).charnier1998-07-061-12/+10
|
* Fix a few style nits from previous commit.steve1997-12-291-11/+10
| | | | Submitted by: Bruce Evans <bde@zeta.org.au>
* Get md5(1) to use getopt(3). Also some minor -Wall cleaningsteve1997-12-291-18/+41
| | | | | | | while here. PR: 5387 Submitted by: Matthew Hunt <mph@pobox.com>
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Trivial fix for braino.phk1997-01-161-1/+1
| | | | | Reviewed by: phk Submitted by: Martin Ibert <mib@ppe.bb-data.de>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Moved #include of <sys/types.h> earlier so that this compiles whenbde1996-10-251-3/+6
| | | | | | <stdio.h> doesn't (bogusly) include <sys/types.h>. Cleaned up #includes.
* Fix to match new API. Fixes memory leak, faster.phk1995-07-121-6/+9
|
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* oops.phk1995-02-261-4/+6
|
* Add a '-p' option to md5. This will save some time in generation of thephk1995-02-261-6/+11
| | | | ctm deltas.
* Clean this file up so it is readable...phk1995-02-201-188/+121
|
* Incorproate version of md5 placed into public domain by RSA.pst1994-10-291-0/+231
OpenPOWER on IntegriCloud