]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: ghash-clmulni - Fix load failure
authorWang, Rui Y <rui.y.wang@intel.com>
Sun, 29 Nov 2015 14:45:33 +0000 (22:45 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 04:43:14 +0000 (20:43 -0800)
commit1652d66368742cda0312085f538f9174ad958128
tree446147b004be16b66e07c22d448f2e79df6577c9
parentdab9c840e44cac8d78a617b55b1d2fd8acba98dd
crypto: ghash-clmulni - Fix load failure

ghash_clmulni_intel fails to load on Linux 4.3+ with the following message:
"modprobe: ERROR: could not insert 'ghash_clmulni_intel': Invalid argument"

After 8996eafdc ("crypto: ahash - ensure statesize is non-zero") all ahash
drivers are required to implement import()/export(), and must have a non-
zero statesize.

This patch has been tested with the algif_hash interface. The calculated
digest values, after several rounds of import()s and export()s, match those
calculated by tcrypt.

Signed-off-by: Rui Wang <rui.y.wang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Orabug: 25202933
(cherry picked from commit 3a020a723c65eb8ffa7c237faca26521a024e582)
Signed-off-by: Todd Vierling <todd.vierling@oracle.com>
arch/x86/crypto/ghash-clmulni-intel_glue.c