mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-07 03:29:09 +00:00
use SHA256 digest on signatures to avoid SHA1 collision attacks (issue #120)
This commit is contained in:
parent
2b2c00e594
commit
a5d4c65533
@ -70,7 +70,12 @@ sha256sum \
|
|||||||
| tee "$BOOT_HASHES"
|
| tee "$BOOT_HASHES"
|
||||||
|
|
||||||
for tries in 1 2 3; do
|
for tries in 1 2 3; do
|
||||||
if gpg --detach-sign -a "$BOOT_HASHES"; then
|
if gpg \
|
||||||
|
--digest-algo SHA256 \
|
||||||
|
--detach-sign \
|
||||||
|
-a \
|
||||||
|
"$BOOT_HASHES" \
|
||||||
|
; then
|
||||||
mount -o ro,remount /boot
|
mount -o ro,remount /boot
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user