]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:42:24 +0000 (00:42 +0200)
commit92af9d8b8060c867b5e58b2c96c480425a083195
tree4d1368d85500ff2c91be22aea0c6bdc7ba3499a6
parent0aa7907e73426bde905d3f9255a61048497fce66
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