projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update the tcp_server example to use the correct ip input callback.
[bertos.git]
/
bertos
/
sec
/
hash
/
md5.c
diff --git
a/bertos/sec/hash/md5.c
b/bertos/sec/hash/md5.c
index 8e89907b40084979e8da6b2f77acf9c95624b3b8..306bacc029da9aa2fd84b1dadb71bced17d0b263 100644
(file)
--- a/
bertos/sec/hash/md5.c
+++ b/
bertos/sec/hash/md5.c
@@
-37,7
+37,7
@@
static void byteReverse(uint32_t *buf, unsigned longs)
static void MD5_begin(Hash *h)
{
MD5_Context *ctx = (MD5_Context *)h;
static void MD5_begin(Hash *h)
{
MD5_Context *ctx = (MD5_Context *)h;
-
+
ctx->buf[0] = 0x67452301;
ctx->buf[1] = 0xefcdab89;
ctx->buf[2] = 0x98badcfe;
ctx->buf[0] = 0x67452301;
ctx->buf[1] = 0xefcdab89;
ctx->buf[2] = 0x98badcfe;
@@
-136,7
+136,7
@@
static uint8_t* MD5_final(struct Hash *h)
PURGE(ctx->in);
PURGE(ctx->bits);
PURGE(ctx->in);
PURGE(ctx->bits);
- return ctx->buf;
+ return
(uint8_t *)
ctx->buf;
}
}