From: Neil Horman Date: Sun, 12 Oct 2008 12:36:51 +0000 (+0800) Subject: crypto: testmgr - Trigger a panic when self test fails in FIPS mode X-Git-Tag: v2.6.29-rc1~589^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d12d6b6d37cad766b390467e770eb0ab81345d78;p=pandora-kernel.git 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 Signed-off-by: Herbert Xu --- Reading git-diff-tree failed