]> git.baikalelectronics.ru Git - uboot.git/commit
Add optional salt to AUTOBOOT_STOP_STR_SHA256
authorJoel Peshkin <joel.peshkin@broadcom.com>
Sun, 22 Nov 2020 01:18:59 +0000 (17:18 -0800)
committerTom Rini <trini@konsulko.com>
Sat, 16 Jan 2021 19:49:09 +0000 (14:49 -0500)
commitf8bc2e6b83ee0d71130481dea87a2c4c81534d4f
tree98a524ec3227cd2938bb763ed4e052b3bcfe938a
parentef247243cce07c91e3193f297e976b7196897a9b
Add optional salt to AUTOBOOT_STOP_STR_SHA256

Adds an optional SALT value to AUTOBOOT_STOP_STR_SHA256.   If a string
followed by a ":" is prepended to the sha256, the portion to the left
of the colon will be used as a salt and the password will be appended
to the salt before the sha256 is computed and compared.

Signed-off-by: Joel Peshkin <joel.peshkin@broadcom.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Joel Peshkin <joel.peshkin@broadcom.com>
To: u-boot@lists.denx.de
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
common/Kconfig.boot
common/autoboot.c