aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorSeth Moore <sethmo@google.com>2021-08-30 11:52:30 -0700
committerSeth Moore <sethmo@google.com>2021-08-30 11:52:30 -0700
commit39b8cf373a9a3f8d5db5a125590882d6540c1566 (patch)
treea8af751ab88fe1c1af967a347b67dd508b11478e /Android.bp
parent9ad1b235348414f4f8cda61a269eb0bbe6b37af0 (diff)
downloadms-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
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 6f516b4..355aaaf 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",