projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace MD5 implementation with my own code
[u/mdw/putty]
/
ssh.h
diff --git
a/ssh.h
b/ssh.h
index
f758174
..
1e2291e
100644
(file)
--- a/
ssh.h
+++ b/
ssh.h
@@
-28,13
+28,18
@@
typedef unsigned int uint32;
unsigned long crc32(const void *s, size_t len);
unsigned long crc32(const void *s, size_t len);
+typedef struct {
+ uint32 h[4];
+} MD5_Core_State;
+
struct MD5Context {
#ifdef MSCRYPTOAPI
unsigned long hHash;
#else
struct MD5Context {
#ifdef MSCRYPTOAPI
unsigned long hHash;
#else
- uint32 buf[4];
- uint32 bits[2];
- unsigned char in[64];
+ MD5_Core_State core;
+ unsigned char block[BLKSIZE];
+ int blkused;
+ uint32 lenhi, lenlo;
#endif
};
#endif
};