summaryrefslogtreecommitdiffstats
path: root/lib/libc/hash (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do some easy .data -> .rodata/.data.rel.ro conversionsguenther2020-10-132-3/+3
| | | | ok millert@ deraadt@
* - fix some Xr; from martinjmc2019-12-053-15/+13
| | | | - minor tweaks while here
* some minor tweaks;jmc2019-12-041-7/+5
|
* I accidentally smashed wrong contents into this file.deraadt2019-12-041-43/+348
| | | | Repair from Martin @ academicsolutions.ch
* name these manual pages by the primary function, for instance therederaadt2019-08-307-374/+69
| | | | | is no function called md5() as discussed with jmc
* Fix comment typo; from OpenSSH Portabledtucker2019-07-231-2/+2
|
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-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.
* Cast bitcount to u_in64_t before bit shifting to prevent integer overflowdtucker2019-06-072-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@
* I am retiring my old email address; replace it with my OpenBSD one.millert2019-01-253-9/+9
|
* use standard headers for siphashbcook2019-01-201-4/+3
| | | | ok tedu@
* memcpy from the right place. at this point, the used variable is nottedu2017-12-251-2/+2
| | | | | relevant. from Mark Karpilovskij. ok millert
* Don't let close(2) clobber errno. Some calls were already protectedmillert2017-10-231-1/+5
| | | | but not all. From Peter J. Philipp.
* no need for branding in .Nd linederaadt2017-06-131-3/+3
|
* move sha224_initial_hash_value[] under !SHA2_SMALL; ok deraadt@ millert@naddy2017-05-271-13/+13
|
* SipHash_Final() was assuming the digest was 64-bit aligned, resulting inderaadt2017-04-121-4/+3
| | | | | misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping ok florian millert
* SHA-1 collisions have now been found so update some man pages. As noted bydaniel2017-02-231-5/+9
| | | | | | | | minek van on misc@. Thanks. ok tb@, tj@ (and jmc@ is ok with the diff but can't ok the technical content).
* Replace use of mathematical minus with an em-dash (from tb@) and break updaniel2017-02-231-5/+5
| | | | a long sentence (from tj@).
* Delete casts to off_t and size_t that are implied by assignmentsguenther2016-09-211-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@
* jmc says you can never have too many functions in one man page, so listtedu2016-09-041-3/+32
| | | | the SHA512/256 functions as well.
* remove caveats that are either misleading or unhelpful.tedu2016-09-043-24/+6
| | | | ok jmc naddy
* Add functions for SHA512/256. The standard says you're supposed to starttedu2016-09-032-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
* RMD160Update actually takes size_t lengthtedu2016-07-281-3/+3
|
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-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
* un-vax;jmc2016-03-103-12/+9
|
* update NAME section to include all documented functions,jmc2015-11-104-14/+41
| | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
* delete old lint ARGSUSED commentsguenther2015-11-011-2/+1
|
* Remove useless quoting from .Fo and .Fn function names, to preventschwarze2015-09-141-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.
* Wrap blowfish, sha*, md5, and rmd160 so that internal calls go directguenther2015-09-116-11/+55
| | | | ok deraadt@
* update siphash manpages to reflect change in return type spelling.tedu2015-02-211-4/+4
| | | | ok dlg
* Use standard spelling for types, and rename local variable from "free".tedu2015-02-201-17/+17
| | | | | No actual change, but makes it easier to reuse the code elsewhere. Suggested by Andre Smagin
* userland gets static on functions only used within a file.dlg2015-02-071-5/+5
| | | | ok tedu@
* macro fixes from Kaspars at Bankovskis dot net;schwarze2015-02-051-6/+6
| | | | also fixing one typo in fts(3) while here
* Move to the <limits.h> universe.deraadt2015-01-163-7/+9
| | | | review by millert, binary checking process with doug, concept with guenther
* Use explicit_bzero instead of memset in hash Final and End functions.millert2015-01-155-12/+12
| | | | OK deraadt@ djm@
* be like the kernel and only unroll if not smalltedu2014-12-191-2/+4
|
* i386 unrolling blows up the media in a big way, due to -Os forderaadt2014-12-191-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.
* only unroll on i386 and amd64 (where confirmed to be much faster).tedu2014-12-181-1/+3
| | | | | naddy found sparc64 gets a little slower when unrolled. ok deraadt
* unroll loops. much faster on amd64. ok deraadt millerttedu2014-12-171-1/+2
|
* typoderaadt2014-12-081-2/+2
|
* more libc, less kernel documentationtedu2014-12-081-9/+4
|
* tweak recommendation to use arc4random_buftedu2014-12-081-6/+5
|
* add siphash from the kernel to libctedu2014-12-083-3/+298
|
* macro cleanup; from kaspars at bankovskis dot netschwarze2014-11-262-24/+37
|
* add some missing .An macros and remove some obsolete .Tnschwarze2014-11-162-14/+17
|
* Reduce instances of `` '' in manuals.bentley2014-11-152-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@
* Switch from <sys/endian.h> or <machine/endian.h> to the new,guenther2014-07-211-2/+2
| | | | | | being-standardized <endian.h> ok deraadt@ millert@ beck@
* From ISO/IEC 9899:1999 and 9899:201x,guenther2014-07-201-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)
* put $OpenBSD$ back.. notice by philip.beck2014-04-031-0/+2
|
* I have discussed these licenses with Poul-Henning Kamp and he has agreed tobeck2014-04-032-15/+35
| | | | this license change. We will remember that we all still like beer.
* Remove the MD4 functions.naddy2014-03-236-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@