danb35
Hall of Famer
- Joined
- Aug 16, 2011
- Messages
- 15,504
tl;dr: Is there a reason to verify both a checksum (e.g., SHA256) and a PGP signature for a downloaded file?
It's not unusual for F/OSS documentation to recommend checking both the SHA256sum of the downloaded file, and its PGP signature--I'm thinking specifically of Nextcloud here. But that seems kind of redundant to me--unless I badly misunderstand PGP signatures, they start with a hash of the data in question (the file in this case), and then (with hand-wavey stuff that I don't think is relevant) confirm it with the relevant private key. And if that understanding is correct, then verifying the PGP signature necessarily includes verifying the checksum. Right?
It's not unusual for F/OSS documentation to recommend checking both the SHA256sum of the downloaded file, and its PGP signature--I'm thinking specifically of Nextcloud here. But that seems kind of redundant to me--unless I badly misunderstand PGP signatures, they start with a hash of the data in question (the file in this case), and then (with hand-wavey stuff that I don't think is relevant) confirm it with the relevant private key. And if that understanding is correct, then verifying the PGP signature necessarily includes verifying the checksum. Right?