diff options
author | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2021-07-08 15:57:40 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-23 10:17:25 -0400 |
commit | 7117ca48e67d4d08e92957369c1cf707c908ecf7 (patch) | |
tree | fb079b301d7b852b2459c134143ece448dcd4054 | |
parent | 766151840c0c4b0e168822421d958f038bb0a321 (diff) | |
download | u-boot-WIP/2021-07-23-reboot-mode-and-cryptfs-passwd-support.zip u-boot-WIP/2021-07-23-reboot-mode-and-cryptfs-passwd-support.tar.gz u-boot-WIP/2021-07-23-reboot-mode-and-cryptfs-passwd-support.tar.bz2 |
test: add first autoboot unit testsWIP/2021-07-23-reboot-mode-and-cryptfs-passwd-support
This adds tests for the crypt-based and plain SHA256-based password hashing
algorithms in the autoboot flow.
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | configs/sandbox_defconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 1766dc0..a1e77a5 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @@ -287,6 +287,16 @@ CONFIG_EFI_CAPSULE_FIRMWARE_FIT=y CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y CONFIG_EFI_SECURE_BOOT=y CONFIG_TEST_FDTDEC=y +CONFIG_CRYPT_PW=y +CONFIG_CRYPT_PW_SHA256=y +CONFIG_CRYPT_PW_SHA512=y +CONFIG_AUTOBOOT_KEYED=y +CONFIG_AUTOBOOT_PROMPT="Enter password \"a\" in %d seconds to stop autoboot\n" +CONFIG_AUTOBOOT_ENCRYPTION=y +CONFIG_AUTOBOOT_STOP_STR_ENABLE=y +CONFIG_AUTOBOOT_STOP_STR_CRYPT="$5$rounds=640000$HrpE65IkB8CM5nCL$BKT3QdF98Bo8fJpTr9tjZLZQyzqPASBY20xuK5Rent9" +CONFIG_AUTOBOOT_NEVER_TIMEOUT=y +CONFIG_AUTOBOOT_SHA256_FALLBACK=y CONFIG_UNIT_TEST=y CONFIG_UT_TIME=y CONFIG_UT_DM=y |