Re: [PATCH] crypto: Update stdrng test name so that the testmgr finds it properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Neil Horman | 2009-07-01 11:52:19 [-0400]:

>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 <nhorman@xxxxxxxxxxxxx>
>
>
> 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 = {

Don't you use this vector for _all_ stdrngs now? krng for instance will
fail.

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux