crypto: jitter - Add clarifying comments to Jitter Entropy RCT cutoff values
authorJoachim Vandersmissen <git@jvdsn.com>
Sun, 6 Aug 2023 19:19:03 +0000 (14:19 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Aug 2023 11:19:52 +0000 (19:19 +0800)
commit91cb1e1432b3d873a0c8831d0dd8022db98ac8b8
treeeb28f4adb0b0d89c3ead29cd39996805471c9bef
parent9e47a758b70167c9301d2b44d2569f86c7796f2d
crypto: jitter - Add clarifying comments to Jitter Entropy RCT cutoff values

The RCT cutoff values are correct, but they don't exactly match the ones
one would expect when computing them using the formula in SP800-90B. This
discrepancy is due to the fact that the Jitter Entropy RCT starts at 1. To
avoid any confusion by future reviewers, add some comments and explicitly
subtract 1 from the "correct" cutoff values in the definitions.

Signed-off-by: Joachim Vandersmissen <git@jvdsn.com>
Reviewed-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/jitterentropy.c