• Stephan Müller's avatar
    crypto: jitter - use permanent health test storage · cf27d947
    Stephan Müller authored
    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: 04597c8d ("jitter - add RCT/APT support for different OSRs")
    Reported-by: default avatarJoachim Vandersmissen <git@jvdsn.com>
    Signed-off-by: default avatarStephan Mueller <smueller@chronox.de>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    cf27d947
jitterentropy.c 26.1 KB