X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=crypto%2Ffcrypt.c;h=021d7fec6bc89e9b70af87b1e66a310268da28bb;hb=1fac1fa965a9fbdb38d8a4b945db3521f801c946;hp=3b2cf569c684fa5c8a278a4919f9ee8513fb79b3;hpb=296bac30f6b62e1e985d3e7c0bd9c92b971b2dab;p=~andy%2Flinux diff --git a/crypto/fcrypt.c b/crypto/fcrypt.c index 3b2cf569c68..021d7fec6bc 100644 --- a/crypto/fcrypt.c +++ b/crypto/fcrypt.c @@ -110,7 +110,7 @@ static const __be32 sbox0[256] = { }; #undef Z -#define Z(x) cpu_to_be32((x << 27) | (x >> 5)) +#define Z(x) cpu_to_be32(((x & 0x1f) << 27) | (x >> 5)) static const __be32 sbox1[256] = { Z(0x77), Z(0x14), Z(0xa6), Z(0xfe), Z(0xb2), Z(0x5e), Z(0x8c), Z(0x3e), Z(0x67), Z(0x6c), Z(0xa1), Z(0x0d), Z(0xc2), Z(0xa2), Z(0xc1), Z(0x85),