diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-07-24 12:58:02 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-06 01:00:15 +0000 |
commit | 2cfd12facff02ead45addb10c4dd363402eb8898 (patch) | |
tree | 6ded7048c91d9646232136787f8e760a725a31b6 /board/kukui | |
parent | 4e41a88f9e475631652986a116f07e85d848bf3b (diff) | |
download | chrome-ec-2cfd12facff02ead45addb10c4dd363402eb8898.tar.gz |
ectool/trng: Add "rand" host command for testing RNG
This host command and corresponding ectool command allows us to generate
random numbers with the MCU's RNG and process the resulting output with
tools to validate the statistical randomness, such as dieharder
(https://webhome.phy.duke.edu/~rgb/General/dieharder.php) and NIST SP
800-22
(https://csrc.nist.gov/publications/detail/sp/800-22/rev-1a/final).
BRANCH=none
BUG=b:124770147
TEST=ectool --name=cros_fp rand 1 > rand.bin; ls -la rand.bin
TEST=ectool --name=cros_fp rand 536 > rand.bin; ls -la rand.bin
TEST=ectool --name=cros_fp rand 537 > rand.bin; ls -la rand.bin
TEST=ectool --name=cros_fp rand 99999999999999999999999999
Change-Id: Ic0bda4deae79fc7465671dcacfe8bbc9a066b5e5
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1726822
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/kukui')
0 files changed, 0 insertions, 0 deletions