]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib: add crypt subsystem
authorSteffen Jaeckel <jaeckel-floss@eyet-services.de>
Thu, 8 Jul 2021 13:57:33 +0000 (15:57 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 17:36:14 +0000 (13:36 -0400)
commit26dd9936574864155b989b9f14319ca2779f0598
tree41fe3ce1471a80916ea6cc91d8a6e7c956c8e2d9
parentc74675bd904b6ce9d5820a80f27793c0583fd54c
lib: add crypt subsystem

Add the basic functionality required to support the standard crypt
format.
The files crypt-sha256.c and crypt-sha512.c originate from libxcrypt and
their formatting is therefor retained.
The integration is done via a crypt_compare() function in crypt.c.

```
libxcrypt $ git describe --long --always --all
tags/v4.4.17-0-g6b110bc
```

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
14 files changed:
include/crypt.h [new file with mode: 0644]
lib/Kconfig
lib/Makefile
lib/crypt/Kconfig [new file with mode: 0644]
lib/crypt/Makefile [new file with mode: 0644]
lib/crypt/alg-sha256.h [new file with mode: 0644]
lib/crypt/alg-sha512.h [new file with mode: 0644]
lib/crypt/crypt-port.h [new file with mode: 0644]
lib/crypt/crypt-sha256.c [new file with mode: 0644]
lib/crypt/crypt-sha512.c [new file with mode: 0644]
lib/crypt/crypt.c [new file with mode: 0644]
test/Kconfig
test/lib/Makefile
test/lib/test_crypt.c [new file with mode: 0644]