History log of /openbsd/lib/libc/hash/helper.c (Results 1 – 18 of 18)
Revision Date Author Comments
# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# eb0c5f94 23-Oct-2017 millert <millert@openbsd.org>

Don't let close(2) clobber errno. Some calls were already protected
but not all. From Peter J. Philipp.


# 3240e6a8 21-Sep-2016 guenther <guenther@openbsd.org>

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)

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@

show more ...


# 10632a79 01-Nov-2015 guenther <guenther@openbsd.org>

delete old lint ARGSUSED comments


# 89db3a20 11-Sep-2015 guenther <guenther@openbsd.org>

Wrap blowfish, sha*, md5, and rmd160 so that internal calls go direct

ok deraadt@


# aea60bee 16-Jan-2015 deraadt <deraadt@openbsd.org>

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


# b4c10efe 15-Jan-2015 millert <millert@openbsd.org>

Use explicit_bzero instead of memset in hash Final and End functions.
OK deraadt@ djm@


# 3a4ee9d5 03-Apr-2014 beck <beck@openbsd.org>

put $OpenBSD$ back.. notice by philip.


# 3c7a1782 03-Apr-2014 beck <beck@openbsd.org>

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.


# e33e688b 08-Jan-2010 oga <oga@openbsd.org>

plug a file descriptor leak in HASHFileChunk().

From Igor Zinovik; thanks!

ok millert@


# c2c925de 08-Aug-2005 espie <espie@openbsd.org>

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


# c60dbf63 16-Sep-2004 millert <millert@openbsd.org>

Fix MD5FileChunk() when passed a 0 length; makes MD5File() work again.
From Peter Galbavy.


# e4803734 22-Jun-2004 jfb <jfb@openbsd.org>

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


# 9dfc8d30 03-May-2004 millert <millert@openbsd.org>

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 o

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

show more ...


# 6cb58d42 29-Apr-2004 millert <millert@openbsd.org>

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.


# e43566a0 29-Apr-2004 millert <millert@openbsd.org>

more KNF


# 7ea141ec 29-Apr-2004 millert <millert@openbsd.org>

Some KNF


# e5c6a985 26-Apr-2004 millert <millert@openbsd.org>

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_

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@

show more ...