Whamcloud - gitweb
LU-13355 crypto: crypto engine wrappers in libcfs 05/38205/2
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 10 Apr 2020 16:20:17 +0000 (18:20 +0200)
committerOleg Drokin <green@whamcloud.com>
Sun, 19 Apr 2020 08:49:56 +0000 (08:49 +0000)
libcfs has wrappers in order to be able to use crypto engines as
standard crypto modules. But libcfs should not be considered as the
owner of these implementations.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I1e22907c10837042606095ed6089c3c675fffe27
Reviewed-on: https://review.whamcloud.com/38205
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/linux/linux-crypto-adler.c
libcfs/libcfs/linux/linux-crypto-crc32.c
libcfs/libcfs/linux/linux-crypto-crc32c-pclmul.c
libcfs/libcfs/linux/linux-crypto-crc32pclmul.c

index 90f502f..9cd3fd0 100644 (file)
@@ -119,7 +119,7 @@ static struct shash_alg alg = {
                .cra_priority           = 100,
                .cra_blocksize          = CHKSUM_BLOCK_SIZE,
                .cra_ctxsize            = sizeof(u32),
-               .cra_module             = THIS_MODULE,
+               .cra_module             = NULL,
                .cra_init               = adler32_cra_init,
        }
 };
index 58e4691..2df492e 100644 (file)
@@ -132,7 +132,7 @@ static struct shash_alg alg = {
                .cra_priority           = 100,
                .cra_blocksize          = CHKSUM_BLOCK_SIZE,
                .cra_ctxsize            = sizeof(u32),
-               .cra_module             = THIS_MODULE,
+               .cra_module             = NULL,
                .cra_init               = crc32_cra_init,
        }
 };
index fc55ad7..55024b5 100644 (file)
@@ -135,7 +135,7 @@ static struct shash_alg alg = {
                        .cra_priority           = 150,
                        .cra_blocksize          = CHKSUM_BLOCK_SIZE,
                        .cra_ctxsize            = sizeof(u32),
-                       .cra_module             = THIS_MODULE,
+                       .cra_module             = NULL,
                        .cra_init               = crc32c_pclmul_cra_init,
        }
 };
index a238e4e..6e34be6 100644 (file)
@@ -171,7 +171,7 @@ static struct shash_alg alg = {
                        .cra_priority           = 200,
                        .cra_blocksize          = CHKSUM_BLOCK_SIZE,
                        .cra_ctxsize            = sizeof(u32),
-                       .cra_module             = THIS_MODULE,
+                       .cra_module             = NULL,
                        .cra_init               = crc32_pclmul_cra_init,
        }
 };