1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-04 23:35:36 -08:00
Commit Graph

17 Commits

Author SHA1 Message Date
deraadt
4a39ccd02c Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis
2012-12-05 23:19:48 +00:00
jfb
e480373425 Make the `filename' parameter to HASHFile() and HASHFileChunk() const
ok pedro@, millert@
2004-06-22 01:57:29 +00:00
millert
9dfc8d301f 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).
2004-05-03 17:30:14 +00:00
millert
6cb58d427f 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.
2004-04-29 15:51:16 +00:00
millert
c0be0e2f5a Rename members of struct MD5Context to match other hash routines.
Add constants for buffer lengths and use them.
Make bit count 64bit based on changes by niklas@ long ago.
Conver htole32n() to macros and unroll loops.
2004-04-28 16:52:08 +00:00
millert
33693a73d9 PD version of md5(3) based on code written by Colin Plumb. 2004-04-28 16:46:02 +00:00
avsm
d9dd16ce3e corrent __bounded__ attribute for the *Data functions, and add
__minbytes__ checks where appropriate.  tested by itojun@

fixes PR 3505 from Janjaap van Velthooven
2003-10-07 22:17:27 +00:00
avsm
89b95c1c6c add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@
2003-08-01 17:38:33 +00:00
avsm
3e87668a71 backout the __bounded__ attributes for a while; requested by deraadt@ 2003-06-26 19:34:17 +00:00
avsm
585be00bb5 Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok
2003-06-26 18:35:13 +00:00
millert
232cf197ef 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
2002-12-23 04:33:31 +00:00
millert
c72b5b24e1 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. 2002-02-16 21:27:05 +00:00
millert
6bcf620f05 Expose MDXTransform functions to be consistent with sha1 and rmd160. 2000-03-28 17:35:07 +00:00
niklas
2ff22c85ff 64-bit cleanup + pedantic -W flags 1996-11-24 02:25:57 +00:00
millert
e0659826be Protect prototypes with __P. 1996-09-30 03:55:47 +00:00
millert
a46338d3da Use bittypes so we work on 64-bit machines. 1996-09-29 14:53:09 +00:00
niklas
46785f0fc9 Add md[245].h include files for use with the md support in libc, from FreeBSD 1996-06-03 22:25:54 +00:00