aboutsummaryrefslogtreecommitdiff
path: root/tools/plink/sshsh512.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-11-19 12:38:01 +0000
committermarha <marha@users.sourceforge.net>2010-11-19 12:38:01 +0000
commit491a69769cb9db97e6566679b6ac0887bdda3292 (patch)
treea33f1caa6affb164e64ac463b53cf747159532aa /tools/plink/sshsh512.c
parent79b0bee7c7af3c5035cddde18497e54d38cf8dbc (diff)
downloadvcxsrv-491a69769cb9db97e6566679b6ac0887bdda3292.tar.gz
vcxsrv-491a69769cb9db97e6566679b6ac0887bdda3292.tar.bz2
vcxsrv-491a69769cb9db97e6566679b6ac0887bdda3292.zip
Updated to revision 9025 of putty
Diffstat (limited to 'tools/plink/sshsh512.c')
-rw-r--r--tools/plink/sshsh512.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/plink/sshsh512.c b/tools/plink/sshsh512.c
index c025ffd17..bdb126fcf 100644
--- a/tools/plink/sshsh512.c
+++ b/tools/plink/sshsh512.c
@@ -13,14 +13,14 @@
* overlap destination with one source, but the others can't.
*/
#define add(r,x,y) ( r.lo = y.lo + x.lo, \
- r.hi = y.hi + x.hi + (r.lo < y.lo) )
-#define rorB(r,x,y) ( r.lo = (x.hi >> ((y)-32)) | (x.lo << (64-(y))), \
- r.hi = (x.lo >> ((y)-32)) | (x.hi << (64-(y))) )
-#define rorL(r,x,y) ( r.lo = (x.lo >> (y)) | (x.hi << (32-(y))), \
- r.hi = (x.hi >> (y)) | (x.lo << (32-(y))) )
-#define shrB(r,x,y) ( r.lo = x.hi >> ((y)-32), r.hi = 0 )
-#define shrL(r,x,y) ( r.lo = (x.lo >> (y)) | (x.hi << (32-(y))), \
- r.hi = x.hi >> (y) )
+ r.hi = y.hi + x.hi + ((uint32)r.lo < (uint32)y.lo) )
+#define rorB(r,x,y) ( r.lo = ((uint32)x.hi >> ((y)-32)) | ((uint32)x.lo << (64-(y))), \
+ r.hi = ((uint32)x.lo >> ((y)-32)) | ((uint32)x.hi << (64-(y))) )
+#define rorL(r,x,y) ( r.lo = ((uint32)x.lo >> (y)) | ((uint32)x.hi << (32-(y))), \
+ r.hi = ((uint32)x.hi >> (y)) | ((uint32)x.lo << (32-(y))) )
+#define shrB(r,x,y) ( r.lo = (uint32)x.hi >> ((y)-32), r.hi = 0 )
+#define shrL(r,x,y) ( r.lo = ((uint32)x.lo >> (y)) | ((uint32)x.hi << (32-(y))), \
+ r.hi = (uint32)x.hi >> (y) )
#define and(r,x,y) ( r.lo = x.lo & y.lo, r.hi = x.hi & y.hi )
#define xor(r,x,y) ( r.lo = x.lo ^ y.lo, r.hi = x.hi ^ y.hi )
#define not(r,x) ( r.lo = ~x.lo, r.hi = ~x.hi )