X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshaes.c;fp=sshaes.c;h=5664f7751f139c25cdb481db825833d9f87fd725;hb=6eec320f0b3606f17f06a290acdbb8f84afdff00;hp=828a0dec850443c7701b7e95a63bc15fb4405167;hpb=5f12a93e1e828e19711e3790b74f7f8bbfeeeaf7;p=PuTTY.git diff --git a/sshaes.c b/sshaes.c index 828a0dec..5664f775 100644 --- a/sshaes.c +++ b/sshaes.c @@ -38,18 +38,6 @@ #define mulby2(x) ( ((x&0x7F) << 1) ^ (x & 0x80 ? 0x1B : 0) ) -#define GET_32BIT_MSB_FIRST(cp) \ - (((unsigned long)(unsigned char)(cp)[3]) | \ - ((unsigned long)(unsigned char)(cp)[2] << 8) | \ - ((unsigned long)(unsigned char)(cp)[1] << 16) | \ - ((unsigned long)(unsigned char)(cp)[0] << 24)) - -#define PUT_32BIT_MSB_FIRST(cp, value) do { \ - (cp)[3] = (value); \ - (cp)[2] = (value) >> 8; \ - (cp)[1] = (value) >> 16; \ - (cp)[0] = (value) >> 24; } while (0) - typedef struct AESContext AESContext; struct AESContext {