diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-05 15:55:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-06 09:18:40 +0200 |
commit | 655e085e3a22d52eb040e7c3bbd2fa1cb6c249c1 (patch) | |
tree | 0e8d7ea1e317894e8432c6a665650c36dd39fc4b /include/hab.h | |
parent | d31741518a19bcc91084fd29a5dd3d07a2156089 (diff) | |
download | barebox-655e085e3a22d52eb040e7c3bbd2fa1cb6c249c1.tar.gz |
crypto: caam - Always do rng selftest
The caam rng selftest is known to be broken in several i.MX
incarnations. To be on the safe side just unconditionally execute
it rather than trying to guess from HAB failure events if this is
necessary.
We can only do the selftest once per boot though, doing it a second time
yields an error:
rng_self_test: Job Error:
2101000.jr0@1000.of: 20001953: CCB: desc idx 25: RNG: Instantiate
so only do the test when rng is not yet initialized as tested with the
RDSTA_IFx status bits.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/hab.h')
-rw-r--r-- | include/hab.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/hab.h b/include/hab.h index a74b7dafce..78c2b865ba 100644 --- a/include/hab.h +++ b/include/hab.h @@ -23,7 +23,6 @@ #ifdef CONFIG_HABV4 int imx28_hab_get_status(void); int imx6_hab_get_status(void); -bool caam_need_rng_software_selftest(void); #else static inline int imx28_hab_get_status(void) { @@ -33,10 +32,6 @@ static inline int imx6_hab_get_status(void) { return -EPERM; } -static inline bool caam_need_rng_software_selftest(void) -{ - return false; -} #endif #ifdef CONFIG_HABV3 |