diff options
Diffstat (limited to 'crypto/fcrypt.c')
| -rw-r--r-- | crypto/fcrypt.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/fcrypt.c b/crypto/fcrypt.c index c33107e340b..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), @@ -396,7 +396,6 @@ static struct crypto_alg fcrypt_alg = {  	.cra_ctxsize		=	sizeof(struct fcrypt_ctx),  	.cra_module		=	THIS_MODULE,  	.cra_alignmask		=	3, -	.cra_list		=	LIST_HEAD_INIT(fcrypt_alg.cra_list),  	.cra_u			=	{ .cipher = {  	.cia_min_keysize	=	8,  	.cia_max_keysize	=	8,  | 
