Commit 147b71c2 authored by Stephan Müller's avatar Stephan Müller Committed by Treehugger Robot
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: 452983442
Bug: 425813935
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Cherrypick-From: https://android-review.googlesource.com/q/commit:01ea8d0188ab31b9183d1a38a8e52633f4de750d


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