aboutsummaryrefslogtreecommitdiff
path: root/lib/crypt/alg-sha512.h
Commit message (Collapse)AuthorAgeFilesLines
* lib: wrap crypt API to hide errno usageSteffen Jaeckel2021-07-231-6/+0
| | | | | | | | | 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 <jaeckel-floss@eyet-services.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
* lib: add crypt subsystemSteffen Jaeckel2021-07-231-0/+17
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>