X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=md5.c;h=45353e77734824b4da75eaa7bfcd72bb7d3d00dd;hb=76f079e5ebdb34acaaa2462a8d915ee06d3c8425;hp=aec1921c7a1d54aa29f98bcdee8f5cf26f8313f6;hpb=4860ab5af538fd20c7e92e01b883dbbc556863a5;p=onak.git diff --git a/md5.c b/md5.c index aec1921..45353e7 100644 --- a/md5.c +++ b/md5.c @@ -20,7 +20,7 @@ /* Written by Ulrich Drepper , 1995. */ -#include "config.h" +#include "build-config.h" #include @@ -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);