PGP decryption and "built-in" integrity checking?

Jerome Baum jerome at
Wed Nov 30 06:57:10 CET 2011

> When the recipient tries to decrypt the file, would the PGP software
> detect that there was a data integrity issue and produce an error -
> or - would it actually output a decrypted file (which I presume would
> be flawed, since the encrypted source file was missing a byte)?

Usually there will be an MDC (checksum) and that will fail. So it'll
produce an error. If you need to recover the file, you could try to
cycle the byte through all values -- 256 possibilities isn't a huge
search space.

PGP: A0E4 B2D4 94E6 20EE 85BA E45B 63E4 2BD8 C58C 753A
PGP: 2C23 EBFF DF1A 840D 2351 F5F5 F25B A03F 2152 36DA
Recht: Internet-freier Raum.
No situation is so dire that panic cannot make it worse.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 878 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20111130/dfb10bb5/attachment.pgp>

More information about the Gnupg-users mailing list