summaryrefslogtreecommitdiff
path: root/usr.bin/cksum
AgeCommit message (Collapse)Author
2022-06-25cksum.c: don't fault if the hash algorithm is fed invalid datagutteridge
Addresses PR bin/56897 from RVP, who provided the patch.
2021-08-25cksum: remove trailing whitespacerillig
2021-08-25cksum: fix lint warning about wrong call to isspacerillig
2021-03-18cksum: use POSIX type uint32_t instead of u_int32_tcheusov
2020-04-27Explicitly cast the number of bytes passed to crc_buf() to size_t, asmartin
we made sure it is positive already. Fixes the build.
2020-04-27Speed up cksum word-by-word with a 15 KB table generated dynamically.riastradh
(Really we could generate the main table dynamically too.) From anonymous.
2019-12-15bump datechristos
2019-12-15PR/54768: elo: Missing cksum(1) convenience links (and docs) for new sha2christos
functions.
2017-07-03Remove workaround for ancient HTML generation code.wiz
2015-06-16fix some error handling.christos
2014-10-29Fix build.uebayasi
2014-08-31New sentence, new line.wiz
2014-08-31PR/49134: Kamil Rytarowski: Add -q flag.christos
2013-10-18fix unused variable warningschristos
2013-03-28Remove unknown \*(tN and \*(sP macros.njoly
ok wiz.
2012-06-25Omit outdated cryptographic claims as noted in PR 44160.riastradh
Interested readers can follow the references or read Wikipedia; this is the wrong place to explain cryptographic hash functions and give security advice.
2011-08-29static + __deadjoerg
2010-05-14Use plain \* not \\*. Fix trailing whitespacejoerg
2009-04-14Enable WARNS=4 by default for usr.bin, except for:lukem
awk bdes checknr compile_et error gss hxtool kgetcred kinit klist ldd less lex locale login m4 man menuc mk_cmds mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh string2key telnet tn3270 verify_krb5_conf xlint
2009-03-13Don't use macros for the synopsis. Improve markup to break argumentjoerg
groups together by not splitting opening and closing macro over lines.
2009-01-02Clean up the usage display to match reality.lukem
Allow 'sum' to take '-a algorithm', so that its usage matches 'cksum'. Per discussion with Igor Sobrado resulting from PR 39658.
2008-12-29fix 64 bit time_tchristos
2008-10-08WARNS=4lukem
2008-10-08use a const struct hash pointerlukem
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
Tweak to use a consistent format.
2007-01-17Remove duplicate #includeshubertf
From Slava Semushin <slava.semushin@gmail.com>, via private mail
2006-10-30kill crypto/rmd160.h and crypto/sha2.h, and instead make symlinks tochristos
/usr/include from /usr/include/sys. This makes all the one way hash header handling identical.
2006-10-22use c99 initializer.christos
2006-09-22PR/34584: Geoff C. Wing: cksum not closing filescriptors after finishingelad
processing files. Applied patch, thanks!
2006-09-04Separate out the CRC functions in a manner that actually makes them usefuldsl
for other program binaries. Fixes build of 'config' where I added code (commented out) to use the CRC function - but didn't comment out the #include :-(
2006-09-02Bump date for previous.wiz
2006-08-25mention we support sha2, pointed out by dieter roelantselad
okay hubertf
2006-05-07Be more liberal about whitespaces when verifying checksums.hubertf
This allows checking md5/sha1 shecksums generates on Linux, which add more whitespace. Based on patch by Jukka Salmi (j+nbsd at 2006 dot salmi dot ch)
2006-05-05remove -1, -2, -4, -5, -6, -m.elad
2006-04-24Document more explicitly that -c takes an optional file argument.wiz
2006-04-24Allow reading the checksum list from stdin if no file is given with -c.hubertf
This allows verifying the checksums e.g. after downloading a NetBSD release: cat BSDSUM CKSUM MD5 SHA512 SYSVSUM | cksum -c
2006-04-24Try guessing hash types. Prefix output with hash type,hubertf
the output format was inspired by Linux & OpenBSD. This now allows doing something like: miyu% ( md4 *.c ; md5 *.c ; sha1 *.c ) > /tmp/x miyu% md5 -c /tmp/x miyu% cksum -c /tmp/x miyu% echo $? 0 miyu% date >test.c miyu% cksum -c /tmp/x (MD4) test.c: FAILED (MD5) test.c: FAILED (SHA1) test.c: FAILED miyu% echo $? 1
2006-04-23A fix for HTML output; punctuation nits.wiz
2006-04-23Document -w, too.hubertf
2006-04-23Add a switch "-c file" to verify a list of checksums generated by thehubertf
cksum program and stored in file against files on disk. E.g. first run "md5 *.tgz >MD5" to generate a list of MD5 checksums in MD5, then use the following command to verify them use "md5 -c MD5" Inspired by Linux' md5sum, called for by Jukka Salmi <j+nbsd@2006.salmi.ch>on netbsd-help@, reviewed by rui@.
2006-01-15sync usage().elad
2005-09-24Use crypto/rmd160.h.elad
2005-09-11Use correct macro. From YOMURA Masanori in private mail.wiz
2005-09-10Punctuation nits.wiz
2005-09-02Avoid defining max. hash length ugliness simply by passing NULL for theelad
buffer to the File routines. Noted by pooka@.
2005-09-02Forgot +1 for NUL termination.elad
2005-09-02Use MAXHASHLEN to indicate largest possible hash.elad
Fixes buffer overflow found by xtraeme@.
2005-08-25Fix host tool build which got broken when SHA2 support was added.tron
2005-08-24Add support for SHA2 in cksum.elad
2005-08-24Fix some lint warnings.elad