History log of /openbsd-current/include/sha1.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.24 05-Dec-2012 deraadt

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.23 22-Jun-2004 jfb

Make the `filename' parameter to HASHFile() and HASHFileChunk() const
ok pedro@, millert@


# 1.22 05-May-2004 millert

Make the 2nd arg to SHA1Transform const again and unifdef SHA1HANDSOFF.
It was defined before and there is no need to for this knob...


# 1.21 03-May-2004 millert

Use KNF indentation style and do some u_char -> u_int8_t conversion
I missed earlier.


# 1.20 03-May-2004 millert

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).


# 1.19 29-Apr-2004 millert

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.


# 1.18 27-Apr-2004 millert

Make the bit count u_int64_t instead of two u_int32_t. Adapted from
changes Niklas made to the md5 code long ago. OK hshoexer@


# 1.17 26-Apr-2004 millert

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@


Revision tags: OPENBSD_3_5_BASE
# 1.16 22-Jan-2004 espie

Remove unnecessary typedef usage.

u_char -> unsigned char
u_short -> unsigned short
u_long -> unsigned long
u_int -> unsigned int

okay millert@


# 1.15 07-Oct-2003 avsm

corrent __bounded__ attribute for the *Data functions, and add
__minbytes__ checks where appropriate. tested by itojun@

fixes PR 3505 from Janjaap van Velthooven


Revision tags: OPENBSD_3_4_BASE
# 1.14 01-Aug-2003 avsm

add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@


# 1.13 26-Jun-2003 avsm

backout the __bounded__ attributes for a while; requested by deraadt@


# 1.12 26-Jun-2003 avsm

Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok


Revision tags: OPENBSD_3_3_BASE
# 1.11 23-Dec-2002 millert

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


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.10 16-Feb-2002 millert

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.


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.9 03-Feb-1999 angelos

Add some useful defines (used by ssyslog).


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE
# 1.8 15-Jul-1997 millert

Add a missing const


# 1.7 12-Jul-1997 millert

Add SHA1End, SHA1File, SHA1Data helper functions like in md5(3).


# 1.6 10-Jul-1997 millert

Be consistent wrt unsigned vs. u_*


# 1.5 10-Jul-1997 millert

Different sha1 functions (taken from netinet's if_sha1.c) that
are more consistent with md4/md5 functions.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.4 30-Sep-1996 millert

export byte swapping routine.


# 1.3 30-Sep-1996 millert

Protect prototypes with __P.


# 1.2 29-Sep-1996 millert

Add function prototypes.


# 1.1 29-Sep-1996 millert

Added sha1 (secure hash function).