Thread View: news.software.readers
15 messages
15 total messages
Started by Russell Schulz
Fri, 19 Jun 1998 00:00
the signature separator (-- ) (was Re: NetDirect?.)
Author: Russell Schulz
Date: Fri, 19 Jun 1998 00:00
Date: Fri, 19 Jun 1998 00:00
33 lines
2075 bytes
2075 bytes
why can't people change the Subject: header?! Paul Gregg <pgregg@blackhole.nyx.net> writes: >> Either I'm being oversensitive here or there is something wrong. >> From here my sig sep *IS* showing as <dash> <dash> <space> <crlf>. > > This has to be one of the silliest 'standards' ever. this has been discussed; see RFC 1036bis. > How many of your newsreaders strip trailing spaces before POST? some of the broken ones? none of the non-broken ones? > How many tranmission programs (not so much NNTP, but NNTP->Email or > UUCP) strip trailing spaces. again, broken ones? UUCP would have to be badly broken to strip spaces! (though I've seen editors that do it.) > Not really a problem from the readers point of view - provided you > don't PGP sign your posts.... that's PGP's fault; the delimiter was around long before PGP was. -- Russell_Schulz@locutus.ofB.ORG Shad 86c
Re: the signature separator (-- ) (was Re: NetDirect?.)
Author: Russ Allbery
Date: Fri, 19 Jun 1998 00:00
Date: Fri, 19 Jun 1998 00:00
21 lines
1541 bytes
1541 bytes
Jon Ribbens <jon@oaktree.co.uk> writes: > Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote: >>> Not really a problem from the readers point of view - provided you >>> don't PGP sign your posts.... >> that's PGP's fault; the delimiter was around long before PGP was. > It's not PGP's fault, the dashed seperators (as used in PGP, not as sig > separators) were around long before PGP was. (1985 at the latest, and > probably earlier.) The dashed separators are not the problem. The fact that PGP strips trailing whitespace for the purposes of generating attached signatures is the problem, and this *is* PGP's problem. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: the signature separator (-- ) (was Re: NetDirect?.)
Author: Jon Ribbens
Date: Sat, 20 Jun 1998 00:00
Date: Sat, 20 Jun 1998 00:00
30 lines
1636 bytes
1636 bytes
-----BEGIN PGP SIGNED MESSAGE----- On 19 Jun 1998 23:54:35 -0700, Russ Allbery <rra@stanford.edu> wrote: >The dashed separators are not the problem. The fact that PGP strips >trailing whitespace for the purposes of generating attached signatures is >the problem, and this *is* PGP's problem. Err, PGP *doesn't* strip trailing whitespace. At least, not unless they've changed it in version 5 to do that. Cheers Jon -- \/ Jon Ribbens / jon@oaktree.co.uk -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBNYuVq4MzEl4yn7LtAQH7OQP/ds64KzXVDbCkb7/nit6q+JcmCt5LaPKM lYZ7YdDjxPpoJEXpUwg652CIbadJIqFzZU4tADEWGp/ctI8vsHnFnZlo8UQT67VY d/idNko5+SoBgi3ax/WM7z3vpRWSeTtdo/G1x0KbQ/BlUUrZWY2yPR9U9ptIkITH +RVFJ7ePDvU= =rXD6 -----END PGP SIGNATURE-----
Re: the signature separator (-- ) (was Re: NetDirect?.)
Author: Jon Ribbens
Date: Sat, 20 Jun 1998 00:00
Date: Sat, 20 Jun 1998 00:00
32 lines
1612 bytes
1612 bytes
-----BEGIN PGP SIGNED MESSAGE----- On Fri, 19 Jun 1998 14:19:54 +0100, Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote: >> Not really a problem from the readers point of view - provided you >> don't PGP sign your posts.... > >that's PGP's fault; the delimiter was around long before PGP was. It's not PGP's fault, the dashed seperators (as used in PGP, not as sig separators) were around long before PGP was. (1985 at the latest, and probably earlier.) Cheers Jon -- \/ Jon Ribbens / jon@oaktree.co.uk -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBNYsvvIMzEl4yn7LtAQGYlQQAvqMSJsyn5vKHs+rbdKfAc7mjx6mj96Fm EVqoHvYitrqeXhmsTi0hhcZKCMoGiW+szMZkO1vVbfAlvlvK0mxejOkWc+OIl6sU 0wGuWnmIC77T6QFAft9R4anqD5oTCRgK2oR1PpIx2np++QpHXEvZVmfwvBTHV6aB 8/6Bou6id44= =HtJV -----END PGP SIGNATURE-----
Re: the signature separator (-- ) (was Re: NetDirect?.)
Author: Russ Allbery
Date: Sat, 20 Jun 1998 00:00
Date: Sat, 20 Jun 1998 00:00
50 lines
3555 bytes
3555 bytes
Jon Ribbens <jon@oaktree.co.uk> writes: > Russ Allbery <rra@stanford.edu> wrote: >> PGP removes all whitespace from the ends of lines for the purposes of >> generating or checking attached signatures on a file. The whitespace >> is restored in the generated signed document, but you have to munge the >> whitespace back out again to check it. This means that your signature >> line still has its space preserved at the end of the line, but if you >> generate a detached signature for your post, and then later form a >> combined PGP message from that detached signature and your post, it >> won't verify. > Sorry, I don't understand what you're getting at. I can't find any way > to make PGP not work right. I don't see how you can 'munge' a detached > signature into an attached one either, nor why you would want to do so. This whole thing came up originally with signcontrol/pgpverify, the programs used to generate and check PGP signatures on control messages. The way signcontrol works is that it feeds the control message after some munging into PGP and generates a document with an attached signature. It then rips the delimiter lines off, pulls out the signature, and puts it with some additional information in the headers. If you take the exact same munged data and generate a *detached* signature for it, you get a signature which verifies exactly the same as the method that signcontrol works *unless there is a signature delimiter in the control message* or some other line with trailing whitespace. The reason for this is not documented, so far as I can tell, *anywhere*, but it turns out that PGP strips trailing whitespace when generating documents with attached signatures, while doing the signature generation, and then silently replaces it. It does *not* do this when generating detached signatures. As a result, in order to work between applications that generate attached signatures and applications that generate detached signatures, you have to know when to munge the input data. It's trivial to turn a detached signature into an attached signature; just add the delimiter lines and, in the message body, quote any lines with leading dashes. The best solution to this problem would be for every application that does PGP signing and then puts the signature in the headers to generate detached signatures; the problem is that PGP 2.6.2's interface for generating detached signatures is abominable. To say the least. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: the signature separator (-- ) (was Re: NetDirect?.)
Author: Russ Allbery
Date: Sat, 20 Jun 1998 00:00
Date: Sat, 20 Jun 1998 00:00
28 lines
1948 bytes
1948 bytes
Jon Ribbens <jon@oaktree.co.uk> writes: > Err, PGP *doesn't* strip trailing whitespace. At least, not unless > they've changed it in version 5 to do that. Yes, it does. *wry grin* Discovered from hard experience trying to figure out why generated detached signatures didn't correctly verify when they were munged into attached signatures. PGP removes all whitespace from the ends of lines for the purposes of generating or checking attached signatures on a file. The whitespace is restored in the generated signed document, but you have to munge the whitespace back out again to check it. This means that your signature line still has its space preserved at the end of the line, but if you generate a detached signature for your post, and then later form a combined PGP message from that detached signature and your post, it won't verify. Evil. This may be fixed in PGP 5, but given that I can't use PGP 5 it's sort of irrelevant to me. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: the signature separator (-- ) (was Re: NetDirect?.)
Author: Jon Ribbens
Date: Sat, 20 Jun 1998 00:00
Date: Sat, 20 Jun 1998 00:00
36 lines
2147 bytes
2147 bytes
-----BEGIN PGP SIGNED MESSAGE----- On 20 Jun 1998 04:48:33 -0700, Russ Allbery <rra@stanford.edu> wrote: >PGP removes all whitespace from the ends of lines for the purposes of >generating or checking attached signatures on a file. The whitespace is >restored in the generated signed document, but you have to munge the >whitespace back out again to check it. This means that your signature >line still has its space preserved at the end of the line, but if you >generate a detached signature for your post, and then later form a >combined PGP message from that detached signature and your post, it won't >verify. Sorry, I don't understand what you're getting at. I can't find any way to make PGP not work right. I don't see how you can 'munge' a detached signature into an attached one either, nor why you would want to do so. Cheers Jon -- \/ Jon Ribbens / jon@oaktree.co.uk -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBNYuwkoMzEl4yn7LtAQHIHQQArNEGLrD5loiCfvo7hF7Vhncc4oNoq7LD l6/G54aR3/n0etH5wVWYyjX6Sbs2VlaPIVm1S6PVsqloJca7WfcbQUjdHJlLv1D8 H3lhco5OoS+VW7GLc2EPfOov7YMT4YxKgYji2J+iMrDnz5rjI7uYe+NHg3L+j1OC ycczuB6g1sE= =J8aX -----END PGP SIGNATURE-----
Re: the signature separator (-- ) and PGP
Author: Russell Schulz
Date: Sat, 20 Jun 1998 00:00
Date: Sat, 20 Jun 1998 00:00
25 lines
1891 bytes
1891 bytes
[ discussing the `-- ' message signature delimiter that PGP breaks ] jon@oaktree.co.uk (Jon Ribbens) writes: >>> Not really a problem from the readers point of view - provided you >>> don't PGP sign your posts.... >> >> that's PGP's fault; the delimiter was around long before PGP was. > > It's not PGP's fault, the dashed seperators (as used in PGP, not as > sig separators) were around long before PGP was. does that make sense? was PGP trying to be compatible with some other encryption program with which I'm unfamiliar? (here I'm using `compatible' to mean `compatible', not to mean `look kind of similar to by using some of the same ASCII graphics'.) and if so, did any of them use a line consisting of `-- ', such that they had to mangle it if they encountered it? -- Russell_Schulz@locutus.ofB.ORG Shad 86c
Re: the signature separator (-- ) and PGP
Author: Jon Ribbens
Date: Sun, 21 Jun 1998 00:00
Date: Sun, 21 Jun 1998 00:00
31 lines
1600 bytes
1600 bytes
-----BEGIN PGP SIGNED MESSAGE----- On Sat, 20 Jun 1998 17:02:38 +0100, Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote: >> It's not PGP's fault, the dashed seperators (as used in PGP, not as >> sig separators) were around long before PGP was. > >does that make sense? was PGP trying to be compatible with some other >encryption program with which I'm unfamiliar? Yes. PEM. (See RFC 1113.) Cheers Jon -- \/ Jon Ribbens / jon@oaktree.co.uk -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBNY1cd4MzEl4yn7LtAQGehgP9HKxhVJlasbqoeIdNnhhv6oqclq+EjX0V xhgIkyV6/ZfKwh1avuUQfDgbBEB4raQSPn9VA8sEbFvPI0e/3RxwQbU27v1/CGP5 6akzbn7UYpIteFx5pTIivoRX7jvWxgSUzL1ybqO8EnmEJozWYf3iijmzTCuGP05I 63NBt1GAxAs= =sS9r -----END PGP SIGNATURE-----
Re: the signature separator (-- ) (was Re: NetDirect?.)
Author: Jon Ribbens
Date: Sun, 21 Jun 1998 00:00
Date: Sun, 21 Jun 1998 00:00
40 lines
2288 bytes
2288 bytes
-----BEGIN PGP SIGNED MESSAGE----- On 20 Jun 1998 17:46:14 -0700, Russ Allbery <rra@stanford.edu> wrote: >The reason for this is not documented, so far as I can tell, *anywhere*, >but it turns out that PGP strips trailing whitespace when generating >documents with attached signatures, while doing the signature generation, >and then silently replaces it. It does *not* do this when generating >detached signatures. Hmm, you can see why this is though. Especially considering that the flag for a detached signature is 'b' versus 't' ;-). >It's trivial to turn a detached signature into an attached signature; just >add the delimiter lines and, in the message body, quote any lines with >leading dashes. This doesn't work. "WARNING: Bad signature, doesn't match file contents!" The contents of the PGP data block are different in attached and detached signatures for the same text. Cheers Jon -- \/ Jon Ribbens / jon@oaktree.co.uk -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBNY1ba4MzEl4yn7LtAQESVAP/YFBXRWTwjw+Vg01lwxoygDhx1W8rkqx+ /bciOLRrQKSIJmGGY/XZi3Stmg6TO2Qtp55cTii+FoBEbXPNc6iftBDT+4EjGtI1 B99oa8ziWeTxaDQP/Wb/h5mp5Vb6ocel5JrApLyVREafKoUF64rEQTX+1kdty1F2 CWTQ+HPXOP0= =40jQ -----END PGP SIGNATURE-----
Re: the signature separator (-- ) (was Re: NetDirect?.)
Author: Russ Allbery
Date: Sun, 21 Jun 1998 00:00
Date: Sun, 21 Jun 1998 00:00
24 lines
2019 bytes
2019 bytes
Jon Ribbens <jon@oaktree.co.uk> writes: > Russ Allbery <rra@stanford.edu> wrote: >> It's trivial to turn a detached signature into an attached signature; >> just add the delimiter lines and, in the message body, quote any lines >> with leading dashes. > This doesn't work. "WARNING: Bad signature, doesn't match file > contents!" The contents of the PGP data block are different in attached > and detached signatures for the same text. No, actually, I do this all the time, so I know that it works. But you have to get the munging right, hence my general complaint. :) (The solution, as far as I'm concerned, is to bail completely on the broken combined document/signature format and just generate detached signatures and use MIME if necessary to encapsulate a message and its signature -- or even better, define new article headers for this purpose.) -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: the signature separator (-- ) and PGP
Author: Russell Schulz
Date: Mon, 22 Jun 1998 00:00
Date: Mon, 22 Jun 1998 00:00
31 lines
2156 bytes
2156 bytes
jon@oaktree.co.uk (Jon Ribbens) writes: >>> It's not PGP's fault, the dashed seperators (as used in PGP, not as >>> sig separators) were around long before PGP was. >> >> does that make sense? was PGP trying to be compatible with some >> other encryption program with which I'm unfamiliar? > > Yes. PEM. (See RFC 1113.) I have glanced at RFC 1421 (1113's replacement), and didn't spot anything that justified this. I assume you're thinking of 4.4 and MIC-CLEAR. but is signing a `forwarding operation'? perhaps you should not have deleted my paragraph: >> (here I'm using `compatible' to mean `compatible', not to mean `look >> kind of similar to by using some of the same ASCII graphics'.) can PGP and PEM verify each other's signatures, such that they have to mangle the text in exactly the same (bad) way? I know they both use initial `-'s; a lot of things do. but `compatible'? also: RFC 989 (PEM's precursor) came into being LONG after `-- ' was used, didn't it? section 4.4 is (again) the relevant one. -- Russell_Schulz@locutus.ofB.ORG Shad 86c
Re: the signature separator (-- ) and PGP
Author: Jon Ribbens
Date: Tue, 23 Jun 1998 00:00
Date: Tue, 23 Jun 1998 00:00
55 lines
2632 bytes
2632 bytes
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 22 Jun 1998 17:44:02 +0100, Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote:
>> Yes. PEM. (See RFC 1113.)
>
>I have glanced at RFC 1421 (1113's replacement), and didn't spot anything
>that justified this. I assume you're thinking of 4.4 and MIC-CLEAR. but
>is signing a `forwarding operation'?
I'm going by line 551 of armor.c in pgp 2.6.3ia:
/* Quote lines beginning with '-' as per RFC1113;
>perhaps you should not have deleted my paragraph:
>
>>> (here I'm using `compatible' to mean `compatible', not to mean `look
>>> kind of similar to by using some of the same ASCII graphics'.)
Sorry, I managed to read this paragraph to mean exactly the opposite of
what it actually means, which made it irrelevent to my reply ;-).
>also: RFC 989 (PEM's precursor) came into being LONG after `-- ' was
>used, didn't it? section 4.4 is (again) the relevant one.
RFC 1113 says:
The encapsulation mechanism to be used for privacy-enhanced mail is
derived from that described in RFC-934 [11] which is, in turn, based
on precedents in the processing of message digests in the Internet
community.
RFC 934 is dated January 1985. I think the signature separator originated
around the time of B news, which was early eighties. So it's difficult to
say which came first - they probably turned up at about the same time.
Cheers
Jon
--
\/ Jon Ribbens / jon@oaktree.co.uk
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQCVAwUBNY+pMYMzEl4yn7LtAQHaJQP/RHAHhVEPAADYjXmaO9Yr7lQgSjjtSGiB
dsfBQBu2vQf5gmLmXK14aWUUUZIQau2q/vtHoDoRIrro4X7eMN6dJ9/sj8LfdUFX
L15vLwaiomY+4iRNCUDqo1UjUeo9Be4mYCW7kXvyNuF+3+j/EngfQUv3TJvHMSaQ
gMnf2GQwmVc=
=uur5
-----END PGP SIGNATURE-----
Re: the signature separator (-- ) (was Re: NetDirect?.)
Author: Eli the Bearded
Date: Tue, 30 Jun 1998 00:00
Date: Tue, 30 Jun 1998 00:00
29 lines
2124 bytes
2124 bytes
In news.software.readers, Russ Allbery <rra@stanford.edu> wrote: > Jon Ribbens <jon@oaktree.co.uk> writes: > > This doesn't work. "WARNING: Bad signature, doesn't match file > > contents!" The contents of the PGP data block are different in attached > > and detached signatures for the same text. > No, actually, I do this all the time, so I know that it works. But you > have to get the munging right, hence my general complaint. :) This has been a problem with the web page signing techniques I have looked at as well. (Though it has been a long time sicne I have looked.) > (The solution, as far as I'm concerned, is to bail completely on the > broken combined document/signature format and just generate detached > signatures and use MIME if necessary to encapsulate a message and its > signature -- or even better, define new article headers for this purpose.) "New" headers? Maybe the much neglected RFC822 Encrypted: header could finally be given a purpose. Consider this MIMEish structure: Encrypted: cleartext/signed; method="pgp 2.6.3"; signature="base64-en- coded-signature-block" Elijah ------ RFC822: sixteen years and still not fully implemented
Re: the signature separator (-- ) (was Re: NetDirect?.)
Author: Russ Allbery
Date: Tue, 30 Jun 1998 00:00
Date: Tue, 30 Jun 1998 00:00
28 lines
1906 bytes
1906 bytes
Eli the Bearded <*@qz.to> writes: > In news.software.readers, Russ Allbery <rra@stanford.edu> wrote: >> (The solution, as far as I'm concerned, is to bail completely on the >> broken combined document/signature format and just generate detached >> signatures and use MIME if necessary to encapsulate a message and its >> signature -- or even better, define new article headers for this >> purpose.) > "New" headers? Maybe the much neglected RFC822 Encrypted: header could > finally be given a purpose. Consider this MIMEish structure: > Encrypted: cleartext/signed; method="pgp 2.6.3"; signature="base64-en- > coded-signature-block" That's the thing. I don't want to put it in a MIME-attached block, I want to put it in the headers, where existing clients already know to not show it to me unless I want to see it. Eventually news readers are going to have to support MIME attachments, but I don't see any point in pushing it more than we have to since most of what people are doing with MIME attachments right now is evil. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads