From: Neil Horman Subject: [PATCH] crypto: Update stdrng test name so that the testmgr finds it properly Date: Wed, 1 Jul 2009 11:52:19 -0400 Message-ID: <20090701155219.GA31414@hmsreliant.think-freely.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: herbert@gondor.apana.org.au, davem@davemloft.net, nhorman@tuxdriver.com To: linux-crypto@vger.kernel.org Return-path: Received: from charlotte.tuxdriver.com ([70.61.120.58]:47583 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751890AbZGAPwY (ORCPT ); Wed, 1 Jul 2009 11:52:24 -0400 Content-Disposition: inline Sender: linux-crypto-owner@vger.kernel.org List-ID: Fix crypto testmgr reference to rng self tests. It seems the ansi_cprng self tests get skipped currently. It appears this is because the test name is "ansi_cprng", but the test is looked up by the cra_name value of the algorithm in question, and ansi_cprng registers its cra_name as stdrng. This patch brings the two into line. Signed-off-by: Neil Horman testmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index f9bea9d..3315a38 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -1480,7 +1480,7 @@ static int alg_test_cprng(const struct alg_test_desc *desc, const char *driver, /* Please keep this list sorted by algorithm name. */ static const struct alg_test_desc alg_test_descs[] = { { - .alg = "ansi_cprng", + .alg = "stdrng", .test = alg_test_cprng, .fips_allowed = 1, .suite = {