Skip to content

crypto: Jitter RNG SP800-90B compliance

Stephan Müller linux-crypto 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* Instead of free/alloc of the Jitter RNG instance in case of a health test error, re-initialize the RNG instance by performing the power-up test and after a success, clear the health test status and error.

[1] http://www.chronox.de/jent/doc/CPU-Jitter-NPTRNG.pdf

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: Jitter RNG SP800-90B compliancecrypto/jitterentropy-kcapi.c crypto/jitterentropy.c+343 -1010 replies
2/2crypto: DRBG always seeded with SP800-90B compliant noise sourcecrypto/drbg.c include/crypto/drbg.h+20 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] crypto: Jitter RNG SP800-90B compliance

Hi,

This patch set adds SP800-90B compliance to the Jitter RNG. The SP800-90B patch is tested for more than half a year in user space with the Jitter RNG version 2.2.0.

The full SP800-90B assessment of the Jitter RNG is provided at [1].

In addition, the DRBG implementation is updated to always be reseeded from the Jitter RNG. To ensure the DRBG is reseeded within an appropriate amount of time, the reseed threshold is lowered.

Changes v2:
* Instead of free/alloc of the Jitter RNG instance in case of a health test error, re-initialize the RNG instance by performing the power-up test and after a success, clear the health test status and error.

[1] http://www.chronox.de/jent/doc/CPU-Jitter-NPTRNG.pdf

Stephan Mueller (2):
crypto: Jitter RNG SP800-90B compliance
crypto: DRBG always seeded with SP800-90B compliant noise source

 crypto/drbg.c                |  26 ++-
 crypto/jitterentropy-kcapi.c |  27 +++
 crypto/jitterentropy.c       | 417 ++++++++++++++++++++++++++---------
 include/crypto/drbg.h        |   6 +-
 4 files changed, 363 insertions(+), 113 deletions(-)
Signature · 1 line
2.25.2