projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Take advantage of PUT_32BIT_MSB_FIRST when constructing sequence numbers
[u/mdw/putty]
/
sshcrcda.c
diff --git
a/sshcrcda.c
b/sshcrcda.c
index
09e5f8d
..
8d77cbb
100644
(file)
--- a/
sshcrcda.c
+++ b/
sshcrcda.c
@@
-42,12
+42,6
@@
typedef unsigned short uint16;
#define HASH_MINBLOCKS (7*SSH_BLOCKSIZE)
#define HASH_MINBLOCKS (7*SSH_BLOCKSIZE)
-#define GET_32BIT_MSB_FIRST(cp) \
- (((unsigned long)(unsigned char)(cp)[0] << 24) | \
- ((unsigned long)(unsigned char)(cp)[1] << 16) | \
- ((unsigned long)(unsigned char)(cp)[2] << 8) | \
- ((unsigned long)(unsigned char)(cp)[3]))
-
/* Hash function (Input keys are cipher results) */
#define HASH(x) GET_32BIT_MSB_FIRST(x)
/* Hash function (Input keys are cipher results) */
#define HASH(x) GET_32BIT_MSB_FIRST(x)