summaryrefslogtreecommitdiff
path: root/util/sbase/sha1sum.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-15 06:26:30 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:41 +0000
commitaf7ab6f786f52c78e133b1d7edda936899295763 (patch)
treeec0a55c2111e1640caf9f9691a0ef3c5942840da /util/sbase/sha1sum.c
parent1556ca717345e1424b92ff32261253ba08492b9f (diff)
util/nvmutil: double-verify r/w using tmp files
we now read twice, verify the two, to make sure one read isn't faulty we operate on a tmp file, then rename back. this reduces the risk of power cuts corrupting data we properly verify the contents that we wrote back inspired largely by flashprog. i wanted to have an insanely over-engineered and extremely safe tool that edits intel gbe nvm files and now i have one. the only one in existence. i'm basically writing my own libc code at this point, to be honest. i'll probably start puttting these functions in libraries e.g. that tmpfile generator Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/sbase/sha1sum.c')
0 files changed, 0 insertions, 0 deletions