summaryrefslogtreecommitdiff
path: root/board/hammer
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-05-31 12:41:01 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-06-06 08:52:16 -0700
commit6d05a31a4442c0475e2bcfc33692089e78c73da2 (patch)
treefa4d3314ad290b46bba48a948749e01303af8194 /board/hammer
parent39db721f9ace13cc210278c88c3f364b5d67b5b8 (diff)
downloadchrome-ec-6d05a31a4442c0475e2bcfc33692089e78c73da2.tar.gz
rollback: Include board-generated entropy when adding entropy
Mix in board-generated entropy with the externally provided one, which should help make the per-device secret stronger. BRANCH=none BUG=b:38486828 TEST=reboot; rollbackaddent Hello => works fine when USB is connected, fails otherwise, as board-generated entropy relies on USB timing. Change-Id: I314f44759c5f8b859913a748db95e9d42b5cdd11 Reviewed-on: https://chromium-review.googlesource.com/518609 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Mattias Nissler <mnissler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/hammer')
-rw-r--r--board/hammer/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/hammer/board.h b/board/hammer/board.h
index 3bb4d6c0f4..a003bcb6c5 100644
--- a/board/hammer/board.h
+++ b/board/hammer/board.h
@@ -196,6 +196,7 @@
*/
#define CONFIG_ROLLBACK
#define CONFIG_ROLLBACK_SECRET_SIZE 32
+#define CONFIG_ROLLBACK_SECRET_LOCAL_ENTROPY_SIZE 32
#define CONFIG_FLASH_PROTECT_RW
#ifdef SECTION_IS_RW
#undef CONFIG_ROLLBACK_UPDATE