summaryrefslogtreecommitdiff
path: root/lib/libc/hash
AgeCommit message (Collapse)Author
2019-06-07Cast bitcount to u_in64_t before bit shifting to prevent integer overflowDarren Tucker
on 32bit platforms which cause incorrect results when adding a block >=512M in size. sha1 patch from ante84 at gmail.com via openssh github, sha2 with djm@, ok tedu@
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.Todd C. Miller
2019-01-20use standard headers for siphashBrent Cook
ok tedu@
2017-12-25memcpy from the right place. at this point, the used variable is notTed Unangst
relevant. from Mark Karpilovskij. ok millert
2017-10-23Don't let close(2) clobber errno. Some calls were already protectedTodd C. Miller
but not all. From Peter J. Philipp.
2017-06-13no need for branding in .Nd lineTheo de Raadt
2017-05-27move sha224_initial_hash_value[] under !SHA2_SMALL; ok deraadt@ millert@Christian Weisgerber
2017-04-12SipHash_Final() was assuming the digest was 64-bit aligned, resulting inTheo de Raadt
misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping ok florian millert
2017-02-23SHA-1 collisions have now been found so update some man pages. As noted byDaniel Dickman
minek van on misc@. Thanks. ok tb@, tj@ (and jmc@ is ok with the diff but can't ok the technical content).
2017-02-23Replace use of mathematical minus with an em-dash (from tb@) and break upDaniel Dickman
a long sentence (from tj@).
2016-09-21Delete casts to off_t and size_t that are implied by assignmentsPhilip Guenther
or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
2016-09-04jmc says you can never have too many functions in one man page, so listTed Unangst
the SHA512/256 functions as well.
2016-09-04remove caveats that are either misleading or unhelpful.Ted Unangst
ok jmc naddy
2016-09-03Add functions for SHA512/256. The standard says you're supposed to startTed Unangst
with different magic numbers, so we need to add some functions instead of just asking the user to truncate as desired. Sigh. SHA512 is quite a bit faster than SHA256 on 64 bit CPUs, but 256 bit hashes are usually quite sufficient. Best of both. ok deraadt tom
2016-07-28RMD160Update actually takes size_t lengthTed Unangst
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-10un-vax;Jason McIntyre
2015-11-10update NAME section to include all documented functions,Jason McIntyre
or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
2015-11-01delete old lint ARGSUSED commentsPhilip Guenther
2015-09-14Remove useless quoting from .Fo and .Fn function names, to preventIngo Schwarze
development of a cargo cult in case people look at existing files for examples. This achieves a consistent .Fo and .Fn quoting style across the whole tree.
2015-09-11Wrap blowfish, sha*, md5, and rmd160 so that internal calls go directPhilip Guenther
ok deraadt@
2015-02-21update siphash manpages to reflect change in return type spelling.Ted Unangst
ok dlg
2015-02-20Use standard spelling for types, and rename local variable from "free".Ted Unangst
No actual change, but makes it easier to reuse the code elsewhere. Suggested by Andre Smagin
2015-02-07userland gets static on functions only used within a file.David Gwynne
ok tedu@
2015-02-05macro fixes from Kaspars at Bankovskis dot net;Ingo Schwarze
also fixing one typo in fts(3) while here
2015-01-16Move to the <limits.h> universe.Theo de Raadt
review by millert, binary checking process with doug, concept with guenther
2015-01-15Use explicit_bzero instead of memset in hash Final and End functions.Todd C. Miller
OK deraadt@ djm@
2014-12-19be like the kernel and only unroll if not smallTed Unangst
2014-12-19i386 unrolling blows up the media in a big way, due to -Os forTheo de Raadt
ramdisk libc builds. there has to be a better way without #ifdef's in gross places, but I don't see it yet.
2014-12-18only unroll on i386 and amd64 (where confirmed to be much faster).Ted Unangst
naddy found sparc64 gets a little slower when unrolled. ok deraadt
2014-12-17unroll loops. much faster on amd64. ok deraadt millertTed Unangst
2014-12-08typoTheo de Raadt
2014-12-08more libc, less kernel documentationTed Unangst
2014-12-08tweak recommendation to use arc4random_bufTed Unangst
2014-12-08add siphash from the kernel to libcTed Unangst
2014-11-26macro cleanup; from kaspars at bankovskis dot netIngo Schwarze
2014-11-16add some missing .An macros and remove some obsolete .TnIngo Schwarze
2014-11-15Reduce instances of `` '' in manuals.Anthony J. Bentley
troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
2014-07-21Switch from <sys/endian.h> or <machine/endian.h> to the new,Philip Guenther
being-standardized <endian.h> ok deraadt@ millert@ beck@
2014-07-20From ISO/IEC 9899:1999 and 9899:201x,Philip Guenther
6.11.5 - Storage-class specifiers: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Diff from Jean-Philippe Ouellet (jean-philippe (at) ouellet.biz)
2014-04-03put $OpenBSD$ back.. notice by philip.Bob Beck
2014-04-03I have discussed these licenses with Poul-Henning Kamp and he has agreed toBob Beck
this license change. We will remember that we all still like beer.
2014-03-23Remove the MD4 functions.Christian Weisgerber
"A collision attack published in 2007 can find collisions for full MD4 in less than two hash operations." ok deraadt@, man pages ok jmc@
2014-01-08calling HashFinal with a null digest should crash, not be silently ignoredTed Unangst
2014-01-08rename SHA256_ONLY to SHA2_SMALL; changing things so that sha512 supportTheo de Raadt
is also pulled in
2013-12-22remove unneeded check for null context. ok deraadt gilles millertTed Unangst
2013-06-05Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzeTed Unangst
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@
2012-09-27last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-09-07add const where missingTed Unangst