Commit d5ae5eff authored by Stephan Mueller's avatar Stephan Mueller Committed by Treehugger Robot
Browse files

UPSTREAM: crypto: jitter - set default OSR to 3



The user space Jitter RNG library uses the oversampling rate of 3 which
implies that each time stamp is credited with 1/3 bit of entropy. To
obtain 256 bits of entropy, 768 time stamps need to be sampled. The
increase in OSR is applied based on a report where the Jitter RNG is
used on a system exhibiting a challenging environment to collect
entropy.

This OSR default value is now applied to the Linux kernel version of
the Jitter RNG as well.

The increase in the OSR from 1 to 3 also implies that the Jitter RNG is
now slower by default.

Reported-by: default avatarJeff Barnes <jeffbarnes@microsoft.com>
Signed-off-by: default avatarStephan Mueller <smueller@chronox.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>

(cherry picked from commit 95a798d2)
Bug: 425813935
Bug: 452983442
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Cherrypick-From: https://android-review.googlesource.com/q/commit:453a05edb0c55db2a398907f77e419fccb1b2afd


Merged-In: Ia03069fce478d382c4a8f051a4c6cb1d1ebf18be
Change-Id: Ia03069fce478d382c4a8f051a4c6cb1d1ebf18be
Signed-off-by: default avatarGina Ko <yichunko@google.com>
parent 770818a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment