summaryrefslogtreecommitdiffstats
path: root/lib/libc/hash
AgeCommit message (Collapse)AuthorFilesLines
2020-10-13Do some easy .data -> .rodata/.data.rel.ro conversionsguenther2-3/+3
ok millert@ deraadt@
2019-12-05- fix some Xr; from martinjmc3-15/+13
- minor tweaks while here
2019-12-04some minor tweaks;jmc1-7/+5
2019-12-04I accidentally smashed wrong contents into this file.deraadt1-43/+348
Repair from Martin @ academicsolutions.ch
2019-08-30name these manual pages by the primary function, for instance therederaadt7-374/+69
is no function called md5() as discussed with jmc
2019-07-23Fix comment typo; from OpenSSH Portabledtucker1-2/+2
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-4/+4
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-06-07Cast bitcount to u_in64_t before bit shifting to prevent integer overflowdtucker2-5/+5
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.millert3-9/+9
2019-01-20use standard headers for siphashbcook1-4/+3
ok tedu@
2017-12-25memcpy from the right place. at this point, the used variable is nottedu1-2/+2
relevant. from Mark Karpilovskij. ok millert
2017-10-23Don't let close(2) clobber errno. Some calls were already protectedmillert1-1/+5
but not all. From Peter J. Philipp.
2017-06-13no need for branding in .Nd linederaadt1-3/+3
2017-05-27move sha224_initial_hash_value[] under !SHA2_SMALL; ok deraadt@ millert@naddy1-13/+13
2017-04-12SipHash_Final() was assuming the digest was 64-bit aligned, resulting inderaadt1-4/+3
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 bydaniel1-5/+9
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 updaniel1-5/+5
a long sentence (from tj@).
2016-09-21Delete casts to off_t and size_t that are implied by assignmentsguenther1-3/+3
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 listtedu1-3/+32
the SHA512/256 functions as well.
2016-09-04remove caveats that are either misleading or unhelpful.tedu3-24/+6
ok jmc naddy
2016-09-03Add functions for SHA512/256. The standard says you're supposed to starttedu2-4/+58
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 lengthtedu1-3/+3
2016-03-30for some time now mandoc has not required MLINKS to functionjmc1-25/+1
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;jmc3-12/+9
2015-11-10update NAME section to include all documented functions,jmc4-14/+41
or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
2015-11-01delete old lint ARGSUSED commentsguenther1-2/+1
2015-09-14Remove useless quoting from .Fo and .Fn function names, to preventschwarze1-7/+7
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 directguenther6-11/+55
ok deraadt@
2015-02-21update siphash manpages to reflect change in return type spelling.tedu1-4/+4
ok dlg
2015-02-20Use standard spelling for types, and rename local variable from "free".tedu1-17/+17
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.dlg1-5/+5
ok tedu@
2015-02-05macro fixes from Kaspars at Bankovskis dot net;schwarze1-6/+6
also fixing one typo in fts(3) while here
2015-01-16Move to the <limits.h> universe.deraadt3-7/+9
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.millert5-12/+12
OK deraadt@ djm@
2014-12-19be like the kernel and only unroll if not smalltedu1-2/+4
2014-12-19i386 unrolling blows up the media in a big way, due to -Os forderaadt1-2/+2
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).tedu1-1/+3
naddy found sparc64 gets a little slower when unrolled. ok deraadt
2014-12-17unroll loops. much faster on amd64. ok deraadt millerttedu1-1/+2
2014-12-08typoderaadt1-2/+2
2014-12-08more libc, less kernel documentationtedu1-9/+4
2014-12-08tweak recommendation to use arc4random_buftedu1-6/+5
2014-12-08add siphash from the kernel to libctedu3-3/+298
2014-11-26macro cleanup; from kaspars at bankovskis dot netschwarze2-24/+37
2014-11-16add some missing .An macros and remove some obsolete .Tnschwarze2-14/+17
2014-11-15Reduce instances of `` '' in manuals.bentley2-7/+10
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,guenther1-2/+2
being-standardized <endian.h> ok deraadt@ millert@ beck@
2014-07-20From ISO/IEC 9899:1999 and 9899:201x,guenther1-7/+7
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.beck1-0/+2
2014-04-03I have discussed these licenses with Poul-Henning Kamp and he has agreed tobeck2-15/+35
this license change. We will remember that we all still like beer.
2014-03-23Remove the MD4 functions.naddy6-340/+76
"A collision attack published in 2007 can find collisions for full MD4 in less than two hash operations." ok deraadt@, man pages ok jmc@