dash escaping

Werner Koch wk@gnupg.org
Tue, 1 Aug 2000 12:06:25 +0200

On Tue, 1 Aug 2000, Lars Hecking wrote:

> And I'm still waiting for any comment to the related "gpg 1.0.2 error:
> unexpected armor" message I sent here last week.
Sorry, probably I accidently hit the d and not the F key in mutt ;-) So here is the problem again: gpg: unexpected armor:-------------------------------------------------------------\n gpg: invalid radix64 character 2e skipped [170 more lines] gpg: invalid radix64 character 3e skipped gpg: invalid radix64 character 5f skipped gpg: CRC error; 04a824 - 244451 gpg: [don't know]: invalid packet (ctb=4e) near 141 The problem seems to be that the message (signed with pgp 2.6.3ia) contains a line ------------------------------------------------------------- starting in the first column, and gpg seems to treat this line like one of -----BEGIN PGP SIGNED MESSAGE----- -----BEGIN PGP SIGNATURE----- -----END PGP SIGNATURE----- No it treats it like like an invalid armor line ;-) The message is not valid. A valid encoding of a straight dashline would look like this: - -------------------------------------------------------------- Notice the "- " at the start of the line. This is the dash escaping as always used by PGP. Werner -- Werner Koch GnuPG key: 621CC013 OpenIT GmbH http://www.OpenIT.de