chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Python IP addresses: Remove sys.path hacking from test script
[secnet.git]
/
md5.c
diff --git
a/md5.c
b/md5.c
index 71fb4f1272c9ad95cdf7a2e3c33b454597396bfe..343ad8fc893cdd29bbc208c74b7e044f7499d857 100644
(file)
--- a/
md5.c
+++ b/
md5.c
@@
-26,7
+26,7
@@
#ifdef WORDS_BIGENDIAN
static void
#ifdef WORDS_BIGENDIAN
static void
-byteSwap(uint32_t *buf,
unsigned
words)
+byteSwap(uint32_t *buf,
int
words)
{
md5byte *p = (md5byte *)buf;
{
md5byte *p = (md5byte *)buf;
@@
-129,7
+129,7
@@
MD5Final(md5byte digest[16], struct MD5Context *ctx)
byteSwap(ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
byteSwap(ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
- memset(ctx, 0, sizeof
(ctx)
); /* In case it's sensitive */
+ memset(ctx, 0, sizeof
*ctx
); /* In case it's sensitive */
}
#ifndef ASM_MD5
}
#ifndef ASM_MD5
@@
-247,7
+247,7
@@
static void *md5_init(void)
return ctx;
}
return ctx;
}
-static void md5_update(void *sst,
uint8_t const *buf, u
int32_t len)
+static void md5_update(void *sst,
const void *buf,
int32_t len)
{
struct MD5Context *ctx=sst;
{
struct MD5Context *ctx=sst;
@@
-267,7
+267,6
@@
struct md5 {
struct hash_if ops;
};
struct hash_if ops;
};
-init_module md5_module;
void md5_module(dict_t *dict)
{
struct md5 *st;
void md5_module(dict_t *dict)
{
struct md5 *st;