X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=md5.c;h=cbc5f0310e42bca7f371c4b66acfb1fee0cf1f17;hb=f31f6d8cf4bda52b8ef1b1d1d280884e904429a9;hp=aec1921c7a1d54aa29f98bcdee8f5cf26f8313f6;hpb=5b5ac2317e047dd77bf96a171a5e236973606a83;p=onak.git diff --git a/md5.c b/md5.c index aec1921..cbc5f03 100644 --- a/md5.c +++ b/md5.c @@ -54,10 +54,7 @@ static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; It is assumed that LEN % 64 == 0. */ void -md5_process_block (buffer, len, ctx) - const void *buffer; - size_t len; - struct md5_ctx *ctx; +md5_process_block(const void *buffer, size_t len, struct md5_ctx *ctx) { uint32_t correct_words[16]; const uint32_t *words = buffer; @@ -231,9 +228,7 @@ md5_init(struct md5_ctx *ctx) IMPORTANT: On some systems it is required that RESBUF is correctly aligned for a 32 bits value. */ void -md5_read_ctx (ctx, resbuf) - const struct md5_ctx *ctx; - void *resbuf; +md5_read_ctx(const struct md5_ctx *ctx, void *resbuf) { ((uint32_t *) resbuf)[0] = SWAP (ctx->A); ((uint32_t *) resbuf)[1] = SWAP (ctx->B);