Mercurial > dropbear
comparison mycrypt_macros.h @ 88:901233045998 libtomcrypt
Fix typo in the big-endian macros
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 02 Sep 2004 15:34:30 +0000 |
parents | d7da3b1e1540 |
children | cecb105ff479 |
comparison
equal
deleted
inserted
replaced
20:b939f2d4431e | 88:901233045998 |
---|---|
123 | 123 |
124 #endif /* ENDIAN_LITTLE */ | 124 #endif /* ENDIAN_LITTLE */ |
125 | 125 |
126 #ifdef ENDIAN_BIG | 126 #ifdef ENDIAN_BIG |
127 #define STORE32L(x, y) \ | 127 #define STORE32L(x, y) \ |
128 { (y)[z0] = (unsigned char)(((x)>>24)&255); (y)[1] = (unsigned char)(((x)>>16)&255); \ | 128 { (y)[0] = (unsigned char)(((x)>>24)&255); (y)[1] = (unsigned char)(((x)>>16)&255); \ |
129 (y)[2] = (unsigned char)(((x)>>8)&255); (y)[3] = (unsigned char)((x)&255); } | 129 (y)[2] = (unsigned char)(((x)>>8)&255); (y)[3] = (unsigned char)((x)&255); } |
130 | 130 |
131 #define LOAD32L(x, y) \ | 131 #define LOAD32L(x, y) \ |
132 { x = ((unsigned long)((y)[0] & 255)<<24) | \ | 132 { x = ((unsigned long)((y)[0] & 255)<<24) | \ |
133 ((unsigned long)((y)[1] & 255)<<16) | \ | 133 ((unsigned long)((y)[1] & 255)<<16) | \ |