guenther
c34714da97
Wrap blowfish, sha*, md5, and rmd160 so that internal calls go direct
ok deraadt@
9 years ago
millert
1a5ffaf941
Use explicit_bzero instead of memset in hash Final and End functions.
OK deraadt@ djm@
10 years ago
guenther
a59e881122
Switch from <sys/endian.h> or <machine/endian.h> to the new,
being-standardized <endian.h>
ok deraadt@ millert@ beck@
10 years ago
tedu
9bdaa18357
calling HashFinal with a null digest should crash, not be silently ignored
11 years ago
espie
b4fb9e2f94
zap remaining rcsid.
Kill old files that are no longer compiled.
okay theo
20 years ago
millert
638ec6cc63
In the Final function, move the context zeroing into the digest != NULL
scope so that passing a NULL digest is equivalent to the Pad function
(like it used to be). Fixes skey w/ sha1 as noticed by David Krause.
21 years ago
millert
ca2cf99d81
Some u_char -> u_int8_t conversion I missed earlier.
21 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).
21 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@
21 years ago
markus
50eece2cbd
alignment fixes (e.g sparc 64); from Daniel Lucq; ok millert, henning
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
markus
3bb1d7ac89
new rmd160 implementation. based on
ftp://ftp.rsasecurity.com/pub/cryptobytes/crypto3n2.pdf, ok deraadt@
23 years ago
millert
5e97137069
Explicitly include <sys/types.h> and some minor style points.
26 years ago
janjaap
d7dbb5b7be
Make RMD160Update a little less overzealous when fed small crumbs.
27 years ago
janjaap
97cd732f2f
nbytes - ofs should never be less than 0 (Oops on me)
27 years ago
janjaap
7f64ecd952
teach rmd160 not to throw leftovers out the window
27 years ago
millert
b6f13a1a97
Fix compiler warnings.
28 years ago
kstailey
cf45ed94d6
tabify + trailing blanks
28 years ago
millert
8e81b80acc
Converting u_char[] -> u_int[] is easy on little endian machines :-)
28 years ago
millert
6a33924893
Use u_int32_t not size_t.
28 years ago
millert
546d5c8f13
Allow passing of a NULL digest to RMD160Final(3).
28 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.
28 years ago