]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - Trigger a panic when self test fails in FIPS mode
authorNeil Horman <nhorman@tuxdriver.com>
Sun, 12 Oct 2008 12:36:51 +0000 (20:36 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Dec 2008 00:01:14 +0000 (11:01 +1100)
commitd749aea219ad0181175b48f04e7eccbe22a5889b
tree368790705e820e98af39430eb622786ee31c681e
parent809bbc2de678872db56f5af7b832ac43634660b5
crypto: testmgr - Trigger a panic when self test fails in FIPS mode

The FIPS specification requires that should self test for any supported
crypto algorithm fail during operation in fips mode, we need to prevent
the use of any crypto functionality until such time as the system can
be re-initialized.  Seems like the best way to handle that would be
to panic the system if we were in fips mode and failed a self test.
This patch implements that functionality.  I've built and run it
successfully.

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