History log of /openbsd-current/lib/libc/hash/md5.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.12 13-Oct-2020 guenther

Do some easy .data -> .rodata/.data.rel.ro conversions

ok millert@ deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.11 11-Sep-2015 guenther

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

ok deraadt@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 15-Jan-2015 millert

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


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.9 08-Jan-2014 tedu

calling HashFinal with a null digest should crash, not be silently ignored


Revision tags: 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 OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.8 08-Aug-2005 espie

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.7 28-May-2004 millert

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.


# 1.6 03-May-2004 millert

Some u_char -> u_int8_t conversion I missed earlier.


# 1.5 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.4 29-Apr-2004 millert

Changes inspired by Markus's rmd160 implementation:
o Make MD5Update() more readable
o Simplify padding in MD5Final()
o Do copy + byte flip in MD5Transform() instead of in the caller

The result is a faster md5 and the byte order foo is kept to a minimum.


# 1.3 28-Apr-2004 millert

Pass sizeof(*pointer) not sizeof(point) to memset. Karsten Desler.


# 1.2 28-Apr-2004 millert

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.


# 1.1 28-Apr-2004 millert

PD version of md5(3) based on code written by Colin Plumb.