]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic: Add some sha256 helper functions 31297/head
authorAdrian Vovk <adrianvovk@gmail.com>
Sat, 13 Jan 2024 16:08:12 +0000 (11:08 -0500)
committerAdrian Vovk <adrianvovk@gmail.com>
Tue, 13 Feb 2024 18:59:27 +0000 (13:59 -0500)
commit0bac442251a189fd9add36e964c86d2358c41212
treef854ca3b197e4c877633bdb1ecdd4e4099279bfb
parenta7a67dfd9d1da1c8027b58e691663a02e904987f
basic: Add some sha256 helper functions

Adds a util function to sha256 an open fd (moved from dissect). Also
adds functions to check if a string contains a valid sha256 hash, and
parse it into a sha256 array.
src/basic/meson.build
src/basic/sha256.c [new file with mode: 0644]
src/basic/sha256.h [new file with mode: 0644]
src/boot/efi/random-seed.c
src/dissect/dissect.c
src/fundamental/meson.build
src/fundamental/sha256-fundamental.c [moved from src/fundamental/sha256.c with 99% similarity]
src/fundamental/sha256-fundamental.h [moved from src/fundamental/sha256.h with 100% similarity]