]> git.ipfire.org Git - thirdparty/systemd.git/commit
pcrlock: add make_pcrlock_record_from_stream 31889/head
authorAlberto Planas <aplanas@suse.com>
Tue, 2 Apr 2024 14:18:30 +0000 (16:18 +0200)
committerAlberto Planas <aplanas@suse.com>
Fri, 19 Apr 2024 14:43:00 +0000 (16:43 +0200)
commitbb6fe2afbc5ff163a6b8189cb3806ef2d2de881a
tree1767a9255603d01920ce3690158447487754fb04
parenta2574ebf4d02a49a33663cdab0d3443a7a20eeca
pcrlock: add make_pcrlock_record_from_stream

To hash long files (like initrd) add the funcion
make_pcrlock_record_from_stream, that will read a long file (or stdin)
to generate the digests of multiple hashes, redading block by block.

Use this new function in verb_lock_raw and verb_lock_kernel_initrd.

Signed-off-by: Alberto Planas <aplanas@suse.com>
src/pcrlock/pcrlock.c