]> git.dujemihanovic.xyz Git - u-boot.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)
commit652b504ff2dc41313ad7f38a00e1d5730966f164
tree98a524ec3227cd2938bb763ed4e052b3bcfe938a
parent214cc199b475586bb0ac00794deac18ad27af4eb
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