diff options
author | Seth Moore <sethmo@google.com> | 2021-08-30 11:52:30 -0700 |
---|---|---|
committer | Seth Moore <sethmo@google.com> | 2021-08-30 11:52:30 -0700 |
commit | 39b8cf373a9a3f8d5db5a125590882d6540c1566 (patch) | |
tree | a8af751ab88fe1c1af967a347b67dd508b11478e | |
parent | 9ad1b235348414f4f8cda61a269eb0bbe6b37af0 (diff) | |
download | ms-tpm-20-ref-39b8cf373a9a3f8d5db5a125590882d6540c1566.tar.gz |
Don't use the debug RNG in the TPM simandroid-s-beta-5android-s-beta-5
The debug RNG doesn't seed the DRBG internally with any entropy, so
every instance gets the same random bit sequence. Turning this off
enables entropy gathering so that the DRBG is uniquely seeded per
instance of the TPM simulator.
Test: built cuttlefish and debugged, observing proper seeding
Change-Id: Ia650b3c27bc3b94e7535c777aafb3b1b72238796
-rw-r--r-- | Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -66,6 +66,7 @@ cc_defaults { cflags: [ "-DMAX_SYM_DATA=256", "-DDEBUG=YES", + "-DUSE_DEBUG_RNG=NO", "-DALG_CAMELLIA=ALG_NO", "-Wno-logical-op-parentheses", "-Wno-empty-body", |