linux/crypto
Stephan Müller cf27d9475f crypto: jitter - use permanent health test storage
The health test result in the current code is only given for the currently
processed raw time stamp. This implies to react on the health test error,
the result must be checked after each raw time stamp being processed. To
avoid this constant checking requirement, any health test error is recorded
and stored to be analyzed at a later time, if needed.

This change ensures that the power-up test catches any health test error.
Without that patch, the power-up health test result is not enforced.

The introduced changes are already in use with the user space version of
the Jitter RNG.

Fixes: 04597c8dd6 ("jitter - add RCT/APT support for different OSRs")
Reported-by: Joachim Vandersmissen <git@jvdsn.com>
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-10-27 18:04:25 +08:00
..
asymmetric_keys certs: Break circular dependency when selftest is modular 2023-10-27 18:04:24 +08:00
async_tx
842.c
acompress.c
adiantum.c crypto: adiantum - stop using alignmask of shash_alg 2023-10-27 18:04:25 +08:00
aead.c crypto: aead - Add crypto_has_aead 2023-09-20 13:15:29 +08:00
aegis-neon.h
aegis.h
aegis128-core.c
aegis128-neon-inner.c
aegis128-neon.c
aes_generic.c
aes_ti.c
af_alg.c
ahash.c crypto: hash - Hide CRYPTO_ALG_TYPE_AHASH_MASK 2023-09-20 13:15:29 +08:00
akcipher.c
algapi.c
algboss.c
algif_aead.c
algif_hash.c
algif_rng.c
algif_skcipher.c
ansi_cprng.c
anubis.c
api.c
arc4.c crypto: arc4 - Convert from skcipher to lskcipher 2023-10-13 18:27:26 +08:00
aria_generic.c
authenc.c crypto: authenc - Only access common skcipher fields on spawn 2023-10-13 18:27:26 +08:00
authencesn.c crypto: authencesn - Only access common skcipher fields on spawn 2023-10-13 18:27:26 +08:00
blake2b_generic.c
blowfish_common.c
blowfish_generic.c
camellia_generic.c
cast5_generic.c
cast6_generic.c
cast_common.c
cbc.c crypto: cbc - Convert from skcipher to lskcipher 2023-09-20 13:15:29 +08:00
ccm.c crypto: cbcmac - remove unnecessary alignment logic 2023-10-27 18:04:24 +08:00
cfb.c
chacha20poly1305.c crypto: chacha20poly1305 - Only access common skcipher fields on spawn 2023-10-13 18:27:26 +08:00
chacha_generic.c
cipher.c
cmac.c crypto: cmac - remove unnecessary alignment logic 2023-10-27 18:04:24 +08:00
compress.c
compress.h
crc32_generic.c
crc32c_generic.c
crc64_rocksoft_generic.c
crct10dif_common.c
crct10dif_generic.c
cryptd.c crypto: cryptd - Only access common skcipher fields on spawn 2023-10-13 18:27:26 +08:00
crypto_engine.c crypto: engine - Make crypto_engine_exit() return void 2023-10-01 16:28:15 +08:00
crypto_null.c
crypto_user_base.c
crypto_user_stat.c
ctr.c crypto: ctr - Only access common skcipher fields on spawn 2023-10-13 18:27:27 +08:00
cts.c crypto: cts - Only access common skcipher fields on spawn 2023-10-13 18:27:27 +08:00
curve25519-generic.c
deflate.c crypto: deflate - Remove zlib-deflate 2023-10-12 21:59:32 +08:00
des_generic.c
dh.c
dh_helper.c
drbg.c crypto: drbg - stop checking crypto_shash_alignmask 2023-10-27 18:04:25 +08:00
ecb.c crypto: ecb - Convert from skcipher to lskcipher 2023-09-20 13:15:29 +08:00
ecc.c
ecc_curve_defs.h
ecdh.c
ecdh_helper.c
ecdsa.c
ecdsasignature.asn1
echainiv.c
ecrdsa.c
ecrdsa_defs.h
ecrdsa_params.asn1
ecrdsa_pub_key.asn1
essiv.c crypto: essiv - Handle lskcipher spawns 2023-10-13 18:27:26 +08:00
fcrypt.c
fips.c
gcm.c crypto: gcm - Only access common skcipher fields on spawn 2023-10-13 18:27:27 +08:00
geniv.c
ghash-generic.c
hash.h
hash_info.c
hctr2.c crypto: hctr2 - stop using alignmask of shash_alg 2023-10-27 18:04:25 +08:00
hmac.c crypto: hmac - remove unnecessary alignment logic 2023-10-27 18:04:24 +08:00
internal.h
jitterentropy-kcapi.c crypto: jitter - reuse allocated entropy collector 2023-10-13 18:31:07 +08:00
jitterentropy-testing.c
jitterentropy.c crypto: jitter - use permanent health test storage 2023-10-27 18:04:25 +08:00
jitterentropy.h crypto: jitter - reuse allocated entropy collector 2023-10-13 18:31:07 +08:00
Kconfig crypto: skcipher - Add dependency on ecb 2023-10-13 18:27:26 +08:00
kdf_sp800108.c
keywrap.c
khazad.c
kpp.c
lrw.c crypto: lrw - Only access common skcipher fields on spawn 2023-10-13 18:27:27 +08:00
lskcipher.c crypto: skcipher - fix weak key check for lskciphers 2023-10-20 13:39:26 +08:00
lz4.c
lz4hc.c
lzo-rle.c
lzo.c
Makefile crypto: skcipher - Add lskcipher 2023-09-20 13:15:29 +08:00
md4.c
md5.c
michael_mic.c
nhpoly1305.c
ofb.c
pcbc.c
pcrypt.c
poly1305_generic.c
polyval-generic.c
proc.c
ripemd.h
rmd160.c
rng.c
rsa-pkcs1pad.c crypto: rsa - Add module alias for pkcs1pad 2023-10-27 18:04:24 +08:00
rsa.c
rsa_helper.c
rsaprivkey.asn1
rsapubkey.asn1
scatterwalk.c
scompress.c
seed.c
seqiv.c
serpent_generic.c
sha1_generic.c
sha3_generic.c
sha256_generic.c
sha512_generic.c
shash.c crypto: shash - remove support for nonzero alignmask 2023-10-27 18:04:25 +08:00
sig.c
simd.c
skcipher.c crypto: skcipher - fix weak key check for lskciphers 2023-10-20 13:39:26 +08:00
skcipher.h crypto: skcipher - fix weak key check for lskciphers 2023-10-20 13:39:26 +08:00
sm2.c
sm2signature.asn1
sm3.c
sm3_generic.c
sm4.c
sm4_generic.c
streebog_generic.c
tcrypt.c
tcrypt.h
tea.c
testmgr.c crypto: testmgr - stop checking crypto_shash_alignmask 2023-10-27 18:04:25 +08:00
testmgr.h crypto: pkcs7 - remove sha1 support 2023-10-20 13:39:26 +08:00
twofish_common.c
twofish_generic.c
vmac.c crypto: vmac - don't set alignmask 2023-10-27 18:04:24 +08:00
wp512.c
xcbc.c crypto: xcbc - remove unnecessary alignment logic 2023-10-27 18:04:25 +08:00
xctr.c
xor.c
xts.c crypto: xts - use 'spawn' for underlying single-block cipher 2023-10-20 13:39:25 +08:00
xxhash_generic.c
zstd.c