]> Pileus Git - ~andy/linux/blobdiff - crypto/fcrypt.c
MAINTAINERS: Add linux.nics@intel.com to INTEL ETHERNET DRIVERS
[~andy/linux] / crypto / fcrypt.c
index c33107e340b6c3774a1f709f14b889c8c034c19d..021d7fec6bc89e9b70af87b1e66a310268da28bb 100644 (file)
@@ -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,