aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2017-06-05 11:55:26 +0000
committerToomas Soome <tsoome@FreeBSD.org>2017-06-05 11:55:26 +0000
commita87f43927ccc0f25a75f992666babc6eccfc1128 (patch)
tree0d304c9488790c3eca8e0b7f69e5cdf919f13000 /lib/libmd
parent3df7ebc4edacb8cb57e8751a6e9f340dd5859c0a (diff)
downloadsrc-a87f43927ccc0f25a75f992666babc6eccfc1128.tar.gz
src-a87f43927ccc0f25a75f992666babc6eccfc1128.zip
ANSIfy md5 functions
Update the function declarations. Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D11055
Notes
Notes: svn path=/head/; revision=319601
Diffstat (limited to 'lib/libmd')
-rw-r--r--lib/libmd/md5c.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/libmd/md5c.c b/lib/libmd/md5c.c
index 6b5046416ada..75b1e5eb1e8c 100644
--- a/lib/libmd/md5c.c
+++ b/lib/libmd/md5c.c
@@ -127,8 +127,7 @@ static unsigned char PADDING[64] = {
/* MD5 initialization. Begins an MD5 operation, writing a new context. */
void
-MD5Init (context)
- MD5_CTX *context;
+MD5Init (MD5_CTX *context)
{
context->count[0] = context->count[1] = 0;
@@ -147,10 +146,7 @@ MD5Init (context)
*/
void
-MD5Update (context, in, inputLen)
- MD5_CTX *context;
- const void *in;
- unsigned int inputLen;
+MD5Update (MD5_CTX *context, const void *in, unsigned int inputLen)
{
unsigned int i, idx, partLen;
const unsigned char *input = in;
@@ -190,8 +186,7 @@ MD5Update (context, in, inputLen)
*/
void
-MD5Pad (context)
- MD5_CTX *context;
+MD5Pad (MD5_CTX *context)
{
unsigned char bits[8];
unsigned int idx, padLen;
@@ -214,9 +209,7 @@ MD5Pad (context)
*/
void
-MD5Final (digest, context)
- unsigned char digest[16];
- MD5_CTX *context;
+MD5Final (unsigned char digest[16], MD5_CTX *context)
{
/* Do padding. */
MD5Pad (context);
@@ -231,9 +224,7 @@ MD5Final (digest, context)
/* MD5 basic transformation. Transforms state based on block. */
static void
-MD5Transform (state, block)
- u_int32_t state[4];
- const unsigned char block[64];
+MD5Transform (u_int32_t state[4], const unsigned char block[64])
{
u_int32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16];