Article View: news.software.readers
Article #131924PGP messing up sigdash (was: top-posting)
From: J.B. Moreno
Date: Wed, 27 Aug 2003 17:52
Date: Wed, 27 Aug 2003 17:52
42 lines
3500 bytes
3500 bytes
Russ Allbery <rra@stanford.edu> wrote: > J B Moreno <planB@newsreaders.com> writes: > > Russ Allbery <rra@stanford.edu> wrote: > > >> If you want to clear-sign a Usenet article following the specification > >> in the OpenPGP standard for an attached signature, you have to > >> dash-escape the message, which means that you *have* to transform the -snip- > > Well, if memory serves they could simply not escape the sigdash...not > > that anyone does so. > > The protocol requires escaping every line beginning with a dash. > > The cleartext content of the message must also be dash-escaped. > Dash escaped cleartext is the ordinary cleartext where every line > starting with a dash '-' (0x2D) is prefixed by the sequence dash '-' > (0x2D) and space ' ' (0x20). This prevents the parser from > recognizing armor headers of the cleartext itself. The message digest > is computed using the cleartext itself, not the dash escaped form. > > See RFC 2440. Yes, I should have been more clear, you can't do it while exactly following the spec, but -- if it's treated as armor then it's corrupted armor and processing should continue, ignoring the sigdash (i.e. if the program signing doesn't include the sigdash in it's calculation then the signature will still match), but since it doesn't match the spec for armor (5 leading and trailing dashes), it shouldn't be treated as armor, but rather part of the body. I don't know which is done more frequently, but I know that you can modify the signing program so that it does one or the other and have it come out as a good signature for at least some of the recipients. (Of course, it'd be a lot better if the protocol only required dash escaping lines that begins with 5 dashes). -- JBM "Everything is futile." -- Marvin of Borg
Technical Details
Message-ID:
<1g0cq4c.1hirvrj17ali4nN%planB@newsreaders.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!ppp-113.person.NET!not-for-mailReferences:
<bhif3o$bpf$0@pita.alt.net> <bhk54s$cbq$0@pita.alt.net> <bhkssc$v2n$0@pita.alt.net> <v20sjvgief4umm0ske19dnjdlrmgbppa1a@4ax.com> <slrnbjtahe.2hr.dcmoose@moose.dc.ca> <4taujv4lqi71pn8ddhjdpo79tu2tgellkf@4ax.com> <3F494574.E7EB3894@spam.com> <MrQ93E1C30EB185EitsmeitsQ@QsFQDN.dyndns.org> <slrnbkj35d.4oq.dcmoose@moosemeat.localhost.ca> <1b7grusoeuohz.dlg@tcob1.net> <slrnbknp12.2ib.dcmoose@moosemeat.localhost.ca> <u25t11-el1.ln1@news.gates_of_hell.INVALID> <3f4bfe28$0$51591$892e7fe2@authen.yellow.readfreenews.net> <ddet11-ka3.ln1@news.gates_of_hell.INVALID> <w8sae0tv0wwf.dlg@gandalf.my-fqdn.de> <874r033ha7.fsf@windlord.stanford.edu> <1g0bq8r.lk8u4f17v9ydeN%planB@newsreaders.com> <874r031xjh.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <1g0cq4c.1hirvrj17ali4nN%planB@newsreaders.com> Subject: PGP messing up sigdash (was: top-posting) Date: Wed, 27 Aug 2003 13:52:15 -0400 From: planB@newsreaders.com (J.B. Moreno) References: <bhif3o$bpf$0@pita.alt.net> <bhk54s$cbq$0@pita.alt.net> <bhkssc$v2n$0@pita.alt.net> <v20sjvgief4umm0ske19dnjdlrmgbppa1a@4ax.com> <slrnbjtahe.2hr.dcmoose@moose.dc.ca> <4taujv4lqi71pn8ddhjdpo79tu2tgellkf@4ax.com> <3F494574.E7EB3894@spam.com> <MrQ93E1C30EB185EitsmeitsQ@QsFQDN.dyndns.org> <slrnbkj35d.4oq.dcmoose@moosemeat.localhost.ca> <1b7grusoeuohz.dlg@tcob1.net> <slrnbknp12.2ib.dcmoose@moosemeat.localhost.ca> <u25t11-el1.ln1@news.gates_of_hell.INVALID> <3f4bfe28$0$51591$892e7fe2@authen.yellow.readfreenews.net> <ddet11-ka3.ln1@news.gates_of_hell.INVALID> <w8sae0tv0wwf.dlg@gandalf.my-fqdn.de> <874r033ha7.fsf@windlord.stanford.edu> <1g0bq8r.lk8u4f17v9ydeN%planB@newsreaders.com> <874r031xjh.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!ppp-113.person.NET!not-for-mail Newsgroups: news.software.readers Organization: NetNews BOFH wannabe Lines: 41 NNTP-Posting-Host: ppp-113.person.net (166.82.184.113) X-Trace: news.uni-berlin.de 1062006591 10536940 166.82.184.113 (16 [22426]) X-Orig-Path: planB User-Agent: MacSOUP/2.5b2 (Mac OS 8.6)