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
e5c6a985e3 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@
2004-04-26 19:38:12 +00:00
espie
d1f942ab4c Remove unnecessary typedef usage.
u_char -> unsigned char
u_short -> unsigned short
u_long -> unsigned long
u_int -> unsigned int

okay millert@
2004-01-22 21:48: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
markus
479fd71a95 new rmd160 implementation. based on
ftp://ftp.rsasecurity.com/pub/cryptobytes/crypto3n2.pdf, ok deraadt@
2001-10-01 20:36:17 +00:00
millert
c50377f14a prototype mismatch for RMD160Update() 1999-08-16 09:59:04 +00:00
janjaap
e7aec372d6 teach rmd160 not to throw leftovers out the window 1998-03-23 12:49:28 +00:00
niklas
5ea2d675e0 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.
1997-09-21 10:45:23 +00:00
millert
780327d80d mdX(3)-like interface to RIPEMD-160 hash function. Code by
Antoon Bosselaers and massaged by me to fit the mdX(3) API.
1997-07-17 05:36:59 +00:00