diff options
author | Yi Chou <yich@google.com> | 2023-05-02 15:18:58 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-16 12:34:55 +0000 |
commit | 28939ffb30bdb1d9e6386cf390c982922ea9253d (patch) | |
tree | 814d3fcf3689238b4e32c3d4085db23f3dd310a2 /test/test_config.h | |
parent | 9ab5743831f081d1b4d161fe28be711ef2d01d4c (diff) | |
download | chrome-ec-28939ffb30bdb1d9e6386cf390c982922ea9253d.tar.gz |
boringssl: Implement sysrand from TRNG
The boringssl doesn't include the TRNG implementation, we need our own
CRYPTO_sysrand.
BUG=b:248508087
TEST=make V=1 BOARD=bloonchipper -j
TEST=./test/run_device_tests.py --board bloonchipper -t boringssl_crypto
=> PASS
TEST=./test/run_device_tests.py --board dartmonkey -t boringssl_crypto
=> PASS
Change-Id: I3136bcc96e09f674278bf338297d7bc0576e174c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4496289
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Commit-Queue: Yi Chou <yich@google.com>
Tested-by: Yi Chou <yich@google.com>
Diffstat (limited to 'test/test_config.h')
-rw-r--r-- | test/test_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_config.h b/test/test_config.h index 51c15f4c8c..033ee966b7 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -114,6 +114,10 @@ #define CONFIG_SHA256 #endif +#if defined(TEST_BORINGSSL_CRYPTO) +#define CONFIG_BORINGSSL_CRYPTO +#endif + #ifdef TEST_ROLLBACK_SECRET #define CONFIG_ROLLBACK #define CONFIG_ROLLBACK_SECRET_SIZE 32 |