Re: [PATCH 2/9] lib: crypt: Avoid redefining static_assert

2022-03-16 Thread Steffen Jaeckel
On 3/16/22 20:23, Simon Glass wrote: On Wed, 16 Mar 2022 at 09:40, Pierre-Clément Tosi wrote: Use the macro introduced by commit ef0f4e834c66 ("build_bug.h: add wrapper for _Static_assert") by importing . Signed-off-by: Pierre-Clément Tosi Cc: Simon Glass Cc: Steffen Jaeckel

Re: [PATCH] tools: add fdt_add_pubkey

2021-08-06 Thread Steffen Jaeckel
Roman, On 8/5/21 9:55 AM, Rasmus Villemoes wrote: > On 03/08/2021 13.00, Roman Kopytin wrote: > > Hi Roman > > Thanks for picking this up. A few notes on the process: > > - Don't attach the patch, it must be inline in the email. But do not > copy-paste it in to your mail client, that will most

Re: [PATCH] sandbox: Reduce keyed autoboot delay

2021-07-25 Thread Steffen Jaeckel
one test that needs it. > > Add a command-line flag in case this is desired in normal use. > > Signed-off-by: Simon Glass > Fixes: 25c8b9f298e ("test: add first autoboot unit tests") Reviewed-by: Steffen Jaeckel Cheers Steffen

[PATCH v5 8/8] test: add first autoboot unit tests

2021-07-08 Thread Steffen Jaeckel
This adds tests for the crypt-based and plain SHA256-based password hashing algorithms in the autoboot flow. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- (no changes since v4) Changes in v4: Add another test with `bootstopusesha256` unset common/Kconfig.boot | 2

[PATCH v5 7/8] common: add support to fallback to plain SHA256

2021-07-08 Thread Steffen Jaeckel
In case crypt-based hashing is enabled this will be the default mechanism that is used. If a user wants to have support for both, the environment variable `bootstopusesha256` can be set to `true` to allow plain SHA256 based hashing of the password. Signed-off-by: Steffen Jaeckel Reviewed

[PATCH v5 6/8] common: add AUTOBOOT_FLUSH_STDIN option

2021-07-08 Thread Steffen Jaeckel
-by: Steffen Jaeckel Reviewed-by: Simon Glass --- (no changes since v1) common/Kconfig.boot | 9 + common/autoboot.c | 11 +++ 2 files changed, 20 insertions(+) diff --git a/common/Kconfig.boot b/common/Kconfig.boot index e70dcf17cb..d19bc32836 100644 --- a/common/Kconfig.boot

[PATCH v5 5/8] common: allow disabling of timeout for password entry

2021-07-08 Thread Steffen Jaeckel
In case a user has to enter a complicated password it is sometimes desireable to give the user more time than the default timeout. Enabling this feature will disable the timeout entirely in case the user presses the key before entering any other character. Signed-off-by: Steffen Jaeckel

[PATCH v5 4/8] common: Rename macro appropriately

2021-07-08 Thread Steffen Jaeckel
While doing code-review internally this got nitpicked by 2 reviewers, so I decided to include this here. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass Reviewed-by: Heiko Schocher --- (no changes since v1) common/autoboot.c | 16 1 file changed, 8 insertions(+), 8

[PATCH v5 3/8] common: integrate crypt-based passwords

2021-07-08 Thread Steffen Jaeckel
Hook into the autoboot flow as an alternative to the existing mechanisms. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass Reviewed-by: Heiko Schocher --- (no changes since v1) common/Kconfig.boot | 38 ++--- common/autoboot.c | 81

[PATCH v5 2/8] lib: wrap crypt API to hide errno usage

2021-07-08 Thread Steffen Jaeckel
In order to prevent using the global errno, replace it with a static version and create a wrapper function which returns the error value. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v5: Take review comments into account include/crypt.h

[PATCH v5 1/8] lib: add crypt subsystem

2021-07-08 Thread Steffen Jaeckel
--always --all tags/v4.4.17-0-g6b110bc ``` Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass Reviewed-by: Heiko Schocher --- (no changes since v4) Changes in v4: Fix depends for unit-tests Changes in v3: Add unit-tests for autoboot Introduce `bootstopusesha256` to allow fallback to plain

[PATCH v5 0/8] common: Introduce crypt-style password support

2021-07-08 Thread Steffen Jaeckel
unit-tests of crypt_compare() Wrapped crypt functions to encapsulate errno Steffen Jaeckel (8): lib: add crypt subsystem lib: wrap crypt API to hide errno usage common: integrate crypt-based passwords common: Rename macro appropriately common: allow disabling of timeout for password entry

Re: [PATCH v4 1/8] lib: add crypt subsystem

2021-07-08 Thread Steffen Jaeckel
Hi Heiko, thanks for the review! On 7/8/21 5:56 AM, Heiko Schocher wrote: > [...] > >> diff --git a/lib/crypt/Makefile b/lib/crypt/Makefile >> new file mode 100644 >> index 00..290231064c >> --- /dev/null >> +++ b/lib/crypt/Makefile >> @@ -0,0 +1,10 @@ >> +# SPDX-License-Identifier:

[PATCH v4 8/8] test: add first autoboot unit tests

2021-07-07 Thread Steffen Jaeckel
This adds tests for the crypt-based and plain SHA256-based password hashing algorithms in the autoboot flow. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- Changes in v4: Add another test with `bootstopusesha256` unset common/Kconfig.boot | 2 +- common/console.c

[PATCH v4 7/8] common: add support to fallback to plain SHA256

2021-07-07 Thread Steffen Jaeckel
In case crypt-based hashing is enabled this will be the default mechanism that is used. If a user wants to have support for both, the environment variable `bootstopusesha256` can be set to `true` to allow plain SHA256 based hashing of the password. Signed-off-by: Steffen Jaeckel Reviewed

[PATCH v4 6/8] common: add AUTOBOOT_FLUSH_STDIN option

2021-07-07 Thread Steffen Jaeckel
-by: Steffen Jaeckel Reviewed-by: Simon Glass --- (no changes since v1) common/Kconfig.boot | 9 + common/autoboot.c | 11 +++ 2 files changed, 20 insertions(+) diff --git a/common/Kconfig.boot b/common/Kconfig.boot index e70dcf17cb..d19bc32836 100644 --- a/common/Kconfig.boot

[PATCH v4 5/8] common: allow disabling of timeout for password entry

2021-07-07 Thread Steffen Jaeckel
In case a user has to enter a complicated password it is sometimes desireable to give the user more time than the default timeout. Enabling this feature will disable the timeout entirely in case the user presses the key before entering any other character. Signed-off-by: Steffen Jaeckel

[PATCH v4 4/8] common: Rename macro appropriately

2021-07-07 Thread Steffen Jaeckel
While doing code-review internally this got nitpicked by 2 reviewers, so I decided to include this here. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- (no changes since v1) common/autoboot.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v4 3/8] common: integrate crypt-based passwords

2021-07-07 Thread Steffen Jaeckel
Hook into the autoboot flow as an alternative to the existing mechanisms. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- (no changes since v1) common/Kconfig.boot | 38 ++--- common/autoboot.c | 81 - 2 files changed

[PATCH v4 2/8] lib: wrap crypt API to hide errno usage

2021-07-07 Thread Steffen Jaeckel
In order to prevent using the global errno, replace it with a static version and create a wrapper function which returns the error value. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- (no changes since v1) include/crypt.h | 3 ++- lib/crypt/alg-sha256.h | 6

[PATCH v4 1/8] lib: add crypt subsystem

2021-07-07 Thread Steffen Jaeckel
--always --all tags/v4.4.17-0-g6b110bc ``` Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- Changes in v4: Fix depends for unit-tests Changes in v3: Add unit-tests for autoboot Introduce `bootstopusesha256` to allow fallback to plain SHA256-based hashing Add AUTOBOOT_FLUSH_STDIN option Drop

[PATCH v4 0/8] common: Introduce crypt-style password support

2021-07-07 Thread Steffen Jaeckel
to encapsulate errno Steffen Jaeckel (8): lib: add crypt subsystem lib: wrap crypt API to hide errno usage common: integrate crypt-based passwords common: Rename macro appropriately common: allow disabling of timeout for password entry common: add AUTOBOOT_FLUSH_STDIN option common

Re: [PATCH v3 8/8] test: add first autoboot unit tests

2021-07-07 Thread Steffen Jaeckel
Hi Simon, thanks again for the review! On 6/26/21 8:32 PM, Simon Glass wrote: > On Mon, 21 Jun 2021 at 14:25, Steffen Jaeckel > wrote: >> >> This adds tests for the crypt-based and plain SHA256-based password hashing >> algorithms in the autoboot flow. >> >

[PATCH v3 8/8] test: add first autoboot unit tests

2021-06-21 Thread Steffen Jaeckel
This adds tests for the crypt-based and plain SHA256-based password hashing algorithms in the autoboot flow. Signed-off-by: Steffen Jaeckel --- (no changes since v1) common/Kconfig.boot | 2 +- common/console.c| 5 +++ configs/sandbox_defconfig | 11 + include

[PATCH v3 7/8] common: add support to fallback to plain SHA256

2021-06-21 Thread Steffen Jaeckel
In case crypt-based hashing is enabled this will be the default mechanism that is used. If a user wants to have support for both, the environment variable `bootstopusesha256` can be set to `true` to allow plain SHA256 based hashing of the password. Signed-off-by: Steffen Jaeckel --- (no changes

[PATCH v3 6/8] common: add AUTOBOOT_FLUSH_STDIN option

2021-06-21 Thread Steffen Jaeckel
-by: Steffen Jaeckel --- (no changes since v1) common/Kconfig.boot | 9 + common/autoboot.c | 11 +++ 2 files changed, 20 insertions(+) diff --git a/common/Kconfig.boot b/common/Kconfig.boot index e70dcf17cb..d19bc32836 100644 --- a/common/Kconfig.boot +++ b/common/Kconfig.boot

[PATCH v3 5/8] common: allow disabling of timeout for password entry

2021-06-21 Thread Steffen Jaeckel
In case a user has to enter a complicated password it is sometimes desireable to give the user more time than the default timeout. Enabling this feature will disable the timeout entirely in case the user presses the key before entering any other character. Signed-off-by: Steffen Jaeckel

[PATCH v3 4/8] common: Rename macro appropriately

2021-06-21 Thread Steffen Jaeckel
While doing code-review internally this got nitpicked by 2 reviewers, so I decided to include this here. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- (no changes since v1) common/autoboot.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v3 3/8] common: integrate crypt-based passwords

2021-06-21 Thread Steffen Jaeckel
Hook into the autoboot flow as an alternative to the existing mechanisms. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- (no changes since v1) common/Kconfig.boot | 38 ++--- common/autoboot.c | 80 - 2 files changed

[PATCH v3 2/8] lib: wrap crypt API to hide errno usage

2021-06-21 Thread Steffen Jaeckel
In order to prevent using the global errno, replace it with a static version and create a wrapper function which returns the error value. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- (no changes since v1) include/crypt.h | 3 ++- lib/crypt/alg-sha256.h | 6

[PATCH v3 1/8] lib: add crypt subsystem

2021-06-21 Thread Steffen Jaeckel
--always --all tags/v4.4.17-0-g6b110bc ``` Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- Changes in v3: Add unit-tests for autoboot Introduce `bootstopusesha256` to allow fallback to plain SHA256-based hashing Add AUTOBOOT_FLUSH_STDIN option Drop the changes to bcm963158_ram_defconfig

[PATCH v3 0/8] common: Introduce crypt-style password support

2021-06-21 Thread Steffen Jaeckel
the changes to bcm963158_ram_defconfig Changes in v2: Update Kconfig way of enabling, setting hashes etc. Changes in v1: Added unit-tests of crypt_compare() Wrapped crypt functions to encapsulate errno Steffen Jaeckel (8): lib: add crypt subsystem lib: wrap crypt API to hide errno usage common

Re: [PATCH v2 3/7] common: integrate crypt-based passwords

2021-05-11 Thread Steffen Jaeckel
Hi Simon, On 5/11/21 5:27 PM, Simon Glass wrote: >> >> [snip] >> diff --git a/common/autoboot.c b/common/autoboot.c index 50ab9281e7..6f55abe388 100644 --- a/common/autoboot.c +++ b/common/autoboot.c @@ -316,3 +316,4 @@ static int abortboot_key_sequence(int bootdelay)

Re: [PATCH v2 3/7] common: integrate crypt-based passwords

2021-05-11 Thread Steffen Jaeckel
Hi Simon, On 5/10/21 10:45 PM, Simon Glass wrote: > On Mon, 10 May 2021 at 13:37, Steffen Jaeckel > wrote: [snip] >> diff --git a/common/autoboot.c b/common/autoboot.c >> index 50ab9281e7..6f55abe388 100644 >> --- a/common/autoboot.c >> +++ b/common/autoboot.c >

Re: [PATCH v2 3/7] common: integrate crypt-based passwords

2021-05-10 Thread Steffen Jaeckel
Hi Simon On 5/10/21 10:24 PM, Simon Glass wrote: > On Mon, 10 May 2021 at 14:06, Steffen Jaeckel > wrote: >> On 5/10/21 9:19 PM, Simon Glass wrote: >>> On Mon, 10 May 2021 at 11:05, Steffen Jaeckel >>> wrote: >>>> On 5/10/21 6:27 PM, Simon Glass

Re: [PATCH v2 3/7] common: integrate crypt-based passwords

2021-05-10 Thread Steffen Jaeckel
Hi Simon, On 5/10/21 9:19 PM, Simon Glass wrote: > On Mon, 10 May 2021 at 11:05, Steffen Jaeckel > wrote: >> On 5/10/21 6:27 PM, Simon Glass wrote: >>> On Mon, 10 May 2021 at 00:19, Steffen Jaeckel >>> wrote: >>>> >>>> Hook in

Re: [PATCH v2 7/7] configs: add new sandbox with crypt-based password

2021-05-10 Thread Steffen Jaeckel
Hi Simon, On 5/10/21 6:28 PM, Simon Glass wrote: > Hi Steffen, > > On Mon, 10 May 2021 at 00:19, Steffen Jaeckel > wrote: >> >> This is a copy of the regular sandbox with crypt-based password entry >> enabled. >> >> Signed-off-by: Steffen

Re: [PATCH v2 2/7] lib: wrap crypt API to hide errno usage

2021-05-10 Thread Steffen Jaeckel
On 5/10/21 6:27 PM, Simon Glass wrote: > On Mon, 10 May 2021 at 00:19, Steffen Jaeckel > wrote: >> >> In order to prevent using the global errno, replace it with a static >> version and create a wrapper function which returns the error value. >> >

Re: [PATCH v2 3/7] common: integrate crypt-based passwords

2021-05-10 Thread Steffen Jaeckel
On 5/10/21 6:27 PM, Simon Glass wrote: > On Mon, 10 May 2021 at 00:19, Steffen Jaeckel > wrote: >> >> Hook into the autoboot flow as an alternative to the existing >> mechanisms. >> >> Signed-off-by: Steffen Jaeckel >> --- >> >>

[PATCH v2 7/7] configs: add new sandbox with crypt-based password

2021-05-10 Thread Steffen Jaeckel
This is a copy of the regular sandbox with crypt-based password entry enabled. Signed-off-by: Steffen Jaeckel --- (no changes since v1) configs/sandbox_cryptpass_defconfig | 296 1 file changed, 296 insertions(+) create mode 100644 configs

[PATCH v2 5/7] cmd: allow disabling of timeout for password entry

2021-05-10 Thread Steffen Jaeckel
In case a user has to enter a complicated password it is sometimes desireable to give the user more time than the default timeout. Enabling this feature will disable the timeout entirely in case the user presses the key before entering any other character. Signed-off-by: Steffen Jaeckel

[PATCH v2 6/7] configs: add new values to bcm963158 defconfig

2021-05-10 Thread Steffen Jaeckel
In order to have at least one defconfig that enables all those newly added values. Signed-off-by: Steffen Jaeckel --- (no changes since v1) configs/bcm963158_ram_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/bcm963158_ram_defconfig b/configs

[PATCH v2 1/7] lib: add crypt subsystem

2021-05-10 Thread Steffen Jaeckel
--always --all tags/v4.4.17-0-g6b110bc ``` Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- Changes in v2: Update Kconfig way of enabling, setting hashes etc. Changes in v1: Added unit-tests of crypt_compare() Wrapped crypt functions to encapsulate errno include/crypt.h | 13

[PATCH v2 3/7] common: integrate crypt-based passwords

2021-05-10 Thread Steffen Jaeckel
Hook into the autoboot flow as an alternative to the existing mechanisms. Signed-off-by: Steffen Jaeckel --- (no changes since v1) common/Kconfig.boot | 37 ++--- common/autoboot.c | 80 - 2 files changed, 103 insertions(+), 14

[PATCH v2 0/7] common: Introduce crypt-style password support

2021-05-10 Thread Steffen Jaeckel
Steffen Jaeckel (7): lib: add crypt subsystem lib: wrap crypt API to hide errno usage common: integrate crypt-based passwords common: Rename macro appropriately cmd: allow disabling of timeout for password entry configs: add new values to bcm963158 defconfig configs: add new sandbox

[PATCH v2 4/7] common: Rename macro appropriately

2021-05-10 Thread Steffen Jaeckel
While doing code-review internally this got nitpicked by 2 reviewers, so I decided to include this here. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- (no changes since v1) common/autoboot.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v2 2/7] lib: wrap crypt API to hide errno usage

2021-05-10 Thread Steffen Jaeckel
In order to prevent using the global errno, replace it with a static version and create a wrapper function which returns the error value. Signed-off-by: Steffen Jaeckel --- (no changes since v1) include/crypt.h | 3 ++- lib/crypt/alg-sha256.h | 6 -- lib/crypt/alg-sha512.h

Re: [PATCH v1 1/6] lib: add crypt subsystem

2021-05-01 Thread Steffen Jaeckel
hose? Should it depend or can it also select? > ... >> diff --git a/lib/crypt/crypt-sha256.c b/lib/crypt/crypt-sha256.c >> new file mode 100644 >> index 00..37127d41e1 >> --- /dev/null >> +++ b/lib/crypt/crypt-sha256.c >> @@ -0,0 +1,313 @@ >> +/* One way encrypt

[PATCH v1 5/6] cmd: allow disabling of timeout for password entry

2021-04-26 Thread Steffen Jaeckel
In case a user has to enter a complicated password it is sometimes desireable to give the user more time than the default timeout. Enabling this feature will disable the timeout entirely in case the user presses the key before entering any other character. Signed-off-by: Steffen Jaeckel

[PATCH v1 1/6] lib: add crypt subsystem

2021-04-26 Thread Steffen Jaeckel
--always --all tags/v4.4.17-0-g6b110bc ``` Signed-off-by: Steffen Jaeckel --- Changes in v1: Added unit-tests of crypt_compare() Wrapped crypt functions to encapsulate errno include/crypt.h | 13 ++ lib/Kconfig | 1 + lib/Makefile | 1 + lib/crypt/Kconfig

[PATCH v1 6/6] configs: add new values to bcm963158 defconfig

2021-04-26 Thread Steffen Jaeckel
In order to have at least one defconfig that enables all those newly added values. Signed-off-by: Steffen Jaeckel --- configs/bcm963158_ram_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/bcm963158_ram_defconfig b/configs/bcm963158_ram_defconfig index 0be1e0981a

[PATCH v1 4/6] common: Rename macro appropriately

2021-04-26 Thread Steffen Jaeckel
While doing code-review internally this got nitpicked by 2 reviewers, so I decided to include this here. Signed-off-by: Steffen Jaeckel Reviewed-by: Simon Glass --- common/autoboot.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/common/autoboot.c b

[PATCH v1 3/6] common: integrate crypt-based passwords

2021-04-26 Thread Steffen Jaeckel
Hook into the autoboot flow as an alternative to the existing mechanisms. Signed-off-by: Steffen Jaeckel --- common/Kconfig.boot | 23 +--- common/autoboot.c | 85 - 2 files changed, 95 insertions(+), 13 deletions(-) diff --git a/common

[PATCH v1 2/6] lib: wrap crypt API to hide errno usage

2021-04-26 Thread Steffen Jaeckel
In order to prevent using the global errno, replace it with a static version and create a wrapper function which returns the error value. Signed-off-by: Steffen Jaeckel --- include/crypt.h | 3 ++- lib/crypt/alg-sha256.h | 6 -- lib/crypt/alg-sha512.h | 6 -- lib/crypt

[PATCH v1 0/6] common: Introduce crypt-style password support

2021-04-26 Thread Steffen Jaeckel
Changes in v1: Added unit-tests of crypt_compare() Wrapped crypt functions to encapsulate errno Steffen Jaeckel (6): lib: add crypt subsystem lib: wrap crypt API to hide errno usage common: integrate crypt-based passwords common: Rename macro appropriately cmd: allow disabling of timeout

Re: [PATCH 4/5] cmd: allow disabling of timeout for password entry

2021-04-21 Thread Steffen Jaeckel
On 4/21/21 9:14 AM, Simon Glass wrote: > On Tue, 13 Apr 2021 at 10:16, Steffen Jaeckel > wrote: >> >> In case a user has to enter a complicated password it is sometimes >> desireable to give the user more time than the default timeout. >> Enabling this feature wil

Re: [PATCH 2/5] common: integrate crypt-based passwords

2021-04-21 Thread Steffen Jaeckel
On 4/21/21 9:14 AM, Simon Glass wrote: > Hi Steffen, > > On Tue, 13 Apr 2021 at 10:16, Steffen Jaeckel > wrote: >> >> Hook into the autoboot flow as an alternative to the existing >> mechanisms. >> >> Signed-off-by: Steffen Jaeck

Re: [PATCH 1/5] lib: add crypt subsystem

2021-04-21 Thread Steffen Jaeckel
Hi Simon, thanks for taking the time to review. On 4/21/21 9:14 AM, Simon Glass wrote: > On Tue, 13 Apr 2021 at 10:16, Steffen Jaeckel > wrote: >> >> Add the basic functionality required to support the standard crypt >> format. >> The files crypt-sha256.c and

[PATCH 1/5] lib: add crypt subsystem

2021-04-12 Thread Steffen Jaeckel
--always --all tags/v4.4.17-0-g6b110bc ``` Signed-off-by: Steffen Jaeckel --- include/crypt.h | 13 ++ lib/Kconfig | 1 + lib/Makefile | 1 + lib/crypt/Kconfig| 29 lib/crypt/Makefile | 10 ++ lib/crypt/alg-sha256.h | 17 ++ lib/crypt/alg

[PATCH 0/5] common: Introduce crypt-style password support

2021-04-12 Thread Steffen Jaeckel
Steffen Jaeckel (5): lib: add crypt subsystem common: integrate crypt-based passwords common: Rename macro appropriately cmd: allow disabling of timeout for password entry configs: add new values to bcm963158 defconfig cmd/Kconfig | 8 + common/Kconfig.boot

[PATCH 5/5] configs: add new values to bcm963158 defconfig

2021-04-12 Thread Steffen Jaeckel
In order to have at least one defconfig that enables all those newly added values. Signed-off-by: Steffen Jaeckel --- configs/bcm963158_ram_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/bcm963158_ram_defconfig b/configs/bcm963158_ram_defconfig index 0be1e0981a

[PATCH 4/5] cmd: allow disabling of timeout for password entry

2021-04-12 Thread Steffen Jaeckel
In case a user has to enter a complicated password it is sometimes desireable to give the user more time than the default timeout. Enabling this feature will disable the timeout entirely in case the user presses the key before entering any other character. Signed-off-by: Steffen Jaeckel

[PATCH 3/5] common: Rename macro appropriately

2021-04-12 Thread Steffen Jaeckel
While doing code-review internally this got nitpicked by 2 reviewers, so I decided to include this here. Signed-off-by: Steffen Jaeckel --- common/autoboot.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/common/autoboot.c b/common/autoboot.c index

[PATCH 2/5] common: integrate crypt-based passwords

2021-04-12 Thread Steffen Jaeckel
Hook into the autoboot flow as an alternative to the existing mechanisms. Signed-off-by: Steffen Jaeckel --- common/Kconfig.boot | 23 +--- common/autoboot.c | 67 +++-- 2 files changed, 77 insertions(+), 13 deletions(-) diff --git