crypto: testmgr - Add infrastructure for ansi_cprng self-tests
authorJarod Wilson <jarod@redhat.com>
Mon, 4 May 2009 11:44:50 +0000 (19:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 2 Jun 2009 04:04:38 +0000 (14:04 +1000)
commit7647d6ce2077d9e1c3d72359f6b4492be129cfe8
treef4d961ef1cd4c6d69c87e5090dba7a631bc004a1
parent5d667322a25ab4ecb91176db118fd663fee4da35
crypto: testmgr - Add infrastructure for ansi_cprng self-tests

Add some necessary infrastructure to make it possible to run
self-tests for ansi_cprng. The bits are likely very specific
to the ANSI X9.31 CPRNG in AES mode, and thus perhaps should
be named more specifically if/when we grow additional CPRNG
support...

Successfully tested against the cryptodev-2.6 tree and a
Red Hat Enterprise Linux 5.x kernel with the follow-on
patch that adds the actual test vectors.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c
crypto/testmgr.h