All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] common: Introduce crypt-style password support
@ 2021-04-12 22:15 Steffen Jaeckel
  2021-04-12 22:15 ` [PATCH 1/5] lib: add crypt subsystem Steffen Jaeckel
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Steffen Jaeckel @ 2021-04-12 22:15 UTC (permalink / raw)
  To: u-boot


This patchset introduces support for crypt-style passwords to unlock
the console in autoboot mode.

The implementation of crypt-sha256 and crypt-sha512 originate from
libxcrypt at https://github.com/besser82/libxcrypt.git
Version v4.4.17
Git commit hash 6b110bc

I didn't re-format those two files to make diffing to the original
versions from libxcrypt easier, which leads to a huge load of
checkpatch.pl warnings&errors. Please advise on whether they should be
re-formatted or can be kept as is.

The remaining warnings from checkpatch.pl are intentional resp. open for
discussion.

Cheers,
Steffen


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             |  23 ++-
 common/autoboot.c               |  87 +++++++--
 configs/bcm963158_ram_defconfig |   8 +
 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-sha512.h          |  17 ++
 lib/crypt/crypt-port.h          |  28 +++
 lib/crypt/crypt-sha256.c        | 313 ++++++++++++++++++++++++++++++
 lib/crypt/crypt-sha512.c        | 328 ++++++++++++++++++++++++++++++++
 lib/crypt/crypt.c               |  73 +++++++
 15 files changed, 936 insertions(+), 20 deletions(-)
 create mode 100644 include/crypt.h
 create mode 100644 lib/crypt/Kconfig
 create mode 100644 lib/crypt/Makefile
 create mode 100644 lib/crypt/alg-sha256.h
 create mode 100644 lib/crypt/alg-sha512.h
 create mode 100644 lib/crypt/crypt-port.h
 create mode 100644 lib/crypt/crypt-sha256.c
 create mode 100644 lib/crypt/crypt-sha512.c
 create mode 100644 lib/crypt/crypt.c

-- 
2.30.1

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-04-29 16:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12 22:15 [PATCH 0/5] common: Introduce crypt-style password support Steffen Jaeckel
2021-04-12 22:15 ` [PATCH 1/5] lib: add crypt subsystem Steffen Jaeckel
2021-04-21  7:14   ` Simon Glass
2021-04-21  8:21     ` Steffen Jaeckel
2021-04-22 23:55       ` Simon Glass
2021-04-12 22:15 ` [PATCH 2/5] common: integrate crypt-based passwords Steffen Jaeckel
2021-04-21  7:14   ` Simon Glass
2021-04-21  8:55     ` Steffen Jaeckel
2021-04-29 16:10       ` Simon Glass
2021-04-12 22:15 ` [PATCH 3/5] common: Rename macro appropriately Steffen Jaeckel
2021-04-14 19:38   ` Simon Glass
2021-04-12 22:15 ` [PATCH 4/5] cmd: allow disabling of timeout for password entry Steffen Jaeckel
2021-04-21  7:14   ` Simon Glass
2021-04-21 14:09     ` Steffen Jaeckel
2021-04-12 22:15 ` [PATCH 5/5] configs: add new values to bcm963158 defconfig Steffen Jaeckel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.