tedu
8b61b5765d
memcpy from the right place. at this point, the used variable is not
relevant. from Mark Karpilovskij.
ok millert
7 years ago
millert
97fa8ef41e
Don't let close(2) clobber errno. Some calls were already protected
but not all. From Peter J. Philipp.
7 years ago
deraadt
d37bfa62a2
no need for branding in .Nd line
7 years ago
naddy
0f79902411
move sha224_initial_hash_value[] under !SHA2_SMALL; ok deraadt@ millert@
7 years ago
deraadt
e87e915602
SipHash_Final() was assuming the digest was 64-bit aligned, resulting in
misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping
ok florian millert
8 years ago
daniel
214feb8400
SHA-1 collisions have now been found so update some man pages. As noted by
minek van on misc@. Thanks.
ok tb@, tj@
(and jmc@ is ok with the diff but can't ok the technical content).
8 years ago
daniel
c4e494f6fa
Replace use of mathematical minus with an em-dash (from tb@) and break up
a long sentence (from tj@).
8 years ago
guenther
1a1f277cca
Delete casts to off_t and size_t that are implied by assignments
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@
8 years ago
tedu
0146b434d2
jmc says you can never have too many functions in one man page, so list
the SHA512/256 functions as well.
8 years ago
tedu
676996bb23
remove caveats that are either misleading or unhelpful.
ok jmc naddy
8 years ago
tedu
aeb17a716b
Add functions for SHA512/256. The standard says you're supposed to start
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
8 years ago
tedu
2fe63f9197
RMD160Update actually takes size_t length
8 years ago
jmc
813a539cd3
for some time now mandoc has not required MLINKS to function
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
9 years ago
jmc
963b22afaf
un-vax;
9 years ago
jmc
657bd2849a
update NAME section to include all documented functions,
or otherwise change Dt to reflect the name of an existing function;
feedback/ok schwarze
9 years ago
guenther
b3c328a386
delete old lint ARGSUSED comments
9 years ago
schwarze
6201910f6e
Remove useless quoting from .Fo and .Fn function names, to prevent
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.
9 years ago
guenther
c34714da97
Wrap blowfish, sha*, md5, and rmd160 so that internal calls go direct
ok deraadt@
9 years ago
tedu
ade522ddbc
update siphash manpages to reflect change in return type spelling.
ok dlg
10 years ago
tedu
6b550eb5a9
Use standard spelling for types, and rename local variable from "free".
No actual change, but makes it easier to reuse the code elsewhere.
Suggested by Andre Smagin
10 years ago
dlg
eed98717a6
userland gets static on functions only used within a file.
ok tedu@
10 years ago
schwarze
cdb05c968a
macro fixes from Kaspars at Bankovskis dot net;
also fixing one typo in fts(3) while here
10 years ago
deraadt
75d428b273
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther
10 years ago
millert
1a5ffaf941
Use explicit_bzero instead of memset in hash Final and End functions.
OK deraadt@ djm@
10 years ago
tedu
1b9ff6ebe7
be like the kernel and only unroll if not small
10 years ago
deraadt
0dc2c70460
i386 unrolling blows up the media in a big way, due to -Os for
ramdisk libc builds. there has to be a better way without #ifdef's
in gross places, but I don't see it yet.
10 years ago
tedu
29c323adc2
only unroll on i386 and amd64 (where confirmed to be much faster).
naddy found sparc64 gets a little slower when unrolled.
ok deraadt
10 years ago
tedu
b3da475e6b
unroll loops. much faster on amd64. ok deraadt millert
10 years ago
deraadt
b92eebc641
typo
10 years ago
tedu
06e68c2549
more libc, less kernel documentation
10 years ago
tedu
9338c00a6c
tweak recommendation to use arc4random_buf
10 years ago
tedu
10f5d66e90
add siphash from the kernel to libc
10 years ago
schwarze
c009471d0a
macro cleanup; from kaspars at bankovskis dot net
10 years ago
schwarze
755bcd79c1
add some missing .An macros and remove some obsolete .Tn
10 years ago
bentley
33d56bef5a
Reduce instances of `` '' in manuals.
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@
10 years ago
guenther
a59e881122
Switch from <sys/endian.h> or <machine/endian.h> to the new,
being-standardized <endian.h>
ok deraadt@ millert@ beck@
10 years ago
guenther
9475b44edc
From ISO/IEC 9899:1999 and 9899:201x,
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)
10 years ago
beck
6760fef4ba
put $OpenBSD$ back.. notice by philip.
11 years ago
beck
c707ba23e7
I have discussed these licenses with Poul-Henning Kamp and he has agreed to
this license change. We will remember that we all still like beer.
11 years ago
naddy
32386fdf7d
Remove the MD4 functions.
"A collision attack published in 2007 can find collisions for full
MD4 in less than two hash operations."
ok deraadt@, man pages ok jmc@
11 years ago
tedu
9bdaa18357
calling HashFinal with a null digest should crash, not be silently ignored
11 years ago
deraadt
b66e338b72
rename SHA256_ONLY to SHA2_SMALL; changing things so that sha512 support
is also pulled in
11 years ago
tedu
d8bf2218c6
remove unneeded check for null context. ok deraadt gilles millert
11 years ago
tedu
3d36d226ed
Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze
12 years ago
millert
e648dc1623
SHA-224 is to SHA-256 as SHA-384 is to SHA-512. It was added in a
later revision of FIPS-180. OK miod@ jmc@ guenther@ djm@
12 years ago
jmc
7d2f083b01
last stage of rfc changes, using consistent Rs/Re blocks, and moving the
references into a STANDARDS section;
12 years ago
tedu
c450e6bc8f
add const where missing
12 years ago
miod
e3aae9f755
Remove landisk gcc 3 compiler workaround. Reminded by martynas@ and brad
12 years ago
jmc
0eaeba173f
within Rs/Re reference blocks, use %U instead of %O (or any other
variants) for URLs, allowing mandoc -Thtml to properly generate links;
(sendmail.8 changes are simply using Lk, which i somehow missed in previous)
ingo reminded me to verify that gnu groff recognises %U: 1.20.1 does not,
but 1.21 does;
12 years ago
tedu
af419260cf
update our recommended hash function to sha256 and note md5 is broken.
ok deraadt jmc millert sobrado
14 years ago