X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=crypto%2Ffcrypt.c;h=77286ea28865bf4ce5d97f4a556b8aeeed443b14;hb=7f7614165dc91d4048b2063b295f2d2f323e9e89;hp=300f5b80a0740dcb4925badeea16470d7fccacec;hpb=536657195e2fb24484eac985302dc7a1e0093f5c;p=firefly-linux-kernel-4.4.55.git diff --git a/crypto/fcrypt.c b/crypto/fcrypt.c index 300f5b80a074..77286ea28865 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),