X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=md5.c;h=2e0b9b8cc48df382ed3f4332f0bef4263a82ac24;hp=71fb4f1272c9ad95cdf7a2e3c33b454597396bfe;hb=263cda0978685f36a149deac8a32c3d382101dd3;hpb=fe5e9cc422cd72526ccfceffbc7e5af8ac83b407 diff --git a/md5.c b/md5.c index 71fb4f1..2e0b9b8 100644 --- a/md5.c +++ b/md5.c @@ -26,7 +26,7 @@ #ifdef WORDS_BIGENDIAN static void -byteSwap(uint32_t *buf, unsigned words) +byteSwap(uint32_t *buf, int words) { md5byte *p = (md5byte *)buf; @@ -247,7 +247,7 @@ static void *md5_init(void) return ctx; } -static void md5_update(void *sst, uint8_t const *buf, uint32_t len) +static void md5_update(void *sst, const void *buf, int32_t len) { struct MD5Context *ctx=sst; @@ -267,7 +267,6 @@ struct md5 { struct hash_if ops; }; -init_module md5_module; void md5_module(dict_t *dict) { struct md5 *st;