Re:
by zzo38computer on Wednesday August 06, 2025 @07:19PM
(#44818969)
OK, although I was thinking that an entire file might be encrypted and that you would have multiple blocks, because your description was unclear to me. Digital signatures do use padding, although it is not that simple. (Adding a block of zeros to the beginning won't help and will only make the hash different.)
[ Parent
| on HN ]
Re:
by slowdoorsemillc on Wednesday August 06, 2025 @07:23PM
(#44818995)
Yes, the entire file would be encrypted but with the private key after adding, say, 2048 bits of all 0's to the beginning of the file. After decrypting the whole file, check if the first 2048 bits are all 0's. If they are, good, boot. It can be brute forced, but with 1 in 2^2048 probability of guessing right.
The chain is only as strong as it's weakest link.