mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]crypto: Fix ghash pclmulqdqni algorithm without test
@ 2009-11-26  0:46 Youquan,Song
  2009-11-26  0:14 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Youquan,Song @ 2009-11-26  0:46 UTC (permalink / raw)
  To: herbert; +Cc: linux-kernel, ying.huang, kent.liu, youquan.song

when load ghash-clmulni-intel driver,kernel will report no test for some algorithm
with PCLMULQDQ NI. The strange information as following:

alg: No test for __ghash (__ghash-pclmulqdqni)
alg: No test for __ghash (cryptd(__ghash-pclmulqdqni))

crypto_alg's cra_name is use to descript algorithm itself, do not care the 
concrete implement. So this patch unify them and also can fix the algorithm
implementation without test. 

Signed-off-by: Youquan, Song <youquan.song@intel.com>
---

diff --git a/arch/x86/crypto/ghash-clmulni-intel_glue.c b/arch/x86/crypto/ghash-clmulni-intel_glue.c
index cbcc8d8..3fab6cb 100644
--- a/arch/x86/crypto/ghash-clmulni-intel_glue.c
+++ b/arch/x86/crypto/ghash-clmulni-intel_glue.c
@@ -141,7 +141,7 @@ static struct shash_alg ghash_alg = {
 	.setkey		= ghash_setkey,
 	.descsize	= sizeof(struct ghash_desc_ctx),
 	.base		= {
-		.cra_name		= "__ghash",
+		.cra_name		= "ghash",
 		.cra_driver_name	= "__ghash-pclmulqdqni",
 		.cra_priority		= 0,
 		.cra_flags		= CRYPTO_ALG_TYPE_SHASH,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-26  0:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-26  0:46 [PATCH]crypto: Fix ghash pclmulqdqni algorithm without test Youquan,Song
2009-11-26  0:14 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome