Commit 01ea8d01 authored by Stephan Müller's avatar Stephan Müller Committed by William McVicker
Browse files

UPSTREAM: crypto: jitter - Allow configuration of oversampling rate



The oversampling rate used by the Jitter RNG allows the configuration of
the heuristically implied entropy in one timing measurement. This
entropy rate is (1 / OSR) bits of entropy per time stamp.

Considering that the Jitter RNG now support APT/RCT health tests for
different OSRs, allow this value to be configured at compile time to
support systems with limited amount of entropy in their timer.

The allowed range of OSR values complies with the APT/RCT cutoff health
test values which range from 1 through 15.

The default value of the OSR selection support is left at 1 which is the
current default. Thus, the addition of the configuration support does
not alter the default Jitter RNG behavior.

Signed-off-by: default avatarStephan Mueller <smueller@chronox.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>

(cherry picked from commit 0baa8fab)
Bug: 425813935
Change-Id: I91adcc1d64f4d9ee914bceda28356e5cca591d3a
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent d250e78c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment