mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-18 02:39:59 +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"
|
||||
|
||||
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
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user