autoboot.c: Add feature to stop autobooting via SHA256 encrypted password
authorStefan Roese <sr@denx.de>
Mon, 18 May 2015 12:08:24 +0000 (14:08 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 8 Jun 2015 21:32:40 +0000 (17:32 -0400)
commit8f0b1e24e2887713bdcbf35b08902e9555ee7b92
tree7daaec4a73016b34d20749a00cdeebb4ea859df2
parentd126e016493dc84a87db4ce87db4c5a94ee29e9a
autoboot.c: Add feature to stop autobooting via SHA256 encrypted password

This patch adds the feature to only stop the autobooting, and therefor
boot into the U-Boot prompt, when the input string / password matches
a values that is encypted via a SHA256 hash and saved in the environment.

This feature is enabled by defined these config options:
     CONFIG_AUTOBOOT_KEYED
     CONFIG_AUTOBOOT_STOP_STR_SHA256

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/Kconfig
common/autoboot.c
common/hash.c
include/hash.h