deraadt
f0e9631687
Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis
12 years ago
jfb
7a1e9128cc
Make the `filename' parameter to HASHFile() and HASHFileChunk() const
ok pedro@, millert@
20 years ago
millert
e2e5c3d50c
Add Pad and FileChunk functions for each family of hash functions.
The Pad function does padding like in Final but does not finish processing.
The FileChunk function creates a digest from a portion of a file.
Also made the length parameters consistent (and size_t).
20 years ago
millert
29064d763b
Undo some recent prototype changes; it is legal to pass the helper
functions can take a NULL buf pointer. They will malloc memory as
needed in this case.
20 years ago
millert
9b2dd21027
Use a common source file for all the hash helper functions that
previously lived in foohl.c. The foohl.c files are now generated
via sed, though perhaps cpp could be used in the future.
Use u_int8_t instead of unsigned char for the buffers struct fooContext.
Add constants for buffer lengths and use them in function prototypes
and the man pages.
This is basically cosmetic surgery; there should be no functional changes.
OK deraadt@
20 years ago
espie
2ccf9e8a28
Remove unnecessary typedef usage.
u_char -> unsigned char
u_short -> unsigned short
u_long -> unsigned long
u_int -> unsigned int
okay millert@
21 years ago
avsm
6b3c9ddd0b
corrent __bounded__ attribute for the *Data functions, and add
__minbytes__ checks where appropriate. tested by itojun@
fixes PR 3505 from Janjaap van Velthooven
21 years ago
avsm
3f2bee58c7
add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@
21 years ago
avsm
b75b1238ee
backout the __bounded__ attributes for a while; requested by deraadt@
21 years ago
avsm
3ab653a0d9
Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok
21 years ago
millert
bd747228df
o Ansi function headers
o Add __BEGIN_DECLS/__END_DECLS to include files
o Safe macros
o Remove useless variable assignment in the End function of *hl.c
o Some minor KNF, needs more
From Dan Weeks
22 years ago
millert
b68c09e067
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
23 years ago
markus
3bb1d7ac89
new rmd160 implementation. based on
ftp://ftp.rsasecurity.com/pub/cryptobytes/crypto3n2.pdf, ok deraadt@
23 years ago
millert
a65a15a2f0
prototype mismatch for RMD160Update()
25 years ago
janjaap
7f64ecd952
teach rmd160 not to throw leftovers out the window
27 years ago
niklas
2a0bf72166
Well, as we are heading for a release people are encouraged to rebuild their
entire trees for testing anyway, I might as well do this intrusive touching
of include files now. Added openBSD tags.
27 years ago
millert
16e8f869b3
mdX(3)-like interface to RIPEMD-160 hash function. Code by
Antoon Bosselaers and massaged by me to fit the mdX(3) API.
27 years ago