From owner-ietf-open-pgp@imc.org  Sun May  9 15:37:40 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA09724
	for <openpgp-archive@odin.ietf.org>; Sun, 9 May 1999 15:37:39 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA08321
	for ietf-open-pgp-bks; Sun, 9 May 1999 11:52:39 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA08317
	for <ietf-open-pgp@imc.org>; Sun, 9 May 1999 11:52:37 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id UAA02322
	for ietf-open-pgp@imc.org; Sun, 9 May 1999 20:54:59 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10gYhg-0000fO-00; Sun, 9 May 1999 20:53:32 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10gYf8-0001hr-00; Sun, 9 May 1999 20:50:54 +0200
Date: Sun, 9 May 1999 20:50:54 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Agree with PRZs MDC suggestion
Message-ID: <19990509205054.B6295@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Hello,

After implementing the MDC by using the signature packets and
verifiyng that Tom's and my implementation are interoperable, I
started over and tried to implement my suggestion to use
use a special MDC packet instead of a signature packet.

   (1) new encrypted data packet
   (2) mdc packet with the encrypted hash over (1)

The problem here is that (2) is encrypted with the same key as (1)
and actually is part of (1).  We must encrypt only the hash inside 
of (2), so that the parse can distinguish both packets.  It is quiet
obvious, that passing the decryption context from (1) to (2) is not 
very easy.  What we would need to have a good solution, is a conatiner
packet which replaces the old encrypted data packet

   Encrypted_Data -+- Data_Containter_Packet -+- Onepass
                   !                          !- Plaintext	
                   !                          !- Signature  		
                   !- MDC_Packet

I think this is the most clear solution but far too complicate for
the our goal.

The bottom line is, that Phil's original suggestion to put the hash
at the end of the encrypted message is the easiest way to address it.
I know that it is annoying to hold back the last 20 bytes, but compared
to the hacked signature packets, I thing it is okay to to this. 

We should invent a new encrypted data packet which is used for
encrypted messages with MDC.  Suggestion:

   Packet number ???

   1 byte version  (should be 1)
   1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
   1 byte number of extra bytes (m) at the end of the encrypted text
          From now on CFB encrypted with an IV of all zeroes without
          any strange syncing.
   n byte random data used as IV (n=blocksize of the cipher)	
   2 byte the last two bytes of the random data.
   k byte message
   m byte hash used for MD

Uri proposed another scheme for better detection of wrong keys - we 
should consider to use this.

"If a cipher with a blocksize > 64 bits is used, this new packet 
 format SHOULD be used".

To clarify thinks for the old encypted data packet (9), we should
say that the special CFB mode is used with all blocksizes. 


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Sun May  9 21:42:37 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA25000
	for <openpgp-archive@odin.ietf.org>; Sun, 9 May 1999 21:42:36 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id SAA10749
	for ietf-open-pgp-bks; Sun, 9 May 1999 18:05:58 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA10745
	for <ietf-open-pgp@imc.org>; Sun, 9 May 1999 18:05:56 -0700 (PDT)
Received: (from hal@localhost)
	by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id SAA32553;
	Sun, 9 May 1999 18:08:17 -0700
Date: Sun, 9 May 1999 18:08:17 -0700
From: hal@rain.org
Message-Id: <199905100108.SAA32553@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

An attacker can modify encrypted messages to a limited extent.  In CFB
mode, if he xors one bit of the ciphertext, it has two effects.  It xors
the corresponding bit of the plaintext, and it also turns the following
block of plaintext into complete garbage.  The remainder of the message
is unchained.

Attackers can also delete entire blocks of messages.  If they do it at
the end, this has no obvious effect.  If they do it at the beginning,
they can supply an IV so that everything decrypts OK (but missing the
first blocks of the encrypted messages).  If they do it in the middle,
there will be one block of garbage after the spot where the deleted
blocks would go.

Attackers can also rearrange blocks of messages, or moving groups of
blocks from one point to another, or duplicating groups of blocks in
various ways.  This will normally put a block of garbage at the join
points when the messages are decrypted.

It is important to realize that these blocks of garbage or noise will
not necessarily expose the attacker's actions.  They may be overlooked
by the receiver.  They may be located in a part of the message which
he does not study closely (like mail headers or data tables).  They may
be at the very beginning or end of the message where the important data
is in the middle, or vice versa.  We can't assume that blocks of noise
will always be detected.  (And of course the truncation attack leaves
no noise blocks.)

Our goal with the MDC feature is to detect these kinds of transformations.
As we have been discussing, including a hash of the message within the
encrypted data should accomplish this.

One possible attack we need to then consider is whether a message sent
in this form can be transformed by an attacker so that the receiver does
not attempt to do the MDC verification.  The attacker might be able to
change the format of the message so that it looks like a non-MDC message,
using some of the tools above.

As a simple example, if we include a bit in the message header that
tells whether the message has MDC protection, and the attacker guessed
that that bit was on, he could turn it off by xoring the right place in
the ciphertext.  This would introduce a burst of noise in the following
block of the message, but depending on the block size and the message
format, this might still allow the message to decrypt successfully.

The receiver would not be fooled into thinking that he had an
MDC-protected message which was untouched, but he would be fooled into
thinking that the message had been sent without MDC protection when in
fact the sender had intended to protect it.

I believe it is possible to provide for this level of protection, but it
will put some constraints on the design.  Anything in the headers which
the attacker could tweak to disable the MDC checking (like changing a hash
algorithm value) would have to be such that the change will be detected.
There could be another checksum in the headers itself, or the headers
could be structured so that the block of noise is guaranteed to corrupt
crucial data, or the data structures could be such that MDC checking
can't be disabled.

I suggest that we should design the packets, if possible, to prevent
this attack.  What do others feel?  Do we care about this kind of attack?
Should we take steps to prevent it, or should we allow it to happen?

Hal Finney
Network Associates


From owner-ietf-open-pgp@imc.org  Mon May 10 04:28:02 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA26196
	for <openpgp-archive@odin.ietf.org>; Mon, 10 May 1999 04:28:01 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id AAA26678
	for ietf-open-pgp-bks; Mon, 10 May 1999 00:41:08 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA26671
	for <ietf-open-pgp@imc.org>; Mon, 10 May 1999 00:41:05 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id JAA13060
	for ietf-open-pgp@imc.org; Mon, 10 May 1999 09:43:22 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10gkdU-0000xw-00; Mon, 10 May 1999 09:38:00 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10gkb4-0001vM-00; Mon, 10 May 1999 09:35:30 +0200
Date: Mon, 10 May 1999 09:35:30 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990510093530.G7337@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905100108.SAA32553@226-132.adsl2.avtel.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <199905100108.SAA32553@226-132.adsl2.avtel.net>; from hal@rain.org on Sun, May 09, 1999 at 06:08:17PM -0700
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

hal@rain.org writes:

[ About attacks flipping some bits in the headers to 
  make the receiver think the message has no MDC ]

> I suggest that we should design the packets, if possible, to prevent
> this attack.  What do others feel?  Do we care about this kind of attack?
> Should we take steps to prevent it, or should we allow it to happen?

I think the easiest solution and the one we did at other places too
is to say:

"Implementations SHOULD use the MDC for ciphers with a blocksize of 64
bit.  Implementations MUST use the MDC for ciphers with a blocksize
other than 64.  If an implemenations detects a violation of the above
it SHOULD notify the user about this.  It MUST do this for messages
encrypted with non-64 bit blocksize cipher."

Or something similar.


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Tue May 11 18:39:39 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA04833
	for <openpgp-archive@odin.ietf.org>; Tue, 11 May 1999 18:39:38 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA08025
	for ietf-open-pgp-bks; Tue, 11 May 1999 14:23:49 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA08021
	for <ietf-open-pgp@imc.org>; Tue, 11 May 1999 14:23:44 -0700 (PDT)
Received: by brickwall.ceddec.com id <42115>; Tue, 11 May 1999 17:25:34 -0400
Date: Tue, 11 May 1999 17:24:52 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: Werner Koch <wk@isil.d.shuttle.de>
cc: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <19990509205054.B6295@frodo.isil.d.shuttle.de>
Message-Id: <99May11.172534edt.42115@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

yOn Sun, 9 May 1999, Werner Koch wrote:

> Hello,
> 
> After implementing the MDC by using the signature packets and
> verifiyng that Tom's and my implementation are interoperable, I
> started over and tried to implement my suggestion to use
> use a special MDC packet instead of a signature packet.
> 
>    (1) new encrypted data packet
>    (2) mdc packet with the encrypted hash over (1)
> 
> The problem here is that (2) is encrypted with the same key as (1)
> and actually is part of (1).  We must encrypt only the hash inside 
> of (2), so that the parse can distinguish both packets.  It is quiet
> obvious, that passing the decryption context from (1) to (2) is not 
> very easy.  What we would need to have a good solution, is a conatiner
> packet which replaces the old encrypted data packet
> 
>    Encrypted_Data -+- Data_Containter_Packet -+- Onepass
>                    !                          !- Plaintext	
>                    !                          !- Signature  		
>                    !- MDC_Packet

Not true.  Just as you run the encryptor and get two or more packets out
currently for signatures, and thus you don't need to "pass a decryption
context" from the 1 pass header to the plaintext to the Signature, you
wouldn't need to do this for the MDC, any more than you do if the MDC is
not a separate packet.

In effect what we have now (with buffering or pipes between threads) is:

ciphertext | dearmor | pkdecrypt | symdecrypt | sigver | deliteral

There may be multiple sigvers, one per level of nesting (I use a stack
instead of spawning another layer).

What will happen is that this will insert something between the symdecrypt
and the sigver sections.  It will function nearly the same as the sigver,
except we are creating a completely new and disjoint syntax for handling
the new packet.

For me, it is really ugly to add a new layer when the existing one can
easily be modified to work and provide the same function.

Instead we fiddle with the definitions to make it incompatible with the
existing layers just enough so it must be a new layer, but realize that
all this new verbage simply exists to forcibly create a new layer, and not
for any functional reason.

I asked what didn't work about extending "signature" packets to
"verification" packets (with the zero algorithm or something similar -
or even keeping the signature packet format with a different ID number
for MDC only packets).
  
No one has yet told me why this is any less secure, slower, or harder than
tacking the 20 bytes onto the end of the plaintext.

How many lines of code did each method take?  How many cpu-seconds?

> The bottom line is, that Phil's original suggestion to put the hash
> at the end of the encrypted message is the easiest way to address it.

The MDC is more easily added where it is already being generated through
existing control paths in the code, simply altering the output format
slightly.  How can something that is already there be harder to add than
something completely new?

> I know that it is annoying to hold back the last 20 bytes, but compared
> to the hacked signature packets, I thing it is okay to to this. 

Altering one byte to add a definition to the signature packet is less of
a hack than holding back 20 bytes.  Don't assume everyone is running on
big machines with an OS or API calls to handle this and CPU cycles to
spare.

I don't.  If you are going to do this then at least force an EOF and
append 20 bytes without any packet information (i.e. the new stream
packets would indicate an end where the message ends, but there would be
20 bytes (or whatever) extra following not encapsulated in any packet).

It may be easy to add in your implementation, and you may not be trying to
do stream I/O and have something that handles errant packet boundaries
easily.  This is by no means universal.

One of my implementations is for the Palm Pilot.  Adding a layer instead
of a few lines in an existing layer) is a really big deal there (exclusive
of adding algorithms).  Holding back 20 bytes when I am already against
the memory limitations is going to be very painful.

I have pointed out that we can do it without bloating the code.  But it
seems everyone wants to bloat it.  Assuming PRZ isn't doing another
"hit-and-run", what does HE think of the alternatives?

If this is going to require another layer, then all such algorithms using
this new method should be given a MAY level of compliance and not SHOULD
because of the larger impact on the existing code base.

Conversely, extending the existing structure is easy enough to warrant
being a SHOULD.




From owner-ietf-open-pgp@imc.org  Tue May 11 20:30:41 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA05499
	for <openpgp-archive@odin.ietf.org>; Tue, 11 May 1999 20:30:40 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA20334
	for ietf-open-pgp-bks; Tue, 11 May 1999 16:39:56 -0700 (PDT)
Received: from seas.gwu.edu (root@malone.seas.gwu.edu [128.164.9.13])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA20275
	for <ietf-open-pgp@imc.org>; Tue, 11 May 1999 16:39:50 -0700 (PDT)
Received: from felix.seas.gwu.edu (felix.seas.gwu.edu [128.164.9.3])
	by seas.gwu.edu (v8) with ESMTP id TAA09472; Tue, 11 May 1999 19:42:23 -0400 (EDT)
From: Cyberspace Policy Institute <cpi@SEAS.GWU.EDU>
Received: (from cpi@localhost)
	by felix.seas.gwu.edu (8.9.1a/8.9.1) id TAA19300;
	Tue, 11 May 1999 19:42:22 -0400 (EDT)
Message-Id: <199905112342.TAA19300@felix.seas.gwu.edu>
Subject: URGENT: Need crypto product info!
To: ietf-open-pgp@imc.org, ietf-ssh@clinet.fi
Date: Tue, 11 May 1999 19:42:22 -0400 (EDT)
Cc: cpi@SEAS.GWU.EDU
X-Mailer: ELM [version 2.5 PL0]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Please forward this message to others who are interested on the topic. A

WWW-version of this message can be found at
http://www.seas.gwu.edu/seas/institutes/cpi/cryptosurvey/call4info.html

Please excuse us for the cross-postings


**************************************************************
           NON-U.S. CRYPTOGRAPHIC PRODUCT SURVEY
                  CALL FOR INFORMATION
**************************************************************

The George Washington University and NAI Labs, The Security Research
Division of Network Associates (formerly the research division of
Trusted Information Systems) are conducting a survey to identify
cryptographic products manufactured outside the United States and are
examining product specifications to assess their functionality and
security.

We are soliciting input from those with knowledge of cryptographic
products through the use of this survey form.  If you know of
cryptographic products that are manufactured in countries other than the
United States, please complete this form and submit it to the Cyberspace
Policy Institute (CPI) NO LATER THAN TUESDAY MAY 18, 1999. You may
submit this form via email to cpi@seas.gwu.edu or fax at (202) 994-5505
in Washington D.C.

In addition, we ask you to send or post this survey to anyone or place
that would have knowledge of cryptographic products. Inquiries about
this survey may be made to the Cyberspace Policy Institute at
cpi@seas.gwu.edu or (202) 994-5512. This survey may also be found on the
CPI Web site at http://www.seas.gwu.edu/seas/institutes/cpi.

Your cooperation is greatly appreciated.

Professor Lance J. Hoffman, The George Washington University
David Balenson, NAI Labs, The Security Research Division of Network Associates

**************************************************************

           NON-U.S. CRYPTOGRAPHIC PRODUCT SURVEY

DATE:


COMPLETED BY:

Your Name:
Phone:
E-mail:

NAME AND ADDRESS OF MANUFACTURER

Name:
Address:
City:                    State:                  Zip Code:
Country:
URL:

MANUFACTURER CONTACT INFORMATION

Name:                                Title:
Phone:                               FAX:
E-mail:                              800#:


PRODUCT DESCRIPTION

Name (including model and version information):

Product-specific URL:

Is it software-only, hardware-only, or a software/hardware combination?

What does it encrypt (e.g., disk, file, communications, FAX, voice,
magnetic tape, electronic mail)?

If embedded software or hardware, what platforms does it support (e.g.,
PC, Mac, UNIX workstation, IBM mainframe), else if standalone hardware,
what interfaces does it support (RS-232, telephone, V.24, V.35)?

If software, is it in the form of a kit or as an end-user program, else
if hardware, what is the embodiment (e.g., chip, board, PCMCIA card,
smart card, box, phone)?

What algorithms does it employ for data encryption (including
proprietary algorithms and key length)?

If applicable, what algorithms does it employ for key management
(including proprietary algorithms and key length)?

If applicable, what algorithms does it employ for data authentication
(including proprietary algorithms)?

How is the product sold or distributed (e.g., store front, mail order,
telephone order, World Wide Web, anonymous ftp over the Internet)?

If applicable, what is the quantity one purchase price?

(Optional) Approximate number of units sold or distributed?

(Optional) Approximate date product was first available?

Please provide a list of the names and relationships of any associated
companies (e.g., parent company, sister company, distributors). Include
full address and contact name, title, phone, FAX, and e-mail address.
Other information:


PLEASE PROVIDE A COPY OF ANY RELEVANT PRODUCT LITERATURE.


Send completed forms and product literature via e-mail to
cpi@seas.gwu.edu or via fax to the Cyberspace Policy Institute at 
202-994-5505 in Washington D.C.

THANK YOU!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This survey is part of an ongoing worldwide study of cryptographic
products started in April 1994 by Trusted Information Systems and 
Dr. Lance J. Hoffman of the George Washington University.
The December 1997 summary results of the survey are available on the
World Wide Web at
http://www.nai.com/products/security/tis_research/crypto/crypt_surv.asp.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





From owner-ietf-open-pgp@imc.org  Tue May 11 20:37:02 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA05583
	for <openpgp-archive@odin.ietf.org>; Tue, 11 May 1999 20:37:01 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA21310
	for ietf-open-pgp-bks; Tue, 11 May 1999 16:50:27 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA21306
	for <ietf-open-pgp@imc.org>; Tue, 11 May 1999 16:50:25 -0700 (PDT)
Received: (from hal@localhost)
	by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id QAA03374;
	Tue, 11 May 1999 16:52:58 -0700
Date: Tue, 11 May 1999 16:52:58 -0700
From: hal@rain.org
Message-Id: <199905112352.QAA03374@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Werner Koch, <wk@isil.d.shuttle.de>, writes:
> We should invent a new encrypted data packet which is used for
> encrypted messages with MDC.  Suggestion:
>
>    Packet number ???
>
>    1 byte version  (should be 1)
>    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
>    1 byte number of extra bytes (m) at the end of the encrypted text
>           From now on CFB encrypted with an IV of all zeroes without
>           any strange syncing.
>    n byte random data used as IV (n=blocksize of the cipher)	
>    2 byte the last two bytes of the random data.
>    k byte message
>    m byte hash used for MD

In my other message I pointed out the problem that an attacker could
perturb some of these header values.  With that in mind let us look at
these fields:

>    1 byte version  (should be 1)

This is probably a good idea.  If perturbed by an attacker to a later
version, the software will refuse to process the packet.  We need
to consider though whether, if we later move to a higher version, an
attacker could execute a rollback attack by changing a V2 to a V1.
We can deal with that at that time by making sure that V2 and V1 look
very different (assuming we ever need to create a V2).

>    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)

This one worries me.  It allows an attacker to turn a 2 into a 0.  Also,
is there an implication that it can be something other than 2 or 0?  Like,
1 means MD5?  If so, this again offers an attacker more opportunities to
mess with the receiver.  The attacker could change the hash algorithm to
something like 6.  Now the receiver doesn't know if this is a legitimate
message from a later version of PGP that supports hash algorithm 6, or
whether it is a messed up message by an attacker.  If we choose a fixed
hash algorithm this ambiguity cannot arise.

I would prefer to leave this field out.  If you use the new packet format
at all, you get the MDC, using a fixed hash of SHA-1.

>    1 byte number of extra bytes (m) at the end of the encrypted text
>           From now on CFB encrypted with an IV of all zeroes without
>           any strange syncing.

We would then not need this, as the value would always be 20.

>    n byte random data used as IV (n=blocksize of the cipher)	

OK.  I continue to believe that a *conventional* IV is most desirable in
terms of explaining what we are doing to others in the field.  The "pseudo
IV" we have now is hard to explain.  I had to go to some lengths in
getting our FIPS 140 certification (a standard security certification)
to show that our way was just as good as the regular way.

>    2 byte the last two bytes of the random data.

You have not shown whether these are encrypted.  I presume that they are,
and that these are meant to be check bytes used to detect when we have the
right session key.  This way of doing it does not work well when the IV
is unencrypted, as is done in virtually every other cipher in the world
except PGP.  With an unencrypted IV the two check bytes are known, thus
putting two bytes of known plaintext right at the start of the message.
Since one of the goals of the new encryption packet is to regularize our
methods and bring them into conformance with the practices used by other
professionals, I believe we should do check bytes slightly differently.

My proposal was that we have four bytes, two random ones and then those
same two random ones repeated.  These would all be encrypted.  It's not
known plaintext although there is a certain amount of redundancy in the
data, which redundancy is necessary for them to serve as check bytes.

>    k byte message
>    m byte hash used for MD

These, too, would both presuambly be encrypted.  The hash size should be
fixed if we fix a hash algorithm.

> Uri proposed another scheme for better detection of wrong keys - we 
> should consider to use this.

His proposal, from http://www.imc.org/ietf-open-pgp/mail-archive/msg02471.html:

   Make the "pseudo-IV" prefix partially non-random - i.e. the last two 
   bytes being checksum for the other 14. No big deal security-wise and
   noticeable help in detecting the right key.

This isn't too bad for 128 bit block ciphers like Twofish or AES, but as
a general principle we would need to apply it to all ciphers, including
64 bit block ciphers.  I don't like taking away 16 of the 64 bits of IV
in that case.  I can't name a specific attack this would cause but it
doesn't feel right to give up that much of the IV.

Also, of course this only works with the pseudo-IV.  As I wrote above, our
use of a pseudo-IV is an oddball quirk that no one else does.  In order to
generate support for the standard we should try to move away from peculiar
features like this and towards the conventional ways of doing things.

> "If a cipher with a blocksize > 64 bits is used, this new packet 
>  format SHOULD be used".

I agree that it would be sensible to encourage the new format when we go
to new block ciphers.  Unfortunately the next version of PGP will have
Twofish support without MDC, since we were not able to come to consensus
here (and it doesn't look like we are coming any closer).

> To clarify thinks for the old encypted data packet (9), we should
> say that the special CFB mode is used with all blocksizes. 

By this, do you mean the special sync operation after reading the pseudo
IV and check bytes?

Hal Finney
Network Associates, Inc.


From owner-ietf-open-pgp@imc.org  Tue May 11 21:00:30 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA05673
	for <openpgp-archive@odin.ietf.org>; Tue, 11 May 1999 21:00:30 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA22118
	for ietf-open-pgp-bks; Tue, 11 May 1999 17:07:43 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA22104
	for <ietf-open-pgp@imc.org>; Tue, 11 May 1999 17:07:40 -0700 (PDT)
Received: (from hal@localhost)
	by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id RAA03421;
	Tue, 11 May 1999 17:10:08 -0700
Date: Tue, 11 May 1999 17:10:08 -0700
From: hal@rain.org
Message-Id: <199905120010.RAA03421@226-132.adsl2.avtel.net>
To: tzeruch@ceddec.com, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
Cc: ietf-open-pgp@imc.org
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

 Tom Zerucha, <tzeruch@ceddec.com>, writes:

> In effect what we have now (with buffering or pipes between threads) is:
>
> ciphertext | dearmor | pkdecrypt | symdecrypt | sigver | deliteral
>
> There may be multiple sigvers, one per level of nesting (I use a stack
> instead of spawning another layer).
>
> What will happen is that this will insert something between the symdecrypt
> and the sigver sections.  It will function nearly the same as the sigver,
> except we are creating a completely new and disjoint syntax for handling
> the new packet.
>
> For me, it is really ugly to add a new layer when the existing one can
> easily be modified to work and provide the same function.
>
> Instead we fiddle with the definitions to make it incompatible with the
> existing layers just enough so it must be a new layer, but realize that
> all this new verbage simply exists to forcibly create a new layer, and not
> for any functional reason.

These statements are only valid in the context of your implementation.
I have implemented it in a different way which did not require adding any
new layers.  I simply added calls to the hash function in the decryption
module, as well as the 20 byte holdback buffer.  As it happened I
already had a buffer in the decryption module so modifying it to hold
back 20 bytes was easy.  There were then two extra functions added to
the decryption module, one to finalize and retrieve the hash value,
and one to retrieve the value from the holdback buffer (which holds the
final 20 bytes at the end of processing).  These are then compared at
the end of the packet.  It was not a difficult change.

I don't believe we should judge the difficulty based on just how it
affects your implementation.  If you would like some help I suspect we
could work with you to make similar modifications to your symdecrypt
module.

> I asked what didn't work about extending "signature" packets to
> "verification" packets (with the zero algorithm or something similar -
> or even keeping the signature packet format with a different ID number
> for MDC only packets).
>   
> No one has yet told me why this is any less secure, slower, or harder than
> tacking the 20 bytes onto the end of the plaintext.

I did mention this, in my original message on this topic, when I wrote:

   We have also discussed providing integrity protection via some
   modification to the signature packet format rather than by a new form
   of encrypted packet.  There would be a special kind of "signature" which
   would just consist of a hash of the message to protect its integrity.
   
   However, Phil argues that this kind of integrity protection is inherently
   tied to the use of encryption.  It has no functional effect if not used
   in conjunction with encryption.  This is unlike our other signatures,
   which are cryptographically useful transformations even on their own.
   Because of this close tie to the encryption functionality it makes most
   sense to make it part of the encrypted packet.

> How many lines of code did each method take?  How many cpu-seconds?

Which is the most architecturally attractive way to do it?  Which method
is the most logical and coherent?  Which method would you use if you
were designing from scratch, rather than trying to shoehorn it into an
existing implementation so as to change it as little as possible?

> Altering one byte to add a definition to the signature packet is less of
> a hack than holding back 20 bytes.  Don't assume everyone is running on
> big machines with an OS or API calls to handle this and CPU cycles to
> spare.

Holding back 20 bytes does not take a big machine, or any OS or API calls.
It is a simple circular buffer and about half a page of code.

> I don't.  If you are going to do this then at least force an EOF and
> append 20 bytes without any packet information (i.e. the new stream
> packets would indicate an end where the message ends, but there would be
> 20 bytes (or whatever) extra following not encapsulated in any packet).

Let's not go down the path of putting bytes outside a packet.  That would
violate all of our conventions.

> It may be easy to add in your implementation, and you may not be trying to
> do stream I/O and have something that handles errant packet boundaries
> easily.  This is by no means universal.
>
> One of my implementations is for the Palm Pilot.  Adding a layer instead
> of a few lines in an existing layer) is a really big deal there (exclusive
> of adding algorithms).  Holding back 20 bytes when I am already against
> the memory limitations is going to be very painful.

Surely a 20 byte holdback buffer can't be a major problem, when adding the
new hash context is going to take at least 84 bytes of ram.

> I have pointed out that we can do it without bloating the code.  But it
> seems everyone wants to bloat it.  Assuming PRZ isn't doing another
> "hit-and-run", what does HE think of the alternatives?

Phil is out of the country now, but I have spoken at great length to him
about this over the past month.  I assure you that Phil is THE strongest
supporter of integrating the MDC feature with a new encryption packet.
I cannot over emphasize how strongly he opposes doing it as a hack of
the signature packet.

I showed earlier how inappropriate the signature packet is for this
purpose.  I listed all the fields and showed how few of them made any
sense in this context.  I can understand that this is the path of least
resistance for kludging this feature into existing code, but we would
prefer an approach which makes sense architecturally.  Signature packets
are not appropriate for this purpose.

> If this is going to require another layer, then all such algorithms using
> this new method should be given a MAY level of compliance and not SHOULD
> because of the larger impact on the existing code base.
>
> Conversely, extending the existing structure is easy enough to warrant
> being a SHOULD.

As far as I know, there are three implementations that are affected:
your reference implementation, the Gnu Privacy Guard, and the commercial
PGP from Network Associates.  If we can come to agreement then we can get
these changes into all of these implementations, and make it a SHOULD as
Werner suggested.

Hal Finney
Network Associates, Inc.


From owner-ietf-open-pgp@imc.org  Wed May 12 05:23:08 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA22719
	for <openpgp-archive@odin.ietf.org>; Wed, 12 May 1999 05:23:08 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id BAA08675
	for ietf-open-pgp-bks; Wed, 12 May 1999 01:18:42 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA08670
	for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 01:18:37 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id KAA02154
	for ietf-open-pgp@imc.org; Wed, 12 May 1999 10:21:17 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10hUBa-00029Z-00; Wed, 12 May 1999 10:16:14 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10hU9b-0002jV-00; Wed, 12 May 1999 10:14:11 +0200
Date: Wed, 12 May 1999 10:14:11 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990512101411.L10418@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <19990509205054.B6295@frodo.isil.d.shuttle.de> <99May11.172534edt.42115@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May11.172534edt.42115@brickwall.ceddec.com>; from Tom Zerucha on Tue, May 11, 1999 at 05:24:52PM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha <tzeruch@ceddec.com> writes:

> >    Encrypted_Data -+- Data_Containter_Packet -+- Onepass
> >                    !                          !- Plaintext	
> >                    !                          !- Signature  		
> >                    !- MDC_Packet
> 
> Not true.  Just as you run the encryptor and get two or more packets out

Partly true, for my implementaion such a scheme would make for
sense ;-) 

> No one has yet told me why this is any less secure, slower, or harder than
> tacking the 20 bytes onto the end of the plaintext.
> 
> How many lines of code did each method take?  How many cpu-seconds?

You know that I implemented this in GnuPG (it is in 0.9.6, use
--force-mdc).  But the way I implemented it was more a hack.  Using a
different packet than the signature packet would have made more sense
as it will lead to a cleaner implementation.

I dropped this to check my proposol and Phil's and it turned out that
Phil's was the easiest to implement.  Holding back the 20 bytes is
really easy if you are already doing some buffering and it can be
coded in a way to minimize any performance penalty (which is anyway in
the MDC calculation).

> a hack than holding back 20 bytes.  Don't assume everyone is running on
> big machines with an OS or API calls to handle this and CPU cycles to

Not CPU cycles but larger buffers are needed.

> It may be easy to add in your implementation, and you may not be trying to
> do stream I/O and have something that handles errant packet boundaries

GnuPG handles everything has stream (with the strange partial header
scheme of PGP 5 which claims to save some bytes :-)

> of adding algorithms).  Holding back 20 bytes when I am already against
> the memory limitations is going to be very painful.

As Hal already said, the extra memory needed for the hashing context
outweights some 20 bytes.

> I have pointed out that we can do it without bloating the code.  But it

Actually the signature packet hack bloated my code (although a
different type of packet won't do so).

> If this is going to require another layer, then all such algorithms using
> this new method should be given a MAY level of compliance and not SHOULD

I only wanted to get a faster consensus, therefore I suggested SHOUlD
- but it has now turned out that NAI is doing anyway there own way, we
can use MAY and an implementor can decide whether to print a warning
or now.

[Really fine that we have a holiday tomorrow :-), back on Monday]

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Wed May 12 05:29:10 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA22735
	for <openpgp-archive@odin.ietf.org>; Wed, 12 May 1999 05:29:09 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id BAA08680
	for ietf-open-pgp-bks; Wed, 12 May 1999 01:18:55 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA08676
	for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 01:18:46 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id KAA02151
	for ietf-open-pgp@imc.org; Wed, 12 May 1999 10:21:14 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10hTxf-00029R-00; Wed, 12 May 1999 10:01:51 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10hTvg-0002jM-00; Wed, 12 May 1999 09:59:48 +0200
Date: Wed, 12 May 1999 09:59:48 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990512095948.K10418@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905112352.QAA03374@226-132.adsl2.avtel.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <199905112352.QAA03374@226-132.adsl2.avtel.net>; from hal@rain.org on Tue, May 11, 1999 at 04:52:58PM -0700
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

hal@rain.org writes:

> >    1 byte version  (should be 1)
> 
> This is probably a good idea.  If perturbed by an attacker to a later

Yes and the reason for this is simply to extend the range of possible
packet formats (view it as a packet subtype).

> attacker could execute a rollback attack by changing a V2 to a V1.
> We can deal with that at that time by making sure that V2 and V1 look

And he could also do this by changing the packet type.

> >    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
> 
> This one worries me.  It allows an attacker to turn a 2 into a 0.  Also,

I see your point.  The reason I suggest this is that there are a lot
of people who prefer to use RIPE-MD160 and this way we have te
opportunity to do just this.  The packet format may also be used for
some very small applications which use a subset of OpenPGP and don't
implement SHA1 at all.  My solution to this is to say in the standard,
that this SHOULD be SHA1 and an implementation SHOULD fail if this 
condition is not met. 

> whether it is a messed up message by an attacker.  If we choose a fixed
> hash algorithm this ambiguity cannot arise.

I guess we will have new hash algorithms with a larger digest size in the
near future and this way we can more easily extend the specs to make
it possible to use this hash (Frankly, don't see any need in a MDC for 
a larger hash, but if some one wants and has only implemented this
larger hash ...).

> >    1 byte number of extra bytes (m) at the end of the encrypted text
> >           From now on CFB encrypted with an IV of all zeroes without
> >           any strange syncing.

This is fine for automatic parsing of messages to let the parse know
how may bytes he has to hold back. 

> terms of explaining what we are doing to others in the field.  The "pseudo
> IV" we have now is hard to explain.  I had to go to some lengths in
> getting our FIPS 140 certification (a standard security certification)

I can't remember that the Internet Standards Process (BCP9) or our
chapter says anything about FIPS certification.  PGPG is a widely
deployed quasi-standard and believed to be really good secure.

If you need some certification it is matter of your company to work 
it out.

> >    2 byte the last two bytes of the random data.
> 
> You have not shown whether these are encrypted.  I presume that they are,

Ah sure.  It is what we are currently using.

> My proposal was that we have four bytes, two random ones and then those
> same two random ones repeated.  These would all be encrypted.  It's not

But that will be not better than the current practice.  It is okay for
PK encryption but when using a symmetric-only encryption it may not
detect wrong passphrases in all cases.  But okay, we catch this with
the MDC and therefore I think it is good enough.

>    Make the "pseudo-IV" prefix partially non-random - i.e. the last two 
>    bytes being checksum for the other 14. No big deal security-wise and
>    noticeable help in detecting the right key.
> 
> This isn't too bad for 128 bit block ciphers like Twofish or AES, but as
> a general principle we would need to apply it to all ciphers, including
> 64 bit block ciphers.  I don't like taking away 16 of the 64 bits of IV

So we could always use 128 bits and use only the lower half for 64 bit
blocksize ciphers.  But okay, with the MDC we don't really need it.

> I agree that it would be sensible to encourage the new format when we go
> to new block ciphers.  Unfortunately the next version of PGP will have
> Twofish support without MDC, since we were not able to come to consensus

Ahhh great:  I'm holding back Twofish support for GnuPG for many weeks
now, only to have the chance to use 128 bit block ciphers as a
criteria to decide whether to use MDCed encryption - but NAI has already
decided to make facts and thereby ignoring the discussion at the WG.
But sure, it is your companies decision - tssss.

BTW, how did you solve the ambiguities in the rfc regarding the use of
synced CFB and length of IVs? 

> By this, do you mean the special sync operation after reading the pseudo
> IV and check bytes?

Yes.
#define CIPHER_MODE_PHILS_CFB 3


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Wed May 12 08:20:23 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA23660
	for <openpgp-archive@odin.ietf.org>; Wed, 12 May 1999 08:20:22 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id EAA12212
	for ietf-open-pgp-bks; Wed, 12 May 1999 04:20:54 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id EAA12208
	for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 04:20:53 -0700 (PDT)
Received: from mailhub.watson.ibm.com (mailhub.watson.ibm.com [9.2.250.97])
	by igw3.watson.ibm.com (8.9.3/8.9.3/04-14-1999) with ESMTP id HAA120624;
	Wed, 12 May 1999 07:23:34 -0400
Received: from buoy.watson.ibm.com (buoy.watson.ibm.com [9.2.3.94]) by mailhub.watson.ibm.com (8.8.7/Feb-20-98) with SMTP id HAA15238; Wed, 12 May 1999 07:23:33 -0400
Received: by buoy.watson.ibm.com (AIX 4.1/UCB 5.64/6/25/96)
          id AA23654; Wed, 12 May 1999 07:23:19 -0400
From: uri <uri@watson.ibm.com>
Message-Id: <9905121123.AA23654@buoy.watson.ibm.com>
Subject: Re: Agree with PRZs MDC suggestion
To: hal@rain.org
Date: Wed, 12 May 1999 07:23:19 -0400 (EDT)
Cc: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
In-Reply-To: <199905112352.QAA03374@226-132.adsl2.avtel.net> from "hal@rain.org" at May 11, 99 04:52:58 pm
Reply-To: uri@watson.ibm.com
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

hal@rain.org says:
> >    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
> 
> This one worries me.  It allows an attacker to turn a 2 into a 0. 

I would not have "disable MDC" at all.

> Also,
> is there an implication that it can be something other than 2 or 0?

Absolutely - like 3 for HAVAL, 5 for <whatever>...

> If so, this again offers an attacker more opportunities to
> mess with the receiver.  The attacker could change the hash algorithm to
> something like 6.  Now the receiver doesn't know if this is a legitimate
> message from a later version of PGP that supports hash algorithm 6, or
> whether it is a messed up message by an attacker.  If we choose a fixed
> hash algorithm this ambiguity cannot arise.

True. So it is up to the group to decide if the extra flexibility of
permitting several hash-functions is worth this potential attack...

> I would prefer to leave this field out.  If you use the new packet format
> at all, you get the MDC, using a fixed hash of SHA-1.

Quite acceptable, if you ask me.

> >    n byte random data used as IV (n=blocksize of the cipher)	
> 
> OK.  I continue to believe that a *conventional* IV is most desirable in
> terms of explaining what we are doing to others in the field.  The "pseudo
> IV" we have now is hard to explain.

1. A conventional IV is less desirable from security point of view.
2. If you have trouble explaining this approach to others in the
   field - I suggest that those others are in the wrong field.
-- 
Regards,
Uri		uri@watson.ibm.com
-=-=-=-=-=-=-
<Disclaimer>


From owner-ietf-open-pgp@imc.org  Wed May 12 16:56:06 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA10025
	for <openpgp-archive@odin.ietf.org>; Wed, 12 May 1999 16:56:06 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA16084
	for ietf-open-pgp-bks; Wed, 12 May 1999 12:25:18 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA16080
	for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 12:25:16 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Wed, 12 May 1999 15:27:25 -0400
Date: Wed, 12 May 1999 15:27:42 -0400
From: Tom Zerucha <dontspam-tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: hal@rain.org
cc: tzeruch@ceddec.com, wk@isil.d.shuttle.de, ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <199905120010.RAA03421@226-132.adsl2.avtel.net>
Message-Id: <99May12.152725edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

yOn Tue, 11 May 1999 hal@rain.org wrote:

> These statements are only valid in the context of your implementation.
> I have implemented it in a different way which did not require adding any
> new layers.  I simply added calls to the hash function in the decryption
> module, as well as the 20 byte holdback buffer.  As it happened I
> already had a buffer in the decryption module so modifying it to hold
> back 20 bytes was easy.  There were then two extra functions added to
> the decryption module, one to finalize and retrieve the hash value,
> and one to retrieve the value from the holdback buffer (which holds the
> final 20 bytes at the end of processing).  These are then compared at
> the end of the packet.  It was not a difficult change.

I would still call this a layer, even if it is inline.

> Which is the most architecturally attractive way to do it?  Which method
> is the most logical and coherent?  Which method would you use if you
> were designing from scratch, rather than trying to shoehorn it into an
> existing implementation so as to change it as little as possible?

Architecture attractive means different things when adding on to a
building v.s. building a completely new building.

It is not more logical or coherent to not use an existing layer that
already does hashing and returns those hash bytes (with about a dozen
extra bytes hashed).

If you are asking which method should be used if redesigning EVERYTHING
from scratch, I would give a different answer, but then why bother calling
it or otherwise associating it with OpenPGP.  I could list about a half
dozen other things that should be done differently.  Will you be open to
those suggestions as long as the standard for OpenPGP 2.0 will be a clean
sheet of paper?

And I am not saying it must be the signature packet or nothing.  My
problem is with the 20 unencapsulated or unindicated hash bytes at the
end.  Encapsulating them addresses all my major complaints.  But that
would mean another new packet type or subtype.

> > Altering one byte to add a definition to the signature packet is less of
> > a hack than holding back 20 bytes.  Don't assume everyone is running on
> > big machines with an OS or API calls to handle this and CPU cycles to
> > spare.
> 
> Holding back 20 bytes does not take a big machine, or any OS or API calls.
> It is a simple circular buffer and about half a page of code.

Neither does it take much to reserve 20 bytes at the beginning.  I would
rather burden the single encryption operation than the many decryption
operations.  You then don't need any of this extra stuff in the decryption
layer to find the EOF.  And most things work better on block boundaries.

Nor does it take anything more to put a CTB terminal packet at both the
end of the encryption stream and do a 20 byte packet for the hash (oh,
maybe in YOUR implementation it would be hard).  And at least a byte for
the algorithm number even if it is fixed simply to be consistent.

> Let's not go down the path of putting bytes outside a packet.  That would
> violate all of our conventions.

An implicit convention that has been true UNTIL NOW is that no unknown
variable length data element is FOLLOWED by a fixed length data element,
perhaps except if you do a signed compression packet with an old style
CTB, but you do get the end-of-packet indication at the end of the
compression stream (i.e. the compressor does know where the compressed
data ends).

Another implicit convention is that everywhere things like algorithms are
used, there is no implicit value, but an identifier.  Maybe we only want
to use SHA1, but it would follow the tradition if the 20 bytes were
prefixed by a version number and the algorithm identifier.

Defining two new packet types, new encryption format and new MDC only
valid if it follows and is encrypted by the above isn't that much harder.

> > I have pointed out that we can do it without bloating the code.  But it
> > seems everyone wants to bloat it.  Assuming PRZ isn't doing another
> > "hit-and-run", what does HE think of the alternatives?
> 
> Phil is out of the country now, but I have spoken at great length to him
> about this over the past month.  I assure you that Phil is THE strongest
> supporter of integrating the MDC feature with a new encryption packet.
> I cannot over emphasize how strongly he opposes doing it as a hack of
> the signature packet.

I take it he is in a country without Email?  I don't care how
strongly one favors or opposes something if it is not on technical
grounds.  And he has been capable of speaking for himself in the past.

Is he also completely and irrevocably opposed to having the hash as
anything except a naked 20 byte field at the end of the plaintext stream?

> I showed earlier how inappropriate the signature packet is for this
> purpose.  I listed all the fields and showed how few of them made any
> sense in this context.  I can understand that this is the path of least
> resistance for kludging this feature into existing code, but we would
> prefer an approach which makes sense architecturally.  Signature packets
> are not appropriate for this purpose.

I will repeat that I am only calling it signature packet because that is
the title of the packet I want to use and would move to change it to
"validity packet" or "verification packet" in the spec.  Because it has
been given one specific name doesn't restrict it from both the function
and name being generalized.

Many of the fields make no sense in other contexts as well.  But having
implemented it this is what we have inside:
4 - the version (which is needed)
X - the signature type (not needed)
A - sig algorithm, 0 for MDCs
a - hash algorithm, SHA1 (needed unless we never want anything else)
four zero bytes (length of hashed and unhashed packets)

Also 0x04 0xff and 4 length bytes are hashed.  It is either redundant in
the signature packet or useful, and that would extend to here.

I haven't checked the packet types to see if there is any potentially
useful information that someone might want to add (e.g. a timestamp or
comment for a file that wouldn't be part of the image if it were something
like an executable).

Then there are the two redundant bytes for the hash that still provide a
quick check, which is less useful if you dont' have to do a signature
calculation.  And the hash value, but encoded in an MPI, so the MPI
length word would be redundant.

All this v.s. having a special case for the new encryption type that also
does the MDC - the special casing won't work or apply to existing
encryption algorithms, and the hashing that is already there won't apply
(or have to be done while generating a signature as well).

And, if you do create a signed message (where having a signature is
significant, for example a timestamp), why wouldn't the entire MDC
infrastructure be redundant? You are validating the decryption and then
revalidating it again when checking the signature.  Shouldn't it be turned
off to avoid having this function that doesn't make sense in this context?

What added integrity does the MDC give to a signed message (and since we
are talking about elimination redundancy and extra fields, I am assuming
the key is available, etc.)?  Why is the MDC not redundant since that is
the reason you are giving for not having it encapsulated in the existing
validation structure.  I think there are fewer total redundant bytes.

And I have asked about existing algorithms.  Whatever extra security an
MDC would provide for TwoFish should also apply to 3DES, IDEA, and CAST.
Is there a reason for NOT doing MDCs with the existing algorithms?  It
might be useful to have an implementation that implements only the MUST
algorithms except to have the extra MDC function (insert all the reasons
we need an MDC and not merely an "anybody" signature key here). How does
your method address this?

Even having an MDC "packet" (those horrid extra header bytes and the
restart of the CTB packet length engine) appended to the plaintext packet
instead of being part of it would allow for this.

I am not arguing against an MDC packet, though I don't see as much problem
with the extra field bytes in the existing signature/validation packet.
They don't have to be in the existing signature packet (though I would
want things like version and algorithm bytes and length processing to make
them orthogonal with every other packet type).  I am arguing against a
required trailing naked MDC field unique to a new encryption packet.

To clarify, it would be encrypt( literal(data), MDC ), MDC being the new
packet containing the hash of the literal.  And encrypt( "mdc follows",
literal(data), MDC) would be even better.

Note this would also have use as a simple checksum - only detecting if the
file was corrupted in transmission for simple non-crypto type validation.

> > Conversely, extending the existing structure is easy enough to warrant
> > being a SHOULD.
> 
> As far as I know, there are three implementations that are affected:
> your reference implementation, the Gnu Privacy Guard, and the commercial
> PGP from Network Associates.  If we can come to agreement then we can get
> these changes into all of these implementations, and make it a SHOULD as
> Werner suggested.

What about Geiger's OS/2 (mainly) implementation?

Does GPG have any plans on allowing MDCs with the other algorithms?  Other
hash algorithms besides SHA1?

To restate my position, the MDC should be encapsulated in some kind of
packet consistent with the existing syntax and grammar.  My preference is
for expanding the existing signature packet by adding a "zero" algorithm.

But I don't have any objections to a new MDC-only packet, especially if it
has a "MDC follows" prefix packet.

All I don't want is an unencapsulated fixed number of bytes implicitly at
the end of a packet.



From owner-ietf-open-pgp@imc.org  Wed May 12 17:12:56 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA10274
	for <openpgp-archive@odin.ietf.org>; Wed, 12 May 1999 17:12:55 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA16452
	for ietf-open-pgp-bks; Wed, 12 May 1999 13:18:37 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA16448
	for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 13:18:36 -0700 (PDT)
Received: (from hal@localhost)
	by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id NAA06259;
	Wed, 12 May 1999 13:21:06 -0700
Date: Wed, 12 May 1999 13:21:06 -0700
From: hal@rain.org
Message-Id: <199905122021.NAA06259@226-132.adsl2.avtel.net>
To: dontspam-tzeruch@ceddec.com, hal@rain.org
Subject: Re: Agree with PRZs MDC suggestion
Cc: ietf-open-pgp@imc.org, tzeruch@ceddec.com, wk@isil.d.shuttle.de
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha, <tzeruch@ceddec.com>, writes:
> And I am not saying it must be the signature packet or nothing.  My
> problem is with the 20 unencapsulated or unindicated hash bytes at the
> end.  Encapsulating them addresses all my major complaints.  But that
> would mean another new packet type or subtype.

OK, maybe we could do something along these lines.

> Is he also completely and irrevocably opposed to having the hash as
> anything except a naked 20 byte field at the end of the plaintext stream?

I recall that Phil and I did briefly discuss the idea of putting the
hash into a separate, following packet, and while he didn't like it as
much as integrating it, I don't think he objected to it.

> I am not arguing against an MDC packet, though I don't see as much problem
> with the extra field bytes in the existing signature/validation packet.
> They don't have to be in the existing signature packet (though I would
> want things like version and algorithm bytes and length processing to make
> them orthogonal with every other packet type).  I am arguing against a
> required trailing naked MDC field unique to a new encryption packet.
>
> To clarify, it would be encrypt( literal(data), MDC ), MDC being the new
> packet containing the hash of the literal.  And encrypt( "mdc follows",
> literal(data), MDC) would be even better.

How about if the "encrypt" is a different packet number, something like
"encryptwithmdc".  Then this would be:

encryptwithmdc( <plaintext packet>, <mdc packet> )

We would still need to decide whether to change to a more conventional
IV handling, and if so how to handle check bytes.  I will tell you
frankly that Phil likes the pseudo-IV; he invented it.  I have been
the main one pushing for a more conventional handling of the IV,
because I don't believe the pseudo IV offers any security advantage.
It's unusual but has no security advantages.  This is generally not a
good thing in cryptography.  So I'd like to make it more conventional.

Uri suggested that a conventional IV is less desirable from a security
point of view, but I'd like to hear more about the reasons.

This is not the highest priority item for me so if everyone else likes
the pseudo IV I can accept it.  But I would prefer to know a good reason
for doing it that way.

> What about Geiger's OS/2 (mainly) implementation?

I'm not familiar with this one.  Is there really such a thing?

> Does GPG have any plans on allowing MDCs with the other algorithms?  Other
> hash algorithms besides SHA1?

I would suggest that we should allow it with other algorithms in the spec.
However initially implementations should accept it but not create it
except for Twofish.

As for other hash algs, I have described how this could potentially open
up a security hole (by letting an attacker tweak the hash-alg field).
I believe we should stick with SHA-1.  There is actually no need for a
cryptographically collision-resistant hash here, and in practice probably
something like a CRC would work.  SHA-1 is overkill and even if it is
someday broken it will almost certainly still be more than adequate for
this purpose.

> To restate my position, the MDC should be encapsulated in some kind of
> packet consistent with the existing syntax and grammar.  My preference is
> for expanding the existing signature packet by adding a "zero" algorithm.
>
> But I don't have any objections to a new MDC-only packet, especially if it
> has a "MDC follows" prefix packet.
>
> All I don't want is an unencapsulated fixed number of bytes implicitly at
> the end of a packet.

I could go with this, along the lines Tom mentioned above, particularly
with the modification I suggested.  How does this sound to others?

Hal


From owner-ietf-open-pgp@imc.org  Wed May 12 18:17:28 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA10847
	for <openpgp-archive@odin.ietf.org>; Wed, 12 May 1999 18:17:27 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA17020
	for ietf-open-pgp-bks; Wed, 12 May 1999 14:18:32 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA17016
	for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 14:18:31 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Wed, 12 May 1999 17:20:38 -0400
Date: Wed, 12 May 1999 17:20:54 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: ietf-open-pgp@imc.org
Subject: Versions and hashing
In-Reply-To: <199905112352.QAA03374@226-132.adsl2.avtel.net>
Message-Id: <99May12.172038edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Tue, 11 May 1999 hal@rain.org wrote:

> In my other message I pointed out the problem that an attacker could
> perturb some of these header values.  With that in mind let us look at
> these fields:
> 
> >    1 byte version  (should be 1)
> 
> This is probably a good idea.  If perturbed by an attacker to a later
> version, the software will refuse to process the packet.  We need

Actually 5 would be more consistent.  Elsewhere 3 is used for PGP 2.6
level packets, 4 for PGP 5-6.  Anything below 5 for this new packet would
be an error.

> >    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
> 
> This one worries me.  It allows an attacker to turn a 2 into a 0.  Also,
> is there an implication that it can be something other than 2 or 0?  Like,
> 1 means MD5?  If so, this again offers an attacker more opportunities to
> mess with the receiver.  The attacker could change the hash algorithm to
> something like 6.  Now the receiver doesn't know if this is a legitimate
> message from a later version of PGP that supports hash algorithm 6, or
> whether it is a messed up message by an attacker.  If we choose a fixed
> hash algorithm this ambiguity cannot arise.

The receiver would have to check the message on a later version of PGP.
If 6 was a legitimage algorithm ID the hash would work.  The same problem
arises if something shifts between any two valid IDs with the same length 
hash, the second of which would might not be supported.

One note is that if you use my idea of an MDC-ahead prefix packet, and
MDC-result packet bracketing the plaintext, the MDC specification is
encrypted too, making this attack difficult.

(CTB,len=2) 5 2; plaintext; (CTB, len=22) 5 2 <20 byte result>;

Note that this would allow multiple MDCs with different algorithms
(the hash would only be on the plaintext), so you could have

[MDC: rmd160 follows][MDC: SHA1 follows][plaintext][MDC: SHA1 result][MDC:
rmd result].

Or these could be merged, (CTB len = 4) 5 2 3 0;/ (CTB len = 44) 5 2 <20
byte sha1> 3 <20 byte rmd> 0; or something similar.

-----------------------

While we are on the subject, last year at this time there was a suggestion
to drop El Gamal. The objection was mainly that the only other two
alternatives had other problems - RSA was patented, and DSA limited the
hash length to 160 bits, so although you could do larger keys, they added
no security since the hash was the weakest link.  ElGamal allowed for
longer hashes and (if there were no flaws in the implementation) more
functional bits in the public key.

Various suggestions were made including a doublewide DSA or something
similar including coming up with a hash system.

Has anyone followed up on this?



From owner-ietf-open-pgp@imc.org  Thu May 13 13:51:07 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA07709
	for <openpgp-archive@odin.ietf.org>; Thu, 13 May 1999 13:51:06 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA24608
	for ietf-open-pgp-bks; Thu, 13 May 1999 09:47:27 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA24604
	for <ietf-open-pgp@imc.org>; Thu, 13 May 1999 09:47:26 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Thu, 13 May 1999 12:49:41 -0400
Date: Thu, 13 May 1999 12:50:03 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: hal@rain.org
cc: ietf-open-pgp@imc.org, tzeruch@ceddec.com, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <199905122021.NAA06259@226-132.adsl2.avtel.net>
Message-Id: <99May13.124941edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Wed, 12 May 1999 hal@rain.org wrote:

> > I am not arguing against an MDC packet, though I don't see as much problem
> > with the extra field bytes in the existing signature/validation packet.
> > They don't have to be in the existing signature packet (though I would
> > want things like version and algorithm bytes and length processing to make
> > them orthogonal with every other packet type).  I am arguing against a
> > required trailing naked MDC field unique to a new encryption packet.
> >
> > To clarify, it would be encrypt( literal(data), MDC ), MDC being the new
> > packet containing the hash of the literal.  And encrypt( "mdc follows",
> > literal(data), MDC) would be even better.
> 
> How about if the "encrypt" is a different packet number, something like
> "encryptwithmdc".  Then this would be:
> 
> encryptwithmdc( <plaintext packet>, <mdc packet> )

That too would work, but if you want to give (one or more) hash algorithm
IDs, or versions (we might want to change something with the MDC for 3.0),
that would have to go into the Ew/MDC header and be subject to the attack
you pointed out.  It can be an Ew/MDC function, but all MDC info will need
to go into the encrypted area.  (And if encrypted, you could have an MDC
header specifying "no algorithms" for those who want to use just the new 
algorithms but without MDC).

If these could be resolved, I would say the whole Ew/MDC stuff is a
SHOULD, but if so SHA1 is a MUST, rmd160 a SHOULD, none or others a MAY,
for the hash stuff.  I suspect TwoFish to be the MUST, the existing
SHOULD/MUST algorithms as SHOULDs here.

(assuming we aren't locked to SHA1 by having an MDC prefix packet in the
encrypted stream - note that if this header were checksummed you might not
need any other quick-check bytes).

> We would still need to decide whether to change to a more conventional
> IV handling, and if so how to handle check bytes.  I will tell you
> frankly that Phil likes the pseudo-IV; he invented it.  I have been
> the main one pushing for a more conventional handling of the IV,
> because I don't believe the pseudo IV offers any security advantage.
> It's unusual but has no security advantages.  This is generally not a
> good thing in cryptography.  So I'd like to make it more conventional.
> 
> Uri suggested that a conventional IV is less desirable from a security
> point of view, but I'd like to hear more about the reasons.
> 
> This is not the highest priority item for me so if everyone else likes
> the pseudo IV I can accept it.  But I would prefer to know a good reason
> for doing it that way.

I can go either way here.  I either pass the data directly to the
algorithm, or through my pseudoIV handler.  However I suspect it might be
nicer (especially if hardware implmentations of crypto become common) to
do things in the more conventional way.

> > Does GPG have any plans on allowing MDCs with the other algorithms?  Other
> > hash algorithms besides SHA1?
> 
> I would suggest that we should allow it with other algorithms in the spec.
> However initially implementations should accept it but not create it
> except for Twofish.
> 
> As for other hash algs, I have described how this could potentially open
> up a security hole (by letting an attacker tweak the hash-alg field).

Not if the field is encrypted.



From owner-ietf-open-pgp@imc.org  Thu May 13 22:36:27 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA13673
	for <openpgp-archive@odin.ietf.org>; Thu, 13 May 1999 22:36:25 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id SAA29220
	for ietf-open-pgp-bks; Thu, 13 May 1999 18:44:39 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA29216
	for <ietf-open-pgp@imc.org>; Thu, 13 May 1999 18:44:37 -0700 (PDT)
From: hal@226-132.adsl2.avtel.net
Received: (from hal@localhost)
	by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id SAA13688;
	Thu, 13 May 1999 18:47:23 -0700
Date: Thu, 13 May 1999 18:47:23 -0700
Message-Id: <199905140147.SAA13688@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, tzeruch@ceddec.com
Subject: Re: Versions and hashing
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha, <tzeruch@ceddec.com>, writes:
> > >    1 byte version  (should be 1)
>
> Actually 5 would be more consistent.  Elsewhere 3 is used for PGP 2.6
> level packets, 4 for PGP 5-6.  Anything below 5 for this new packet would
> be an error.

Maybe, although with a new packet type it is questionable whether you
have to start that high.  It's not like there are any V1-V4 packets of
this type out there.  But for consistency maybe V5 is best.

> > >    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
> > 
> > This one worries me.  It allows an attacker to turn a 2 into a 0.  Also,
> > is there an implication that it can be something other than 2 or 0?  Like,
> > 1 means MD5?  If so, this again offers an attacker more opportunities to
> > mess with the receiver.  The attacker could change the hash algorithm to
> > something like 6.  Now the receiver doesn't know if this is a legitimate
> > message from a later version of PGP that supports hash algorithm 6, or
> > whether it is a messed up message by an attacker.  If we choose a fixed
> > hash algorithm this ambiguity cannot arise.
>
> The receiver would have to check the message on a later version of PGP.
> If 6 was a legitimage algorithm ID the hash would work.  The same problem
> arises if something shifts between any two valid IDs with the same length 
> hash, the second of which would might not be supported.

The point is that if no such new version of PGP is available, the
integrity protection is lost.  I think we can make a design where
integrity protection can't be stripped away.  Shouldn't we do so?

> One note is that if you use my idea of an MDC-ahead prefix packet, and
> MDC-result packet bracketing the plaintext, the MDC specification is
> encrypted too, making this attack difficult.

But still possible - you can make tweaks to encrypted data as I described
earlier.

> (CTB,len=2) 5 2; plaintext; (CTB, len=22) 5 2 <20 byte result>;
>
> Note that this would allow multiple MDCs with different algorithms
> (the hash would only be on the plaintext), so you could have
>
> [MDC: rmd160 follows][MDC: SHA1 follows][plaintext][MDC: SHA1 result][MDC:
> rmd result].
>
> Or these could be merged, (CTB len = 4) 5 2 3 0;/ (CTB len = 44) 5 2 <20
> byte sha1> 3 <20 byte rmd> 0; or something similar.

There is no point in having multiple MDC's with different algorithms.
There is not even any point in supporting more than one algorithm.
The attacker, when he makes his changes, either truncates the message
or can't help unpredictably corrupting a block of the message.  A simple
SHA hash will detect either of these changes with overwhelming security.

> While we are on the subject, last year at this time there was a suggestion
> to drop El Gamal. The objection was mainly that the only other two
> alternatives had other problems - RSA was patented, and DSA limited the
> hash length to 160 bits, so although you could do larger keys, they added
> no security since the hash was the weakest link.  ElGamal allowed for
> longer hashes and (if there were no flaws in the implementation) more
> functional bits in the public key.
>
> Various suggestions were made including a doublewide DSA or something
> similar including coming up with a hash system.
>
> Has anyone followed up on this?

We have spoken to NIST about this, and they say that they are acutely
aware of the need to standardize on a larger hash algorithm, and that
they are working very activelly on it.  However they have not given us
a fixed date for when they will have a result.

Hal Finney


From owner-ietf-open-pgp@imc.org  Thu May 13 22:36:39 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA13688
	for <openpgp-archive@odin.ietf.org>; Thu, 13 May 1999 22:36:38 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id SAA29263
	for ietf-open-pgp-bks; Thu, 13 May 1999 18:52:15 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA29259
	for <ietf-open-pgp@imc.org>; Thu, 13 May 1999 18:52:14 -0700 (PDT)
From: hal@226-132.adsl2.avtel.net
Received: (from hal@localhost)
	by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id SAA13713;
	Thu, 13 May 1999 18:54:56 -0700
Date: Thu, 13 May 1999 18:54:56 -0700
Message-Id: <199905140154.SAA13713@226-132.adsl2.avtel.net>
To: hal@rain.org, tzeruch@ceddec.com
Subject: Re: Agree with PRZs MDC suggestion
Cc: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

> > encryptwithmdc( <plaintext packet>, <mdc packet> )

(Note that what I showed here as "<plaintext packet>" could actually
be multiple packets long.  It would be better described as an "<OpenPGP
Message>" in the syntax of section 10.2 of RFC2440.)

If we did go with something like this, how would we handle the hashing
of the packet headers on the mdc packet?  They should probably be hashed
too, don't you think?

The simplest case from my point of view would be that we hash all the
encrypted material except for the last 20 bytes (assuming we settle on
a SHA-1 hash).

Hal


From owner-ietf-open-pgp@imc.org  Fri May 14 11:12:35 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA04633
	for <openpgp-archive@odin.ietf.org>; Fri, 14 May 1999 11:12:34 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA04403
	for ietf-open-pgp-bks; Fri, 14 May 1999 07:02:47 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA04399
	for <ietf-open-pgp@imc.org>; Fri, 14 May 1999 07:02:46 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Fri, 14 May 1999 10:05:06 -0400
Date: Fri, 14 May 1999 10:05:30 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: ietf-open-pgp@imc.org
cc: hal@rain.org, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <199905140154.SAA13713@226-132.adsl2.avtel.net>
Message-Id: <99May14.100506edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

yOn Thu, 13 May 1999 hal@226-132.adsl2.avtel.net wrote:

> > > encryptwithmdc( <plaintext packet>, <mdc packet> )
> 
> (Note that what I showed here as "<plaintext packet>" could actually
> be multiple packets long.  It would be better described as an "<OpenPGP
> Message>" in the syntax of section 10.2 of RFC2440.)
> 
> If we did go with something like this, how would we handle the hashing
> of the packet headers on the mdc packet?  They should probably be hashed
> too, don't you think?
> 
> The simplest case from my point of view would be that we hash all the
> encrypted material except for the last 20 bytes (assuming we settle on
> a SHA-1 hash).

You probably would have the entire MDC packet in the buffer, so you could
use the prefix MDC as a sort of initial text to the hash function.

And also hash the beginning of the MDC value packet.  It would end up with
the final 20 bytes at the end, so it should work almost transparently.

One note, that it could mean hashing the packet content at this level
including the CTB bytes.  I would rather not hash the CTB, or hash a
"normalized" CTB sort of the way keys are prefixed with 99 hh ll for their
signature hash.



From owner-ietf-open-pgp@imc.org  Mon May 17 04:58:27 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA15890
	for <openpgp-archive@odin.ietf.org>; Mon, 17 May 1999 04:58:26 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id AAA11318
	for ietf-open-pgp-bks; Mon, 17 May 1999 00:51:26 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA11314
	for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 00:51:24 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id JAA28138
	for ietf-open-pgp@imc.org; Mon, 17 May 1999 09:51:02 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10jHwn-0004JQ-00; Mon, 17 May 1999 09:36:25 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10jHsu-0003UM-00; Mon, 17 May 1999 09:32:24 +0200
Date: Mon, 17 May 1999 09:32:24 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990517093224.D1057@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905120010.RAA03421@226-132.adsl2.avtel.net> <99May12.152725edt.42114@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May12.152725edt.42114@brickwall.ceddec.com>; from Tom Zerucha on Wed, May 12, 1999 at 03:27:42PM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha <dontspam-tzeruch@ceddec.com> writes:

> Does GPG have any plans on allowing MDCs with the other algorithms?  Other
> hash algorithms besides SHA1?

I'd like to allow RIPE-MD160 if somewone wants to do this.  There is
already the option to use DSA with RIPE.  And we have these
identifiers all over the place.

> But I don't have any objections to a new MDC-only packet, especially if it
> has a "MDC follows" prefix packet.

The one-pass signature packet can be used for this.


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013




From owner-ietf-open-pgp@imc.org  Mon May 17 10:13:58 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA25843
	for <openpgp-archive@odin.ietf.org>; Mon, 17 May 1999 10:13:57 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA15840
	for ietf-open-pgp-bks; Mon, 17 May 1999 06:18:48 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA15836
	for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 06:18:30 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id PAA08363
	for ietf-open-pgp@imc.org; Mon, 17 May 1999 15:17:57 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10jNFd-0004SI-00; Mon, 17 May 1999 15:16:13 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10jNBo-0003lm-00; Mon, 17 May 1999 15:12:16 +0200
Date: Mon, 17 May 1999 15:12:16 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: MDCs and PGP 6.5.1b15
Message-ID: <19990517151216.D14316@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Hi,

I think I found a reason why NAI argues against MDCs in signature
packets.  There is a key which caused some key servers to crash and
it seems that this one has been created by a new PGP version.  The
key looks like this:

:public key packet:
        version 3, algo 1, created 838857600, expires 0
        pkey[0]: [1024 bits]
        pkey[1]: [17 bits]
:user id packet: "Thawte Server CA <server-certs@thawte.com>"
:signature packet: algo 0, keyid 0000000000000000
        version 4, created 0, md5len 0, sigclass 10
        digest algo 1, begin of digest 00 00
        hashed subpkt 2 len 5 (sig created 1996-08-01)
        hashed subpkt 3 len 5 (sig expires after 24y158d23h59m)
        hashed subpkt 5 len 3 (trust signature)
        hashed subpkt 100 len 795 (?)
        unknown algorithm 0
  
So we have all the stuff Tom proposed for MDCs in signature packets:
keyid of zero and a public key algorithm identifier of zero.  The
private subpacket with id 100 maybe a X509 certificate - I have not
analyzed it.

If this has really been created by PGP, why didn't tell NAI us about
it?  

Tom, what about changing your MDC to use a unhashed subpacket for the
MDC instead of an MPI?  I think this will be a much nicer solution and
I wonder why we didn't came up with this earlier.



-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP 6.5.1b15
Comment: Digital Signatures ensure message authenticity

mQCPAzH/84AAAAEEANOkUG7I/1Zr5s9dtuoMaHVHoqrC2oQl/Kj0R1HahbUgdJSG
Hg91yekIYfUGbTBuFRkC6VLAYttNmZ7iagxEOM3+vuNkCXDF/rFrKbYvScg71CcE
JRCXL+eQbcAoQpnXTEPew/UhbVSfXcNY4cDk2VuwuNy0e982OsK1ZiIS1ocNABEB
AAG0KlRoYXd0ZSBTZXJ2ZXIgQ0EgPHNlcnZlci1jZXJ0c0B0aGF3dGUuY29tPokD
OgQQAAEDLQUCMf/zgAUDLe5yfwMF/3jCW2QBAQMwggMTMIICfKADAgECAgEBMA0G
CSqGSIb3DQEBBAUAMIHEMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBD
YXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xHTAbBgNVBAoTFFRoYXd0ZSBDb25zdWx0
aW5nIGNjMSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9u
MRkwFwYDVQQDExBUaGF3dGUgU2VydmVyIENBMSYwJAYJKoZIhvcNAQkBFhdzZXJ2
ZXItY2VydHNAdGhhd3RlLmNvbTAeFw05NjA4MDEwMDAwMDBaFw0yMDEyMzEyMzU5
NTlaMIHEMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRIwEAYD
VQQHEwlDYXBlIFRvd24xHTAbBgNVBAoTFFRoYXd0ZSBDb25zdWx0aW5nIGNjMSgw
JgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9uMRkwFwYDVQQD
ExBUaGF3dGUgU2VydmVyIENBMSYwJAYJKoZIhvcNAQkBFhdzZXJ2ZXItY2VydHNA
dGhhd3RlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA06RQbsj/Vmvm
z1226gxodUeiqsLahCX8qPRHUdqFtSB0lIYeD3XJ6Qhh9QZtMG4VGQLpUsBi202Z
nuJqDEQ4zf6+42QJcMX+sWspti9JyDvUJwQlEJcv55BtwChCmddMQ97D9SFtVJ9d
w1jhwOTZW7C43LR73zY6wrVmIhLWhw0CAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB
/zANBgkqhkiG9w0BAQQFAAOBgQAH+kxpXPuVzEbuhYNNITCOytmob0ka5tpR42Bw
bIRhEaEayEg+WUN9T5U9oYu3C2KYenWK3YhOTp5A26jMMnS5bw3G47NEC9mKb5op
m5kYKDvR40Aomlo81bXnIBuLyqSrjelR2eJMLFmp2rmydRv2QvLvx/IY+Ym8o/+K
Iy5wRwAAAAAAAQE=
=I22I
-----END PGP PUBLIC KEY BLOCK-----

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Mon May 17 13:57:06 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA02379
	for <openpgp-archive@odin.ietf.org>; Mon, 17 May 1999 13:57:05 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA17306
	for ietf-open-pgp-bks; Mon, 17 May 1999 09:36:31 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA17302
	for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 09:36:29 -0700 (PDT)
Received: (from hal@localhost)
	by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id JAA24984;
	Mon, 17 May 1999 09:36:24 -0700
Date: Mon, 17 May 1999 09:36:24 -0700
From: hal@rain.org
Message-Id: <199905171636.JAA24984@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: MDCs and PGP 6.5.1b15
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

> I think I found a reason why NAI argues against MDCs in signature
> packets.

No, that has nothing to do with why we feel that MDCs should be
associated with encryption packets.  MDCs are not signatures and are not
syntactically replaceable with signatures.  They do not have the same
semantics as signatures and should not be put into signature packets.
Digital signatures are a well defined cryptographic concept and we have a
packet for that purpose.  MDCs are a different cryptographic entity and
they should go into different packets.  MDCs only work in the context
of an encryption envelope and so they should be associated with an
encryption context.

> There is a key which caused some key servers to crash and
> it seems that this one has been created by a new PGP version.  The
> key looks like this:
>
> :public key packet:
>         version 3, algo 1, created 838857600, expires 0
>         pkey[0]: [1024 bits]
>         pkey[1]: [17 bits]
> :user id packet: "Thawte Server CA <server-certs@thawte.com>"
> :signature packet: algo 0, keyid 0000000000000000
>         version 4, created 0, md5len 0, sigclass 10
>         digest algo 1, begin of digest 00 00
>         hashed subpkt 2 len 5 (sig created 1996-08-01)
>         hashed subpkt 3 len 5 (sig expires after 24y158d23h59m)
>         hashed subpkt 5 len 3 (trust signature)
>         hashed subpkt 100 len 795 (?)
>         unknown algorithm 0

I will post information shortly with the formats of this PRIVATE signature
subpacket, which does hold an X.509 certificate.  The picture above is
inaccurate in one respect; it does not have a keyid of 0, rather there
is no keyid subpacket.  X.509 certs use a different method to link
issuing keys to signatures, and a keyid cannot meaningfully be used in
this context.

> So we have all the stuff Tom proposed for MDCs in signature packets:
> keyid of zero and a public key algorithm identifier of zero.  The
> private subpacket with id 100 maybe a X509 certificate - I have not
> analyzed it.

It differs from Tom's proposal in several ways, not least because the
signature class of 0x10 indicates that it is a key certificate signature
and not a message signature as the MDC would presumably be.  We use a
PK alg of zero because the certificate validation has to be done using
special X.509 rules.

> If this has really been created by PGP, why didn't tell NAI us about
> it?  

It uses a private subpacket.  That's what the private subpacket is for,
so that vendors can extend the standard for their own uses.

> Tom, what about changing your MDC to use a unhashed subpacket for the
> MDC instead of an MPI?  I think this will be a much nicer solution and
> I wonder why we didn't came up with this earlier.

This would not address the other problems with using a signature packet
for this purpose.

Hal Finney
Network Associates, Inc.


From owner-ietf-open-pgp@imc.org  Mon May 17 20:26:16 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA05600
	for <openpgp-archive@odin.ietf.org>; Mon, 17 May 1999 20:26:15 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA21247
	for ietf-open-pgp-bks; Mon, 17 May 1999 16:42:29 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA21243
	for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 16:42:28 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Mon, 17 May 1999 19:41:53 -0400
Date: Mon, 17 May 1999 19:41:53 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: Werner Koch <wk@isil.d.shuttle.de>
cc: ietf-open-pgp@imc.org
Subject: Re: MDCs and PGP 6.5.1b15
In-Reply-To: <19990517151216.D14316@frodo.isil.d.shuttle.de>
Message-Id: <99May17.194153edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Mon, 17 May 1999, Werner Koch wrote:

[key stuff deleted]

It may be a rogue version - and although I never sent any such keys to any
PGP server, I did experiment with using the X509 output capabilities of
openssl (so you could use a PGP key in an X509 routine, and vice versa).

> Tom, what about changing your MDC to use a unhashed subpacket for the
> MDC instead of an MPI?  I think this will be a much nicer solution and
> I wonder why we didn't came up with this earlier.

That would also work - I would have to put in the logic earlier, but then
the signature test logic wouldn't have the zero algorithm there.

We just need an unhashed packet ID



From owner-ietf-open-pgp@imc.org  Mon May 17 20:58:55 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA05733
	for <openpgp-archive@odin.ietf.org>; Mon, 17 May 1999 20:58:54 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA21589
	for ietf-open-pgp-bks; Mon, 17 May 1999 17:19:28 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA21585
	for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 17:19:27 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Mon, 17 May 1999 20:19:00 -0400
Date: Mon, 17 May 1999 20:19:03 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: hal@rain.org
cc: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: MDCs and PGP 6.5.1b15
In-Reply-To: <199905171636.JAA24984@226-132.adsl2.avtel.net>
Message-Id: <99May17.201900edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Mon, 17 May 1999 hal@rain.org wrote:

> MDCs are a different cryptographic entity and they should go into
> different packets.

As an aside, the first does not imply the second.  The spec does not state
that packets map to cryptographic entities (though it ends up this way for
the most part).  And I think the 1-pass signature prefix packet uses a
different packet type number although it is functionally part of the
trailing signature.

Then again, the new encryption scheme is the same type of cryptographic
entity so then should use the same packet as the existing encryption.

> MDCs only work in the context of an encryption envelope and so they
> should be associated with an encryption context.

True, but the question is where or how the association happens.  Do we put
a post-it on the document or on the inside of the envelope, or use glue
or write directly on the document.

> I will post information shortly with the formats of this PRIVATE signature
> subpacket, which does hold an X.509 certificate.  The picture above is
> inaccurate in one respect; it does not have a keyid of 0, rather there
> is no keyid subpacket.  X.509 certs use a different method to link
> issuing keys to signatures, and a keyid cannot meaningfully be used in
> this context.

A PGP key ID is derivable from an X.509 cert.  If you use openssl to fill
a key structure with the appropriate information and pass that to one of
my routines it will derive the corresponding ID as if the X.509 key
material was a PGP key. (goodies/x509topk.c)

> > If this has really been created by PGP, why didn't tell NAI us about
> > it?  
> 
> It uses a private subpacket.  That's what the private subpacket is for,
> so that vendors can extend the standard for their own uses.

Does it violate other rules about the signature packet?  The spec does not
allow for a signature without one (RSA) or two (DSA or even ElGamal) MPI
integers (unless you are using a private, experimental PK algorithm), plus
you need the all the hash stuff in their places.

Stuff all the private packets you want there, but the rest of the rules
about what MUST be there and the valid ID numbers still apply (0 is not
valid for a private, experimental PK algorithm).

I don't know about this particular signature packet or extension, but I
would hope you aren't violating any part of the existing spec with this
addition.



From owner-ietf-open-pgp@imc.org  Mon May 17 23:36:20 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA08881
	for <openpgp-archive@odin.ietf.org>; Mon, 17 May 1999 23:36:19 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id TAA01205
	for ietf-open-pgp-bks; Mon, 17 May 1999 19:50:40 -0700 (PDT)
Received: from domains.invweb.net (root@domains.invweb.net [198.182.196.32])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id TAA01197
	for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 19:50:39 -0700 (PDT)
Received: from 100.100.100.1 (IDENT:root@openpgp.net [199.184.252.29])
	by domains.invweb.net (8.9.1/8.9.1) with SMTP id WAA06464;
	Mon, 17 May 1999 22:50:00 -0400
Message-Id: <199905180250.WAA06464@domains.invweb.net>
From: "William H. Geiger III" <whgiii@openpgp.net>
Date: Mon, 17 May 1999 22:35:22 -0400
To: Tom Zerucha <tzeruch@ceddec.com>
In-Reply-To: <99May17.201900edt.42114@brickwall.ceddec.com>
Cc: hal@rain.org, ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: MDCs and PGP 6.5.1b15
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

In <99May17.201900edt.42114@brickwall.ceddec.com>, on 05/17/99 
   at 07:19 PM, Tom Zerucha <tzeruch@ceddec.com> said:

>I don't know about this particular signature packet or extension, but I
>would hope you aren't violating any part of the existing spec with this
>addition.

I had done a detailed analysis of this key for the PGP-Keyserver Operators
group this weekend (I can post here if desired). IMHO the signature looks
foobared and violates several aspects of RFC 2440. I don't mind creating a
method to convert X.509 stuff to OpenPGP, I don't even mind the X.509
certs being encapsulated in a hashed subpacket. But if we are going to do
all this the end result should be a valid OpenPGP Key that contains the
following 3 elements:

Valid OpenPGP Public Key Packet
Valid OpenPGP UserID Packet
Valid OpenPGP SelfSignature

I don't think that the X.509 packet alone should qualify as a valid
SelfSignature but instead during the conversion process a OpenPGP
SelfSignature should be generated. Of course this would require that a
corresponding OpenPGP secret key be generated during the conversion
process. Otherwise I really don't see the point of going through the
conversion process at all.


-- 
---------------------------------------------------------------
William H. Geiger III  http://www.openpgp.net
Geiger Consulting    Cooking With Warp 4.0

Author of E-Secure - PGP Front End for MR/2 Ice
PGP & MR/2 the only way for secure e-mail.
OS/2 PGP 5.0 at: http://www.openpgp.net/pgp.html
Talk About PGP on IRC EFNet Channel: #pgp Nick: whgiii

Hi Jeff!! :)
---------------------------------------------------------------



From owner-ietf-open-pgp@imc.org  Tue May 18 01:13:59 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA10825
	for <openpgp-archive@odin.ietf.org>; Tue, 18 May 1999 01:13:58 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id VAA13978
	for ietf-open-pgp-bks; Mon, 17 May 1999 21:30:07 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id VAA13971
	for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 21:30:06 -0700 (PDT)
Received: (from hal@localhost)
	by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id VAA27241;
	Mon, 17 May 1999 21:29:58 -0700
Date: Mon, 17 May 1999 21:29:58 -0700
From: hal@rain.org
Message-Id: <199905180429.VAA27241@226-132.adsl2.avtel.net>
To: tzeruch@ceddec.com, whgiii@openpgp.net
Subject: Re: MDCs and PGP 6.5.1b15
Cc: hal@rain.org, ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

William H. Geiger III, <whgiii@openpgp.net>, writes:
> I had done a detailed analysis of this key for the PGP-Keyserver Operators
> group this weekend (I can post here if desired).

Yes, that would be useful to see.

> IMHO the signature looks
> foobared and violates several aspects of RFC 2440. I don't mind creating a
> method to convert X.509 stuff to OpenPGP, I don't even mind the X.509
> certs being encapsulated in a hashed subpacket. But if we are going to do
> all this the end result should be a valid OpenPGP Key that contains the
> following 3 elements:
>
> Valid OpenPGP Public Key Packet
> Valid OpenPGP UserID Packet
> Valid OpenPGP SelfSignature
>
> I don't think that the X.509 packet alone should qualify as a valid
> SelfSignature but instead during the conversion process a OpenPGP
> SelfSignature should be generated. Of course this would require that a
> corresponding OpenPGP secret key be generated during the conversion
> process. Otherwise I really don't see the point of going through the
> conversion process at all.

Most of the time there is no secret key available because the signature
is made by someone other than the person importing the key.  That is
the typical case for an X.509 certificate.  In that case there is no
possibility of creating an equivalent PGP secret key because the secret
key material is not available.

I don't see the X.509 support in PGP 6.5 as something which will be part
of the OpenPGP standard.  X.509 is a complex data format and most PGP
implementations should not have to carry the burden of adding a full X.509
library just to support OpenPGP.  The intention is that X.509 certificates
will get turned into signature packets which other implementations can
ignore without difficulty.  This is done most directly by giving it an
unused public key algorithm, so that no implementations will attempt
to verify the signature.  I used zero, but we could use 100 if that
would help.  Implementations need to be able to handle unrecognized
public key algorithms, even those which are not defined in the current
OpenPGP standard.

I can make changes for version 6.5.1 which will come out in a few weeks
(bug fix version) to address problems which are tripping up current
implementations.

Hal Finney
Network Associates, Inc.


From owner-ietf-open-pgp@imc.org  Tue May 18 04:01:22 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA23143
	for <openpgp-archive@odin.ietf.org>; Tue, 18 May 1999 04:01:21 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id AAA25101
	for ietf-open-pgp-bks; Tue, 18 May 1999 00:21:40 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA25097
	for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 00:21:27 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id JAA22957
	for ietf-open-pgp@imc.org; Tue, 18 May 1999 09:21:17 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10je71-00050g-00; Tue, 18 May 1999 09:16:27 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10je3M-0004zk-00; Tue, 18 May 1999 09:12:40 +0200
Date: Tue, 18 May 1999 09:12:40 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: MDCs and PGP 6.5.1b15
Message-ID: <19990518091240.E19134@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <99May17.201900edt.42114@brickwall.ceddec.com> <199905180250.WAA06464@domains.invweb.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <199905180250.WAA06464@domains.invweb.net>; from William H. Geiger III on Mon, May 17, 1999 at 10:35:22PM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

"William H. Geiger III" <whgiii@openpgp.net> writes:

> I don't think that the X.509 packet alone should qualify as a valid
> SelfSignature but instead during the conversion process a OpenPGP

We should not discuss the contents of private packets here.  I mailed
this only as an explanation why we mighgt have those problems with the
signature packets.  And becuase the public key algo 0 violates the
RFC, we should only dicusss, whether it might make sense to allow such 
an extension.  


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Tue May 18 04:37:05 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA23310
	for <openpgp-archive@odin.ietf.org>; Tue, 18 May 1999 04:37:05 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id AAA26188
	for ietf-open-pgp-bks; Tue, 18 May 1999 00:51:33 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA26182
	for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 00:51:28 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id JAA26976
	for ietf-open-pgp@imc.org; Tue, 18 May 1999 09:51:11 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10jeJT-000518-00; Tue, 18 May 1999 09:29:19 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10jeFo-0004zv-00; Tue, 18 May 1999 09:25:32 +0200
Date: Tue, 18 May 1999 09:25:32 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: MDCs and PGP 6.5.1b15
Message-ID: <19990518092532.F19134@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905180429.VAA27241@226-132.adsl2.avtel.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <199905180429.VAA27241@226-132.adsl2.avtel.net>; from hal@rain.org on Mon, May 17, 1999 at 09:29:58PM -0700
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

hal@rain.org writes:

> unused public key algorithm, so that no implementations will attempt
> to verify the signature.  I used zero, but we could use 100 if that

So what about this small change:


5.2.3. Version 4 Signature Packet Format

   The body of a version 4 Signature Packet contains:

     - One-octet version number (4).

     - One-octet signature type.

|    - One-octet public key algorithm or a value of zero to indicate
|      that no multi-precision integers follow.

     - One-octet hash algorithm.

     - Two-octet scalar octet count for following hashed subpacket
       data. Note that this is the length in octets of all of the hashed
       subpackets; a pointer incremented by this number will skip over
       the hashed subpackets.

     - Hashed subpacket data. (zero or more subpackets)

     - Two-octet scalar octet count for following unhashed subpacket
       data. Note that this is the length in octets of all of the
       unhashed subpackets; a pointer incremented by this number will
       skip over the unhashed subpackets.

     - Unhashed subpacket data. (zero or more subpackets)

     - Two-octet field holding left 16 bits of signed hash value.

|    - Zero or more multi-precision integers comprising the signature.
|      This portion is algorithm specific, as described above.



-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Tue May 18 10:30:31 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA05294
	for <openpgp-archive@odin.ietf.org>; Tue, 18 May 1999 10:30:29 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA07246
	for ietf-open-pgp-bks; Tue, 18 May 1999 06:31:05 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA07242
	for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 06:31:04 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Tue, 18 May 1999 09:30:44 -0400
Date: Tue, 18 May 1999 09:30:57 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: hal@rain.org
cc: whgiii@openpgp.net, ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: MDCs and PGP 6.5.1b15
In-Reply-To: <199905180429.VAA27241@226-132.adsl2.avtel.net>
Message-Id: <99May18.093044edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Tue, 18 May 1999 hal@rain.org wrote:

> Most of the time there is no secret key available because the signature
> is made by someone other than the person importing the key.  That is
> the typical case for an X.509 certificate.  In that case there is no
> possibility of creating an equivalent PGP secret key because the secret
> key material is not available.

I am missing something here.  You would need the PUBLIC key to validate
the signature.  These are available within the X509 certificate, so you
could use them to come up with a valid PGP signature over the PGP
signature packet (if you own the X509 cert - if you don't you can't vouch
for the validity or would use a PGP key to sign it).

> I don't see the X.509 support in PGP 6.5 as something which will be part
> of the OpenPGP standard.  X.509 is a complex data format and most PGP
> implementations should not have to carry the burden of adding a full X.509
> library just to support OpenPGP.  The intention is that X.509 certificates
> will get turned into signature packets which other implementations can
> ignore without difficulty.  This is done most directly by giving it an
> unused public key algorithm, so that no implementations will attempt
> to verify the signature.  I used zero, but we could use 100 if that
> would help.  Implementations need to be able to handle unrecognized
> public key algorithms, even those which are not defined in the current
> OpenPGP standard.

Unused or "private".  And it doesn't make sense to treat an X.509 RSA key
as not-an-RSA-key, and the same with DSA.  If you are going to use X.509
keys you can pull them into the PGP infrastructure.  And if you have any
secure web browser, you have an X.509 implementation.

It would be better to call this a version 5 signature packet.

And the issue of X.509 being a MAY / SHOULD is different from how it
should be implemented if it exists.  If OpenPGP MAY support X.509, the
details should be discussed here.

> I can make changes for version 6.5.1 which will come out in a few weeks
> (bug fix version) to address problems which are tripping up current
> implementations.

So my implementation (which has an X.509 implmentation in the same library
as the rest of the crypto) should easily work with what you are doing?




From owner-ietf-open-pgp@imc.org  Tue May 18 11:46:45 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA09419
	for <openpgp-archive@odin.ietf.org>; Tue, 18 May 1999 11:46:44 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA09305
	for ietf-open-pgp-bks; Tue, 18 May 1999 07:45:09 -0700 (PDT)
Received: from domains.invweb.net (root@domains.invweb.net [198.182.196.32])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA09300
	for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 07:45:07 -0700 (PDT)
Received: from 100.100.100.1 (IDENT:root@openpgp.net [199.184.252.29])
	by domains.invweb.net (8.9.1/8.9.1) with SMTP id KAA16139;
	Tue, 18 May 1999 10:44:35 -0400
Message-Id: <199905181444.KAA16139@domains.invweb.net>
From: "William H. Geiger III" <whgiii@openpgp.net>
Date: Tue, 18 May 1999 08:39:23 -0400
To: hal@rain.org
In-Reply-To: <199905180429.VAA27241@226-132.adsl2.avtel.net>
Cc: tzeruch@ceddec.com, hal@rain.org, ietf-open-pgp@imc.org,
        wk@isil.d.shuttle.de
Subject: Re: MDCs and PGP 6.5.1b15
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

In <199905180429.VAA27241@226-132.adsl2.avtel.net>, on 05/17/99 
   at 11:29 PM, hal@rain.org said:

>> IMHO the signature looks
>> foobared and violates several aspects of RFC 2440. I don't mind creating a
>> method to convert X.509 stuff to OpenPGP, I don't even mind the X.509
>> certs being encapsulated in a hashed subpacket. But if we are going to do
>> all this the end result should be a valid OpenPGP Key that contains the
>> following 3 elements:
>>
>> Valid OpenPGP Public Key Packet
>> Valid OpenPGP UserID Packet
>> Valid OpenPGP SelfSignature
>>
>> I don't think that the X.509 packet alone should qualify as a valid
>> SelfSignature but instead during the conversion process a OpenPGP
>> SelfSignature should be generated. Of course this would require that a
>> corresponding OpenPGP secret key be generated during the conversion
>> process. Otherwise I really don't see the point of going through the
>> conversion process at all.

>Most of the time there is no secret key available because the signature
>is made by someone other than the person importing the key.  That is the
>typical case for an X.509 certificate.  In that case there is no
>possibility of creating an equivalent PGP secret key because the secret
>key material is not available.

Ok, I see your point here. If the secret key material is not available
during import then I think we should flag the entire key with a new public
key type. My reason for doing this is so standard OpenPGP implementations
know not to use the key as they are unable to verify that it is valid or
not. By adding a new key type it will allow for faster processing as
implementations can make a decision what to do with the key at the
begining of processing rather than waiting until they are done processing
the signature block.

>I don't see the X.509 support in PGP 6.5 as something which will be part
>of the OpenPGP standard.  X.509 is a complex data format and most PGP
>implementations should not have to carry the burden of adding a full
>X.509 library just to support OpenPGP.  The intention is that X.509
>certificates will get turned into signature packets which other
>implementations can ignore without difficulty.

No problem with that. Actually I like it. I do wonder how much of an
advantage it is to import a X.509 public key into OpenPGP format unless
the corresponding secret key can also be converted. It may be simpler in
such cases to leave them in X.509 format and for PGP to have a separate
database to store the keys. If you think about it, no OpenPGP
implementation is going to be able to make use of these keys unless they
have X.509 support built in:

-- Can't use the key to verify signatures as only X.509 certs are going to
be generated from this key pair.

-- Can't use the key for encryption (or at least they should not) as there
is no way to verify or authenticate the key without X.509 capabilities.

In cases where you have a valid OpenPGP key with a mix of X.509 & OpenPGP
signatures on it (I imagine that this is your eventual goal here) I think
that processing would go a lot smother if we had a new signature type for
these converted X.509 sigs. OpenPGP implementations without X.509 support
could then just skip over these sigs during their processing of the key.


>This is done most
>directly by giving it an unused public key algorithm, so that no
>implementations will attempt to verify the signature.  I used zero, but
>we could use 100 if that would help.  Implementations need to be able to
>handle unrecognized public key algorithms, even those which are not
>defined in the current OpenPGP standard.

According to the RFC a 0 algorithm is an invalid number. IMHO 100 would be
better as it lets the processor know that he is dealing with a
private/experimental packet rather than thinking that the signature had
somehow been damaged (my first impression looking at the key this
weekend). You are correct though, no code should core dump because of the
key in question (IMHO core dumps because of input data is poor design). 

>I can make changes for version 6.5.1 which will come out in a few weeks
>(bug fix version) to address problems which are tripping up current
>implementations.

Do you know exactly what is triggering the problem? I sent my analysis to
the keyserver list but I haven't heard anything back yet. Other than
changing the algorithm to 100 and my recommendations for a new public key
& sig types I didn't see anything that is a major problem in the format
(my code didn't have any problems with it). IMHO the keyserver folks need
to do some cleanup of their code. :)

-- 
---------------------------------------------------------------
William H. Geiger III  http://www.openpgp.net
Geiger Consulting    Cooking With Warp 4.0

Author of E-Secure - PGP Front End for MR/2 Ice
PGP & MR/2 the only way for secure e-mail.
OS/2 PGP 5.0 at: http://www.openpgp.net/pgp.html
Talk About PGP on IRC EFNet Channel: #pgp Nick: whgiii

Hi Jeff!! :)
---------------------------------------------------------------



From owner-ietf-open-pgp@imc.org  Tue May 18 12:29:33 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA10852
	for <openpgp-archive@odin.ietf.org>; Tue, 18 May 1999 12:29:32 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA10807
	for ietf-open-pgp-bks; Tue, 18 May 1999 08:22:16 -0700 (PDT)
Received: from domains.invweb.net (root@domains.invweb.net [198.182.196.32])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA10803
	for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 08:22:15 -0700 (PDT)
Received: from 100.100.100.1 (IDENT:root@openpgp.net [199.184.252.29])
	by domains.invweb.net (8.9.1/8.9.1) with SMTP id LAA16924;
	Tue, 18 May 1999 11:21:29 -0400
Message-Id: <199905181521.LAA16924@domains.invweb.net>
From: "William H. Geiger III" <whgiii@openpgp.net>
Date: Tue, 18 May 1999 11:21:52 -0400
To: tzeruch@ceddec.com, hal@rain.org, ietf-open-pgp@imc.org,
        wk@isil.d.shuttle.de
In-Reply-To: <9905141503.AA04090@h2np.suginami.tokyo.jp>
Subject: Re: PGP 6.5
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>


In <9905141503.AA04090@h2np.suginami.tokyo.jp>, on 05/14/99 
   at 10:03 AM, Hironobu Suzuki <hironobu@h2np.suginami.tokyo.jp> said:


>> If you send me a copy of the key I can analyze it for you.

>Thanks. I'll send you it.

Hi,

I have done a partial analysis of the key. It should be noted that this is
not a key generated by PGP 6.5.x but it has been processed by it. The key
in question was generated & signed 1996-08-01, and it is a RSA public key.
The error is in the self signature which has a signature algorithm of '00'
which is an undefined and illegal value for a public key algorithm. Some
of the other signature items look questionable. I am not sure why a bad
signature would cause the servers to crash, it should not (I am not even
sure why a signature would affect the server at all).


I did a search on the Public Key Servers and could not find this key
(keyID 0x12D6870D) on any of them (or for that matter any PGP key for
<server-certs@thawte.com>). I did find a copy of this key on the NAI's
LDAP server. 

As a side note:

There seems to be a problem with the LDAP search engine. A search of the
server by userID parameter of: server-certs@thawte.com does not find the
above key. A search by exact keyID does find the key.

A second side note:

I have my doubts about Thawte. I could not find their PGP key anywhere on
their site. In addition to this their SSL cert for their webpages expired
in '96 !!! This does not lend confidence to a CA, IMNSHO.

-- 

Analysis of the key follows:

 Public Key Block:
 =================

 99          -- 1 0 0110 01 : Old format, Public Key, Next 2 octets Length
 00 8F       -- Length 143 octets
 03          -- Version 3
 31 FF F3 80 -- Creation Date: 1 Aug 1996
 00 00       -- Expiration Date: Never
 01          -- Public Key Algorithm: RSA
 04 -> 0D    -- MPI #1 Public Modulus n
 04 00       -- MPI #1 Length 130 octets (128 + 2 length octets)
 00 -> 01    -- MPI #2 Exponent e 
 00 11       -- MPI #2 Length 5 octets (3 + 2 length octets)

 64 Bit KeyID:  C2 B5 66 22 12 D6 87 0D
 32 Bit KeyID:  12 D6 87 0D

 Raw Data Block:

 99 00 8F 03 31 FF F3 80 00 00 01 04 00 D3 A4 50
 6E C8 FF 56 6B E6 CF 5D B6 EA 0C 68 75 47 A2 AA
 C2 DA 84 25 FC A8 F4 47 51 DA 85 B5 20 74 94 86
 1E 0F 75 C9 E9 08 61 F5 06 6D 30 6E 15 19 02 E9
 52 C0 62 DB 4D 99 9E E2 6A 0C 44 38 CD FE BE E3
 64 09 70 C5 FE B1 6B 29 B6 2F 49 C8 3B D4 27 04
 25 10 97 2F E7 90 6D C0 28 42 99 D7 4C 43 DE C3
 F5 21 6D 54 9F 5D C3 58 E1 C0 E4 D9 5B B0 B8 DC
 B4 7B DF 36 3A C2 B5 66 22 12 D6 87 0D 00 11 01
 00 01 



 UserID Block:
 =============

 B4       -- 1 0 1101 00 : Old format, UserID Key, Next octet length
 2A       -- Length 42 octets
 54 -> 3E -- UserID
 
 UserID: Thawte Server CA <server-certs@thawte.com> 

 Raw Data:

 B4 2A 54 68 61-77 74 65-20 53 65 72 76 65
 72 20 43 41 20 3C 73 65-72 76 65 72 2D 63 65 72
 74 73 40 74 68 61 77 74-65 2E 63 6F 6D 3E 


 Signature Block:
 ================

 89        -- 1 0 0010 01 : Old format, Signature, Next 2 octets length
 03 3A     -- Length 826 octets
 04        -- Version 4 signature
 10        -- Signature on PubKey & UserID
 00        -- Public Key Algorithm 0 <=== ERROR!!!
 01        -- MD5 Hash
 03 2D     -- Hashed SubPacket Length 813 octets
 05 -> 47  -- Hashed SubPacket Data
 00 00     -- Unhashed SubPacket Length 0 octets
 00 00     -- Left 16 bits signed hash value
 00 01     -- MPI #1 length 3 octets (1 + 2 length octets)
 01        -- MPI #1 RSA signature value m**d
 

 Hashed SubPacket Data:

 05           -- Length 5 octets
 02           -- Type: Creation Date
 31 FF F3 80  -- 1 Aug 1996
 
 05           -- Length 5 octets
 03           -- Type: Expiration Date
 2D EE 72 7F  --

 03           -- Length 3
 05           -- Type: Trust Signature
 FF 78        -- Trust Level 255, Trust Amount 120 (complete)

 C2 5B        -- Length 795
 64           -- Type: Unknown [100] Internal Use


 Raw Data:

 89 03
 3A 04 10 00 01 03 2D 05-02 31 FF F3 80 05 03 2D
 EE 72 7F 03 05 FF 78 C2-5B 64 01 01 03 30 82 03
 13 30 82 02 7C A0 03 02-01 02 02 01 01 30 0D 06
 09 2A 86 48 86 F7 0D 01-01 04 05 00 30 81 C4 31
 0B 30 09 06 03 55 04 06-13 02 5A 41 31 15 30 13
 06 03 55 04 08 13 0C 57-65 73 74 65 72 6E 20 43
 61 70 65 31 12 30 10 06-03 55 04 07 13 09 43 61
 70 65 20 54 6F 77 6E 31-1D 30 1B 06 03 55 04 0A
 13 14 54 68 61 77 74 65-20 43 6F 6E 73 75 6C 74
 69 6E 67 20 63 63 31 28-30 26 06 03 55 04 0B 13
 1F 43 65 72 74 69 66 69-63 61 74 69 6F 6E 20 53
 65 72 76 69 63 65 73 20-44 69 76 69 73 69 6F 6E
 31 19 30 17 06 03 55 04-03 13 10 54 68 61 77 74
 65 20 53 65 72 76 65 72-20 43 41 31 26 30 24 06
 09 2A 86 48 86 F7 0D 01-09 01 16 17 73 65 72 76
 65 72 2D 63 65 72 74 73-40 74 68 61 77 74 65 2E
 63 6F 6D 30 1E 17 0D 39-36 30 38 30 31 30 30 30
 30 30 30 5A 17 0D 32 30-31 32 33 31 32 33 35 39
 35 39 5A 30 81 C4 31 0B-30 09 06 03 55 04 06 13
 02 5A 41 31 15 30 13 06-03 55 04 08 13 0C 57 65
 73 74 65 72 6E 20 43 61-70 65 31 12 30 10 06 03
 55 04 07 13 09 43 61 70-65 20 54 6F 77 6E 31 1D
 30 1B 06 03 55 04 0A 13-14 54 68 61 77 74 65 20
 43 6F 6E 73 75 6C 74 69-6E 67 20 63 63 31 28 30
 26 06 03 55 04 0B 13 1F-43 65 72 74 69 66 69 63
 61 74 69 6F 6E 20 53 65-72 76 69 63 65 73 20 44
 69 76 69 73 69 6F 6E 31-19 30 17 06 03 55 04 03
 13 10 54 68 61 77 74 65-20 53 65 72 76 65 72 20
 43 41 31 26 30 24 06 09-2A 86 48 86 F7 0D 01 09
 01 16 17 73 65 72 76 65-72 2D 63 65 72 74 73 40
 74 68 61 77 74 65 2E 63-6F 6D 30 81 9F 30 0D 06
 09 2A 86 48 86 F7 0D 01-01 01 05 00 03 81 8D 00
 30 81 89 02 81 81 00 D3-A4 50 6E C8 FF 56 6B E6
 CF 5D B6 EA 0C 68 75 47-A2 AA C2 DA 84 25 FC A8
 F4 47 51 DA 85 B5 20 74-94 86 1E 0F 75 C9 E9 08
 61 F5 06 6D 30 6E 15 19-02 E9 52 C0 62 DB 4D 99
 9E E2 6A 0C 44 38 CD FE-BE E3 64 09 70 C5 FE B1
 6B 29 B6 2F 49 C8 3B D4-27 04 25 10 97 2F E7 90
 6D C0 28 42 99 D7 4C 43-DE C3 F5 21 6D 54 9F 5D
 C3 58 E1 C0 E4 D9 5B B0-B8 DC B4 7B DF 36 3A C2
 B5 66 22 12 D6 87 0D 02-03 01 00 01 A3 13 30 11
 30 0F 06 03 55 1D 13 01-01 FF 04 05 30 03 01 01
 FF 30 0D 06 09 2A 86 48-86 F7 0D 01 01 04 05 00
 03 81 81 00 07 FA 4C 69-5C FB 95 CC 46 EE 85 83
 4D 21 30 8E CA D9 A8 6F-49 1A E6 DA 51 E3 60 70
 6C 84 61 11 A1 1A C8 48-3E 59 43 7D 4F 95 3D A1
 8B B7 0B 62 98 7A 75 8A-DD 88 4E 4E 9E 40 DB A8
 CC 32 74 B9 6F 0D C6 E3-B3 44 0B D9 8A 6F 9A 29
 9B 99 18 28 3B D1 E3 40-28 9A 5A 3C D5 B5 E7 20
 1B 8B CA A4 AB 8D E9 51-D9 E2 4C 2C 59 A9 DA B9
 B2 75 1B F6 42 F2 EF C7-F2 18 F9 89 BC A3 FF 8A
 23 2E 70 47 00 00 00 00-00 01 01



-- 
---------------------------------------------------------------
William H. Geiger III  http://www.openpgp.net
Geiger Consulting    Cooking With Warp 4.0

Author of E-Secure - PGP Front End for MR/2 Ice
PGP & MR/2 the only way for secure e-mail.
OS/2 PGP 5.0 at: http://www.openpgp.net/pgp.html
Talk About PGP on IRC EFNet Channel: #pgp Nick: whgiii

Hi Jeff!! :)
---------------------------------------------------------------

begin 666 65_test.asc
M+2TM+2U"14=)3B!01U`@4%5"3$E#($M%62!"3$]#2RTM+2TM#0I697)S:6]N
M.B!01U`@-BXU+C%B,34-"@T*;5%#4$%Z2"\X-$%!04%%14%.3VM51S=)+S%:
M<C5S.61T=6]-84A62&]Q<D,R;U%L+TMJ,%(Q2&%H8E5G9$I31PT*2&<Y,7EE
M:TE99E5'8E1"=492:T,V5DQ!671T3FU:-VEA9WA%3TTS*W9U3FM#6$1&+W)&
M<DMB67938V<W,4-C10T*2E)#6$PK95%B8T%O47!N6%1%4&5W+U5H8E939EAC
M3EDT8T1K,E9U=W5.>3!E.3@R3W-+,5II25,Q;V-.04)%0@T*04%',$ML4F]9
M6&0P6E-"5%I82C):6$EG43!%9U!(3FQC;EIL8VDQ:EI82C!C,$(P84=&,V1'
M5759,CET4&]K1`T*3V=144%!141,455#368O>F=!541,935Y9G=-1B\S:D-7
M,E%"05%-=V=G351-24E#9DM!1$%G14-!9T5"34$P1PT*0U-Q1U-)8C-$445"
M0D%504U)2$5-47-W0U%91%9144=%=TIA451%5DU"34=!,55%0T)-358R5GID
M1U9Y8FE"1`T*65A";$U227=%05E$5E%12$5W;$196$)L2492=F0R-'A(5$%B
M0F=.5D)!;U1&1E)O65AD,%I30D1B,C5Z9%=X,`T*85<U;DE'3FI-4V=W2F=9
M1%9144Q%>#E$6EA*,&%76G!9,D8P85<Y=4E&3FQC;EIP63)6>DE%4G!D;6QZ
M85<Y=0T*35)K=T9W641645%$17A"56%'1C-D1U5G53)6>61M5GE)14Y"35-9
M=TI!64I+;UI):'9C3D%1:T)&:&1Z6EA*,@T*6EA)=%DR5GED2$Y!9$=H:&0S
M4FQ,;4YV8E1!949W,#5.:D$T341%=TU$07=-1$)A1G<P>4U$17E->D5Y37I5
M-0T*3E1L84U)2$5-47-W0U%91%9144=%=TIA451%5DU"34=!,55%0T)-358R
M5GID1U9Y8FE"1%E80FQ-4DEW14%91`T*5E%12$5W;$196$)L2492=F0R-'A(
M5$%B0F=.5D)!;U1&1E)O65AD,%I30D1B,C5Z9%=X,&%7-6Y)1TYJ35-G=PT*
M2F=91%9144Q%>#E$6EA*,&%76G!9,D8P85<Y=4E&3FQC;EIP63)6>DE%4G!D
M;6QZ85<Y=4U2:W=&=UE$5E%11`T*17A"56%'1C-D1U5G53)6>61M5GE)14Y"
M35-9=TI!64I+;UI):'9C3D%1:T)&:&1Z6EA*,EI82719,E9Y9$A.00T*9$=H
M:&0S4FQ,;4YV8E1#0FYZ04Y"9VMQ:&MI1SEW,$)!445&04%/0FI107=G66M#
M9UE%03`V4E%B<VHO5FUV;0T*>C$R,C9G>&]D565I<7-,86A#6#AQ4%)(561Q
M1G130C!L25EE1#-82C91:&@Y45IT34<T5D=13'!5<T)I,C`R6@T*;G5*<41%
M431Z9C8K-#)12F--6"MS5W-P=&DY2GE$=E5*=U%L14IC=C4U0G1W0VA#;61D
M35$Y-T0Y4T9T5DHY9`T*=S%J:'=/5%I7-T,T,TQ2-S-Z639W<E9M26A,5VAW
M,$-!=T5!06%-5$U"17=$=UE$5E(P5$%12"]"055W07=%0@T*+WI!3D)G:W%H
M:VE'.7<P0D%1449!04]"9U%!2"MK>'!84'56>D5B=6A93DY)5$-/>71M;V(P
M:V$U='!2-#)"=PT*8DE2:$5A16%Y16<K5U5..50U53EO674S0S)+665N5TLS
M66A/5'`U03(V:DU-;E,U8G<S1S0W3D5#.6U+8C5O<`T*;35K64M$=E(T,$%O
M;6QO.#%B6&Y)0G5,>7%3<FIE;%(R94I-3$9M<#)R;7ED4G8R479,=G@O25DK
M66TX;R\K2PT*27DU=U)W04%!04%!05%%/0T*/4DR,DD-"BTM+2TM14Y$(%!'
84"!054),24,@2T59($),3T-++2TM+2T-
`
end



From owner-ietf-open-pgp@imc.org  Tue May 18 14:43:07 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA14273
	for <openpgp-archive@odin.ietf.org>; Tue, 18 May 1999 14:43:01 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA15645
	for ietf-open-pgp-bks; Tue, 18 May 1999 10:36:59 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA15641
	for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 10:36:58 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Tue, 18 May 1999 13:36:37 -0400
Date: Tue, 18 May 1999 13:36:51 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: Werner Koch <wk@isil.d.shuttle.de>
cc: ietf-open-pgp@imc.org
Subject: Then it is not a signature...
In-Reply-To: <19990518092532.F19134@frodo.isil.d.shuttle.de>
Message-Id: <99May18.133637edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Tue, 18 May 1999, Werner Koch wrote:

> hal@rain.org writes:
> 
> > unused public key algorithm, so that no implementations will attempt
> > to verify the signature.  I used zero, but we could use 100 if that
> 
> So what about this small change:
> 
> 
> 5.2.3. Version 4 Signature Packet Format
> 
>    The body of a version 4 Signature Packet contains:
> 
>      - One-octet version number (4).
> 
>      - One-octet signature type.

Would this even apply?

> |    - One-octet public key algorithm or a value of zero to indicate
> |      that no multi-precision integers follow.

The PGP signature consists of the MPIs, therefore if there are no MPIs,
there is no signature...

>      - One-octet hash algorithm.

Why is anything hashed if the result (except for 2 bytes) has no where to
go?  So should this even be here?

>      - Two-octet scalar octet count for following hashed subpacket
>        data. Note that this is the length in octets of all of the hashed
>        subpackets; a pointer incremented by this number will skip over
>        the hashed subpackets.
> 
>      - Hashed subpacket data. (zero or more subpackets)

If we can't do anything with the result, why have anything here?  (Also is
it really zero since I think there are some MUST subpackets).  Shouldn't
all this be in the unhashed area if it isn't being hashed, much less
signed?

>      - Two-octet scalar octet count for following unhashed subpacket
>        data. Note that this is the length in octets of all of the
>        unhashed subpackets; a pointer incremented by this number will
>        skip over the unhashed subpackets.
> 
>      - Unhashed subpacket data. (zero or more subpackets)
> 
>      - Two-octet field holding left 16 bits of signed hash value.
> 
> |    - Zero or more multi-precision integers comprising the signature.
> |      This portion is algorithm specific, as described above.

Then this is not a signature, so why put it in the signature packet?

Anything without a PGP digital signature belongs in a literal packet, or
perhapse elsewhere.  Hashed but unsigned anything is still being discussed
- i.e. what form the MDC stuff will take.



From owner-ietf-open-pgp@imc.org  Tue May 18 23:10:05 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA21068
	for <openpgp-archive@odin.ietf.org>; Tue, 18 May 1999 23:10:04 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id TAA10062
	for ietf-open-pgp-bks; Tue, 18 May 1999 19:24:16 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id TAA10051
	for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 19:24:13 -0700 (PDT)
Received: (from hal@localhost)
	by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id TAA00194;
	Tue, 18 May 1999 19:24:13 -0700
Date: Tue, 18 May 1999 19:24:13 -0700
From: hal@rain.org
Message-Id: <199905190224.TAA00194@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, tzeruch@ceddec.com
Subject: Re: Agree with PRZs MDC suggestion
Cc: hal@rain.org, wk@isil.d.shuttle.de
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

NAI has decided not to include Twofish in the next release so that we
can try to come to agreement on an MDC packet and use that.

Here is a concrete proposal which represents what we have been discussing
most recently.

I think the only thing I have changed is that I am using version 1.
It's going to be wasteful of version numbers if we keep having to leapfrog
them.  If we made this one 5, then the next time we make a change to
a packet we have to use 6, etc.  It will be more economical to start
new packets at v1 and increment them as we make new versions of them.
I know this practice was not always followed in the past but it will be
better for the future.

As I described earlier, I propose not to have any mechanism for turning
the MDC on and off, or for selecting a hash algorithm, because these would
leave openings for an attacker to possibly modify this selector.  He might
be able to turn off the MDC, which would completely defeat the purpose.

Another attack I have considered is that the attacker could strip off
the MDC packet (by removing the last 22 bytes of ciphertext) and change
the packet tag to an old-style symmetrically encrypted data packet.
However because we are handling the CFB SYNC differently it will produce
completely garbled data, which I view as an acceptable failure mode.
What do you think?

Hal

=====

5.X. Symmetrically Encrypted Integrity Protected Data Packet (Tag 15)

   The Symmetrically Encrypted Integrity Protected Data packet contains
   data encrypted with a symmetric-key algorithm and protected against
   modification by the SHA-1 hash algorithm. When it has been decrypted,
   it will typically contain other packets (often literal data packets
   or compressed data packets).  The last such decrypted packet must be
   a Modification Detection Code packet.

   The body of this packet consists of:

     - A one-octet version number.  The only currently defined value is 1.

     - Encrypted data, the output of the selected symmetric-key cipher
       operating in Cipher Feedback mode with shift amount equal to the
       block size of the cipher (CFB-n where n is the block size).

   The symmetric cipher used MUST be specified in a Public-Key or
   Symmetric-Key Encrypted Session Key packet that precedes the
   Symmetrically Encrypted Data Packet.  In either case, the cipher
   algorithm octet is prefixed to the session key before it is
   encrypted.

   The data is encrypted in CFB mode, with a CFB shift size equal to
   the cipher's block size.  The Initial Vector (IV) is specified as
   all zeros.  Instead of using an IV, OpenPGP prefixes an octet string
   to the data before it is encrypted.  The length of the octet string
   equals the block size of the cipher in octets, plus two.  The first
   octets in the group, of length equal to the block size of the cipher,
   are random; the last two octets are each copies of their 2nd preceding
   octet.  For example, with a cipher whose block size is 128 bits or 16
   octets, the prefix data will contain 16 random octets, then two more
   octets, which are copies of the 15th and 16th octets, respectivelly.
   Unlike the Symmetrically Encrypted Data Packet, no special CFB
   resynchronization is done after encrypting this prefix data.

   The repetition of 16 bits in the random data prefixed to the message
   allows the receiver to immediately check whether the session key
   is incorrect.

   The plaintext of the data to be encrypted is passed through the SHA-1
   hash function, and the result of the hash is appended to the plaintext
   in a Modification Detection Code packet.  Specifically, the input to
   the hash function does not include the prefix data described above;
   it includes all of the plaintext, and then also includes two octets
   of values 0xD0, 0x14.  These represent the encoding of a Modification
   Detection Code packet tag and length field of 20 octets.

   The resulting hash value is stored in a Modification Detection Code
   packet which MUST use the two octet encoding just given to represent
   its tag and length field.  The body of the MDC packet is the 20 octet
   output of the SHA-1 hash.

   The Modification Detection Code packet is appended to the plaintext and
   encrypted along with the plaintext using the same CFB context.

   During decryption, the plaintext data should be hashed with SHA-1,
   not including the prefix data but including the packet tag and length
   field of the Modification Detection Code packet.  The body of the
   MDC packet, upon decryption, should be compared with the result of
   the SHA-1 hash.  Any difference in hash values is an indication that
   the message has been modified and SHOULD be reported to the user.
   Likewise, the absence of an MDC packet, or an MDC packet in any
   position other than the end of the plaintext, also represent message
   modifications and SHOULD also be reported.

   Note: future designs of new versions of this packet should consider
   rollback attacks since it will be possible for an attacker to change
   the version back to 1.


5.Y Modification Detection Code Packet (Tag 16)

   The Modification Detection Code packet contains a SHA-1 hash of
   plaintext data which is used to detect message modification.  It is
   only used in the context of a Symmetrically Encrypted Integrity
   Protected Data packet.  The Modification Detection Code packet MUST
   be the last packet in the plaintext data which is encrypted in the
   Symmetrically Encrypted Integrity Protected Data packet, and MUST
   appear in no other place.

   A Modification Detection Code packet MUST have a length of 20 octets.

   The body of this packet consists of:

     - A 20-octet SHA-1 hash of the preceding plaintext data of the
       Symmetrically Encrypted Integrity Protected Data packet, not
       including prefix data but including the tag and length byte of
       the Modification Detection Code packet.

   Note that the Modification Detection Code packet MUST always use a
   new-format encoding of the packet tag, and a one-octet encoding of
   the packet length.  (These requirements are already imposed by the
   rules for tag and length encoding.)


From owner-ietf-open-pgp@imc.org  Wed May 19 04:35:45 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA05961
	for <openpgp-archive@odin.ietf.org>; Wed, 19 May 1999 04:35:45 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id AAA15195
	for ietf-open-pgp-bks; Wed, 19 May 1999 00:51:35 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA15191
	for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 00:51:26 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id JAA28329
	for ietf-open-pgp@imc.org; Wed, 19 May 1999 09:51:16 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10k11A-0005gK-00; Wed, 19 May 1999 09:43:56 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10k0xj-0005Oj-00; Wed, 19 May 1999 09:40:23 +0200
Date: Wed, 19 May 1999 09:40:22 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Then it is not a signature...
Message-ID: <19990519094022.I20674@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <19990518092532.F19134@frodo.isil.d.shuttle.de> <99May18.133637edt.42114@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May18.133637edt.42114@brickwall.ceddec.com>; from Tom Zerucha on Tue, May 18, 1999 at 01:36:51PM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha <tzeruch@ceddec.com> writes:

> Anything without a PGP digital signature belongs in a literal packet, or
> perhapse elsewhere.  Hashed but unsigned anything is still being discussed
> - i.e. what form the MDC stuff will take.

I proposed this only to help Hal getting PGP OpenPGP conform.  And
with this change your MDC signatures would benefit too.  But okay,
if nobody likes this - forget about it.

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Wed May 19 05:11:56 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA06084
	for <openpgp-archive@odin.ietf.org>; Wed, 19 May 1999 05:11:56 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id BAA15753
	for ietf-open-pgp-bks; Wed, 19 May 1999 01:21:32 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA15748
	for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 01:21:25 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id KAA01621
	for ietf-open-pgp@imc.org; Wed, 19 May 1999 10:21:09 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10k1Vu-0005gw-00; Wed, 19 May 1999 10:15:42 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10k1SS-0005Oz-00; Wed, 19 May 1999 10:12:08 +0200
Date: Wed, 19 May 1999 10:12:08 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990519101208.J20674@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905190224.TAA00194@226-132.adsl2.avtel.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <199905190224.TAA00194@226-132.adsl2.avtel.net>; from hal@rain.org on Tue, May 18, 1999 at 07:24:13PM -0700
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

hal@rain.org writes:

> I think the only thing I have changed is that I am using version 1.

Okay.

> As I described earlier, I propose not to have any mechanism for turning
> the MDC on and off, or for selecting a hash algorithm, because these would
> leave openings for an attacker to possibly modify this selector.  He might
> be able to turn off the MDC, which would completely defeat the purpose.

Together with the version number I can live with this.

> However because we are handling the CFB SYNC differently it will produce
> completely garbled data, which I view as an acceptable failure mode.
> What do you think?

I think this is reasonable.

> 5.X. Symmetrically Encrypted Integrity Protected Data Packet (Tag 15)

>    Symmetrically Encrypted Data Packet.  In either case, the cipher
>    algorithm octet is prefixed to the session key before it is

Don't know wthether I understand it:  Does it mean, that the first 8
bits of the session key are known?  So we actually have only 248 bit
Twofish?  Why not putting the algorithm octet just after the 2
checksum bytes in the prefix? 

>    Unlike the Symmetrically Encrypted Data Packet, no special CFB
>    resynchronization is done after encrypting this prefix data.

And we should cleanup the ambiguity about this in rfc2440.

>    it includes all of the plaintext, and then also includes two octets
>    of values 0xD0, 0x14.  These represent the encoding of a Modification

So you can use your old implemenation idea of a fixed block at the end
of the encrypted data.  That is okay.  

>    Note: future designs of new versions of this packet should consider
>    rollback attacks since it will be possible for an attacker to change
>    the version back to 1.

So we also solved this issue :-)

We should also mention that an implemenation SHOULD use this new
packet for ciphers others than 1,2,3,4,5 (which are the ones from the
current rfc).  And that it MAY use the new packet if the preferences
of a receiver's key indicate that an algorithm other than 1..5 can
be used (this is because we can assume, that the new packet type is 
supported by the implemenation used at the receivers side).

Another suggestion for the next version:
Extend the marker paket with a version number of the RFC: "PGP/1.1"
instead of a bare "PGP".  This may be useful in the future.


You did good work with this and I can agree with it.
What do the others think?


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Wed May 19 11:27:50 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA18835
	for <openpgp-archive@odin.ietf.org>; Wed, 19 May 1999 11:27:48 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA22238
	for ietf-open-pgp-bks; Wed, 19 May 1999 07:18:50 -0700 (PDT)
Received: from tik2.ethz.ch (kom-tik2.ethz.ch [129.132.66.10])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA22234
	for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 07:18:48 -0700 (PDT)
Received: from komsys-pc-mw.ethz.ch (mwa@komsys-pc-mw [129.132.66.24])
	by tik2.ethz.ch (8.8.8/8.8.8) with ESMTP id QAA07381;
	Wed, 19 May 1999 16:18:49 +0200 (MET DST)
Received: from localhost (mwa@localhost)
	by komsys-pc-mw.ethz.ch (8.9.1/8.8.8) with ESMTP id QAA14900;
	Wed, 19 May 1999 16:18:48 +0200
X-Authentication-Warning: komsys-pc-mw.ethz.ch: mwa owned process doing -bs
Date: Wed, 19 May 1999 16:18:48 +0200 (CEST)
From: Marcel Waldvogel <mwa@tik.ee.ethz.ch>
To: hal@rain.org
cc: ietf-open-pgp@imc.org, tzeruch@ceddec.com, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <199905190224.TAA00194@226-132.adsl2.avtel.net>
Message-ID: <Pine.LNX.4.04.9905191552000.12083-100000@komsys-pc-mw.ethz.ch>
X-URL: http://www.tik.ee.ethz.ch/~mwa/
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Tue, 18 May 1999 hal@rain.org wrote:
>5.X. Symmetrically Encrypted Integrity Protected Data Packet (Tag 15)
[...]
>   The data is encrypted in CFB mode, with a CFB shift size equal to
>   the cipher's block size.  The Initial Vector (IV) is specified as
>   all zeros.  Instead of using an IV, OpenPGP prefixes an octet string
>   to the data before it is encrypted.  The length of the octet string
>   equals the block size of the cipher in octets, plus two.  The first
>   octets in the group, of length equal to the block size of the cipher,
>   are random; the last two octets are each copies of their 2nd preceding
>   octet.  For example, with a cipher whose block size is 128 bits or 16
>   octets, the prefix data will contain 16 random octets, then two more
>   octets, which are copies of the 15th and 16th octets, respectivelly.
>   Unlike the Symmetrically Encrypted Data Packet, no special CFB
>   resynchronization is done after encrypting this prefix data.

Hal,

thanks for putting up this proposal. I think it provides a step into the
right direction.

Why don't we repeat the version number (and maybe even the packet tag)
after the two check bytes? Or would this give too much plaintext away?

Although I do understand your concerns against selecting an MDC or even
allowing to turn it off, I would like to see some selection mechanism
included, either for specialized devices or in case some problem shows up
with SHA-1 (e.g. political or cryptanalytical). Wouldn't tampering become
close to impossible if we included the algorithm byte both in the plain
header and repeated it after the CFB?

Even if the algorithm ID was included only in the plain section, the
receiving implementation could flag unknown or weak algorithms as "has
possibly been tampered with".

-Marcel



From owner-ietf-open-pgp@imc.org  Wed May 19 11:55:35 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA20191
	for <openpgp-archive@odin.ietf.org>; Wed, 19 May 1999 11:55:34 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA22564
	for ietf-open-pgp-bks; Wed, 19 May 1999 07:51:18 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA22557
	for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 07:51:11 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id QAA17548
	for ietf-open-pgp@imc.org; Wed, 19 May 1999 16:51:04 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10k7Ly-0005xr-00; Wed, 19 May 1999 16:29:50 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10k7Ia-0006J8-00; Wed, 19 May 1999 16:26:20 +0200
Date: Wed, 19 May 1999 16:26:20 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990519162620.F21779@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905190224.TAA00194@226-132.adsl2.avtel.net> <Pine.LNX.4.04.9905191552000.12083-100000@komsys-pc-mw.ethz.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <Pine.LNX.4.04.9905191552000.12083-100000@komsys-pc-mw.ethz.ch>; from Marcel Waldvogel on Wed, May 19, 1999 at 04:18:48PM +0200
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Marcel Waldvogel <mwa@tik.ee.ethz.ch> writes:

> Why don't we repeat the version number (and maybe even the packet tag)
> after the two check bytes? Or would this give too much plaintext away?

I don't think so, there is already enough plaintext because the
structure of the packet heades is well known and this gives you 
already some plaintext.

> with SHA-1 (e.g. political or cryptanalytical). Wouldn't tampering become

political/patents maybe an argument.  Actually we don't need a
cryptograhic hash function here but only a good checksum - so SHA1
is good enough and it is the only hash algorithm which is required
anyway.

However, if it turns out that we have to change something, we have the
version number and can implement another scheme with another version
number which must then be made tamperproof, e.g. by putting a copy
into the encrypted data.


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Wed May 19 12:00:18 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA20411
	for <openpgp-archive@odin.ietf.org>; Wed, 19 May 1999 12:00:17 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA22668
	for ietf-open-pgp-bks; Wed, 19 May 1999 07:55:28 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA22664
	for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 07:55:27 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Wed, 19 May 1999 10:55:10 -0400
Date: Wed, 19 May 1999 10:55:25 -0400
From: tzeruch@ceddec.com
X-Sender: nobody@mars.ceddec.com
To: hal@rain.org
cc: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <199905190224.TAA00194@226-132.adsl2.avtel.net>
Message-Id: <99May19.105510edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Tue, 18 May 1999 hal@rain.org wrote:

> As I described earlier, I propose not to have any mechanism for turning
> the MDC on and off, or for selecting a hash algorithm, because these would
> leave openings for an attacker to possibly modify this selector.  He might
> be able to turn off the MDC, which would completely defeat the purpose.

We are in agreement that there should be no mechanism for turning the MDC
off.  Having a mechanism for selecting a hash algorithm is different, and
I don't see it as leaving the same openings.

You could put a simple checksum (like used for keys) so that the attacker
would have to change both the algorithm ID and checksum within the
encrypted stream.

Also you assume that you could somehow calculate an RMD160 (or other) hash
of modified encrypted data and reencrypt that.

And you could still simply strip off the last N bytes as you have things
now, which is another thing a prefix, the equivalent of "Hash:" helps.

> 5.Y Modification Detection Code Packet (Tag 16)
> 
>    The Modification Detection Code packet contains a SHA-1 hash of
>    plaintext data which is used to detect message modification.  It is
>    only used in the context of a Symmetrically Encrypted Integrity
>    Protected Data packet.  The Modification Detection Code packet MUST
>    be the last packet in the plaintext data which is encrypted in the
>    Symmetrically Encrypted Integrity Protected Data packet, and MUST
>    appear in no other place.
> 
>    A Modification Detection Code packet MUST have a length of 20 octets.
> 
>    The body of this packet consists of:
> 
>      - A 20-octet SHA-1 hash of the preceding plaintext data of the
>        Symmetrically Encrypted Integrity Protected Data packet, not
>        including prefix data but including the tag and length byte of
>        the Modification Detection Code packet.

And when the NIST comes up with a wider hash for the DSA-plus (or whatever
it will then be called) you absolutely, positively never ever want to be
able to use it here?  (Or if OpenPGP comes up with a wider DSA, say SHA
followed by RMD160 over the same input we don't want to use that here
either?)

There were strong arguments for removing ElGamal signatures.  But they
turned on providing a mechanism for allowing a DSA like signature to use a
wider, i.e. better (PRZ can do a commercial for GM) hash algorithm, since
a 4096 bit DSA key doesn't add anything when you only have 160 bits of
hash to protect.  I am assuming that this might actually be resolved with
some mechanism for a 256 or 320 bit hash, maybe without the NISTs help, we
can use a modified DSA, and depricate and drop ElGamal signatures.  And if
that happens I would really want the option to use that wider hash here.

>    Note that the Modification Detection Code packet MUST always use a
>    new-format encoding of the packet tag, and a one-octet encoding of
>    the packet length.  (These requirements are already imposed by the
>    rules for tag and length encoding.)

My proposal (not in spec language):

The MDCP appears first PRECEEDING the encrypted plaintext and contains
only the version number and algorithm ID(s), and a checksum word.

Alternative 1: 1 MDC packet with version byte, number of hashes byte -
must be nonzero, N algorithm ID bytes.

Alternative 2: N MDC packets, one per algorithm used in reverse order
(therefore no #-of-hashes byte), and nested, i.e. an outer hash will be
made only over all the inner hash packets.  e.g. RMD+ ( SHA+ ( plaintext )
SHA= ) RMD =

Alternative 3: only 1 MDC allowed, with version, algid, and checksum.

Then any plaintext packets (should this be required to be 1?).

Then the real MDCP but is 20 (or whatever the hash length(s) is(are) )
bytes longer than the one at the top, and has a checksum which reflects
the full packet.

So would a header MDCP, and having both MDCPs checksummed be adequately
secure?  If the entirety was encrypted how would you attack it?  You would
have to change two algorithm ID bytes, come up with two correct checksums,
and a valid hash for the algorithm you are altering the hash algorithm to.



From owner-ietf-open-pgp@imc.org  Wed May 19 12:48:22 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA22293
	for <openpgp-archive@odin.ietf.org>; Wed, 19 May 1999 12:48:21 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA23329
	for ietf-open-pgp-bks; Wed, 19 May 1999 08:51:12 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA23325
	for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 08:51:05 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id RAA23652
	for ietf-open-pgp@imc.org; Wed, 19 May 1999 17:51:08 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10k8Ys-00060Q-00; Wed, 19 May 1999 17:47:14 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10k8VV-0006Jv-00; Wed, 19 May 1999 17:43:45 +0200
Date: Wed, 19 May 1999 17:43:45 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990519174345.G21779@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905190224.TAA00194@226-132.adsl2.avtel.net> <99May19.105510edt.42114@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May19.105510edt.42114@brickwall.ceddec.com>; from tzeruch@ceddec.com on Wed, May 19, 1999 at 10:55:25AM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

tzeruch@ceddec.com writes:

> We are in agreement that there should be no mechanism for turning the MDC
> off.  Having a mechanism for selecting a hash algorithm is different, and
> I don't see it as leaving the same openings.

> And when the NIST comes up with a wider hash for the DSA-plus (or whatever
> it will then be called) you absolutely, positively never ever want to be
> able to use it here?  (Or if OpenPGP comes up with a wider DSA, say SHA

Not for the purpose of a MDC, even the 160 bit digest is overkill, but
we already have to use it elsewhere so it does make sense to use it.

> wider, i.e. better (PRZ can do a commercial for GM) hash algorithm, since

(What is GM?)

> some mechanism for a 256 or 320 bit hash, maybe without the NISTs help, we
> can use a modified DSA, and depricate and drop ElGamal signatures.  And if

But a MDC is very different to a signature and there is no need for
wider hash.

> The MDCP appears first PRECEEDING the encrypted plaintext and contains
> only the version number and algorithm ID(s), and a checksum word.

I think that is much to complicated and I can't see the benefit from
it.  Putting a checksum (or a copy of the algid and version number)
into the encrypted text  E(random_prefix,2_checkbytes,version_byte,
algorithm byte) is much easier and all waht we need.  We already
encode the cipher algorithm in the pk-encoded sessionkey - so why I 
see no argument why not putting additional input into the encrypted 
packet.

> Then the real MDCP but is 20 (or whatever the hash length(s) is(are) )
> bytes longer than the one at the top, and has a checksum which reflects
> the full packet.

Why an extra checksum if we already have an MDC?

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Fri May 21 04:06:14 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA23380
	for <openpgp-archive@odin.ietf.org>; Fri, 21 May 1999 04:06:13 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id AAA00897
	for ietf-open-pgp-bks; Fri, 21 May 1999 00:15:17 -0700 (PDT)
Received: from merrymeet.com (Discordia@merrymeet.com [38.232.7.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA00893
	for <ietf-open-pgp@imc.org>; Fri, 21 May 1999 00:15:14 -0700 (PDT)
Received: from [38.232.7.7] (38.232.7.7) by merrymeet.com with ESMTP (Eudora
 Internet Mail Server 2.2); Thu, 20 May 1999 23:15:17 -0800
X-Sender: jon@127.0.0.1
Message-Id: <v04003a04b36aafe90ac2@[38.232.7.7]>
In-Reply-To: <19990519162620.F21779@frodo.isil.d.shuttle.de>
References: 
 <Pine.LNX.4.04.9905191552000.12083-100000@komsys-pc-mw.ethz.ch>; from
 Marcel Waldvogel on Wed, May 19, 1999 at 04:18:48PM +0200
 <199905190224.TAA00194@226-132.adsl2.avtel.net>
 <Pine.LNX.4.04.9905191552000.12083-100000@komsys-pc-mw.ethz.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 20 May 1999 23:50:25 -0700
To: Werner Koch <wk@isil.d.shuttle.de>, ietf-open-pgp@imc.org
From: Jon Callas <jon@callas.org>
Subject: Re: Agree with PRZs MDC suggestion
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

At 7:26 AM -0700 5/19/1999, Werner Koch said:

   political/patents maybe an argument.  Actually we don't need a
   cryptograhic hash function here but only a good checksum - so SHA1
   is good enough and it is the only hash algorithm which is required
   anyway.

   However, if it turns out that we have to change something, we have the
   version number and can implement another scheme with another version
   number which must then be made tamperproof, e.g. by putting a copy
   into the encrypted data.

I believe that it's true that we don't need all the properties of a
cryptographic hash. The reason for picking SHA-1 is that an implementation
already has to have SHA-1, so it's a favor to anyone who wants to do a
minimal implementation.

I did a design for this late last year that had a hash selector. The
objection to a selector on the hash algorithm is simply that an attacker
could potentially modify the hash selector and cause mischief. I'm
skeptical as to what sort of mischief they could really cause, but I see
the point.

For this purpose, SHA-1 is good enough. Actually, for this purpose, MD4
(which is known to be broken as a signature hash) is good enough. Remember,
we have in this packet (presumably) unknown plaintext (if the attacker
knows the plaintext of the message, I think there are other problems)
sealed with a strong cipher. We don't need all the properties of a
cryptographic hash. I'm in favor of picking SHA-1, just because it's handy.

	Jon




From owner-ietf-open-pgp@imc.org  Fri May 21 23:24:18 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA11855
	for <openpgp-archive@odin.ietf.org>; Fri, 21 May 1999 23:24:18 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id TAA01177
	for ietf-open-pgp-bks; Fri, 21 May 1999 19:45:10 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id TAA01169
	for <ietf-open-pgp@imc.org>; Fri, 21 May 1999 19:45:08 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Fri, 21 May 1999 22:45:14 -0400
Date: Fri, 21 May 1999 22:45:23 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: Werner Koch <wk@isil.d.shuttle.de>
cc: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <19990519174345.G21779@frodo.isil.d.shuttle.de>
Message-Id: <99May21.224514edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Wed, 19 May 1999, Werner Koch wrote:

> tzeruch@ceddec.com writes:
> 
> > We are in agreement that there should be no mechanism for turning the MDC
> > off.  Having a mechanism for selecting a hash algorithm is different, and
> > I don't see it as leaving the same openings.
> 
> > And when the NIST comes up with a wider hash for the DSA-plus (or whatever
> > it will then be called) you absolutely, positively never ever want to be
> > able to use it here?  (Or if OpenPGP comes up with a wider DSA, say SHA
> 
> Not for the purpose of a MDC, even the 160 bit digest is overkill, but
> we already have to use it elsewhere so it does make sense to use it.

We also have a 24 bit CRC which must be implemented for the ASCII armor
and it is even faster.  If that is adequate (and faster), why not use it
instead of a cryptographic hash?

> > wider, i.e. better (PRZ can do a commercial for GM) hash algorithm, since
> 
> (What is GM?)

General Motors - they have an ad campaign for one of the cars of the theme
"Wider is Better".

> > The MDCP appears first PRECEEDING the encrypted plaintext and contains
> > only the version number and algorithm ID(s), and a checksum word.
> 
> I think that is much to complicated and I can't see the benefit from
> it.  Putting a checksum (or a copy of the algid and version number)
> into the encrypted text  E(random_prefix,2_checkbytes,version_byte,
> algorithm byte) is much easier and all waht we need.  We already
> encode the cipher algorithm in the pk-encoded sessionkey - so why I 
> see no argument why not putting additional input into the encrypted 
> packet.

Where exactly?  We have a packet header for the encrypted packet itself,
the key material from the PK or SK material packet, and potential
information in a packet at the head of the encrypted plaintext.

(see my next comment)

> > Then the real MDCP but is 20 (or whatever the hash length(s) is(are) )
> > bytes longer than the one at the top, and has a checksum which reflects
> > the full packet.
> 
> Why an extra checksum if we already have an MDC?

Because someone was suggesting that if anyone ever changed the algorithm
ID byte they could turn off the MDC.  That could be prevented by a
checksum.  If it is not reasonable to have an attack of this form, then
there should be no problem having an algorithm ID byte.  But if it is
unencrypted, it can be changed.

And I might want to specify other algorithm IDs, e.g. the Palm Pilot has
MD5 (and DES) in the OS kernel, but not SHA1.  I would really prefer to
have my MDCs there as MD5, and use 3DES for a minimal Palm implementation.

In either case, the MDC proper should be encapsulated in a packet, and if
the algorithm can be specified as I want (maybe 0 could be the ASCII CRC)
the algorithm ID with version number should be in a packet and preceed the
encrypted data.




From owner-ietf-open-pgp@imc.org  Sat May 22 07:08:17 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA27489
	for <openpgp-archive@odin.ietf.org>; Sat, 22 May 1999 07:08:16 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id DAA26147
	for ietf-open-pgp-bks; Sat, 22 May 1999 03:20:50 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id DAA26142
	for <ietf-open-pgp@imc.org>; Sat, 22 May 1999 03:20:48 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id MAA18271
	for ietf-open-pgp@imc.org; Sat, 22 May 1999 12:21:06 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10l8rZ-0007l6-00; Sat, 22 May 1999 12:18:41 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10l8oo-0000Ip-00; Sat, 22 May 1999 12:15:50 +0200
Date: Sat, 22 May 1999 12:15:50 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990522121550.D32457@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <19990519174345.G21779@frodo.isil.d.shuttle.de> <99May21.224514edt.42114@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May21.224514edt.42114@brickwall.ceddec.com>; from Tom Zerucha on Fri, May 21, 1999 at 10:45:23PM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha <tzeruch@ceddec.com> writes:

> We also have a 24 bit CRC which must be implemented for the ASCII armor
> and it is even faster.  If that is adequate (and faster), why not use it
> instead of a cryptographic hash?

ASCII armor is SHOULD, SHA1 is MUST.  May people would not feel
comfortable with CRC and there is a chance of an attack on a CRC used
as a MDC.

> > Why an extra checksum if we already have an MDC?
> 
> Because someone was suggesting that if anyone ever changed the algorithm
> ID byte they could turn off the MDC.  That could be prevented by a

Ah well, I think it is easier to put a copy of the version byte and
the algorithm identifier into the encrypted text:

E(random_prefix[blocksize+2],version_byte,algo_byte,plaintext,mdc_packet)

> And I might want to specify other algorithm IDs, e.g. the Palm Pilot has
> MD5 (and DES) in the OS kernel, but not SHA1.  I would really prefer to
> have my MDCs there as MD5, and use 3DES for a minimal Palm implementation.

Makes sense for me.  And I think it is better to use OpenPGP
dataformats than to use somethin else or invent another one.

Is it okay to have SHOULD use SHA1-MDC and SHOULD give a warning if
another MDC is used? 

  Werner

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Sun May 23 04:26:20 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA07081
	for <openpgp-archive@odin.ietf.org>; Sun, 23 May 1999 04:26:19 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id AAA18777
	for ietf-open-pgp-bks; Sun, 23 May 1999 00:34:01 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA18771
	for <ietf-open-pgp@imc.org>; Sun, 23 May 1999 00:33:59 -0700 (PDT)
Received: from mailhub.watson.ibm.com (mailhub.watson.ibm.com [9.2.250.97])
	by igw3.watson.ibm.com (8.9.3/8.9.3/05-14-1999) with ESMTP id DAA06818;
	Sun, 23 May 1999 03:34:21 -0400
Received: from buoy.watson.ibm.com (buoy.watson.ibm.com [9.2.3.94]) by mailhub.watson.ibm.com (8.8.7/Feb-20-98) with SMTP id DAA13046; Sun, 23 May 1999 03:34:21 -0400
Received: by buoy.watson.ibm.com (AIX 4.1/UCB 5.64/6/25/96)
          id AA22474; Sun, 23 May 1999 03:34:17 -0400
From: uri <uri@watson.ibm.com>
Message-Id: <9905230734.AA22474@buoy.watson.ibm.com>
Subject: Re: Agree with PRZs MDC suggestion
To: wk@isil.d.shuttle.de (Werner Koch)
Date: Sun, 23 May 1999 03:34:17 -0400 (EDT)
Cc: ietf-open-pgp@imc.org
In-Reply-To: <19990522121550.D32457@frodo.isil.d.shuttle.de> from "Werner Koch" at May 22, 99 12:15:50 pm
Reply-To: uri@watson.ibm.com
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Werner Koch says:
> > Because someone was suggesting that if anyone ever changed the algorithm
> > ID byte they could turn off the MDC.  That could be prevented by a
> 
> Ah well, I think it is easier to put a copy of the version byte and
> the algorithm identifier into the encrypted text:
> 
> E(random_prefix[blocksize+2],version_byte,algo_byte,plaintext,mdc_packet)

Yes. And we could require that MDC can *not* be turned off.
-- 
Regards,
Uri		uri@watson.ibm.com
-=-=-=-=-=-=-
<Disclaimer>


From owner-ietf-open-pgp@imc.org  Mon May 24 20:17:00 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA19322
	for <openpgp-archive@odin.ietf.org>; Mon, 24 May 1999 20:16:59 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA17592
	for ietf-open-pgp-bks; Mon, 24 May 1999 16:30:54 -0700 (PDT)
Received: from relay.gw.tislabs.com (firewall-user@relay.gw.tislabs.com [192.94.214.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA17585
	for <ietf-open-pgp@imc.org>; Mon, 24 May 1999 16:30:53 -0700 (PDT)
Received: by relay.gw.tislabs.com; id TAA28743; Mon, 24 May 1999 19:45:15 -0400 (EDT)
Received: from clipper.gw.tislabs.com(10.33.1.2) by relay.gw.tislabs.com via smap (4.1)
	id xma028732; Mon, 24 May 99 19:44:39 -0400
Received: (from balenson@localhost)
	by clipper.gw.tislabs.com (8.9.1/8.9.1) id TAA10029
	for ietf-open-pgp@imc.org; Mon, 24 May 1999 19:27:13 -0400 (EDT)
Date: Mon, 24 May 1999 19:27:13 -0400 (EDT)
From: "David M. Balenson" <balenson@tislabs.com>
Message-Id: <199905242327.TAA10029@clipper.gw.tislabs.com>
To: ietf-open-pgp@imc.org
Subject: REMINDER: CFP: ISOC Year 2000 Netw. & Distr. Sys. Security Symp. (NDSS 2000)
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>


            C  A  L  L       F  O  R       P  A  P  E  R  S


                          The Internet Society
           Year 2000 Network and Distributed System Security 
                         Symposium (NDSS 2000)

             Catamaran Resort Hotel, San Diego, California
                           February 2-4, 2000


IMPORTANT DATES:

  Paper and panel submissions due: June 16, 1999
  Author notification: August 17, 1999
  Final versions of papers and panels due: October 15, 1999

GOAL: 

  This symposium aims to foster information exchange among researchers
  and practitioners of network and distributed system security
  services.  The intended audience includes those who are interested
  in practical aspects of network and distributed system security,
  with the focus on actual system design and implementation, rather
  than theory. A major goal of the symposium is to encourage and
  enable the Internet community to apply, deploy, and advance the
  state of available security technology.  The proceedings of the
  symposium will be published by the Internet Society.

  Submissions are solicited for, but are not limited to, the
  following topics:

  * Secure Electronic Commerce, e.g., payment, barter, EDI,
    notarization/timestamping, endorsement and licensing.
  * Intellectual Property Protection: protocols, schemas,
    implementations, metering, watermarking, other forms of rights
    management.
  * Implementation, deployment and management of network security
    policies.
  * Integrating Security in Internet protocols: routing, naming,
    TCP/IP, multicast, network management, and, of course, the Web.
  * Attack-resistant protocols and services.
  * Special problems and case studies: e.g. interplay and tradeoffs
    between security and efficiency, usability, reliability and cost.
  * Security for collaborative applications and services: tele- and
    video-conferencing, groupwork, etc.
  * Fundamental services: authentication, data integrity,
    confidentiality, authorization, non-repudiation, and availability.
  * Supporting mechanisms and APIs: key management and certification,
    revocation, audit trails and accountability.
  * Integrating security services with system and application security
    facilities and protocols, e.g., message handling, file
    transport/access, directories, time synchronization, data base
    management, boot services, mobile computing.
  * Security for emerging technologies -- sensor networks, specialized
    testbeds, wireless/mobile (and ad hoc) networks, personal
    communication systems, and large heterogeneous distributed systems.
  * Intrusion Avoidance, Detection, and Response: systems, experiences
    and architectures
  * Network Perimeter Controls: firewalls, packet filters, application
    gateways.

BEST PAPER AWARD:

  A best paper award will be introduced at NDSS 2000. This award will
  be presented at the symposium to the authors of the best paper to
  be selected by the program committee.

GENERAL CHAIR:
  Stephen Welke, Trusted Computer Solutions

PROGRAM CO-CHAIRS:
  Gene Tsudik, USC / Information Sciences Institute
  Avi Rubin, AT&T Labs - Research

TUTORIAL CHAIR:
  Doug Maughan, NSA / DARPA

PROGRAM COMMITTEE:
  Bill Cheswick, Lucent Bell Labs  
  Marc Dacier, IBM Research Zurich 
  Jim Ellis, CMU / CERT
  Carl Ellison, Intel   
  Ed Felten, Princeton  
  Virgil Gligor, UMD College Park 
  Thomas Hardjono, Bay Networks/Nortel
  Cynthia Irvine, Naval Postgraduate School
  Charlie Kaufman,  Iris Associates
  Dave Kormann, AT&T Labs - Research 
  Hugo Krawczyk, Technion and IBM
  Carl Landwehr, Naval Research Lab
  Doug Maughan, NSA / DARPA   
  Gary McGraw, Reliable Software Technologies  
  Sandra Murphy, TIS Labs at Network Associates   
  Clifford Neuman, USC / Information Sciences Institute
  Paul Van Oorschot, Entrust
  Sami Saydjari, DARPA ISO 
  David Wagner, UC Berkeley   
  Bennet Yee, UC San Diego

LOCAL ARRANGEMENTS CHAIR:
  Thomas Hutton, San Diego Supercomputer Center

PUBLICATIONS CHAIR:
  John Kochmar, SEI

PUBLICITY CHAIR:
  David Balenson, TIS Labs at Network Associates   

LOGISTICS CHAIR:
  Carla Rosenfeld, Internet Society

REGISTRATIONS CHAIR
  Beth Strait, Internet Society

SUBMISSIONS: 

  The committee invites both technical papers and panel proposals.
  Technical papers should be at most 20 pages long. Panel proposals
  should be at most two pages and should describe the topic, identify
  the panel chair, explain the format of the panel, and list three
  to four potential panelists.  Technical papers will appear in
  the proceedings. A description of each panel will appear in the
  proceedings, and may -- at the discretion of the panel chair --
  include written position statements from the panelists.

  Each submission must contain a separate title page with the type
  of submission (paper or panel), the title or topic, the names of
  the author(s), organizational affiliation(s), telephone and FAX
  numbers, postal addresses, e-mail addresses, and must specify
  the contact author in case of multi-author submissions. The names
  of authors, affiliations, and other identifying information should
  appear only on the separate title page.

  Submissions must be received by June 16, 1999, and must be made
  via electronic mail in either PostScript or ASCII format.  If
  the committee is unable to print a PostScript submission, a
  hardcopy will be requested. Therefore, PostScript submissions
  must arrive well before the deadline.

  All submissions and program related correspondence (only) should
  be directed to the program chair:

        Gene Tsudik     
        USC Information Sciences Institute      
        4676 Admiralty Way      
        Marina Del Rey, CA 90292        
        Email: ndss00@isi.edu
        TEL: +1 (310) 822-1511 ext 329
        FAX: +1 (310) 823-6714 

  Dates, final call for papers, advance program, and registration
  information will be available soon at the URL: httl//www.isoc.org/ndss2000.

  Each submission will be acknowledged by e-mail.  If acknowledgment
  is not received within seven days, please contact the program
  chair as indicated above.  Authors and panelists will be notified
  of acceptance by August 17, 1999.  Instructions for preparing
  camera-ready copy for the proceedings will be sent at that time.
  The camera-ready copy must be received by October 15, 1999.



From owner-ietf-open-pgp@imc.org  Tue May 25 03:02:55 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id DAA06529
	for <openpgp-archive@odin.ietf.org>; Tue, 25 May 1999 03:02:55 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id XAA00806
	for ietf-open-pgp-bks; Mon, 24 May 1999 23:11:44 -0700 (PDT)
Received: from smtp1.hetnet.nl (smtp1.hetnet.nl [145.7.225.1])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id XAA00802
	for <ietf-open-pgp@imc.org>; Mon, 24 May 1999 23:11:43 -0700 (PDT)
Received: from hetnet.nl ([194.151.104.130]) by smtp1.hetnet.nl  with Microsoft SMTPSVC(5.5.1877.977.9);
	 Tue, 25 May 1999 08:08:35 +0200
Received: from mail pickup service by hetnet.nl with Microsoft SMTPSVC;
	 Tue, 25 May 1999 08:10:03 +0200
Received: from smtp2.hetnet.nl ([145.7.226.1]) by hetnet.nl  with Microsoft SMTPSVC(5.5.1877.117.11);
	 Sun, 23 May 1999 10:38:14 +0200
Received: from mail.proper.com ([206.86.127.224]) by smtp2.hetnet.nl  with Microsoft SMTPSVC(5.5.1877.977.9);
	 Sun, 23 May 1999 10:30:06 +0200
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id AAA18777
	for ietf-open-pgp-bks; Sun, 23 May 1999 00:34:01 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA18771
	for <ietf-open-pgp@imc.org>; Sun, 23 May 1999 00:33:59 -0700 (PDT)
Received: from mailhub.watson.ibm.com (mailhub.watson.ibm.com [9.2.250.97])
	by igw3.watson.ibm.com (8.9.3/8.9.3/05-14-1999) with ESMTP id DAA06818;
	Sun, 23 May 1999 03:34:21 -0400
Received: from buoy.watson.ibm.com (buoy.watson.ibm.com [9.2.3.94]) by mailhub.watson.ibm.com (8.8.7/Feb-20-98) with SMTP id DAA13046; Sun, 23 May 1999 03:34:21 -0400
Received: by buoy.watson.ibm.com (AIX 4.1/UCB 5.64/6/25/96)
          id AA22474; Sun, 23 May 1999 03:34:17 -0400
From: uri <uri@watson.ibm.com>
Message-Id: <9905230734.AA22474@buoy.watson.ibm.com>
Subject: Re: Agree with PRZs MDC suggestion
To: wk@isil.d.shuttle.de (Werner Koch)
Date: Sun, 23 May 1999 03:34:17 -0400 (EDT)
Cc: ietf-open-pgp@imc.org
In-Reply-To: <19990522121550.D32457@frodo.isil.d.shuttle.de> from "Werner Koch" at May 22, 99 12:15:50 pm
Reply-To: uri@watson.ibm.com
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Werner Koch says:
> > Because someone was suggesting that if anyone ever changed the algorithm
> > ID byte they could turn off the MDC.  That could be prevented by a
> 
> Ah well, I think it is easier to put a copy of the version byte and
> the algorithm identifier into the encrypted text:
> 
> E(random_prefix[blocksize+2],version_byte,algo_byte,plaintext,mdc_packet)

Yes. And we could require that MDC can *not* be turned off.
-- 
Regards,
Uri		uri@watson.ibm.com
-=-=-=-=-=-=-
<Disclaimer>


From owner-ietf-open-pgp@imc.org  Tue May 25 09:03:44 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA12316
	for <openpgp-archive@odin.ietf.org>; Tue, 25 May 1999 09:03:42 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id FAA11898
	for ietf-open-pgp-bks; Tue, 25 May 1999 05:05:18 -0700 (PDT)
Received: from pascal.sobolev.rhein.de (dial15.ip.lu [208.161.252.79])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id FAA11893
	for <ietf-open-pgp@imc.org>; Tue, 25 May 1999 05:05:15 -0700 (PDT)
Received: by pascal.sobolev.rhein.de (Postfix, from userid 1000)
	id 7B0941124; Tue, 25 May 1999 13:55:21 +0200 (CEST)
Date: Tue, 25 May 1999 13:55:19 +0200
From: Thomas Roessler <roessler@guug.de>
To: ietf-open-pgp@imc.org
Subject: critical notation data sub-packets
Message-ID: <19990525135518.G4539@sobolev.rhein.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.2i
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

The specification is a bit ambiguous about "notation data" signature
subpackets marked as "critical".

Implementors may assume that their implementations can safely ignore
such subpackets since they do "understand" "notation data".  This
may lead to problems with human-readable notation data whose display
to the user may be critical for whatever reason (including legal
ones, think liability limitations), and it may lead to even worse
problems with notation data which is not human-readable.

How do the current implementations handle this situation (most
notably the NAI ones)?  Should the specification be changed?  Should
extensions to RFC 2440 which have to put critical information into
signatures define sub-packets of their own, or should they use
notation data to avoid name-space cluttering?


From owner-ietf-open-pgp@imc.org  Tue May 25 10:44:01 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA18348
	for <openpgp-archive@odin.ietf.org>; Tue, 25 May 1999 10:44:00 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA14705
	for ietf-open-pgp-bks; Tue, 25 May 1999 06:50:41 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA14701
	for <ietf-open-pgp@imc.org>; Tue, 25 May 1999 06:50:39 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id PAA04600
	for ietf-open-pgp@imc.org; Tue, 25 May 1999 15:51:08 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10mHKa-0002YU-00; Tue, 25 May 1999 15:33:20 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10mHIV-0003F0-00; Tue, 25 May 1999 15:31:11 +0200
Date: Tue, 25 May 1999 15:31:11 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: critical notation data sub-packets
Message-ID: <19990525153111.Y11747@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <19990525135518.G4539@sobolev.rhein.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <19990525135518.G4539@sobolev.rhein.de>; from Thomas Roessler on Tue, May 25, 1999 at 01:55:19PM +0200
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Thomas Roessler <roessler@guug.de> writes:

> The specification is a bit ambiguous about "notation data" signature
> subpackets marked as "critical".

I don't think so:  If an implementation encounters notation data with
critical bit set and it completely understands the semantics of this
notation data, it can verify the signature.  

To understand this notation data the implementaion might also want to
consult the policy URL to distinguish between different semantics.

The critical bit does not say anthing about how to handle this
subpacket; the implemenation is only required to understand that this
is critical and there is no required action defined for any
subpackets.  I don't think this is within the scope of OpenPGP. 
Definitions of the trust modell and the classes of signatures are 
are on purpose very loose.

> extensions to RFC 2440 which have to put critical information into
> signatures define sub-packets of their own, or should they use

We should avoid to use private sub-packets when there is another way 
to do the task. 


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Tue May 25 12:17:44 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA23570
	for <openpgp-archive@odin.ietf.org>; Tue, 25 May 1999 12:17:43 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA17519
	for ietf-open-pgp-bks; Tue, 25 May 1999 08:14:22 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA17515
	for <ietf-open-pgp@imc.org>; Tue, 25 May 1999 08:14:20 -0700 (PDT)
Received: by brickwall.ceddec.com id <42115>; Tue, 25 May 1999 11:14:46 -0400
Date: Tue, 25 May 1999 11:14:39 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: Werner Koch <wk@isil.d.shuttle.de>
cc: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <19990522121550.D32457@frodo.isil.d.shuttle.de>
Message-Id: <99May25.111446edt.42115@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Sat, 22 May 1999, Werner Koch wrote:

> > > Why an extra checksum if we already have an MDC?
> > 
> > Because someone was suggesting that if anyone ever changed the algorithm
> > ID byte they could turn off the MDC.  That could be prevented by a
> 
> Ah well, I think it is easier to put a copy of the version byte and
> the algorithm identifier into the encrypted text:
> 
> E(random_prefix[blocksize+2],version_byte,algo_byte,plaintext,mdc_packet)

Blocksize+2?  Are we doing PGP-cfbs still?  Also, by mdc_packet, I take it
to mean you mean a real packet (i.e. there is a virtual EOF after the
plaintext)?

> > And I might want to specify other algorithm IDs, e.g. the Palm Pilot has
> > MD5 (and DES) in the OS kernel, but not SHA1.  I would really prefer to
> > have my MDCs there as MD5, and use 3DES for a minimal Palm implementation.
> 
> Makes sense for me.  And I think it is better to use OpenPGP
> dataformats than to use somethin else or invent another one.
> 
> Is it okay to have SHOULD use SHA1-MDC and SHOULD give a warning if
> another MDC is used? 

I think SHOULD use SHA1-MDC is best, but I am not sure about the warning
part.  I think it might be proper to give a warning on the creation (much
like giving a warning against using MAY or private algorithms other places
where most PGP implementations won't be able to handle it).

I forget if RMD160 or MD5 in the normal context are MAY or SHOULDs, but if
they are SHOULDs, I wouldn't want to give a warning.  Implementations
SHOULD be able to use any hash for MDC that they use for signatures.



From owner-ietf-open-pgp@imc.org  Tue May 25 12:19:11 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA23670
	for <openpgp-archive@odin.ietf.org>; Tue, 25 May 1999 12:19:10 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA17833
	for ietf-open-pgp-bks; Tue, 25 May 1999 08:26:28 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA17828
	for <ietf-open-pgp@imc.org>; Tue, 25 May 1999 08:26:26 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id RAA15381
	for ietf-open-pgp@imc.org; Tue, 25 May 1999 17:26:57 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10mJ4k-0002bp-00; Tue, 25 May 1999 17:25:06 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10mJ2g-0003yo-00; Tue, 25 May 1999 17:22:58 +0200
Date: Tue, 25 May 1999 17:22:58 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990525172258.C11747@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <19990522121550.D32457@frodo.isil.d.shuttle.de> <99May25.111446edt.42115@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May25.111446edt.42115@brickwall.ceddec.com>; from Tom Zerucha on Tue, May 25, 1999 at 11:14:39AM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha <tzeruch@ceddec.com> writes:

> Blocksize+2?  Are we doing PGP-cfbs still?  Also, by mdc_packet, I take it

Sure ;-)  But without the extra sync step.

> to mean you mean a real packet (i.e. there is a virtual EOF after the

Yes.

> I think SHOULD use SHA1-MDC is best, but I am not sure about the warning
> part.  I think it might be proper to give a warning on the creation (much
> like giving a warning against using MAY or private algorithms other places

You are right.  It is not a security issue if one of the other hash
algorithms is used - but it may lead to a problem at the receivers
side to verify the MDC.


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Tue May 25 12:49:25 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA24828
	for <openpgp-archive@odin.ietf.org>; Tue, 25 May 1999 12:49:24 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA18802
	for ietf-open-pgp-bks; Tue, 25 May 1999 08:50:20 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA18798
	for <ietf-open-pgp@imc.org>; Tue, 25 May 1999 08:50:19 -0700 (PDT)
From: hal@226-132.adsl2.avtel.net
Received: (from hal@localhost)
	by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id IAA16490;
	Tue, 25 May 1999 08:51:01 -0700
Date: Tue, 25 May 1999 08:51:01 -0700
Message-Id: <199905251551.IAA16490@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, roessler@guug.de
Subject: Re: critical notation data sub-packets
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Thomas Roessler, <roessler@guug.de>, writes:
> How do the current implementations handle this situation (most
> notably the NAI ones)?  Should the specification be changed?  Should
> extensions to RFC 2440 which have to put critical information into
> signatures define sub-packets of their own, or should they use
> notation data to avoid name-space cluttering?

The NAI software ignores notation packets.  If they are marked critical,
it treats the signature as invalid for trust calculation purposes.

Notation data is meant as an extension mechanism which is more text
oriented rather than using new binary signature packets.

I would suggest that if the human-readable bit is set, the only
obligation on the part of the application is to display it to the user.
If it does so, then it can consider the notation "handled" and it can
validate the signature even if the critical bit is set.  (Probably it
would be a good idea to note to the user that the critical bit was set,
when the notation was displayed.)

If the human-readable bit is not set, then the application should see
if the name field in the notation is one that it recognizes the meaning
of.  If not, and the critical bit is set, it should not validate the
signature, because it doesn't know what this critical packet is trying
to say.

Hal Finney
Network Associates, Inc.


From owner-ietf-open-pgp@imc.org  Wed May 26 07:32:07 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA21076
	for <openpgp-archive@odin.ietf.org>; Wed, 26 May 1999 07:32:06 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id DAA29391
	for ietf-open-pgp-bks; Wed, 26 May 1999 03:43:13 -0700 (PDT)
Received: from pascal.sobolev.rhein.de (dial02.ip.lu [208.161.252.66])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id DAA29387
	for <ietf-open-pgp@imc.org>; Wed, 26 May 1999 03:43:09 -0700 (PDT)
Received: by pascal.sobolev.rhein.de (Postfix, from userid 1000)
	id 0C2B8112A; Wed, 26 May 1999 12:13:37 +0200 (CEST)
Date: Wed, 26 May 1999 12:13:36 +0200
From: Thomas Roessler <roessler@guug.de>
To: ietf-open-pgp@imc.org
Subject: Re: critical notation data sub-packets
Message-ID: <19990526121334.G6141@sobolev.rhein.de>
References: <19990525135518.G4539@sobolev.rhein.de> <19990525153111.Y11747@frodo.isil.d.shuttle.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.2i
In-Reply-To: <19990525153111.Y11747@frodo.isil.d.shuttle.de>
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On 1999-05-25 15:31:11 +0200, Werner Koch wrote:

> We should avoid to use private sub-packets when there is another
> way to do the task.

I'm not thinking about private ones. ;-)

The current spec says:

   This subpacket describes a "notation" on the signature that the
   issuer wishes to make. The notation has a name and a value, each
   of which are strings of octets. There may be more than one
   notation in a signature. Notations can be used for any extension
   the issuer of the signature cares to make.

While this is really fine for private extensions, I see a problem
with using notation data to put information into a sigature
sub-packet in a standardized way.  Essentially, we are lacking a
registry (or a conflict-free naming scheme) for notation data names.

So, to the working group: Should standardized signature extensions
go into sub-packets of their own, or should one start to standardize
certain notation data names?


From owner-ietf-open-pgp@imc.org  Thu May 27 05:49:09 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA24305
	for <openpgp-archive@odin.ietf.org>; Thu, 27 May 1999 05:49:08 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id CAA18593
	for ietf-open-pgp-bks; Thu, 27 May 1999 02:05:59 -0700 (PDT)
Received: from NIH2WAAD (smtp4.site1.csi.com [149.174.183.73])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id CAA18589
	for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 02:05:58 -0700 (PDT)
Received: from mail pickup service by csi.com with Microsoft SMTPSVC;
	 Thu, 27 May 1999 05:05:52 -0400
Received: from pc23i ([195.232.69.172] (may be forged))
	by hil-img-ims-1.compuserve.com (8.8.6/8.8.6/IMS-1.7) with SMTP id FAA14633
	for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 05:05:04 -0400 (EDT)
Message-ID: <007501bea81f$8603ef90$ac45e8c3@pc23i.informatique.sercami.dci.com>
From: "Emmanuel COLUSSI" <mcolussi@csi.com>
To: <ietf-open-pgp@imc.org>
Subject: LDAP Key Server
Date: Thu, 27 May 1999 11:01:32 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0072_01BEA830.47CB8790"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

This is a multi-part message in MIME format.

------=_NextPart_000_0072_01BEA830.47CB8790
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I use PGPfree6.0.2i.
I would create a LDAP Key Server.
What DN structure do you use ? for send key=20
and what is the bind login.

Thanks for your help

Emmanuel Colussi
Email : mcolussi@compuserve.com

------=_NextPart_000_0072_01BEA830.47CB8790
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2014.210" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>
<DIV><FONT size=3D2>I use PGPfree6.0.2i.</FONT></DIV>
<DIV><FONT size=3D2>I would create a LDAP Key Server.</FONT></DIV>
<DIV><FONT size=3D2>What DN structure do you use ? for send key =
</FONT></DIV>
<DIV><FONT size=3D2>and what is the bind login.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanks for your help</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT><FONT size=3D2>Emmanuel Colussi<BR>Email : <A=20
href=3D"mailto:mcolussi@compuserve.com">mcolussi@compuserve.com</A></FONT=
></DIV></DIV></BODY></HTML>

------=_NextPart_000_0072_01BEA830.47CB8790--





From owner-ietf-open-pgp@imc.org  Thu May 27 16:38:10 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA04809
	for <openpgp-archive@odin.ietf.org>; Thu, 27 May 1999 16:38:10 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA28004
	for ietf-open-pgp-bks; Thu, 27 May 1999 12:37:08 -0700 (PDT)
Received: from kingcrab.informix.com (dns3.informix.com [192.147.112.7])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA27999
	for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 12:37:07 -0700 (PDT)
Received: from parrot.informix.com (parrot.mp.informix.com [158.58.8.22]) by kingcrab.informix.com (8.8.5/8.7.3) with ESMTP id MAA07627; Thu, 27 May 1999 12:37:47 -0700 (PDT)
Received: from repenning (repenning.mp.informix.com [158.58.9.204])
	by parrot.informix.com (8.8.8+Sun/8.8.8) with SMTP id MAA03186;
	Thu, 27 May 1999 12:37:44 -0700 (PDT)
Message-Id: <4.1.19990527122945.00a66320@parrot.mp.informix.com>
X-Sender: jackr@parrot.mp.informix.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 27 May 1999 12:36:15 -0700
To: Thomas Roessler <roessler@guug.de>
From: Jack Repenning <jackr@informix.com>
Subject: Re: critical notation data sub-packets
Cc: ietf-open-pgp@imc.org
In-Reply-To: <19990526121334.G6141@sobolev.rhein.de>
References: <19990525153111.Y11747@frodo.isil.d.shuttle.de>
 <19990525135518.G4539@sobolev.rhein.de>
 <19990525153111.Y11747@frodo.isil.d.shuttle.de>
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="=====================_100493171==_.ALT"
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

--=====================_100493171==_.ALT
Content-Type: text/plain; charset="us-ascii"


At 03:13 AM 5/26/99 , Thomas Roessler wrote:

>So, to the working group: Should standardized signature extensions
>go into sub-packets of their own, or should one start to standardize
>certain notation data names?

What about the rfc822 weasel:

     extension-field =
                   <Any field which is defined in a document
                    published as a formal extension to this
                    specification; none will have names beginning
                    with the string "X-">
 
     user-defined-field =
                   <Any field which has not been defined
                    in this specification or published as an
                    extension to this specification; names for
                    such fields must be unique and may be
                    pre-empted by published extensions>

I don't believe there's any clearing-house for user-defined-field names (is
there?). 






Informix Software, Inc.        Jack Repenning
Config/Release Mgmt            jackr@informix.com
4100 Bohannon Drive            M/S: 4100/2
Menlo Park, CA 94025           FAX: 650/926-6571
VOICE: 650/926-1044               PAGE: 800/781-6182
PGP/RSA: D24B E2C2 9AFB 7C24 : 7E59 7885 525D 644E
PGP/DSS: 955C 44AD 8FCE 77D4 9494 \
          : 4AB2 51F1 3EED 3B82 E870

--=====================_100493171==_.ALT
Content-Type: text/html; charset="us-ascii"

<html><div>At 03:13 AM 5/26/99 , Thomas Roessler wrote:</div>
<br>
<div>&gt;So, to the working group: Should standardized signature
extensions</div>
<div>&gt;go into sub-packets of their own, or should one start to
standardize</div>
<div>&gt;certain notation data names?</div>
<br>
<div>What about the rfc822 weasel:</div>
<br>
<div>&nbsp;&nbsp;&nbsp;&nbsp; extension-field =</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Any field which is defined in a document</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
published as a formal extension to this</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
specification; none will have names beginning</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
with the string &quot;X-&quot;&gt;</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; user-defined-field =</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Any field which has not been defined</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
in this specification or published as an</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
extension to this specification; names for</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
such fields must be unique and may be</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
pre-empted by published extensions&gt;</div>
<br>
I don't believe there's any clearing-house for user-defined-field names
(is there?).
<br>

<br>
<br>
<br>
<br>
<br>
<br>
<b>Inform<font face="Bookman Old Style, Bookman" size=4 color="#FF0000"><i>i</font></i><font face="Bookman Old Style, Bookman" size=4 color="#0000FF">x</font>
</b>Software, Inc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jack Repenning<br>
Config/Release Mgmt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jackr@informix.com<br>
4100 Bohannon Drive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; M/S: 4100/2<br>
Menlo Park, CA 94025&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FAX: 650/926-6571<br>
VOICE: 650/926-1044<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&nbsp; PAGE: 800/781-6182<br>
PGP/RSA: D24B E2C2 9AFB 7C24 : 7E59 7885 525D 644E<br>
PGP/DSS: 955C 44AD 8FCE 77D4 9494 \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 4AB2 51F1 3EED 3B82 E870<br>
</html>

--=====================_100493171==_.ALT--



From owner-ietf-open-pgp@imc.org  Thu May 27 19:07:40 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA05986
	for <openpgp-archive@odin.ietf.org>; Thu, 27 May 1999 19:07:39 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id PAA01423
	for ietf-open-pgp-bks; Thu, 27 May 1999 15:24:05 -0700 (PDT)
Received: from public.uni-hamburg.de (public.rrz.uni-hamburg.de [134.100.32.55])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id PAA01418
	for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 15:24:03 -0700 (PDT)
Received: from paris.public.uni-hamburg.de (max2-010.public.uni-hamburg.de [134.100.45.10])
	by public.uni-hamburg.de (8.8.8/8.8.8) with SMTP id AAA32782
	for <ietf-open-pgp@imc.org>; Fri, 28 May 1999 00:24:44 +0200
Received: by ulf.mali.sub.org (Smail3.1.28.1 #1)
	id m10n8Yn-0003b8C; Fri, 28 May 99 00:23 +0200
Message-Id: <m10n8Yn-0003b8C@ulf.mali.sub.org>
Date: Fri, 28 May 99 00:23 +0200
From: Bodo_Moeller@public.uni-hamburg.de (Bodo Moeller)
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <9905230734.AA22474@buoy.watson.ibm.com>
Organization: Hamburg University
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

uri@watson.ibm.com:

> Yes. And we could require that MDC can *not* be turned off.

What does that mean for existing implementations?  Will they tolerate
the extra packets?


From owner-ietf-open-pgp@imc.org  Thu May 27 20:40:37 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA06436
	for <openpgp-archive@odin.ietf.org>; Thu, 27 May 1999 20:40:37 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA03222
	for ietf-open-pgp-bks; Thu, 27 May 1999 17:03:34 -0700 (PDT)
Received: from relay.veriguard.com (firewall-user@relay.veriguard.com [207.5.63.61])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA03215
	for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 17:03:29 -0700 (PDT)
Received: by relay.veriguard.com; id JAA06698; Thu, 27 May 1999 09:04:34 -0700 (PDT)
Received: from unknown(10.5.63.113) by relay.veriguard.com via smap (4.1)
	id xma006686; Thu, 27 May 99 09:03:44 -0700
X-Sender: jon@127.0.0.1
Message-Id: <v04003a04b37385763dff@[10.5.63.113]>
In-Reply-To: <19990526121334.G6141@sobolev.rhein.de>
References: <19990525153111.Y11747@frodo.isil.d.shuttle.de>
 <19990525135518.G4539@sobolev.rhein.de>
 <19990525153111.Y11747@frodo.isil.d.shuttle.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 27 May 1999 17:03:06 -0700
To: ietf-open-pgp@imc.org
From: Jon Callas <jon@callas.org>
Subject: Re: critical notation data sub-packets
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

The purpose of the notation subpackets is to have a general-purpose
mechanism for implementors to put in their own extensions, so yes, people
should (in general) use those for any private or controversial additions to
signatures.

Sooner or later, we probably will need a registration system for them, or
some naming convention. Right now, there are a number of obvious things you
can do to restrict conficts, like prefixing your notation name with a
domain name (like foobar.com-private-value) and that will work.

This saves the subpacket versions for something we know we need -- for
example a subpacket that has an implemented features list (like MDC data
packets).

As for the critical bit, in my opinion, it is a way for the writer of a
signature to tell something to the reader. The reader, though, always has
the final say. A few examples:

A human-readable subpacket that's marked critical seems to be something
that the writer really wanted the reader to see. But the reader's software
may have an option to turn it off. I can see where someone might put
human-readable limits of liability or other such crud in there, and I don't
want to have legalese pop up in a window every time I use someone's key.
(But in such a case, I might solve it by deleting that signature,
personally.) So it's perfectly reasonable for an implementation to ignore a
critical human-readable notation. Similarly, a system that's running as a
robot is correct to ignore a critical human readable subpacket.

I think that it's merely impolite (as opposed to non-compliant) for an
implementation to ignore a critical bit. I'll spin another scenario.
Suppose XYZcorp makes an OpenPGP implementation, and they create some
feature that they want everyone else to support, so they mark it as
"critical" in all signatures they create. It's obnoxious, but it wouldn't
be the first time a vendor tried to bully features into a standard. If
another vendor ignored all critical bits on notations that started with
"xyzcorp.com" because of abuse of criticality, I wouldn't call them
non-compliant. If a different vendor was even more gonzo, again, it's up to
users to appeal to them to do the right thing (whatever than means). I
don't want to see it be a standards issue.

This is also the reason why we have a "receiver wins" policy in algorithms.
It is to forestall the case where someone tries to force their feature on
the world.

	Jon




From owner-ietf-open-pgp@imc.org  Thu May 27 20:40:38 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA06440
	for <openpgp-archive@odin.ietf.org>; Thu, 27 May 1999 20:40:37 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA03209
	for ietf-open-pgp-bks; Thu, 27 May 1999 17:02:41 -0700 (PDT)
Received: from relay.veriguard.com (firewall-user@relay.veriguard.com [207.5.63.61])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA03204
	for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 17:02:37 -0700 (PDT)
Received: by relay.veriguard.com; id JAA06681; Thu, 27 May 1999 09:03:34 -0700 (PDT)
Received: from unknown(10.5.63.113) by relay.veriguard.com via smap (4.1)
	id xma006677; Thu, 27 May 99 09:03:07 -0700
X-Sender: jon@127.0.0.1
Message-Id: <v04003a05b37386b7897d@[10.5.63.113]>
In-Reply-To: <199904231819.UAA05631@mail.replay.com>
References: <v04003a4bb34400766447@[38.232.7.6]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 27 May 1999 16:35:37 -0700
To: Anonymous <nobody@replay.com>, ietf-open-pgp@imc.org
From: Jon Callas <jon@callas.org>
Subject: V5 signatures
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

At 11:19 AM -0700 4/23/1999, Anonymous said:

Sorry for dropping this on the floor..

   > (4) A V5 signature packet that allows 4-byte lengths.

   Yet another signature packet version! Is this a scheme to increase
   S/MIME support?

No, it's there for things like PGP ticket. If someone is building a
lightweight authorization scheme, it's conceivable that a signature would
need to be bigger than 8383 bytes. V4 signatures don't allow that.

	Jon





From owner-ietf-open-pgp@imc.org  Fri May 28 02:13:22 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id CAA23058
	for <openpgp-archive@odin.ietf.org>; Fri, 28 May 1999 02:13:21 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id WAA13751
	for ietf-open-pgp-bks; Thu, 27 May 1999 22:25:21 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id WAA13747
	for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 22:25:19 -0700 (PDT)
Received: from mailhub.watson.ibm.com (mailhub.watson.ibm.com [9.2.250.97])
	by igw3.watson.ibm.com (8.9.3/8.9.3/05-14-1999) with ESMTP id BAA16220;
	Fri, 28 May 1999 01:26:06 -0400
Received: from buoy.watson.ibm.com (buoy.watson.ibm.com [9.2.3.94]) by mailhub.watson.ibm.com (8.8.7/Feb-20-98) with SMTP id BAA11752; Fri, 28 May 1999 01:26:05 -0400
Received: by buoy.watson.ibm.com (AIX 4.1/UCB 5.64/6/25/96)
          id AA23486; Fri, 28 May 1999 01:26:05 -0400
From: uri <uri@watson.ibm.com>
Message-Id: <9905280526.AA23486@buoy.watson.ibm.com>
Subject: Re: Agree with PRZs MDC suggestion
To: Bodo_Moeller@public.uni-hamburg.de (Bodo Moeller)
Date: Fri, 28 May 1999 01:26:05 -0400 (EDT)
Cc: ietf-open-pgp@imc.org
In-Reply-To: <m10n8Yn-0003b8C@ulf.mali.sub.org> from "Bodo Moeller" at May 28, 99 00:23:00 am
Reply-To: uri@watson.ibm.com
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Bodo Moeller says:
> > Yes. And we could require that MDC can *not* be turned off.
> 
> What does that mean for existing implementations? Will they tolerate
> the extra packets?

Will they tolerate the extra encryption algorithms? The extra
signature methods? The extra...?

In short, let bygones be bygones.
-- 
Regards,
Uri		uri@watson.ibm.com
-=-=-=-=-=-=-
<Disclaimer>


From owner-ietf-open-pgp@imc.org  Fri May 28 05:14:07 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA23939
	for <openpgp-archive@odin.ietf.org>; Fri, 28 May 1999 05:14:06 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id BAA15942
	for ietf-open-pgp-bks; Fri, 28 May 1999 01:20:41 -0700 (PDT)
Received: from koeln.shuttle.de (koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA15937
	for <ietf-open-pgp@imc.org>; Fri, 28 May 1999 01:20:37 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id KAA18983
	for ietf-open-pgp@imc.org; Fri, 28 May 1999 10:21:21 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10nHkH-0004wV-00; Fri, 28 May 1999 10:12:01 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10nHin-0007T4-00; Fri, 28 May 1999 10:10:29 +0200
Date: Fri, 28 May 1999 10:10:29 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: V5 signatures
Message-ID: <19990528101029.H27694@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <v04003a4bb34400766447@[38.232.7.6]> <199904231819.UAA05631@mail.replay.com> <v04003a05b37386b7897d@[10.5.63.113]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <v04003a05b37386b7897d@[10.5.63.113]>; from Jon Callas on Thu, May 27, 1999 at 04:35:37PM -0700
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Jon Callas <jon@callas.org> writes:

> No, it's there for things like PGP ticket. If someone is building a
> lightweight authorization scheme, it's conceivable that a signature would
> need to be bigger than 8383 bytes. V4 signatures don't allow that.

How did you calculate this?

5.2.3.1 says somewhere:

       if the 1st octet = 255, then
           lengthOfLength = 5
           subpacket length = [four-octet scalar starting at 2nd_octet]

However, the octet count for the [un]hashed subpackets is limited to
65535.

Because this is a conflict we really should address it with a new v5
signature paket.  Changes to an implementaion are minimal.  And while
we are at it, we should consider to apply some rules to the name part
of notation data - so that we can have unique names.  Thomas Roessler
already mentioned this and proposed a SSH like scheme for this.


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Fri May 28 06:19:05 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA24201
	for <openpgp-archive@odin.ietf.org>; Fri, 28 May 1999 06:19:04 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id CAA16675
	for ietf-open-pgp-bks; Fri, 28 May 1999 02:22:52 -0700 (PDT)
Received: from pascal.sobolev.rhein.de (dial24.ip.lu [208.161.252.88])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id CAA16669
	for <ietf-open-pgp@imc.org>; Fri, 28 May 1999 02:22:46 -0700 (PDT)
Received: by pascal.sobolev.rhein.de (Postfix, from userid 1000)
	id 4DC441124; Fri, 28 May 1999 11:27:11 +0200 (CEST)
Date: Fri, 28 May 1999 11:27:10 +0200
From: Thomas Roessler <roessler@guug.de>
To: ietf-open-pgp@imc.org
Subject: Re: V5 signatures
Message-ID: <19990528112707.D12254@sobolev.rhein.de>
References: <v04003a4bb34400766447@[38.232.7.6]> <199904231819.UAA05631@mail.replay.com> <v04003a05b37386b7897d@[10.5.63.113]> <19990528101029.H27694@frodo.isil.d.shuttle.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.2i
In-Reply-To: <19990528101029.H27694@frodo.isil.d.shuttle.de>
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On 1999-05-28 10:10:29 +0200, Werner Koch wrote:

> Because this is a conflict we really should address it with a new
> v5 signature paket.  Changes to an implementaion are minimal.  And
> while we are at it, we should consider to apply some rules to the
> name part of notation data - so that we can have unique names.
> Thomas Roessler already mentioned this and proposed a SSH like
> scheme for this.

I wouldn't confine this to V5 signatures. ;)

As for notation data naming, the suggestion is as follows.  It's
derived from what the secsh internet drafts do for "registering"
new algorithms.

------------------------------

Notation data naming

   OpenPGP "notation data" signature sub-packets traditionally consist
   of a name and a value, both of which are arbitrary, UTF-8 encoded
   strings.

   The OpenPGP standard does not define any registry for defined
   notation data names, nor does it describe safe extension mechanisms.

   The present document defines two name spaces for notation data names:
   The IETF name space and the user name space.

   Notation data names in the IETF name space consist of an arbitrary
   string of UTF-8 encoded characters, with the exception that the
   character "@" ("at") MUST NOT occur in such a name.

   XXX - describe IANA registration procedures.

   Notation data names in the user name space consist of a tag, followed
   by the "@" character, followed by a DNS domain name.  The tag may be
   an arbitrary string of UTF-8 encoded characters, with the exception
   that the character "@" MUST NOT occur in such a name.  The DNS domain
   name must be under the exclusive control of the person or entity
   which introduces the notation data name in question.

   For example, if The Example Corporation wishes to introduce sample
   notation data, the appropriate notation data name could be
   "sample@example.com".

------------------------------



From owner-ietf-open-pgp@imc.org  Fri May 28 07:42:27 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA25003
	for <openpgp-archive@odin.ietf.org>; Fri, 28 May 1999 07:42:26 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id DAA20027
	for ietf-open-pgp-bks; Fri, 28 May 1999 03:50:43 -0700 (PDT)
Received: from koeln.shuttle.de (koeln.shuttle.de [194.95.247.252])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id DAA20022
	for <ietf-open-pgp@imc.org>; Fri, 28 May 1999 03:50:32 -0700 (PDT)
Received: (from uucp@localhost)
	by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id MAA06315
	for ietf-open-pgp@imc.org; Fri, 28 May 1999 12:51:10 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail)
	by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian))
	id 10nK24-00050s-00; Fri, 28 May 1999 12:38:32 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian))
	id 10nK0b-0007Wn-00; Fri, 28 May 1999 12:37:01 +0200
Date: Fri, 28 May 1999 12:37:01 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: V5 signatures
Message-ID: <19990528123701.A28938@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <v04003a4bb34400766447@[38.232.7.6]> <199904231819.UAA05631@mail.replay.com> <v04003a05b37386b7897d@[10.5.63.113]> <19990528101029.H27694@frodo.isil.d.shuttle.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <19990528101029.H27694@frodo.isil.d.shuttle.de>; from Werner Koch on Fri, May 28, 1999 at 10:10:29AM +0200
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Werner Koch <wk@isil.d.shuttle.de> writes:

> However, the octet count for the [un]hashed subpackets is limited to
> 65535.

It just came to my mind, that large signature packets (currently they
have a limit of about 128k) do impose a problem:

It will then not be possible to keep the complete signature packet in
memory.  Signatures may be (theoretical) very large - up to 4 Gigs and
due to this they have to be handled like plaintext.

Doess it really make sense to build a protocol - based on OpenPGP - 
which puts all it's dat into a signature packet?  Such data should go
into a literal text packet or some new packet type.
 

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



From owner-ietf-open-pgp@imc.org  Fri May 28 17:04:18 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA01969
	for <openpgp-archive@odin.ietf.org>; Fri, 28 May 1999 17:04:17 -0400 (EDT)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA26111
	for ietf-open-pgp-bks; Fri, 28 May 1999 13:19:35 -0700 (PDT)
Received: from public.uni-hamburg.de (public.rrz.uni-hamburg.de [134.100.32.55])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA26106
	for <ietf-open-pgp@imc.org>; Fri, 28 May 1999 13:19:29 -0700 (PDT)
Received: from paris.public.uni-hamburg.de (root@max1-024.public.uni-hamburg.de [134.100.43.24])
	by public.uni-hamburg.de (8.8.8/8.8.8) with SMTP id WAA65602;
	Fri, 28 May 1999 22:20:20 +0200
Received: by epsilon
	via sendmail from stdin
	id <m10nSCg-000QdqC@epsilon> (Debian Smail3.2.0.102)
	for ietf-open-pgp@imc.org; Fri, 28 May 1999 21:22:02 +0200 (CEST) 
Date: Fri, 28 May 1999 21:22:02 +0200
From: Bodo_Moeller@public.uni-hamburg.de (Bodo Moeller)
To: uri <uri@watson.ibm.com>
Cc: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990528212200.A3334@epsilon>
References: <m10n8Yn-0003b8C@ulf.mali.sub.org> <9905280526.AA23486@buoy.watson.ibm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.95.5i
In-Reply-To: <9905280526.AA23486@buoy.watson.ibm.com>; from uri on Fri, May 28, 1999 at 01:26:05AM -0400
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Fri, May 28, 1999 at 01:26:05AM -0400, uri wrote:

>>> [...] we could require that MDC can *not* be turned off.
>> What does that mean for existing implementations?
> [...] let bygones be bygones.

Then why not dump plain ElGamal encryption in favor of DHAES (see
http://www.cse.ucsd.edu/users/mihir/papers/pke.html), DHAES being used
on whole messages, not just session keys?  (DHAES is basically ElGamal
done right plus an MDC, and there are security proofs for it.)



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id NAA26111 for ietf-open-pgp-bks; Fri, 28 May 1999 13:19:35 -0700 (PDT)
Received: from public.uni-hamburg.de (public.rrz.uni-hamburg.de [134.100.32.55]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA26106 for <ietf-open-pgp@imc.org>; Fri, 28 May 1999 13:19:29 -0700 (PDT)
Received: from paris.public.uni-hamburg.de (root@max1-024.public.uni-hamburg.de [134.100.43.24]) by public.uni-hamburg.de (8.8.8/8.8.8) with SMTP id WAA65602; Fri, 28 May 1999 22:20:20 +0200
Received: by epsilon via sendmail from stdin id <m10nSCg-000QdqC@epsilon> (Debian Smail3.2.0.102) for ietf-open-pgp@imc.org; Fri, 28 May 1999 21:22:02 +0200 (CEST) 
Date: Fri, 28 May 1999 21:22:02 +0200
From: Bodo_Moeller@public.uni-hamburg.de (Bodo Moeller)
To: uri <uri@watson.ibm.com>
Cc: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990528212200.A3334@epsilon>
References: <m10n8Yn-0003b8C@ulf.mali.sub.org> <9905280526.AA23486@buoy.watson.ibm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.95.5i
In-Reply-To: <9905280526.AA23486@buoy.watson.ibm.com>; from uri on Fri, May 28, 1999 at 01:26:05AM -0400
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Fri, May 28, 1999 at 01:26:05AM -0400, uri wrote:

>>> [...] we could require that MDC can *not* be turned off.
>> What does that mean for existing implementations?
> [...] let bygones be bygones.

Then why not dump plain ElGamal encryption in favor of DHAES (see
http://www.cse.ucsd.edu/users/mihir/papers/pke.html), DHAES being used
on whole messages, not just session keys?  (DHAES is basically ElGamal
done right plus an MDC, and there are security proofs for it.)


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id DAA20027 for ietf-open-pgp-bks; Fri, 28 May 1999 03:50:43 -0700 (PDT)
Received: from koeln.shuttle.de (koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id DAA20022 for <ietf-open-pgp@imc.org>; Fri, 28 May 1999 03:50:32 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id MAA06315 for ietf-open-pgp@imc.org; Fri, 28 May 1999 12:51:10 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10nK24-00050s-00; Fri, 28 May 1999 12:38:32 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10nK0b-0007Wn-00; Fri, 28 May 1999 12:37:01 +0200
Date: Fri, 28 May 1999 12:37:01 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: V5 signatures
Message-ID: <19990528123701.A28938@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <v04003a4bb34400766447@[38.232.7.6]> <199904231819.UAA05631@mail.replay.com> <v04003a05b37386b7897d@[10.5.63.113]> <19990528101029.H27694@frodo.isil.d.shuttle.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <19990528101029.H27694@frodo.isil.d.shuttle.de>; from Werner Koch on Fri, May 28, 1999 at 10:10:29AM +0200
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Werner Koch <wk@isil.d.shuttle.de> writes:

> However, the octet count for the [un]hashed subpackets is limited to
> 65535.

It just came to my mind, that large signature packets (currently they
have a limit of about 128k) do impose a problem:

It will then not be possible to keep the complete signature packet in
memory.  Signatures may be (theoretical) very large - up to 4 Gigs and
due to this they have to be handled like plaintext.

Doess it really make sense to build a protocol - based on OpenPGP - 
which puts all it's dat into a signature packet?  Such data should go
into a literal text packet or some new packet type.
 

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id CAA16675 for ietf-open-pgp-bks; Fri, 28 May 1999 02:22:52 -0700 (PDT)
Received: from pascal.sobolev.rhein.de (dial24.ip.lu [208.161.252.88]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id CAA16669 for <ietf-open-pgp@imc.org>; Fri, 28 May 1999 02:22:46 -0700 (PDT)
Received: by pascal.sobolev.rhein.de (Postfix, from userid 1000) id 4DC441124; Fri, 28 May 1999 11:27:11 +0200 (CEST)
Date: Fri, 28 May 1999 11:27:10 +0200
From: Thomas Roessler <roessler@guug.de>
To: ietf-open-pgp@imc.org
Subject: Re: V5 signatures
Message-ID: <19990528112707.D12254@sobolev.rhein.de>
References: <v04003a4bb34400766447@[38.232.7.6]> <199904231819.UAA05631@mail.replay.com> <v04003a05b37386b7897d@[10.5.63.113]> <19990528101029.H27694@frodo.isil.d.shuttle.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.2i
In-Reply-To: <19990528101029.H27694@frodo.isil.d.shuttle.de>
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On 1999-05-28 10:10:29 +0200, Werner Koch wrote:

> Because this is a conflict we really should address it with a new
> v5 signature paket.  Changes to an implementaion are minimal.  And
> while we are at it, we should consider to apply some rules to the
> name part of notation data - so that we can have unique names.
> Thomas Roessler already mentioned this and proposed a SSH like
> scheme for this.

I wouldn't confine this to V5 signatures. ;)

As for notation data naming, the suggestion is as follows.  It's
derived from what the secsh internet drafts do for "registering"
new algorithms.

------------------------------

Notation data naming

   OpenPGP "notation data" signature sub-packets traditionally consist
   of a name and a value, both of which are arbitrary, UTF-8 encoded
   strings.

   The OpenPGP standard does not define any registry for defined
   notation data names, nor does it describe safe extension mechanisms.

   The present document defines two name spaces for notation data names:
   The IETF name space and the user name space.

   Notation data names in the IETF name space consist of an arbitrary
   string of UTF-8 encoded characters, with the exception that the
   character "@" ("at") MUST NOT occur in such a name.

   XXX - describe IANA registration procedures.

   Notation data names in the user name space consist of a tag, followed
   by the "@" character, followed by a DNS domain name.  The tag may be
   an arbitrary string of UTF-8 encoded characters, with the exception
   that the character "@" MUST NOT occur in such a name.  The DNS domain
   name must be under the exclusive control of the person or entity
   which introduces the notation data name in question.

   For example, if The Example Corporation wishes to introduce sample
   notation data, the appropriate notation data name could be
   "sample@example.com".

------------------------------



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id BAA15942 for ietf-open-pgp-bks; Fri, 28 May 1999 01:20:41 -0700 (PDT)
Received: from koeln.shuttle.de (koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA15937 for <ietf-open-pgp@imc.org>; Fri, 28 May 1999 01:20:37 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id KAA18983 for ietf-open-pgp@imc.org; Fri, 28 May 1999 10:21:21 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10nHkH-0004wV-00; Fri, 28 May 1999 10:12:01 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10nHin-0007T4-00; Fri, 28 May 1999 10:10:29 +0200
Date: Fri, 28 May 1999 10:10:29 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: V5 signatures
Message-ID: <19990528101029.H27694@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <v04003a4bb34400766447@[38.232.7.6]> <199904231819.UAA05631@mail.replay.com> <v04003a05b37386b7897d@[10.5.63.113]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <v04003a05b37386b7897d@[10.5.63.113]>; from Jon Callas on Thu, May 27, 1999 at 04:35:37PM -0700
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Jon Callas <jon@callas.org> writes:

> No, it's there for things like PGP ticket. If someone is building a
> lightweight authorization scheme, it's conceivable that a signature would
> need to be bigger than 8383 bytes. V4 signatures don't allow that.

How did you calculate this?

5.2.3.1 says somewhere:

       if the 1st octet = 255, then
           lengthOfLength = 5
           subpacket length = [four-octet scalar starting at 2nd_octet]

However, the octet count for the [un]hashed subpackets is limited to
65535.

Because this is a conflict we really should address it with a new v5
signature paket.  Changes to an implementaion are minimal.  And while
we are at it, we should consider to apply some rules to the name part
of notation data - so that we can have unique names.  Thomas Roessler
already mentioned this and proposed a SSH like scheme for this.


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id WAA13751 for ietf-open-pgp-bks; Thu, 27 May 1999 22:25:21 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id WAA13747 for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 22:25:19 -0700 (PDT)
Received: from mailhub.watson.ibm.com (mailhub.watson.ibm.com [9.2.250.97]) by igw3.watson.ibm.com (8.9.3/8.9.3/05-14-1999) with ESMTP id BAA16220; Fri, 28 May 1999 01:26:06 -0400
Received: from buoy.watson.ibm.com (buoy.watson.ibm.com [9.2.3.94]) by mailhub.watson.ibm.com (8.8.7/Feb-20-98) with SMTP id BAA11752; Fri, 28 May 1999 01:26:05 -0400
Received: by buoy.watson.ibm.com (AIX 4.1/UCB 5.64/6/25/96) id AA23486; Fri, 28 May 1999 01:26:05 -0400
From: uri <uri@watson.ibm.com>
Message-Id: <9905280526.AA23486@buoy.watson.ibm.com>
Subject: Re: Agree with PRZs MDC suggestion
To: Bodo_Moeller@public.uni-hamburg.de (Bodo Moeller)
Date: Fri, 28 May 1999 01:26:05 -0400 (EDT)
Cc: ietf-open-pgp@imc.org
In-Reply-To: <m10n8Yn-0003b8C@ulf.mali.sub.org> from "Bodo Moeller" at May 28, 99 00:23:00 am
Reply-To: uri@watson.ibm.com
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Bodo Moeller says:
> > Yes. And we could require that MDC can *not* be turned off.
> 
> What does that mean for existing implementations? Will they tolerate
> the extra packets?

Will they tolerate the extra encryption algorithms? The extra
signature methods? The extra...?

In short, let bygones be bygones.
-- 
Regards,
Uri		uri@watson.ibm.com
-=-=-=-=-=-=-
<Disclaimer>


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id RAA03222 for ietf-open-pgp-bks; Thu, 27 May 1999 17:03:34 -0700 (PDT)
Received: from relay.veriguard.com (firewall-user@relay.veriguard.com [207.5.63.61]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA03215 for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 17:03:29 -0700 (PDT)
Received: by relay.veriguard.com; id JAA06698; Thu, 27 May 1999 09:04:34 -0700 (PDT)
Received: from unknown(10.5.63.113) by relay.veriguard.com via smap (4.1) id xma006686; Thu, 27 May 99 09:03:44 -0700
X-Sender: jon@127.0.0.1
Message-Id: <v04003a04b37385763dff@[10.5.63.113]>
In-Reply-To: <19990526121334.G6141@sobolev.rhein.de>
References: <19990525153111.Y11747@frodo.isil.d.shuttle.de> <19990525135518.G4539@sobolev.rhein.de> <19990525153111.Y11747@frodo.isil.d.shuttle.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 27 May 1999 17:03:06 -0700
To: ietf-open-pgp@imc.org
From: Jon Callas <jon@callas.org>
Subject: Re: critical notation data sub-packets
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

The purpose of the notation subpackets is to have a general-purpose
mechanism for implementors to put in their own extensions, so yes, people
should (in general) use those for any private or controversial additions to
signatures.

Sooner or later, we probably will need a registration system for them, or
some naming convention. Right now, there are a number of obvious things you
can do to restrict conficts, like prefixing your notation name with a
domain name (like foobar.com-private-value) and that will work.

This saves the subpacket versions for something we know we need -- for
example a subpacket that has an implemented features list (like MDC data
packets).

As for the critical bit, in my opinion, it is a way for the writer of a
signature to tell something to the reader. The reader, though, always has
the final say. A few examples:

A human-readable subpacket that's marked critical seems to be something
that the writer really wanted the reader to see. But the reader's software
may have an option to turn it off. I can see where someone might put
human-readable limits of liability or other such crud in there, and I don't
want to have legalese pop up in a window every time I use someone's key.
(But in such a case, I might solve it by deleting that signature,
personally.) So it's perfectly reasonable for an implementation to ignore a
critical human-readable notation. Similarly, a system that's running as a
robot is correct to ignore a critical human readable subpacket.

I think that it's merely impolite (as opposed to non-compliant) for an
implementation to ignore a critical bit. I'll spin another scenario.
Suppose XYZcorp makes an OpenPGP implementation, and they create some
feature that they want everyone else to support, so they mark it as
"critical" in all signatures they create. It's obnoxious, but it wouldn't
be the first time a vendor tried to bully features into a standard. If
another vendor ignored all critical bits on notations that started with
"xyzcorp.com" because of abuse of criticality, I wouldn't call them
non-compliant. If a different vendor was even more gonzo, again, it's up to
users to appeal to them to do the right thing (whatever than means). I
don't want to see it be a standards issue.

This is also the reason why we have a "receiver wins" policy in algorithms.
It is to forestall the case where someone tries to force their feature on
the world.

	Jon




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id RAA03209 for ietf-open-pgp-bks; Thu, 27 May 1999 17:02:41 -0700 (PDT)
Received: from relay.veriguard.com (firewall-user@relay.veriguard.com [207.5.63.61]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA03204 for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 17:02:37 -0700 (PDT)
Received: by relay.veriguard.com; id JAA06681; Thu, 27 May 1999 09:03:34 -0700 (PDT)
Received: from unknown(10.5.63.113) by relay.veriguard.com via smap (4.1) id xma006677; Thu, 27 May 99 09:03:07 -0700
X-Sender: jon@127.0.0.1
Message-Id: <v04003a05b37386b7897d@[10.5.63.113]>
In-Reply-To: <199904231819.UAA05631@mail.replay.com>
References: <v04003a4bb34400766447@[38.232.7.6]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 27 May 1999 16:35:37 -0700
To: Anonymous <nobody@replay.com>, ietf-open-pgp@imc.org
From: Jon Callas <jon@callas.org>
Subject: V5 signatures
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

At 11:19 AM -0700 4/23/1999, Anonymous said:

Sorry for dropping this on the floor..

   > (4) A V5 signature packet that allows 4-byte lengths.

   Yet another signature packet version! Is this a scheme to increase
   S/MIME support?

No, it's there for things like PGP ticket. If someone is building a
lightweight authorization scheme, it's conceivable that a signature would
need to be bigger than 8383 bytes. V4 signatures don't allow that.

	Jon





Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id PAA01423 for ietf-open-pgp-bks; Thu, 27 May 1999 15:24:05 -0700 (PDT)
Received: from public.uni-hamburg.de (public.rrz.uni-hamburg.de [134.100.32.55]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id PAA01418 for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 15:24:03 -0700 (PDT)
Received: from paris.public.uni-hamburg.de (max2-010.public.uni-hamburg.de [134.100.45.10]) by public.uni-hamburg.de (8.8.8/8.8.8) with SMTP id AAA32782 for <ietf-open-pgp@imc.org>; Fri, 28 May 1999 00:24:44 +0200
Received: by ulf.mali.sub.org (Smail3.1.28.1 #1) id m10n8Yn-0003b8C; Fri, 28 May 99 00:23 +0200
Message-Id: <m10n8Yn-0003b8C@ulf.mali.sub.org>
Date: Fri, 28 May 99 00:23 +0200
From: Bodo_Moeller@public.uni-hamburg.de (Bodo Moeller)
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <9905230734.AA22474@buoy.watson.ibm.com>
Organization: Hamburg University
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

uri@watson.ibm.com:

> Yes. And we could require that MDC can *not* be turned off.

What does that mean for existing implementations?  Will they tolerate
the extra packets?


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id MAA28004 for ietf-open-pgp-bks; Thu, 27 May 1999 12:37:08 -0700 (PDT)
Received: from kingcrab.informix.com (dns3.informix.com [192.147.112.7]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA27999 for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 12:37:07 -0700 (PDT)
Received: from parrot.informix.com (parrot.mp.informix.com [158.58.8.22]) by kingcrab.informix.com (8.8.5/8.7.3) with ESMTP id MAA07627; Thu, 27 May 1999 12:37:47 -0700 (PDT)
Received: from repenning (repenning.mp.informix.com [158.58.9.204]) by parrot.informix.com (8.8.8+Sun/8.8.8) with SMTP id MAA03186; Thu, 27 May 1999 12:37:44 -0700 (PDT)
Message-Id: <4.1.19990527122945.00a66320@parrot.mp.informix.com>
X-Sender: jackr@parrot.mp.informix.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 27 May 1999 12:36:15 -0700
To: Thomas Roessler <roessler@guug.de>
From: Jack Repenning <jackr@informix.com>
Subject: Re: critical notation data sub-packets
Cc: ietf-open-pgp@imc.org
In-Reply-To: <19990526121334.G6141@sobolev.rhein.de>
References: <19990525153111.Y11747@frodo.isil.d.shuttle.de> <19990525135518.G4539@sobolev.rhein.de> <19990525153111.Y11747@frodo.isil.d.shuttle.de>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="=====================_100493171==_.ALT"
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

--=====================_100493171==_.ALT
Content-Type: text/plain; charset="us-ascii"


At 03:13 AM 5/26/99 , Thomas Roessler wrote:

>So, to the working group: Should standardized signature extensions
>go into sub-packets of their own, or should one start to standardize
>certain notation data names?

What about the rfc822 weasel:

     extension-field =
                   <Any field which is defined in a document
                    published as a formal extension to this
                    specification; none will have names beginning
                    with the string "X-">
 
     user-defined-field =
                   <Any field which has not been defined
                    in this specification or published as an
                    extension to this specification; names for
                    such fields must be unique and may be
                    pre-empted by published extensions>

I don't believe there's any clearing-house for user-defined-field names (is
there?). 






Informix Software, Inc.        Jack Repenning
Config/Release Mgmt            jackr@informix.com
4100 Bohannon Drive            M/S: 4100/2
Menlo Park, CA 94025           FAX: 650/926-6571
VOICE: 650/926-1044               PAGE: 800/781-6182
PGP/RSA: D24B E2C2 9AFB 7C24 : 7E59 7885 525D 644E
PGP/DSS: 955C 44AD 8FCE 77D4 9494 \
          : 4AB2 51F1 3EED 3B82 E870

--=====================_100493171==_.ALT
Content-Type: text/html; charset="us-ascii"

<html><div>At 03:13 AM 5/26/99 , Thomas Roessler wrote:</div>
<br>
<div>&gt;So, to the working group: Should standardized signature
extensions</div>
<div>&gt;go into sub-packets of their own, or should one start to
standardize</div>
<div>&gt;certain notation data names?</div>
<br>
<div>What about the rfc822 weasel:</div>
<br>
<div>&nbsp;&nbsp;&nbsp;&nbsp; extension-field =</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Any field which is defined in a document</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
published as a formal extension to this</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
specification; none will have names beginning</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
with the string &quot;X-&quot;&gt;</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; user-defined-field =</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Any field which has not been defined</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
in this specification or published as an</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
extension to this specification; names for</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
such fields must be unique and may be</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
pre-empted by published extensions&gt;</div>
<br>
I don't believe there's any clearing-house for user-defined-field names
(is there?).
<br>

<br>
<br>
<br>
<br>
<br>
<br>
<b>Inform<font face="Bookman Old Style, Bookman" size=4 color="#FF0000"><i>i</font></i><font face="Bookman Old Style, Bookman" size=4 color="#0000FF">x</font>
</b>Software, Inc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jack Repenning<br>
Config/Release Mgmt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jackr@informix.com<br>
4100 Bohannon Drive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; M/S: 4100/2<br>
Menlo Park, CA 94025&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FAX: 650/926-6571<br>
VOICE: 650/926-1044<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&nbsp; PAGE: 800/781-6182<br>
PGP/RSA: D24B E2C2 9AFB 7C24 : 7E59 7885 525D 644E<br>
PGP/DSS: 955C 44AD 8FCE 77D4 9494 \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 4AB2 51F1 3EED 3B82 E870<br>
</html>

--=====================_100493171==_.ALT--



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id CAA18593 for ietf-open-pgp-bks; Thu, 27 May 1999 02:05:59 -0700 (PDT)
Received: from NIH2WAAD (smtp4.site1.csi.com [149.174.183.73]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id CAA18589 for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 02:05:58 -0700 (PDT)
Received: from mail pickup service by csi.com with Microsoft SMTPSVC; Thu, 27 May 1999 05:05:52 -0400
Received: from pc23i ([195.232.69.172] (may be forged)) by hil-img-ims-1.compuserve.com (8.8.6/8.8.6/IMS-1.7) with SMTP id FAA14633 for <ietf-open-pgp@imc.org>; Thu, 27 May 1999 05:05:04 -0400 (EDT)
Message-ID: <007501bea81f$8603ef90$ac45e8c3@pc23i.informatique.sercami.dci.com>
From: "Emmanuel COLUSSI" <mcolussi@csi.com>
To: <ietf-open-pgp@imc.org>
Subject: LDAP Key Server
Date: Thu, 27 May 1999 11:01:32 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0072_01BEA830.47CB8790"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

This is a multi-part message in MIME format.

------=_NextPart_000_0072_01BEA830.47CB8790
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I use PGPfree6.0.2i.
I would create a LDAP Key Server.
What DN structure do you use ? for send key=20
and what is the bind login.

Thanks for your help

Emmanuel Colussi
Email : mcolussi@compuserve.com

------=_NextPart_000_0072_01BEA830.47CB8790
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2014.210" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>
<DIV><FONT size=3D2>I use PGPfree6.0.2i.</FONT></DIV>
<DIV><FONT size=3D2>I would create a LDAP Key Server.</FONT></DIV>
<DIV><FONT size=3D2>What DN structure do you use ? for send key =
</FONT></DIV>
<DIV><FONT size=3D2>and what is the bind login.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanks for your help</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT><FONT size=3D2>Emmanuel Colussi<BR>Email : <A=20
href=3D"mailto:mcolussi@compuserve.com">mcolussi@compuserve.com</A></FONT=
></DIV></DIV></BODY></HTML>

------=_NextPart_000_0072_01BEA830.47CB8790--





Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id DAA29391 for ietf-open-pgp-bks; Wed, 26 May 1999 03:43:13 -0700 (PDT)
Received: from pascal.sobolev.rhein.de (dial02.ip.lu [208.161.252.66]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id DAA29387 for <ietf-open-pgp@imc.org>; Wed, 26 May 1999 03:43:09 -0700 (PDT)
Received: by pascal.sobolev.rhein.de (Postfix, from userid 1000) id 0C2B8112A; Wed, 26 May 1999 12:13:37 +0200 (CEST)
Date: Wed, 26 May 1999 12:13:36 +0200
From: Thomas Roessler <roessler@guug.de>
To: ietf-open-pgp@imc.org
Subject: Re: critical notation data sub-packets
Message-ID: <19990526121334.G6141@sobolev.rhein.de>
References: <19990525135518.G4539@sobolev.rhein.de> <19990525153111.Y11747@frodo.isil.d.shuttle.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.2i
In-Reply-To: <19990525153111.Y11747@frodo.isil.d.shuttle.de>
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On 1999-05-25 15:31:11 +0200, Werner Koch wrote:

> We should avoid to use private sub-packets when there is another
> way to do the task.

I'm not thinking about private ones. ;-)

The current spec says:

   This subpacket describes a "notation" on the signature that the
   issuer wishes to make. The notation has a name and a value, each
   of which are strings of octets. There may be more than one
   notation in a signature. Notations can be used for any extension
   the issuer of the signature cares to make.

While this is really fine for private extensions, I see a problem
with using notation data to put information into a sigature
sub-packet in a standardized way.  Essentially, we are lacking a
registry (or a conflict-free naming scheme) for notation data names.

So, to the working group: Should standardized signature extensions
go into sub-packets of their own, or should one start to standardize
certain notation data names?


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA18802 for ietf-open-pgp-bks; Tue, 25 May 1999 08:50:20 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA18798 for <ietf-open-pgp@imc.org>; Tue, 25 May 1999 08:50:19 -0700 (PDT)
From: hal@226-132.adsl2.avtel.net
Received: (from hal@localhost) by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id IAA16490; Tue, 25 May 1999 08:51:01 -0700
Date: Tue, 25 May 1999 08:51:01 -0700
Message-Id: <199905251551.IAA16490@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, roessler@guug.de
Subject: Re: critical notation data sub-packets
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Thomas Roessler, <roessler@guug.de>, writes:
> How do the current implementations handle this situation (most
> notably the NAI ones)?  Should the specification be changed?  Should
> extensions to RFC 2440 which have to put critical information into
> signatures define sub-packets of their own, or should they use
> notation data to avoid name-space cluttering?

The NAI software ignores notation packets.  If they are marked critical,
it treats the signature as invalid for trust calculation purposes.

Notation data is meant as an extension mechanism which is more text
oriented rather than using new binary signature packets.

I would suggest that if the human-readable bit is set, the only
obligation on the part of the application is to display it to the user.
If it does so, then it can consider the notation "handled" and it can
validate the signature even if the critical bit is set.  (Probably it
would be a good idea to note to the user that the critical bit was set,
when the notation was displayed.)

If the human-readable bit is not set, then the application should see
if the name field in the notation is one that it recognizes the meaning
of.  If not, and the critical bit is set, it should not validate the
signature, because it doesn't know what this critical packet is trying
to say.

Hal Finney
Network Associates, Inc.


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA17833 for ietf-open-pgp-bks; Tue, 25 May 1999 08:26:28 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA17828 for <ietf-open-pgp@imc.org>; Tue, 25 May 1999 08:26:26 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id RAA15381 for ietf-open-pgp@imc.org; Tue, 25 May 1999 17:26:57 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10mJ4k-0002bp-00; Tue, 25 May 1999 17:25:06 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10mJ2g-0003yo-00; Tue, 25 May 1999 17:22:58 +0200
Date: Tue, 25 May 1999 17:22:58 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990525172258.C11747@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <19990522121550.D32457@frodo.isil.d.shuttle.de> <99May25.111446edt.42115@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May25.111446edt.42115@brickwall.ceddec.com>; from Tom Zerucha on Tue, May 25, 1999 at 11:14:39AM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha <tzeruch@ceddec.com> writes:

> Blocksize+2?  Are we doing PGP-cfbs still?  Also, by mdc_packet, I take it

Sure ;-)  But without the extra sync step.

> to mean you mean a real packet (i.e. there is a virtual EOF after the

Yes.

> I think SHOULD use SHA1-MDC is best, but I am not sure about the warning
> part.  I think it might be proper to give a warning on the creation (much
> like giving a warning against using MAY or private algorithms other places

You are right.  It is not a security issue if one of the other hash
algorithms is used - but it may lead to a problem at the receivers
side to verify the MDC.


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA17519 for ietf-open-pgp-bks; Tue, 25 May 1999 08:14:22 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA17515 for <ietf-open-pgp@imc.org>; Tue, 25 May 1999 08:14:20 -0700 (PDT)
Received: by brickwall.ceddec.com id <42115>; Tue, 25 May 1999 11:14:46 -0400
Date: Tue, 25 May 1999 11:14:39 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: Werner Koch <wk@isil.d.shuttle.de>
cc: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <19990522121550.D32457@frodo.isil.d.shuttle.de>
Message-Id: <99May25.111446edt.42115@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Sat, 22 May 1999, Werner Koch wrote:

> > > Why an extra checksum if we already have an MDC?
> > 
> > Because someone was suggesting that if anyone ever changed the algorithm
> > ID byte they could turn off the MDC.  That could be prevented by a
> 
> Ah well, I think it is easier to put a copy of the version byte and
> the algorithm identifier into the encrypted text:
> 
> E(random_prefix[blocksize+2],version_byte,algo_byte,plaintext,mdc_packet)

Blocksize+2?  Are we doing PGP-cfbs still?  Also, by mdc_packet, I take it
to mean you mean a real packet (i.e. there is a virtual EOF after the
plaintext)?

> > And I might want to specify other algorithm IDs, e.g. the Palm Pilot has
> > MD5 (and DES) in the OS kernel, but not SHA1.  I would really prefer to
> > have my MDCs there as MD5, and use 3DES for a minimal Palm implementation.
> 
> Makes sense for me.  And I think it is better to use OpenPGP
> dataformats than to use somethin else or invent another one.
> 
> Is it okay to have SHOULD use SHA1-MDC and SHOULD give a warning if
> another MDC is used? 

I think SHOULD use SHA1-MDC is best, but I am not sure about the warning
part.  I think it might be proper to give a warning on the creation (much
like giving a warning against using MAY or private algorithms other places
where most PGP implementations won't be able to handle it).

I forget if RMD160 or MD5 in the normal context are MAY or SHOULDs, but if
they are SHOULDs, I wouldn't want to give a warning.  Implementations
SHOULD be able to use any hash for MDC that they use for signatures.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA14705 for ietf-open-pgp-bks; Tue, 25 May 1999 06:50:41 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA14701 for <ietf-open-pgp@imc.org>; Tue, 25 May 1999 06:50:39 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id PAA04600 for ietf-open-pgp@imc.org; Tue, 25 May 1999 15:51:08 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10mHKa-0002YU-00; Tue, 25 May 1999 15:33:20 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10mHIV-0003F0-00; Tue, 25 May 1999 15:31:11 +0200
Date: Tue, 25 May 1999 15:31:11 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: critical notation data sub-packets
Message-ID: <19990525153111.Y11747@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <19990525135518.G4539@sobolev.rhein.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <19990525135518.G4539@sobolev.rhein.de>; from Thomas Roessler on Tue, May 25, 1999 at 01:55:19PM +0200
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Thomas Roessler <roessler@guug.de> writes:

> The specification is a bit ambiguous about "notation data" signature
> subpackets marked as "critical".

I don't think so:  If an implementation encounters notation data with
critical bit set and it completely understands the semantics of this
notation data, it can verify the signature.  

To understand this notation data the implementaion might also want to
consult the policy URL to distinguish between different semantics.

The critical bit does not say anthing about how to handle this
subpacket; the implemenation is only required to understand that this
is critical and there is no required action defined for any
subpackets.  I don't think this is within the scope of OpenPGP. 
Definitions of the trust modell and the classes of signatures are 
are on purpose very loose.

> extensions to RFC 2440 which have to put critical information into
> signatures define sub-packets of their own, or should they use

We should avoid to use private sub-packets when there is another way 
to do the task. 


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id FAA11898 for ietf-open-pgp-bks; Tue, 25 May 1999 05:05:18 -0700 (PDT)
Received: from pascal.sobolev.rhein.de (dial15.ip.lu [208.161.252.79]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id FAA11893 for <ietf-open-pgp@imc.org>; Tue, 25 May 1999 05:05:15 -0700 (PDT)
Received: by pascal.sobolev.rhein.de (Postfix, from userid 1000) id 7B0941124; Tue, 25 May 1999 13:55:21 +0200 (CEST)
Date: Tue, 25 May 1999 13:55:19 +0200
From: Thomas Roessler <roessler@guug.de>
To: ietf-open-pgp@imc.org
Subject: critical notation data sub-packets
Message-ID: <19990525135518.G4539@sobolev.rhein.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.2i
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

The specification is a bit ambiguous about "notation data" signature
subpackets marked as "critical".

Implementors may assume that their implementations can safely ignore
such subpackets since they do "understand" "notation data".  This
may lead to problems with human-readable notation data whose display
to the user may be critical for whatever reason (including legal
ones, think liability limitations), and it may lead to even worse
problems with notation data which is not human-readable.

How do the current implementations handle this situation (most
notably the NAI ones)?  Should the specification be changed?  Should
extensions to RFC 2440 which have to put critical information into
signatures define sub-packets of their own, or should they use
notation data to avoid name-space cluttering?


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id XAA00806 for ietf-open-pgp-bks; Mon, 24 May 1999 23:11:44 -0700 (PDT)
Received: from smtp1.hetnet.nl (smtp1.hetnet.nl [145.7.225.1]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id XAA00802 for <ietf-open-pgp@imc.org>; Mon, 24 May 1999 23:11:43 -0700 (PDT)
Received: from hetnet.nl ([194.151.104.130]) by smtp1.hetnet.nl  with Microsoft SMTPSVC(5.5.1877.977.9); Tue, 25 May 1999 08:08:35 +0200
Received: from mail pickup service by hetnet.nl with Microsoft SMTPSVC; Tue, 25 May 1999 08:10:03 +0200
Received: from smtp2.hetnet.nl ([145.7.226.1]) by hetnet.nl  with Microsoft SMTPSVC(5.5.1877.117.11); Sun, 23 May 1999 10:38:14 +0200
Received: from mail.proper.com ([206.86.127.224]) by smtp2.hetnet.nl  with Microsoft SMTPSVC(5.5.1877.977.9); Sun, 23 May 1999 10:30:06 +0200
Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id AAA18777 for ietf-open-pgp-bks; Sun, 23 May 1999 00:34:01 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA18771 for <ietf-open-pgp@imc.org>; Sun, 23 May 1999 00:33:59 -0700 (PDT)
Received: from mailhub.watson.ibm.com (mailhub.watson.ibm.com [9.2.250.97]) by igw3.watson.ibm.com (8.9.3/8.9.3/05-14-1999) with ESMTP id DAA06818; Sun, 23 May 1999 03:34:21 -0400
Received: from buoy.watson.ibm.com (buoy.watson.ibm.com [9.2.3.94]) by mailhub.watson.ibm.com (8.8.7/Feb-20-98) with SMTP id DAA13046; Sun, 23 May 1999 03:34:21 -0400
Received: by buoy.watson.ibm.com (AIX 4.1/UCB 5.64/6/25/96) id AA22474; Sun, 23 May 1999 03:34:17 -0400
From: uri <uri@watson.ibm.com>
Message-Id: <9905230734.AA22474@buoy.watson.ibm.com>
Subject: Re: Agree with PRZs MDC suggestion
To: wk@isil.d.shuttle.de (Werner Koch)
Date: Sun, 23 May 1999 03:34:17 -0400 (EDT)
Cc: ietf-open-pgp@imc.org
In-Reply-To: <19990522121550.D32457@frodo.isil.d.shuttle.de> from "Werner Koch" at May 22, 99 12:15:50 pm
Reply-To: uri@watson.ibm.com
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Werner Koch says:
> > Because someone was suggesting that if anyone ever changed the algorithm
> > ID byte they could turn off the MDC.  That could be prevented by a
> 
> Ah well, I think it is easier to put a copy of the version byte and
> the algorithm identifier into the encrypted text:
> 
> E(random_prefix[blocksize+2],version_byte,algo_byte,plaintext,mdc_packet)

Yes. And we could require that MDC can *not* be turned off.
-- 
Regards,
Uri		uri@watson.ibm.com
-=-=-=-=-=-=-
<Disclaimer>


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id QAA17592 for ietf-open-pgp-bks; Mon, 24 May 1999 16:30:54 -0700 (PDT)
Received: from relay.gw.tislabs.com (firewall-user@relay.gw.tislabs.com [192.94.214.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA17585 for <ietf-open-pgp@imc.org>; Mon, 24 May 1999 16:30:53 -0700 (PDT)
Received: by relay.gw.tislabs.com; id TAA28743; Mon, 24 May 1999 19:45:15 -0400 (EDT)
Received: from clipper.gw.tislabs.com(10.33.1.2) by relay.gw.tislabs.com via smap (4.1) id xma028732; Mon, 24 May 99 19:44:39 -0400
Received: (from balenson@localhost) by clipper.gw.tislabs.com (8.9.1/8.9.1) id TAA10029 for ietf-open-pgp@imc.org; Mon, 24 May 1999 19:27:13 -0400 (EDT)
Date: Mon, 24 May 1999 19:27:13 -0400 (EDT)
From: "David M. Balenson" <balenson@tislabs.com>
Message-Id: <199905242327.TAA10029@clipper.gw.tislabs.com>
To: ietf-open-pgp@imc.org
Subject: REMINDER: CFP: ISOC Year 2000 Netw. & Distr. Sys. Security Symp. (NDSS 2000)
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

            C  A  L  L       F  O  R       P  A  P  E  R  S


                          The Internet Society
           Year 2000 Network and Distributed System Security 
                         Symposium (NDSS 2000)

             Catamaran Resort Hotel, San Diego, California
                           February 2-4, 2000


IMPORTANT DATES:

  Paper and panel submissions due: June 16, 1999
  Author notification: August 17, 1999
  Final versions of papers and panels due: October 15, 1999

GOAL: 

  This symposium aims to foster information exchange among researchers
  and practitioners of network and distributed system security
  services.  The intended audience includes those who are interested
  in practical aspects of network and distributed system security,
  with the focus on actual system design and implementation, rather
  than theory. A major goal of the symposium is to encourage and
  enable the Internet community to apply, deploy, and advance the
  state of available security technology.  The proceedings of the
  symposium will be published by the Internet Society.

  Submissions are solicited for, but are not limited to, the
  following topics:

  * Secure Electronic Commerce, e.g., payment, barter, EDI,
    notarization/timestamping, endorsement and licensing.
  * Intellectual Property Protection: protocols, schemas,
    implementations, metering, watermarking, other forms of rights
    management.
  * Implementation, deployment and management of network security
    policies.
  * Integrating Security in Internet protocols: routing, naming,
    TCP/IP, multicast, network management, and, of course, the Web.
  * Attack-resistant protocols and services.
  * Special problems and case studies: e.g. interplay and tradeoffs
    between security and efficiency, usability, reliability and cost.
  * Security for collaborative applications and services: tele- and
    video-conferencing, groupwork, etc.
  * Fundamental services: authentication, data integrity,
    confidentiality, authorization, non-repudiation, and availability.
  * Supporting mechanisms and APIs: key management and certification,
    revocation, audit trails and accountability.
  * Integrating security services with system and application security
    facilities and protocols, e.g., message handling, file
    transport/access, directories, time synchronization, data base
    management, boot services, mobile computing.
  * Security for emerging technologies -- sensor networks, specialized
    testbeds, wireless/mobile (and ad hoc) networks, personal
    communication systems, and large heterogeneous distributed systems.
  * Intrusion Avoidance, Detection, and Response: systems, experiences
    and architectures
  * Network Perimeter Controls: firewalls, packet filters, application
    gateways.

BEST PAPER AWARD:

  A best paper award will be introduced at NDSS 2000. This award will
  be presented at the symposium to the authors of the best paper to
  be selected by the program committee.

GENERAL CHAIR:
  Stephen Welke, Trusted Computer Solutions

PROGRAM CO-CHAIRS:
  Gene Tsudik, USC / Information Sciences Institute
  Avi Rubin, AT&T Labs - Research

TUTORIAL CHAIR:
  Doug Maughan, NSA / DARPA

PROGRAM COMMITTEE:
  Bill Cheswick, Lucent Bell Labs  
  Marc Dacier, IBM Research Zurich 
  Jim Ellis, CMU / CERT
  Carl Ellison, Intel   
  Ed Felten, Princeton  
  Virgil Gligor, UMD College Park 
  Thomas Hardjono, Bay Networks/Nortel
  Cynthia Irvine, Naval Postgraduate School
  Charlie Kaufman,  Iris Associates
  Dave Kormann, AT&T Labs - Research 
  Hugo Krawczyk, Technion and IBM
  Carl Landwehr, Naval Research Lab
  Doug Maughan, NSA / DARPA   
  Gary McGraw, Reliable Software Technologies  
  Sandra Murphy, TIS Labs at Network Associates   
  Clifford Neuman, USC / Information Sciences Institute
  Paul Van Oorschot, Entrust
  Sami Saydjari, DARPA ISO 
  David Wagner, UC Berkeley   
  Bennet Yee, UC San Diego

LOCAL ARRANGEMENTS CHAIR:
  Thomas Hutton, San Diego Supercomputer Center

PUBLICATIONS CHAIR:
  John Kochmar, SEI

PUBLICITY CHAIR:
  David Balenson, TIS Labs at Network Associates   

LOGISTICS CHAIR:
  Carla Rosenfeld, Internet Society

REGISTRATIONS CHAIR
  Beth Strait, Internet Society

SUBMISSIONS: 

  The committee invites both technical papers and panel proposals.
  Technical papers should be at most 20 pages long. Panel proposals
  should be at most two pages and should describe the topic, identify
  the panel chair, explain the format of the panel, and list three
  to four potential panelists.  Technical papers will appear in
  the proceedings. A description of each panel will appear in the
  proceedings, and may -- at the discretion of the panel chair --
  include written position statements from the panelists.

  Each submission must contain a separate title page with the type
  of submission (paper or panel), the title or topic, the names of
  the author(s), organizational affiliation(s), telephone and FAX
  numbers, postal addresses, e-mail addresses, and must specify
  the contact author in case of multi-author submissions. The names
  of authors, affiliations, and other identifying information should
  appear only on the separate title page.

  Submissions must be received by June 16, 1999, and must be made
  via electronic mail in either PostScript or ASCII format.  If
  the committee is unable to print a PostScript submission, a
  hardcopy will be requested. Therefore, PostScript submissions
  must arrive well before the deadline.

  All submissions and program related correspondence (only) should
  be directed to the program chair:

        Gene Tsudik     
        USC Information Sciences Institute      
        4676 Admiralty Way      
        Marina Del Rey, CA 90292        
        Email: ndss00@isi.edu
        TEL: +1 (310) 822-1511 ext 329
        FAX: +1 (310) 823-6714 

  Dates, final call for papers, advance program, and registration
  information will be available soon at the URL: httl//www.isoc.org/ndss2000.

  Each submission will be acknowledged by e-mail.  If acknowledgment
  is not received within seven days, please contact the program
  chair as indicated above.  Authors and panelists will be notified
  of acceptance by August 17, 1999.  Instructions for preparing
  camera-ready copy for the proceedings will be sent at that time.
  The camera-ready copy must be received by October 15, 1999.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id AAA18777 for ietf-open-pgp-bks; Sun, 23 May 1999 00:34:01 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA18771 for <ietf-open-pgp@imc.org>; Sun, 23 May 1999 00:33:59 -0700 (PDT)
Received: from mailhub.watson.ibm.com (mailhub.watson.ibm.com [9.2.250.97]) by igw3.watson.ibm.com (8.9.3/8.9.3/05-14-1999) with ESMTP id DAA06818; Sun, 23 May 1999 03:34:21 -0400
Received: from buoy.watson.ibm.com (buoy.watson.ibm.com [9.2.3.94]) by mailhub.watson.ibm.com (8.8.7/Feb-20-98) with SMTP id DAA13046; Sun, 23 May 1999 03:34:21 -0400
Received: by buoy.watson.ibm.com (AIX 4.1/UCB 5.64/6/25/96) id AA22474; Sun, 23 May 1999 03:34:17 -0400
From: uri <uri@watson.ibm.com>
Message-Id: <9905230734.AA22474@buoy.watson.ibm.com>
Subject: Re: Agree with PRZs MDC suggestion
To: wk@isil.d.shuttle.de (Werner Koch)
Date: Sun, 23 May 1999 03:34:17 -0400 (EDT)
Cc: ietf-open-pgp@imc.org
In-Reply-To: <19990522121550.D32457@frodo.isil.d.shuttle.de> from "Werner Koch" at May 22, 99 12:15:50 pm
Reply-To: uri@watson.ibm.com
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Werner Koch says:
> > Because someone was suggesting that if anyone ever changed the algorithm
> > ID byte they could turn off the MDC.  That could be prevented by a
> 
> Ah well, I think it is easier to put a copy of the version byte and
> the algorithm identifier into the encrypted text:
> 
> E(random_prefix[blocksize+2],version_byte,algo_byte,plaintext,mdc_packet)

Yes. And we could require that MDC can *not* be turned off.
-- 
Regards,
Uri		uri@watson.ibm.com
-=-=-=-=-=-=-
<Disclaimer>


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id DAA26147 for ietf-open-pgp-bks; Sat, 22 May 1999 03:20:50 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id DAA26142 for <ietf-open-pgp@imc.org>; Sat, 22 May 1999 03:20:48 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id MAA18271 for ietf-open-pgp@imc.org; Sat, 22 May 1999 12:21:06 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10l8rZ-0007l6-00; Sat, 22 May 1999 12:18:41 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10l8oo-0000Ip-00; Sat, 22 May 1999 12:15:50 +0200
Date: Sat, 22 May 1999 12:15:50 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990522121550.D32457@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <19990519174345.G21779@frodo.isil.d.shuttle.de> <99May21.224514edt.42114@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May21.224514edt.42114@brickwall.ceddec.com>; from Tom Zerucha on Fri, May 21, 1999 at 10:45:23PM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha <tzeruch@ceddec.com> writes:

> We also have a 24 bit CRC which must be implemented for the ASCII armor
> and it is even faster.  If that is adequate (and faster), why not use it
> instead of a cryptographic hash?

ASCII armor is SHOULD, SHA1 is MUST.  May people would not feel
comfortable with CRC and there is a chance of an attack on a CRC used
as a MDC.

> > Why an extra checksum if we already have an MDC?
> 
> Because someone was suggesting that if anyone ever changed the algorithm
> ID byte they could turn off the MDC.  That could be prevented by a

Ah well, I think it is easier to put a copy of the version byte and
the algorithm identifier into the encrypted text:

E(random_prefix[blocksize+2],version_byte,algo_byte,plaintext,mdc_packet)

> And I might want to specify other algorithm IDs, e.g. the Palm Pilot has
> MD5 (and DES) in the OS kernel, but not SHA1.  I would really prefer to
> have my MDCs there as MD5, and use 3DES for a minimal Palm implementation.

Makes sense for me.  And I think it is better to use OpenPGP
dataformats than to use somethin else or invent another one.

Is it okay to have SHOULD use SHA1-MDC and SHOULD give a warning if
another MDC is used? 

  Werner

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id TAA01177 for ietf-open-pgp-bks; Fri, 21 May 1999 19:45:10 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id TAA01169 for <ietf-open-pgp@imc.org>; Fri, 21 May 1999 19:45:08 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Fri, 21 May 1999 22:45:14 -0400
Date: Fri, 21 May 1999 22:45:23 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: Werner Koch <wk@isil.d.shuttle.de>
cc: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <19990519174345.G21779@frodo.isil.d.shuttle.de>
Message-Id: <99May21.224514edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Wed, 19 May 1999, Werner Koch wrote:

> tzeruch@ceddec.com writes:
> 
> > We are in agreement that there should be no mechanism for turning the MDC
> > off.  Having a mechanism for selecting a hash algorithm is different, and
> > I don't see it as leaving the same openings.
> 
> > And when the NIST comes up with a wider hash for the DSA-plus (or whatever
> > it will then be called) you absolutely, positively never ever want to be
> > able to use it here?  (Or if OpenPGP comes up with a wider DSA, say SHA
> 
> Not for the purpose of a MDC, even the 160 bit digest is overkill, but
> we already have to use it elsewhere so it does make sense to use it.

We also have a 24 bit CRC which must be implemented for the ASCII armor
and it is even faster.  If that is adequate (and faster), why not use it
instead of a cryptographic hash?

> > wider, i.e. better (PRZ can do a commercial for GM) hash algorithm, since
> 
> (What is GM?)

General Motors - they have an ad campaign for one of the cars of the theme
"Wider is Better".

> > The MDCP appears first PRECEEDING the encrypted plaintext and contains
> > only the version number and algorithm ID(s), and a checksum word.
> 
> I think that is much to complicated and I can't see the benefit from
> it.  Putting a checksum (or a copy of the algid and version number)
> into the encrypted text  E(random_prefix,2_checkbytes,version_byte,
> algorithm byte) is much easier and all waht we need.  We already
> encode the cipher algorithm in the pk-encoded sessionkey - so why I 
> see no argument why not putting additional input into the encrypted 
> packet.

Where exactly?  We have a packet header for the encrypted packet itself,
the key material from the PK or SK material packet, and potential
information in a packet at the head of the encrypted plaintext.

(see my next comment)

> > Then the real MDCP but is 20 (or whatever the hash length(s) is(are) )
> > bytes longer than the one at the top, and has a checksum which reflects
> > the full packet.
> 
> Why an extra checksum if we already have an MDC?

Because someone was suggesting that if anyone ever changed the algorithm
ID byte they could turn off the MDC.  That could be prevented by a
checksum.  If it is not reasonable to have an attack of this form, then
there should be no problem having an algorithm ID byte.  But if it is
unencrypted, it can be changed.

And I might want to specify other algorithm IDs, e.g. the Palm Pilot has
MD5 (and DES) in the OS kernel, but not SHA1.  I would really prefer to
have my MDCs there as MD5, and use 3DES for a minimal Palm implementation.

In either case, the MDC proper should be encapsulated in a packet, and if
the algorithm can be specified as I want (maybe 0 could be the ASCII CRC)
the algorithm ID with version number should be in a packet and preceed the
encrypted data.




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id AAA00897 for ietf-open-pgp-bks; Fri, 21 May 1999 00:15:17 -0700 (PDT)
Received: from merrymeet.com (Discordia@merrymeet.com [38.232.7.2]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA00893 for <ietf-open-pgp@imc.org>; Fri, 21 May 1999 00:15:14 -0700 (PDT)
Received: from [38.232.7.7] (38.232.7.7) by merrymeet.com with ESMTP (Eudora Internet Mail Server 2.2); Thu, 20 May 1999 23:15:17 -0800
X-Sender: jon@127.0.0.1
Message-Id: <v04003a04b36aafe90ac2@[38.232.7.7]>
In-Reply-To: <19990519162620.F21779@frodo.isil.d.shuttle.de>
References:  <Pine.LNX.4.04.9905191552000.12083-100000@komsys-pc-mw.ethz.ch>; from Marcel Waldvogel on Wed, May 19, 1999 at 04:18:48PM +0200 <199905190224.TAA00194@226-132.adsl2.avtel.net> <Pine.LNX.4.04.9905191552000.12083-100000@komsys-pc-mw.ethz.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 20 May 1999 23:50:25 -0700
To: Werner Koch <wk@isil.d.shuttle.de>, ietf-open-pgp@imc.org
From: Jon Callas <jon@callas.org>
Subject: Re: Agree with PRZs MDC suggestion
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

At 7:26 AM -0700 5/19/1999, Werner Koch said:

   political/patents maybe an argument.  Actually we don't need a
   cryptograhic hash function here but only a good checksum - so SHA1
   is good enough and it is the only hash algorithm which is required
   anyway.

   However, if it turns out that we have to change something, we have the
   version number and can implement another scheme with another version
   number which must then be made tamperproof, e.g. by putting a copy
   into the encrypted data.

I believe that it's true that we don't need all the properties of a
cryptographic hash. The reason for picking SHA-1 is that an implementation
already has to have SHA-1, so it's a favor to anyone who wants to do a
minimal implementation.

I did a design for this late last year that had a hash selector. The
objection to a selector on the hash algorithm is simply that an attacker
could potentially modify the hash selector and cause mischief. I'm
skeptical as to what sort of mischief they could really cause, but I see
the point.

For this purpose, SHA-1 is good enough. Actually, for this purpose, MD4
(which is known to be broken as a signature hash) is good enough. Remember,
we have in this packet (presumably) unknown plaintext (if the attacker
knows the plaintext of the message, I think there are other problems)
sealed with a strong cipher. We don't need all the properties of a
cryptographic hash. I'm in favor of picking SHA-1, just because it's handy.

	Jon




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA23329 for ietf-open-pgp-bks; Wed, 19 May 1999 08:51:12 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA23325 for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 08:51:05 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id RAA23652 for ietf-open-pgp@imc.org; Wed, 19 May 1999 17:51:08 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10k8Ys-00060Q-00; Wed, 19 May 1999 17:47:14 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10k8VV-0006Jv-00; Wed, 19 May 1999 17:43:45 +0200
Date: Wed, 19 May 1999 17:43:45 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990519174345.G21779@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905190224.TAA00194@226-132.adsl2.avtel.net> <99May19.105510edt.42114@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May19.105510edt.42114@brickwall.ceddec.com>; from tzeruch@ceddec.com on Wed, May 19, 1999 at 10:55:25AM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

tzeruch@ceddec.com writes:

> We are in agreement that there should be no mechanism for turning the MDC
> off.  Having a mechanism for selecting a hash algorithm is different, and
> I don't see it as leaving the same openings.

> And when the NIST comes up with a wider hash for the DSA-plus (or whatever
> it will then be called) you absolutely, positively never ever want to be
> able to use it here?  (Or if OpenPGP comes up with a wider DSA, say SHA

Not for the purpose of a MDC, even the 160 bit digest is overkill, but
we already have to use it elsewhere so it does make sense to use it.

> wider, i.e. better (PRZ can do a commercial for GM) hash algorithm, since

(What is GM?)

> some mechanism for a 256 or 320 bit hash, maybe without the NISTs help, we
> can use a modified DSA, and depricate and drop ElGamal signatures.  And if

But a MDC is very different to a signature and there is no need for
wider hash.

> The MDCP appears first PRECEEDING the encrypted plaintext and contains
> only the version number and algorithm ID(s), and a checksum word.

I think that is much to complicated and I can't see the benefit from
it.  Putting a checksum (or a copy of the algid and version number)
into the encrypted text  E(random_prefix,2_checkbytes,version_byte,
algorithm byte) is much easier and all waht we need.  We already
encode the cipher algorithm in the pk-encoded sessionkey - so why I 
see no argument why not putting additional input into the encrypted 
packet.

> Then the real MDCP but is 20 (or whatever the hash length(s) is(are) )
> bytes longer than the one at the top, and has a checksum which reflects
> the full packet.

Why an extra checksum if we already have an MDC?

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA22668 for ietf-open-pgp-bks; Wed, 19 May 1999 07:55:28 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA22664 for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 07:55:27 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Wed, 19 May 1999 10:55:10 -0400
Date: Wed, 19 May 1999 10:55:25 -0400
From: tzeruch@ceddec.com
X-Sender: nobody@mars.ceddec.com
To: hal@rain.org
cc: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <199905190224.TAA00194@226-132.adsl2.avtel.net>
Message-Id: <99May19.105510edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Tue, 18 May 1999 hal@rain.org wrote:

> As I described earlier, I propose not to have any mechanism for turning
> the MDC on and off, or for selecting a hash algorithm, because these would
> leave openings for an attacker to possibly modify this selector.  He might
> be able to turn off the MDC, which would completely defeat the purpose.

We are in agreement that there should be no mechanism for turning the MDC
off.  Having a mechanism for selecting a hash algorithm is different, and
I don't see it as leaving the same openings.

You could put a simple checksum (like used for keys) so that the attacker
would have to change both the algorithm ID and checksum within the
encrypted stream.

Also you assume that you could somehow calculate an RMD160 (or other) hash
of modified encrypted data and reencrypt that.

And you could still simply strip off the last N bytes as you have things
now, which is another thing a prefix, the equivalent of "Hash:" helps.

> 5.Y Modification Detection Code Packet (Tag 16)
> 
>    The Modification Detection Code packet contains a SHA-1 hash of
>    plaintext data which is used to detect message modification.  It is
>    only used in the context of a Symmetrically Encrypted Integrity
>    Protected Data packet.  The Modification Detection Code packet MUST
>    be the last packet in the plaintext data which is encrypted in the
>    Symmetrically Encrypted Integrity Protected Data packet, and MUST
>    appear in no other place.
> 
>    A Modification Detection Code packet MUST have a length of 20 octets.
> 
>    The body of this packet consists of:
> 
>      - A 20-octet SHA-1 hash of the preceding plaintext data of the
>        Symmetrically Encrypted Integrity Protected Data packet, not
>        including prefix data but including the tag and length byte of
>        the Modification Detection Code packet.

And when the NIST comes up with a wider hash for the DSA-plus (or whatever
it will then be called) you absolutely, positively never ever want to be
able to use it here?  (Or if OpenPGP comes up with a wider DSA, say SHA
followed by RMD160 over the same input we don't want to use that here
either?)

There were strong arguments for removing ElGamal signatures.  But they
turned on providing a mechanism for allowing a DSA like signature to use a
wider, i.e. better (PRZ can do a commercial for GM) hash algorithm, since
a 4096 bit DSA key doesn't add anything when you only have 160 bits of
hash to protect.  I am assuming that this might actually be resolved with
some mechanism for a 256 or 320 bit hash, maybe without the NISTs help, we
can use a modified DSA, and depricate and drop ElGamal signatures.  And if
that happens I would really want the option to use that wider hash here.

>    Note that the Modification Detection Code packet MUST always use a
>    new-format encoding of the packet tag, and a one-octet encoding of
>    the packet length.  (These requirements are already imposed by the
>    rules for tag and length encoding.)

My proposal (not in spec language):

The MDCP appears first PRECEEDING the encrypted plaintext and contains
only the version number and algorithm ID(s), and a checksum word.

Alternative 1: 1 MDC packet with version byte, number of hashes byte -
must be nonzero, N algorithm ID bytes.

Alternative 2: N MDC packets, one per algorithm used in reverse order
(therefore no #-of-hashes byte), and nested, i.e. an outer hash will be
made only over all the inner hash packets.  e.g. RMD+ ( SHA+ ( plaintext )
SHA= ) RMD =

Alternative 3: only 1 MDC allowed, with version, algid, and checksum.

Then any plaintext packets (should this be required to be 1?).

Then the real MDCP but is 20 (or whatever the hash length(s) is(are) )
bytes longer than the one at the top, and has a checksum which reflects
the full packet.

So would a header MDCP, and having both MDCPs checksummed be adequately
secure?  If the entirety was encrypted how would you attack it?  You would
have to change two algorithm ID bytes, come up with two correct checksums,
and a valid hash for the algorithm you are altering the hash algorithm to.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA22564 for ietf-open-pgp-bks; Wed, 19 May 1999 07:51:18 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA22557 for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 07:51:11 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id QAA17548 for ietf-open-pgp@imc.org; Wed, 19 May 1999 16:51:04 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10k7Ly-0005xr-00; Wed, 19 May 1999 16:29:50 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10k7Ia-0006J8-00; Wed, 19 May 1999 16:26:20 +0200
Date: Wed, 19 May 1999 16:26:20 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990519162620.F21779@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905190224.TAA00194@226-132.adsl2.avtel.net> <Pine.LNX.4.04.9905191552000.12083-100000@komsys-pc-mw.ethz.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <Pine.LNX.4.04.9905191552000.12083-100000@komsys-pc-mw.ethz.ch>; from Marcel Waldvogel on Wed, May 19, 1999 at 04:18:48PM +0200
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Marcel Waldvogel <mwa@tik.ee.ethz.ch> writes:

> Why don't we repeat the version number (and maybe even the packet tag)
> after the two check bytes? Or would this give too much plaintext away?

I don't think so, there is already enough plaintext because the
structure of the packet heades is well known and this gives you 
already some plaintext.

> with SHA-1 (e.g. political or cryptanalytical). Wouldn't tampering become

political/patents maybe an argument.  Actually we don't need a
cryptograhic hash function here but only a good checksum - so SHA1
is good enough and it is the only hash algorithm which is required
anyway.

However, if it turns out that we have to change something, we have the
version number and can implement another scheme with another version
number which must then be made tamperproof, e.g. by putting a copy
into the encrypted data.


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA22238 for ietf-open-pgp-bks; Wed, 19 May 1999 07:18:50 -0700 (PDT)
Received: from tik2.ethz.ch (kom-tik2.ethz.ch [129.132.66.10]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA22234 for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 07:18:48 -0700 (PDT)
Received: from komsys-pc-mw.ethz.ch (mwa@komsys-pc-mw [129.132.66.24]) by tik2.ethz.ch (8.8.8/8.8.8) with ESMTP id QAA07381; Wed, 19 May 1999 16:18:49 +0200 (MET DST)
Received: from localhost (mwa@localhost) by komsys-pc-mw.ethz.ch (8.9.1/8.8.8) with ESMTP id QAA14900; Wed, 19 May 1999 16:18:48 +0200
X-Authentication-Warning: komsys-pc-mw.ethz.ch: mwa owned process doing -bs
Date: Wed, 19 May 1999 16:18:48 +0200 (CEST)
From: Marcel Waldvogel <mwa@tik.ee.ethz.ch>
To: hal@rain.org
cc: ietf-open-pgp@imc.org, tzeruch@ceddec.com, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <199905190224.TAA00194@226-132.adsl2.avtel.net>
Message-ID: <Pine.LNX.4.04.9905191552000.12083-100000@komsys-pc-mw.ethz.ch>
X-URL: http://www.tik.ee.ethz.ch/~mwa/
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Tue, 18 May 1999 hal@rain.org wrote:
>5.X. Symmetrically Encrypted Integrity Protected Data Packet (Tag 15)
[...]
>   The data is encrypted in CFB mode, with a CFB shift size equal to
>   the cipher's block size.  The Initial Vector (IV) is specified as
>   all zeros.  Instead of using an IV, OpenPGP prefixes an octet string
>   to the data before it is encrypted.  The length of the octet string
>   equals the block size of the cipher in octets, plus two.  The first
>   octets in the group, of length equal to the block size of the cipher,
>   are random; the last two octets are each copies of their 2nd preceding
>   octet.  For example, with a cipher whose block size is 128 bits or 16
>   octets, the prefix data will contain 16 random octets, then two more
>   octets, which are copies of the 15th and 16th octets, respectivelly.
>   Unlike the Symmetrically Encrypted Data Packet, no special CFB
>   resynchronization is done after encrypting this prefix data.

Hal,

thanks for putting up this proposal. I think it provides a step into the
right direction.

Why don't we repeat the version number (and maybe even the packet tag)
after the two check bytes? Or would this give too much plaintext away?

Although I do understand your concerns against selecting an MDC or even
allowing to turn it off, I would like to see some selection mechanism
included, either for specialized devices or in case some problem shows up
with SHA-1 (e.g. political or cryptanalytical). Wouldn't tampering become
close to impossible if we included the algorithm byte both in the plain
header and repeated it after the CFB?

Even if the algorithm ID was included only in the plain section, the
receiving implementation could flag unknown or weak algorithms as "has
possibly been tampered with".

-Marcel



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id BAA15753 for ietf-open-pgp-bks; Wed, 19 May 1999 01:21:32 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA15748 for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 01:21:25 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id KAA01621 for ietf-open-pgp@imc.org; Wed, 19 May 1999 10:21:09 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10k1Vu-0005gw-00; Wed, 19 May 1999 10:15:42 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10k1SS-0005Oz-00; Wed, 19 May 1999 10:12:08 +0200
Date: Wed, 19 May 1999 10:12:08 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990519101208.J20674@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905190224.TAA00194@226-132.adsl2.avtel.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <199905190224.TAA00194@226-132.adsl2.avtel.net>; from hal@rain.org on Tue, May 18, 1999 at 07:24:13PM -0700
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

hal@rain.org writes:

> I think the only thing I have changed is that I am using version 1.

Okay.

> As I described earlier, I propose not to have any mechanism for turning
> the MDC on and off, or for selecting a hash algorithm, because these would
> leave openings for an attacker to possibly modify this selector.  He might
> be able to turn off the MDC, which would completely defeat the purpose.

Together with the version number I can live with this.

> However because we are handling the CFB SYNC differently it will produce
> completely garbled data, which I view as an acceptable failure mode.
> What do you think?

I think this is reasonable.

> 5.X. Symmetrically Encrypted Integrity Protected Data Packet (Tag 15)

>    Symmetrically Encrypted Data Packet.  In either case, the cipher
>    algorithm octet is prefixed to the session key before it is

Don't know wthether I understand it:  Does it mean, that the first 8
bits of the session key are known?  So we actually have only 248 bit
Twofish?  Why not putting the algorithm octet just after the 2
checksum bytes in the prefix? 

>    Unlike the Symmetrically Encrypted Data Packet, no special CFB
>    resynchronization is done after encrypting this prefix data.

And we should cleanup the ambiguity about this in rfc2440.

>    it includes all of the plaintext, and then also includes two octets
>    of values 0xD0, 0x14.  These represent the encoding of a Modification

So you can use your old implemenation idea of a fixed block at the end
of the encrypted data.  That is okay.  

>    Note: future designs of new versions of this packet should consider
>    rollback attacks since it will be possible for an attacker to change
>    the version back to 1.

So we also solved this issue :-)

We should also mention that an implemenation SHOULD use this new
packet for ciphers others than 1,2,3,4,5 (which are the ones from the
current rfc).  And that it MAY use the new packet if the preferences
of a receiver's key indicate that an algorithm other than 1..5 can
be used (this is because we can assume, that the new packet type is 
supported by the implemenation used at the receivers side).

Another suggestion for the next version:
Extend the marker paket with a version number of the RFC: "PGP/1.1"
instead of a bare "PGP".  This may be useful in the future.


You did good work with this and I can agree with it.
What do the others think?


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id AAA15195 for ietf-open-pgp-bks; Wed, 19 May 1999 00:51:35 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA15191 for <ietf-open-pgp@imc.org>; Wed, 19 May 1999 00:51:26 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id JAA28329 for ietf-open-pgp@imc.org; Wed, 19 May 1999 09:51:16 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10k11A-0005gK-00; Wed, 19 May 1999 09:43:56 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10k0xj-0005Oj-00; Wed, 19 May 1999 09:40:23 +0200
Date: Wed, 19 May 1999 09:40:22 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Then it is not a signature...
Message-ID: <19990519094022.I20674@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <19990518092532.F19134@frodo.isil.d.shuttle.de> <99May18.133637edt.42114@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May18.133637edt.42114@brickwall.ceddec.com>; from Tom Zerucha on Tue, May 18, 1999 at 01:36:51PM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha <tzeruch@ceddec.com> writes:

> Anything without a PGP digital signature belongs in a literal packet, or
> perhapse elsewhere.  Hashed but unsigned anything is still being discussed
> - i.e. what form the MDC stuff will take.

I proposed this only to help Hal getting PGP OpenPGP conform.  And
with this change your MDC signatures would benefit too.  But okay,
if nobody likes this - forget about it.

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id TAA10062 for ietf-open-pgp-bks; Tue, 18 May 1999 19:24:16 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id TAA10051 for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 19:24:13 -0700 (PDT)
Received: (from hal@localhost) by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id TAA00194; Tue, 18 May 1999 19:24:13 -0700
Date: Tue, 18 May 1999 19:24:13 -0700
From: hal@rain.org
Message-Id: <199905190224.TAA00194@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, tzeruch@ceddec.com
Subject: Re: Agree with PRZs MDC suggestion
Cc: hal@rain.org, wk@isil.d.shuttle.de
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

NAI has decided not to include Twofish in the next release so that we
can try to come to agreement on an MDC packet and use that.

Here is a concrete proposal which represents what we have been discussing
most recently.

I think the only thing I have changed is that I am using version 1.
It's going to be wasteful of version numbers if we keep having to leapfrog
them.  If we made this one 5, then the next time we make a change to
a packet we have to use 6, etc.  It will be more economical to start
new packets at v1 and increment them as we make new versions of them.
I know this practice was not always followed in the past but it will be
better for the future.

As I described earlier, I propose not to have any mechanism for turning
the MDC on and off, or for selecting a hash algorithm, because these would
leave openings for an attacker to possibly modify this selector.  He might
be able to turn off the MDC, which would completely defeat the purpose.

Another attack I have considered is that the attacker could strip off
the MDC packet (by removing the last 22 bytes of ciphertext) and change
the packet tag to an old-style symmetrically encrypted data packet.
However because we are handling the CFB SYNC differently it will produce
completely garbled data, which I view as an acceptable failure mode.
What do you think?

Hal

=====

5.X. Symmetrically Encrypted Integrity Protected Data Packet (Tag 15)

   The Symmetrically Encrypted Integrity Protected Data packet contains
   data encrypted with a symmetric-key algorithm and protected against
   modification by the SHA-1 hash algorithm. When it has been decrypted,
   it will typically contain other packets (often literal data packets
   or compressed data packets).  The last such decrypted packet must be
   a Modification Detection Code packet.

   The body of this packet consists of:

     - A one-octet version number.  The only currently defined value is 1.

     - Encrypted data, the output of the selected symmetric-key cipher
       operating in Cipher Feedback mode with shift amount equal to the
       block size of the cipher (CFB-n where n is the block size).

   The symmetric cipher used MUST be specified in a Public-Key or
   Symmetric-Key Encrypted Session Key packet that precedes the
   Symmetrically Encrypted Data Packet.  In either case, the cipher
   algorithm octet is prefixed to the session key before it is
   encrypted.

   The data is encrypted in CFB mode, with a CFB shift size equal to
   the cipher's block size.  The Initial Vector (IV) is specified as
   all zeros.  Instead of using an IV, OpenPGP prefixes an octet string
   to the data before it is encrypted.  The length of the octet string
   equals the block size of the cipher in octets, plus two.  The first
   octets in the group, of length equal to the block size of the cipher,
   are random; the last two octets are each copies of their 2nd preceding
   octet.  For example, with a cipher whose block size is 128 bits or 16
   octets, the prefix data will contain 16 random octets, then two more
   octets, which are copies of the 15th and 16th octets, respectivelly.
   Unlike the Symmetrically Encrypted Data Packet, no special CFB
   resynchronization is done after encrypting this prefix data.

   The repetition of 16 bits in the random data prefixed to the message
   allows the receiver to immediately check whether the session key
   is incorrect.

   The plaintext of the data to be encrypted is passed through the SHA-1
   hash function, and the result of the hash is appended to the plaintext
   in a Modification Detection Code packet.  Specifically, the input to
   the hash function does not include the prefix data described above;
   it includes all of the plaintext, and then also includes two octets
   of values 0xD0, 0x14.  These represent the encoding of a Modification
   Detection Code packet tag and length field of 20 octets.

   The resulting hash value is stored in a Modification Detection Code
   packet which MUST use the two octet encoding just given to represent
   its tag and length field.  The body of the MDC packet is the 20 octet
   output of the SHA-1 hash.

   The Modification Detection Code packet is appended to the plaintext and
   encrypted along with the plaintext using the same CFB context.

   During decryption, the plaintext data should be hashed with SHA-1,
   not including the prefix data but including the packet tag and length
   field of the Modification Detection Code packet.  The body of the
   MDC packet, upon decryption, should be compared with the result of
   the SHA-1 hash.  Any difference in hash values is an indication that
   the message has been modified and SHOULD be reported to the user.
   Likewise, the absence of an MDC packet, or an MDC packet in any
   position other than the end of the plaintext, also represent message
   modifications and SHOULD also be reported.

   Note: future designs of new versions of this packet should consider
   rollback attacks since it will be possible for an attacker to change
   the version back to 1.


5.Y Modification Detection Code Packet (Tag 16)

   The Modification Detection Code packet contains a SHA-1 hash of
   plaintext data which is used to detect message modification.  It is
   only used in the context of a Symmetrically Encrypted Integrity
   Protected Data packet.  The Modification Detection Code packet MUST
   be the last packet in the plaintext data which is encrypted in the
   Symmetrically Encrypted Integrity Protected Data packet, and MUST
   appear in no other place.

   A Modification Detection Code packet MUST have a length of 20 octets.

   The body of this packet consists of:

     - A 20-octet SHA-1 hash of the preceding plaintext data of the
       Symmetrically Encrypted Integrity Protected Data packet, not
       including prefix data but including the tag and length byte of
       the Modification Detection Code packet.

   Note that the Modification Detection Code packet MUST always use a
   new-format encoding of the packet tag, and a one-octet encoding of
   the packet length.  (These requirements are already imposed by the
   rules for tag and length encoding.)


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA15645 for ietf-open-pgp-bks; Tue, 18 May 1999 10:36:59 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA15641 for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 10:36:58 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Tue, 18 May 1999 13:36:37 -0400
Date: Tue, 18 May 1999 13:36:51 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: Werner Koch <wk@isil.d.shuttle.de>
cc: ietf-open-pgp@imc.org
Subject: Then it is not a signature...
In-Reply-To: <19990518092532.F19134@frodo.isil.d.shuttle.de>
Message-Id: <99May18.133637edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Tue, 18 May 1999, Werner Koch wrote:

> hal@rain.org writes:
> 
> > unused public key algorithm, so that no implementations will attempt
> > to verify the signature.  I used zero, but we could use 100 if that
> 
> So what about this small change:
> 
> 
> 5.2.3. Version 4 Signature Packet Format
> 
>    The body of a version 4 Signature Packet contains:
> 
>      - One-octet version number (4).
> 
>      - One-octet signature type.

Would this even apply?

> |    - One-octet public key algorithm or a value of zero to indicate
> |      that no multi-precision integers follow.

The PGP signature consists of the MPIs, therefore if there are no MPIs,
there is no signature...

>      - One-octet hash algorithm.

Why is anything hashed if the result (except for 2 bytes) has no where to
go?  So should this even be here?

>      - Two-octet scalar octet count for following hashed subpacket
>        data. Note that this is the length in octets of all of the hashed
>        subpackets; a pointer incremented by this number will skip over
>        the hashed subpackets.
> 
>      - Hashed subpacket data. (zero or more subpackets)

If we can't do anything with the result, why have anything here?  (Also is
it really zero since I think there are some MUST subpackets).  Shouldn't
all this be in the unhashed area if it isn't being hashed, much less
signed?

>      - Two-octet scalar octet count for following unhashed subpacket
>        data. Note that this is the length in octets of all of the
>        unhashed subpackets; a pointer incremented by this number will
>        skip over the unhashed subpackets.
> 
>      - Unhashed subpacket data. (zero or more subpackets)
> 
>      - Two-octet field holding left 16 bits of signed hash value.
> 
> |    - Zero or more multi-precision integers comprising the signature.
> |      This portion is algorithm specific, as described above.

Then this is not a signature, so why put it in the signature packet?

Anything without a PGP digital signature belongs in a literal packet, or
perhapse elsewhere.  Hashed but unsigned anything is still being discussed
- i.e. what form the MDC stuff will take.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA10807 for ietf-open-pgp-bks; Tue, 18 May 1999 08:22:16 -0700 (PDT)
Received: from domains.invweb.net (root@domains.invweb.net [198.182.196.32]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA10803 for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 08:22:15 -0700 (PDT)
Received: from 100.100.100.1 (IDENT:root@openpgp.net [199.184.252.29]) by domains.invweb.net (8.9.1/8.9.1) with SMTP id LAA16924; Tue, 18 May 1999 11:21:29 -0400
Message-Id: <199905181521.LAA16924@domains.invweb.net>
From: "William H. Geiger III" <whgiii@openpgp.net>
Date: Tue, 18 May 1999 11:21:52 -0400
To: tzeruch@ceddec.com, hal@rain.org, ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
In-Reply-To: <9905141503.AA04090@h2np.suginami.tokyo.jp>
Subject: Re: PGP 6.5
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

In <9905141503.AA04090@h2np.suginami.tokyo.jp>, on 05/14/99 
   at 10:03 AM, Hironobu Suzuki <hironobu@h2np.suginami.tokyo.jp> said:


>> If you send me a copy of the key I can analyze it for you.

>Thanks. I'll send you it.

Hi,

I have done a partial analysis of the key. It should be noted that this is
not a key generated by PGP 6.5.x but it has been processed by it. The key
in question was generated & signed 1996-08-01, and it is a RSA public key.
The error is in the self signature which has a signature algorithm of '00'
which is an undefined and illegal value for a public key algorithm. Some
of the other signature items look questionable. I am not sure why a bad
signature would cause the servers to crash, it should not (I am not even
sure why a signature would affect the server at all).


I did a search on the Public Key Servers and could not find this key
(keyID 0x12D6870D) on any of them (or for that matter any PGP key for
<server-certs@thawte.com>). I did find a copy of this key on the NAI's
LDAP server. 

As a side note:

There seems to be a problem with the LDAP search engine. A search of the
server by userID parameter of: server-certs@thawte.com does not find the
above key. A search by exact keyID does find the key.

A second side note:

I have my doubts about Thawte. I could not find their PGP key anywhere on
their site. In addition to this their SSL cert for their webpages expired
in '96 !!! This does not lend confidence to a CA, IMNSHO.

-- 

Analysis of the key follows:

 Public Key Block:
 =================

 99          -- 1 0 0110 01 : Old format, Public Key, Next 2 octets Length
 00 8F       -- Length 143 octets
 03          -- Version 3
 31 FF F3 80 -- Creation Date: 1 Aug 1996
 00 00       -- Expiration Date: Never
 01          -- Public Key Algorithm: RSA
 04 -> 0D    -- MPI #1 Public Modulus n
 04 00       -- MPI #1 Length 130 octets (128 + 2 length octets)
 00 -> 01    -- MPI #2 Exponent e 
 00 11       -- MPI #2 Length 5 octets (3 + 2 length octets)

 64 Bit KeyID:  C2 B5 66 22 12 D6 87 0D
 32 Bit KeyID:  12 D6 87 0D

 Raw Data Block:

 99 00 8F 03 31 FF F3 80 00 00 01 04 00 D3 A4 50
 6E C8 FF 56 6B E6 CF 5D B6 EA 0C 68 75 47 A2 AA
 C2 DA 84 25 FC A8 F4 47 51 DA 85 B5 20 74 94 86
 1E 0F 75 C9 E9 08 61 F5 06 6D 30 6E 15 19 02 E9
 52 C0 62 DB 4D 99 9E E2 6A 0C 44 38 CD FE BE E3
 64 09 70 C5 FE B1 6B 29 B6 2F 49 C8 3B D4 27 04
 25 10 97 2F E7 90 6D C0 28 42 99 D7 4C 43 DE C3
 F5 21 6D 54 9F 5D C3 58 E1 C0 E4 D9 5B B0 B8 DC
 B4 7B DF 36 3A C2 B5 66 22 12 D6 87 0D 00 11 01
 00 01 



 UserID Block:
 =============

 B4       -- 1 0 1101 00 : Old format, UserID Key, Next octet length
 2A       -- Length 42 octets
 54 -> 3E -- UserID
 
 UserID: Thawte Server CA <server-certs@thawte.com> 

 Raw Data:

 B4 2A 54 68 61-77 74 65-20 53 65 72 76 65
 72 20 43 41 20 3C 73 65-72 76 65 72 2D 63 65 72
 74 73 40 74 68 61 77 74-65 2E 63 6F 6D 3E 


 Signature Block:
 ================

 89        -- 1 0 0010 01 : Old format, Signature, Next 2 octets length
 03 3A     -- Length 826 octets
 04        -- Version 4 signature
 10        -- Signature on PubKey & UserID
 00        -- Public Key Algorithm 0 <=== ERROR!!!
 01        -- MD5 Hash
 03 2D     -- Hashed SubPacket Length 813 octets
 05 -> 47  -- Hashed SubPacket Data
 00 00     -- Unhashed SubPacket Length 0 octets
 00 00     -- Left 16 bits signed hash value
 00 01     -- MPI #1 length 3 octets (1 + 2 length octets)
 01        -- MPI #1 RSA signature value m**d
 

 Hashed SubPacket Data:

 05           -- Length 5 octets
 02           -- Type: Creation Date
 31 FF F3 80  -- 1 Aug 1996
 
 05           -- Length 5 octets
 03           -- Type: Expiration Date
 2D EE 72 7F  --

 03           -- Length 3
 05           -- Type: Trust Signature
 FF 78        -- Trust Level 255, Trust Amount 120 (complete)

 C2 5B        -- Length 795
 64           -- Type: Unknown [100] Internal Use


 Raw Data:

 89 03
 3A 04 10 00 01 03 2D 05-02 31 FF F3 80 05 03 2D
 EE 72 7F 03 05 FF 78 C2-5B 64 01 01 03 30 82 03
 13 30 82 02 7C A0 03 02-01 02 02 01 01 30 0D 06
 09 2A 86 48 86 F7 0D 01-01 04 05 00 30 81 C4 31
 0B 30 09 06 03 55 04 06-13 02 5A 41 31 15 30 13
 06 03 55 04 08 13 0C 57-65 73 74 65 72 6E 20 43
 61 70 65 31 12 30 10 06-03 55 04 07 13 09 43 61
 70 65 20 54 6F 77 6E 31-1D 30 1B 06 03 55 04 0A
 13 14 54 68 61 77 74 65-20 43 6F 6E 73 75 6C 74
 69 6E 67 20 63 63 31 28-30 26 06 03 55 04 0B 13
 1F 43 65 72 74 69 66 69-63 61 74 69 6F 6E 20 53
 65 72 76 69 63 65 73 20-44 69 76 69 73 69 6F 6E
 31 19 30 17 06 03 55 04-03 13 10 54 68 61 77 74
 65 20 53 65 72 76 65 72-20 43 41 31 26 30 24 06
 09 2A 86 48 86 F7 0D 01-09 01 16 17 73 65 72 76
 65 72 2D 63 65 72 74 73-40 74 68 61 77 74 65 2E
 63 6F 6D 30 1E 17 0D 39-36 30 38 30 31 30 30 30
 30 30 30 5A 17 0D 32 30-31 32 33 31 32 33 35 39
 35 39 5A 30 81 C4 31 0B-30 09 06 03 55 04 06 13
 02 5A 41 31 15 30 13 06-03 55 04 08 13 0C 57 65
 73 74 65 72 6E 20 43 61-70 65 31 12 30 10 06 03
 55 04 07 13 09 43 61 70-65 20 54 6F 77 6E 31 1D
 30 1B 06 03 55 04 0A 13-14 54 68 61 77 74 65 20
 43 6F 6E 73 75 6C 74 69-6E 67 20 63 63 31 28 30
 26 06 03 55 04 0B 13 1F-43 65 72 74 69 66 69 63
 61 74 69 6F 6E 20 53 65-72 76 69 63 65 73 20 44
 69 76 69 73 69 6F 6E 31-19 30 17 06 03 55 04 03
 13 10 54 68 61 77 74 65-20 53 65 72 76 65 72 20
 43 41 31 26 30 24 06 09-2A 86 48 86 F7 0D 01 09
 01 16 17 73 65 72 76 65-72 2D 63 65 72 74 73 40
 74 68 61 77 74 65 2E 63-6F 6D 30 81 9F 30 0D 06
 09 2A 86 48 86 F7 0D 01-01 01 05 00 03 81 8D 00
 30 81 89 02 81 81 00 D3-A4 50 6E C8 FF 56 6B E6
 CF 5D B6 EA 0C 68 75 47-A2 AA C2 DA 84 25 FC A8
 F4 47 51 DA 85 B5 20 74-94 86 1E 0F 75 C9 E9 08
 61 F5 06 6D 30 6E 15 19-02 E9 52 C0 62 DB 4D 99
 9E E2 6A 0C 44 38 CD FE-BE E3 64 09 70 C5 FE B1
 6B 29 B6 2F 49 C8 3B D4-27 04 25 10 97 2F E7 90
 6D C0 28 42 99 D7 4C 43-DE C3 F5 21 6D 54 9F 5D
 C3 58 E1 C0 E4 D9 5B B0-B8 DC B4 7B DF 36 3A C2
 B5 66 22 12 D6 87 0D 02-03 01 00 01 A3 13 30 11
 30 0F 06 03 55 1D 13 01-01 FF 04 05 30 03 01 01
 FF 30 0D 06 09 2A 86 48-86 F7 0D 01 01 04 05 00
 03 81 81 00 07 FA 4C 69-5C FB 95 CC 46 EE 85 83
 4D 21 30 8E CA D9 A8 6F-49 1A E6 DA 51 E3 60 70
 6C 84 61 11 A1 1A C8 48-3E 59 43 7D 4F 95 3D A1
 8B B7 0B 62 98 7A 75 8A-DD 88 4E 4E 9E 40 DB A8
 CC 32 74 B9 6F 0D C6 E3-B3 44 0B D9 8A 6F 9A 29
 9B 99 18 28 3B D1 E3 40-28 9A 5A 3C D5 B5 E7 20
 1B 8B CA A4 AB 8D E9 51-D9 E2 4C 2C 59 A9 DA B9
 B2 75 1B F6 42 F2 EF C7-F2 18 F9 89 BC A3 FF 8A
 23 2E 70 47 00 00 00 00-00 01 01



-- 
---------------------------------------------------------------
William H. Geiger III  http://www.openpgp.net
Geiger Consulting    Cooking With Warp 4.0

Author of E-Secure - PGP Front End for MR/2 Ice
PGP & MR/2 the only way for secure e-mail.
OS/2 PGP 5.0 at: http://www.openpgp.net/pgp.html
Talk About PGP on IRC EFNet Channel: #pgp Nick: whgiii

Hi Jeff!! :)
---------------------------------------------------------------

begin 666 65_test.asc
M+2TM+2U"14=)3B!01U`@4%5"3$E#($M%62!"3$]#2RTM+2TM#0I697)S:6]N
M.B!01U`@-BXU+C%B,34-"@T*;5%#4$%Z2"\X-$%!04%%14%.3VM51S=)+S%:
M<C5S.61T=6]-84A62&]Q<D,R;U%L+TMJ,%(Q2&%H8E5G9$I31PT*2&<Y,7EE
M:TE99E5'8E1"=492:T,V5DQ!671T3FU:-VEA9WA%3TTS*W9U3FM#6$1&+W)&
M<DMB67938V<W,4-C10T*2E)#6$PK95%B8T%O47!N6%1%4&5W+U5H8E939EAC
M3EDT8T1K,E9U=W5.>3!E.3@R3W-+,5II25,Q;V-.04)%0@T*04%',$ML4F]9
M6&0P6E-"5%I82C):6$EG43!%9U!(3FQC;EIL8VDQ:EI82C!C,$(P84=&,V1'
M5759,CET4&]K1`T*3V=144%!141,455#368O>F=!541,935Y9G=-1B\S:D-7
M,E%"05%-=V=G351-24E#9DM!1$%G14-!9T5"34$P1PT*0U-Q1U-)8C-$445"
M0D%504U)2$5-47-W0U%91%9144=%=TIA451%5DU"34=!,55%0T)-358R5GID
M1U9Y8FE"1`T*65A";$U227=%05E$5E%12$5W;$196$)L2492=F0R-'A(5$%B
M0F=.5D)!;U1&1E)O65AD,%I30D1B,C5Z9%=X,`T*85<U;DE'3FI-4V=W2F=9
M1%9144Q%>#E$6EA*,&%76G!9,D8P85<Y=4E&3FQC;EIP63)6>DE%4G!D;6QZ
M85<Y=0T*35)K=T9W641645%$17A"56%'1C-D1U5G53)6>61M5GE)14Y"35-9
M=TI!64I+;UI):'9C3D%1:T)&:&1Z6EA*,@T*6EA)=%DR5GED2$Y!9$=H:&0S
M4FQ,;4YV8E1!949W,#5.:D$T341%=TU$07=-1$)A1G<P>4U$17E->D5Y37I5
M-0T*3E1L84U)2$5-47-W0U%91%9144=%=TIA451%5DU"34=!,55%0T)-358R
M5GID1U9Y8FE"1%E80FQ-4DEW14%91`T*5E%12$5W;$196$)L2492=F0R-'A(
M5$%B0F=.5D)!;U1&1E)O65AD,%I30D1B,C5Z9%=X,&%7-6Y)1TYJ35-G=PT*
M2F=91%9144Q%>#E$6EA*,&%76G!9,D8P85<Y=4E&3FQC;EIP63)6>DE%4G!D
M;6QZ85<Y=4U2:W=&=UE$5E%11`T*17A"56%'1C-D1U5G53)6>61M5GE)14Y"
M35-9=TI!64I+;UI):'9C3D%1:T)&:&1Z6EA*,EI82719,E9Y9$A.00T*9$=H
M:&0S4FQ,;4YV8E1#0FYZ04Y"9VMQ:&MI1SEW,$)!445&04%/0FI107=G66M#
M9UE%03`V4E%B<VHO5FUV;0T*>C$R,C9G>&]D565I<7-,86A#6#AQ4%)(561Q
M1G130C!L25EE1#-82C91:&@Y45IT34<T5D=13'!5<T)I,C`R6@T*;G5*<41%
M431Z9C8K-#)12F--6"MS5W-P=&DY2GE$=E5*=U%L14IC=C4U0G1W0VA#;61D
M35$Y-T0Y4T9T5DHY9`T*=S%J:'=/5%I7-T,T,TQ2-S-Z639W<E9M26A,5VAW
M,$-!=T5!06%-5$U"17=$=UE$5E(P5$%12"]"055W07=%0@T*+WI!3D)G:W%H
M:VE'.7<P0D%1449!04]"9U%!2"MK>'!84'56>D5B=6A93DY)5$-/>71M;V(P
M:V$U='!2-#)"=PT*8DE2:$5A16%Y16<K5U5..50U53EO674S0S)+665N5TLS
M66A/5'`U03(V:DU-;E,U8G<S1S0W3D5#.6U+8C5O<`T*;35K64M$=E(T,$%O
M;6QO.#%B6&Y)0G5,>7%3<FIE;%(R94I-3$9M<#)R;7ED4G8R479,=G@O25DK
M66TX;R\K2PT*27DU=U)W04%!04%!05%%/0T*/4DR,DD-"BTM+2TM14Y$(%!'
84"!054),24,@2T59($),3T-++2TM+2T-
`
end



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA09305 for ietf-open-pgp-bks; Tue, 18 May 1999 07:45:09 -0700 (PDT)
Received: from domains.invweb.net (root@domains.invweb.net [198.182.196.32]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA09300 for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 07:45:07 -0700 (PDT)
Received: from 100.100.100.1 (IDENT:root@openpgp.net [199.184.252.29]) by domains.invweb.net (8.9.1/8.9.1) with SMTP id KAA16139; Tue, 18 May 1999 10:44:35 -0400
Message-Id: <199905181444.KAA16139@domains.invweb.net>
From: "William H. Geiger III" <whgiii@openpgp.net>
Date: Tue, 18 May 1999 08:39:23 -0400
To: hal@rain.org
In-Reply-To: <199905180429.VAA27241@226-132.adsl2.avtel.net>
Cc: tzeruch@ceddec.com, hal@rain.org, ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: MDCs and PGP 6.5.1b15
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

In <199905180429.VAA27241@226-132.adsl2.avtel.net>, on 05/17/99 
   at 11:29 PM, hal@rain.org said:

>> IMHO the signature looks
>> foobared and violates several aspects of RFC 2440. I don't mind creating a
>> method to convert X.509 stuff to OpenPGP, I don't even mind the X.509
>> certs being encapsulated in a hashed subpacket. But if we are going to do
>> all this the end result should be a valid OpenPGP Key that contains the
>> following 3 elements:
>>
>> Valid OpenPGP Public Key Packet
>> Valid OpenPGP UserID Packet
>> Valid OpenPGP SelfSignature
>>
>> I don't think that the X.509 packet alone should qualify as a valid
>> SelfSignature but instead during the conversion process a OpenPGP
>> SelfSignature should be generated. Of course this would require that a
>> corresponding OpenPGP secret key be generated during the conversion
>> process. Otherwise I really don't see the point of going through the
>> conversion process at all.

>Most of the time there is no secret key available because the signature
>is made by someone other than the person importing the key.  That is the
>typical case for an X.509 certificate.  In that case there is no
>possibility of creating an equivalent PGP secret key because the secret
>key material is not available.

Ok, I see your point here. If the secret key material is not available
during import then I think we should flag the entire key with a new public
key type. My reason for doing this is so standard OpenPGP implementations
know not to use the key as they are unable to verify that it is valid or
not. By adding a new key type it will allow for faster processing as
implementations can make a decision what to do with the key at the
begining of processing rather than waiting until they are done processing
the signature block.

>I don't see the X.509 support in PGP 6.5 as something which will be part
>of the OpenPGP standard.  X.509 is a complex data format and most PGP
>implementations should not have to carry the burden of adding a full
>X.509 library just to support OpenPGP.  The intention is that X.509
>certificates will get turned into signature packets which other
>implementations can ignore without difficulty.

No problem with that. Actually I like it. I do wonder how much of an
advantage it is to import a X.509 public key into OpenPGP format unless
the corresponding secret key can also be converted. It may be simpler in
such cases to leave them in X.509 format and for PGP to have a separate
database to store the keys. If you think about it, no OpenPGP
implementation is going to be able to make use of these keys unless they
have X.509 support built in:

-- Can't use the key to verify signatures as only X.509 certs are going to
be generated from this key pair.

-- Can't use the key for encryption (or at least they should not) as there
is no way to verify or authenticate the key without X.509 capabilities.

In cases where you have a valid OpenPGP key with a mix of X.509 & OpenPGP
signatures on it (I imagine that this is your eventual goal here) I think
that processing would go a lot smother if we had a new signature type for
these converted X.509 sigs. OpenPGP implementations without X.509 support
could then just skip over these sigs during their processing of the key.


>This is done most
>directly by giving it an unused public key algorithm, so that no
>implementations will attempt to verify the signature.  I used zero, but
>we could use 100 if that would help.  Implementations need to be able to
>handle unrecognized public key algorithms, even those which are not
>defined in the current OpenPGP standard.

According to the RFC a 0 algorithm is an invalid number. IMHO 100 would be
better as it lets the processor know that he is dealing with a
private/experimental packet rather than thinking that the signature had
somehow been damaged (my first impression looking at the key this
weekend). You are correct though, no code should core dump because of the
key in question (IMHO core dumps because of input data is poor design). 

>I can make changes for version 6.5.1 which will come out in a few weeks
>(bug fix version) to address problems which are tripping up current
>implementations.

Do you know exactly what is triggering the problem? I sent my analysis to
the keyserver list but I haven't heard anything back yet. Other than
changing the algorithm to 100 and my recommendations for a new public key
& sig types I didn't see anything that is a major problem in the format
(my code didn't have any problems with it). IMHO the keyserver folks need
to do some cleanup of their code. :)

-- 
---------------------------------------------------------------
William H. Geiger III  http://www.openpgp.net
Geiger Consulting    Cooking With Warp 4.0

Author of E-Secure - PGP Front End for MR/2 Ice
PGP & MR/2 the only way for secure e-mail.
OS/2 PGP 5.0 at: http://www.openpgp.net/pgp.html
Talk About PGP on IRC EFNet Channel: #pgp Nick: whgiii

Hi Jeff!! :)
---------------------------------------------------------------



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA07246 for ietf-open-pgp-bks; Tue, 18 May 1999 06:31:05 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA07242 for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 06:31:04 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Tue, 18 May 1999 09:30:44 -0400
Date: Tue, 18 May 1999 09:30:57 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: hal@rain.org
cc: whgiii@openpgp.net, ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: MDCs and PGP 6.5.1b15
In-Reply-To: <199905180429.VAA27241@226-132.adsl2.avtel.net>
Message-Id: <99May18.093044edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Tue, 18 May 1999 hal@rain.org wrote:

> Most of the time there is no secret key available because the signature
> is made by someone other than the person importing the key.  That is
> the typical case for an X.509 certificate.  In that case there is no
> possibility of creating an equivalent PGP secret key because the secret
> key material is not available.

I am missing something here.  You would need the PUBLIC key to validate
the signature.  These are available within the X509 certificate, so you
could use them to come up with a valid PGP signature over the PGP
signature packet (if you own the X509 cert - if you don't you can't vouch
for the validity or would use a PGP key to sign it).

> I don't see the X.509 support in PGP 6.5 as something which will be part
> of the OpenPGP standard.  X.509 is a complex data format and most PGP
> implementations should not have to carry the burden of adding a full X.509
> library just to support OpenPGP.  The intention is that X.509 certificates
> will get turned into signature packets which other implementations can
> ignore without difficulty.  This is done most directly by giving it an
> unused public key algorithm, so that no implementations will attempt
> to verify the signature.  I used zero, but we could use 100 if that
> would help.  Implementations need to be able to handle unrecognized
> public key algorithms, even those which are not defined in the current
> OpenPGP standard.

Unused or "private".  And it doesn't make sense to treat an X.509 RSA key
as not-an-RSA-key, and the same with DSA.  If you are going to use X.509
keys you can pull them into the PGP infrastructure.  And if you have any
secure web browser, you have an X.509 implementation.

It would be better to call this a version 5 signature packet.

And the issue of X.509 being a MAY / SHOULD is different from how it
should be implemented if it exists.  If OpenPGP MAY support X.509, the
details should be discussed here.

> I can make changes for version 6.5.1 which will come out in a few weeks
> (bug fix version) to address problems which are tripping up current
> implementations.

So my implementation (which has an X.509 implmentation in the same library
as the rest of the crypto) should easily work with what you are doing?




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id AAA26188 for ietf-open-pgp-bks; Tue, 18 May 1999 00:51:33 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA26182 for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 00:51:28 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id JAA26976 for ietf-open-pgp@imc.org; Tue, 18 May 1999 09:51:11 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10jeJT-000518-00; Tue, 18 May 1999 09:29:19 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10jeFo-0004zv-00; Tue, 18 May 1999 09:25:32 +0200
Date: Tue, 18 May 1999 09:25:32 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: MDCs and PGP 6.5.1b15
Message-ID: <19990518092532.F19134@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905180429.VAA27241@226-132.adsl2.avtel.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <199905180429.VAA27241@226-132.adsl2.avtel.net>; from hal@rain.org on Mon, May 17, 1999 at 09:29:58PM -0700
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

hal@rain.org writes:

> unused public key algorithm, so that no implementations will attempt
> to verify the signature.  I used zero, but we could use 100 if that

So what about this small change:


5.2.3. Version 4 Signature Packet Format

   The body of a version 4 Signature Packet contains:

     - One-octet version number (4).

     - One-octet signature type.

|    - One-octet public key algorithm or a value of zero to indicate
|      that no multi-precision integers follow.

     - One-octet hash algorithm.

     - Two-octet scalar octet count for following hashed subpacket
       data. Note that this is the length in octets of all of the hashed
       subpackets; a pointer incremented by this number will skip over
       the hashed subpackets.

     - Hashed subpacket data. (zero or more subpackets)

     - Two-octet scalar octet count for following unhashed subpacket
       data. Note that this is the length in octets of all of the
       unhashed subpackets; a pointer incremented by this number will
       skip over the unhashed subpackets.

     - Unhashed subpacket data. (zero or more subpackets)

     - Two-octet field holding left 16 bits of signed hash value.

|    - Zero or more multi-precision integers comprising the signature.
|      This portion is algorithm specific, as described above.



-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id AAA25101 for ietf-open-pgp-bks; Tue, 18 May 1999 00:21:40 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA25097 for <ietf-open-pgp@imc.org>; Tue, 18 May 1999 00:21:27 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id JAA22957 for ietf-open-pgp@imc.org; Tue, 18 May 1999 09:21:17 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10je71-00050g-00; Tue, 18 May 1999 09:16:27 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10je3M-0004zk-00; Tue, 18 May 1999 09:12:40 +0200
Date: Tue, 18 May 1999 09:12:40 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: MDCs and PGP 6.5.1b15
Message-ID: <19990518091240.E19134@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <99May17.201900edt.42114@brickwall.ceddec.com> <199905180250.WAA06464@domains.invweb.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <199905180250.WAA06464@domains.invweb.net>; from William H. Geiger III on Mon, May 17, 1999 at 10:35:22PM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

"William H. Geiger III" <whgiii@openpgp.net> writes:

> I don't think that the X.509 packet alone should qualify as a valid
> SelfSignature but instead during the conversion process a OpenPGP

We should not discuss the contents of private packets here.  I mailed
this only as an explanation why we mighgt have those problems with the
signature packets.  And becuase the public key algo 0 violates the
RFC, we should only dicusss, whether it might make sense to allow such 
an extension.  


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id VAA13978 for ietf-open-pgp-bks; Mon, 17 May 1999 21:30:07 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id VAA13971 for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 21:30:06 -0700 (PDT)
Received: (from hal@localhost) by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id VAA27241; Mon, 17 May 1999 21:29:58 -0700
Date: Mon, 17 May 1999 21:29:58 -0700
From: hal@rain.org
Message-Id: <199905180429.VAA27241@226-132.adsl2.avtel.net>
To: tzeruch@ceddec.com, whgiii@openpgp.net
Subject: Re: MDCs and PGP 6.5.1b15
Cc: hal@rain.org, ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

William H. Geiger III, <whgiii@openpgp.net>, writes:
> I had done a detailed analysis of this key for the PGP-Keyserver Operators
> group this weekend (I can post here if desired).

Yes, that would be useful to see.

> IMHO the signature looks
> foobared and violates several aspects of RFC 2440. I don't mind creating a
> method to convert X.509 stuff to OpenPGP, I don't even mind the X.509
> certs being encapsulated in a hashed subpacket. But if we are going to do
> all this the end result should be a valid OpenPGP Key that contains the
> following 3 elements:
>
> Valid OpenPGP Public Key Packet
> Valid OpenPGP UserID Packet
> Valid OpenPGP SelfSignature
>
> I don't think that the X.509 packet alone should qualify as a valid
> SelfSignature but instead during the conversion process a OpenPGP
> SelfSignature should be generated. Of course this would require that a
> corresponding OpenPGP secret key be generated during the conversion
> process. Otherwise I really don't see the point of going through the
> conversion process at all.

Most of the time there is no secret key available because the signature
is made by someone other than the person importing the key.  That is
the typical case for an X.509 certificate.  In that case there is no
possibility of creating an equivalent PGP secret key because the secret
key material is not available.

I don't see the X.509 support in PGP 6.5 as something which will be part
of the OpenPGP standard.  X.509 is a complex data format and most PGP
implementations should not have to carry the burden of adding a full X.509
library just to support OpenPGP.  The intention is that X.509 certificates
will get turned into signature packets which other implementations can
ignore without difficulty.  This is done most directly by giving it an
unused public key algorithm, so that no implementations will attempt
to verify the signature.  I used zero, but we could use 100 if that
would help.  Implementations need to be able to handle unrecognized
public key algorithms, even those which are not defined in the current
OpenPGP standard.

I can make changes for version 6.5.1 which will come out in a few weeks
(bug fix version) to address problems which are tripping up current
implementations.

Hal Finney
Network Associates, Inc.


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id TAA01205 for ietf-open-pgp-bks; Mon, 17 May 1999 19:50:40 -0700 (PDT)
Received: from domains.invweb.net (root@domains.invweb.net [198.182.196.32]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id TAA01197 for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 19:50:39 -0700 (PDT)
Received: from 100.100.100.1 (IDENT:root@openpgp.net [199.184.252.29]) by domains.invweb.net (8.9.1/8.9.1) with SMTP id WAA06464; Mon, 17 May 1999 22:50:00 -0400
Message-Id: <199905180250.WAA06464@domains.invweb.net>
From: "William H. Geiger III" <whgiii@openpgp.net>
Date: Mon, 17 May 1999 22:35:22 -0400
To: Tom Zerucha <tzeruch@ceddec.com>
In-Reply-To: <99May17.201900edt.42114@brickwall.ceddec.com>
Cc: hal@rain.org, ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: MDCs and PGP 6.5.1b15
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

In <99May17.201900edt.42114@brickwall.ceddec.com>, on 05/17/99 
   at 07:19 PM, Tom Zerucha <tzeruch@ceddec.com> said:

>I don't know about this particular signature packet or extension, but I
>would hope you aren't violating any part of the existing spec with this
>addition.

I had done a detailed analysis of this key for the PGP-Keyserver Operators
group this weekend (I can post here if desired). IMHO the signature looks
foobared and violates several aspects of RFC 2440. I don't mind creating a
method to convert X.509 stuff to OpenPGP, I don't even mind the X.509
certs being encapsulated in a hashed subpacket. But if we are going to do
all this the end result should be a valid OpenPGP Key that contains the
following 3 elements:

Valid OpenPGP Public Key Packet
Valid OpenPGP UserID Packet
Valid OpenPGP SelfSignature

I don't think that the X.509 packet alone should qualify as a valid
SelfSignature but instead during the conversion process a OpenPGP
SelfSignature should be generated. Of course this would require that a
corresponding OpenPGP secret key be generated during the conversion
process. Otherwise I really don't see the point of going through the
conversion process at all.


-- 
---------------------------------------------------------------
William H. Geiger III  http://www.openpgp.net
Geiger Consulting    Cooking With Warp 4.0

Author of E-Secure - PGP Front End for MR/2 Ice
PGP & MR/2 the only way for secure e-mail.
OS/2 PGP 5.0 at: http://www.openpgp.net/pgp.html
Talk About PGP on IRC EFNet Channel: #pgp Nick: whgiii

Hi Jeff!! :)
---------------------------------------------------------------



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id RAA21589 for ietf-open-pgp-bks; Mon, 17 May 1999 17:19:28 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA21585 for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 17:19:27 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Mon, 17 May 1999 20:19:00 -0400
Date: Mon, 17 May 1999 20:19:03 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: hal@rain.org
cc: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: MDCs and PGP 6.5.1b15
In-Reply-To: <199905171636.JAA24984@226-132.adsl2.avtel.net>
Message-Id: <99May17.201900edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Mon, 17 May 1999 hal@rain.org wrote:

> MDCs are a different cryptographic entity and they should go into
> different packets.

As an aside, the first does not imply the second.  The spec does not state
that packets map to cryptographic entities (though it ends up this way for
the most part).  And I think the 1-pass signature prefix packet uses a
different packet type number although it is functionally part of the
trailing signature.

Then again, the new encryption scheme is the same type of cryptographic
entity so then should use the same packet as the existing encryption.

> MDCs only work in the context of an encryption envelope and so they
> should be associated with an encryption context.

True, but the question is where or how the association happens.  Do we put
a post-it on the document or on the inside of the envelope, or use glue
or write directly on the document.

> I will post information shortly with the formats of this PRIVATE signature
> subpacket, which does hold an X.509 certificate.  The picture above is
> inaccurate in one respect; it does not have a keyid of 0, rather there
> is no keyid subpacket.  X.509 certs use a different method to link
> issuing keys to signatures, and a keyid cannot meaningfully be used in
> this context.

A PGP key ID is derivable from an X.509 cert.  If you use openssl to fill
a key structure with the appropriate information and pass that to one of
my routines it will derive the corresponding ID as if the X.509 key
material was a PGP key. (goodies/x509topk.c)

> > If this has really been created by PGP, why didn't tell NAI us about
> > it?  
> 
> It uses a private subpacket.  That's what the private subpacket is for,
> so that vendors can extend the standard for their own uses.

Does it violate other rules about the signature packet?  The spec does not
allow for a signature without one (RSA) or two (DSA or even ElGamal) MPI
integers (unless you are using a private, experimental PK algorithm), plus
you need the all the hash stuff in their places.

Stuff all the private packets you want there, but the rest of the rules
about what MUST be there and the valid ID numbers still apply (0 is not
valid for a private, experimental PK algorithm).

I don't know about this particular signature packet or extension, but I
would hope you aren't violating any part of the existing spec with this
addition.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id QAA21247 for ietf-open-pgp-bks; Mon, 17 May 1999 16:42:29 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA21243 for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 16:42:28 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Mon, 17 May 1999 19:41:53 -0400
Date: Mon, 17 May 1999 19:41:53 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: Werner Koch <wk@isil.d.shuttle.de>
cc: ietf-open-pgp@imc.org
Subject: Re: MDCs and PGP 6.5.1b15
In-Reply-To: <19990517151216.D14316@frodo.isil.d.shuttle.de>
Message-Id: <99May17.194153edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Mon, 17 May 1999, Werner Koch wrote:

[key stuff deleted]

It may be a rogue version - and although I never sent any such keys to any
PGP server, I did experiment with using the X509 output capabilities of
openssl (so you could use a PGP key in an X509 routine, and vice versa).

> Tom, what about changing your MDC to use a unhashed subpacket for the
> MDC instead of an MPI?  I think this will be a much nicer solution and
> I wonder why we didn't came up with this earlier.

That would also work - I would have to put in the logic earlier, but then
the signature test logic wouldn't have the zero algorithm there.

We just need an unhashed packet ID



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA17306 for ietf-open-pgp-bks; Mon, 17 May 1999 09:36:31 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA17302 for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 09:36:29 -0700 (PDT)
Received: (from hal@localhost) by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id JAA24984; Mon, 17 May 1999 09:36:24 -0700
Date: Mon, 17 May 1999 09:36:24 -0700
From: hal@rain.org
Message-Id: <199905171636.JAA24984@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: MDCs and PGP 6.5.1b15
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

> I think I found a reason why NAI argues against MDCs in signature
> packets.

No, that has nothing to do with why we feel that MDCs should be
associated with encryption packets.  MDCs are not signatures and are not
syntactically replaceable with signatures.  They do not have the same
semantics as signatures and should not be put into signature packets.
Digital signatures are a well defined cryptographic concept and we have a
packet for that purpose.  MDCs are a different cryptographic entity and
they should go into different packets.  MDCs only work in the context
of an encryption envelope and so they should be associated with an
encryption context.

> There is a key which caused some key servers to crash and
> it seems that this one has been created by a new PGP version.  The
> key looks like this:
>
> :public key packet:
>         version 3, algo 1, created 838857600, expires 0
>         pkey[0]: [1024 bits]
>         pkey[1]: [17 bits]
> :user id packet: "Thawte Server CA <server-certs@thawte.com>"
> :signature packet: algo 0, keyid 0000000000000000
>         version 4, created 0, md5len 0, sigclass 10
>         digest algo 1, begin of digest 00 00
>         hashed subpkt 2 len 5 (sig created 1996-08-01)
>         hashed subpkt 3 len 5 (sig expires after 24y158d23h59m)
>         hashed subpkt 5 len 3 (trust signature)
>         hashed subpkt 100 len 795 (?)
>         unknown algorithm 0

I will post information shortly with the formats of this PRIVATE signature
subpacket, which does hold an X.509 certificate.  The picture above is
inaccurate in one respect; it does not have a keyid of 0, rather there
is no keyid subpacket.  X.509 certs use a different method to link
issuing keys to signatures, and a keyid cannot meaningfully be used in
this context.

> So we have all the stuff Tom proposed for MDCs in signature packets:
> keyid of zero and a public key algorithm identifier of zero.  The
> private subpacket with id 100 maybe a X509 certificate - I have not
> analyzed it.

It differs from Tom's proposal in several ways, not least because the
signature class of 0x10 indicates that it is a key certificate signature
and not a message signature as the MDC would presumably be.  We use a
PK alg of zero because the certificate validation has to be done using
special X.509 rules.

> If this has really been created by PGP, why didn't tell NAI us about
> it?  

It uses a private subpacket.  That's what the private subpacket is for,
so that vendors can extend the standard for their own uses.

> Tom, what about changing your MDC to use a unhashed subpacket for the
> MDC instead of an MPI?  I think this will be a much nicer solution and
> I wonder why we didn't came up with this earlier.

This would not address the other problems with using a signature packet
for this purpose.

Hal Finney
Network Associates, Inc.


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA15840 for ietf-open-pgp-bks; Mon, 17 May 1999 06:18:48 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA15836 for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 06:18:30 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id PAA08363 for ietf-open-pgp@imc.org; Mon, 17 May 1999 15:17:57 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10jNFd-0004SI-00; Mon, 17 May 1999 15:16:13 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10jNBo-0003lm-00; Mon, 17 May 1999 15:12:16 +0200
Date: Mon, 17 May 1999 15:12:16 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: MDCs and PGP 6.5.1b15
Message-ID: <19990517151216.D14316@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Hi,

I think I found a reason why NAI argues against MDCs in signature
packets.  There is a key which caused some key servers to crash and
it seems that this one has been created by a new PGP version.  The
key looks like this:

:public key packet:
        version 3, algo 1, created 838857600, expires 0
        pkey[0]: [1024 bits]
        pkey[1]: [17 bits]
:user id packet: "Thawte Server CA <server-certs@thawte.com>"
:signature packet: algo 0, keyid 0000000000000000
        version 4, created 0, md5len 0, sigclass 10
        digest algo 1, begin of digest 00 00
        hashed subpkt 2 len 5 (sig created 1996-08-01)
        hashed subpkt 3 len 5 (sig expires after 24y158d23h59m)
        hashed subpkt 5 len 3 (trust signature)
        hashed subpkt 100 len 795 (?)
        unknown algorithm 0
  
So we have all the stuff Tom proposed for MDCs in signature packets:
keyid of zero and a public key algorithm identifier of zero.  The
private subpacket with id 100 maybe a X509 certificate - I have not
analyzed it.

If this has really been created by PGP, why didn't tell NAI us about
it?  

Tom, what about changing your MDC to use a unhashed subpacket for the
MDC instead of an MPI?  I think this will be a much nicer solution and
I wonder why we didn't came up with this earlier.



-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP 6.5.1b15
Comment: Digital Signatures ensure message authenticity

mQCPAzH/84AAAAEEANOkUG7I/1Zr5s9dtuoMaHVHoqrC2oQl/Kj0R1HahbUgdJSG
Hg91yekIYfUGbTBuFRkC6VLAYttNmZ7iagxEOM3+vuNkCXDF/rFrKbYvScg71CcE
JRCXL+eQbcAoQpnXTEPew/UhbVSfXcNY4cDk2VuwuNy0e982OsK1ZiIS1ocNABEB
AAG0KlRoYXd0ZSBTZXJ2ZXIgQ0EgPHNlcnZlci1jZXJ0c0B0aGF3dGUuY29tPokD
OgQQAAEDLQUCMf/zgAUDLe5yfwMF/3jCW2QBAQMwggMTMIICfKADAgECAgEBMA0G
CSqGSIb3DQEBBAUAMIHEMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBD
YXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xHTAbBgNVBAoTFFRoYXd0ZSBDb25zdWx0
aW5nIGNjMSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9u
MRkwFwYDVQQDExBUaGF3dGUgU2VydmVyIENBMSYwJAYJKoZIhvcNAQkBFhdzZXJ2
ZXItY2VydHNAdGhhd3RlLmNvbTAeFw05NjA4MDEwMDAwMDBaFw0yMDEyMzEyMzU5
NTlaMIHEMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRIwEAYD
VQQHEwlDYXBlIFRvd24xHTAbBgNVBAoTFFRoYXd0ZSBDb25zdWx0aW5nIGNjMSgw
JgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9uMRkwFwYDVQQD
ExBUaGF3dGUgU2VydmVyIENBMSYwJAYJKoZIhvcNAQkBFhdzZXJ2ZXItY2VydHNA
dGhhd3RlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA06RQbsj/Vmvm
z1226gxodUeiqsLahCX8qPRHUdqFtSB0lIYeD3XJ6Qhh9QZtMG4VGQLpUsBi202Z
nuJqDEQ4zf6+42QJcMX+sWspti9JyDvUJwQlEJcv55BtwChCmddMQ97D9SFtVJ9d
w1jhwOTZW7C43LR73zY6wrVmIhLWhw0CAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB
/zANBgkqhkiG9w0BAQQFAAOBgQAH+kxpXPuVzEbuhYNNITCOytmob0ka5tpR42Bw
bIRhEaEayEg+WUN9T5U9oYu3C2KYenWK3YhOTp5A26jMMnS5bw3G47NEC9mKb5op
m5kYKDvR40Aomlo81bXnIBuLyqSrjelR2eJMLFmp2rmydRv2QvLvx/IY+Ym8o/+K
Iy5wRwAAAAAAAQE=
=I22I
-----END PGP PUBLIC KEY BLOCK-----

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id AAA11318 for ietf-open-pgp-bks; Mon, 17 May 1999 00:51:26 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA11314 for <ietf-open-pgp@imc.org>; Mon, 17 May 1999 00:51:24 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id JAA28138 for ietf-open-pgp@imc.org; Mon, 17 May 1999 09:51:02 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10jHwn-0004JQ-00; Mon, 17 May 1999 09:36:25 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10jHsu-0003UM-00; Mon, 17 May 1999 09:32:24 +0200
Date: Mon, 17 May 1999 09:32:24 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990517093224.D1057@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905120010.RAA03421@226-132.adsl2.avtel.net> <99May12.152725edt.42114@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May12.152725edt.42114@brickwall.ceddec.com>; from Tom Zerucha on Wed, May 12, 1999 at 03:27:42PM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha <dontspam-tzeruch@ceddec.com> writes:

> Does GPG have any plans on allowing MDCs with the other algorithms?  Other
> hash algorithms besides SHA1?

I'd like to allow RIPE-MD160 if somewone wants to do this.  There is
already the option to use DSA with RIPE.  And we have these
identifiers all over the place.

> But I don't have any objections to a new MDC-only packet, especially if it
> has a "MDC follows" prefix packet.

The one-pass signature packet can be used for this.


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA04403 for ietf-open-pgp-bks; Fri, 14 May 1999 07:02:47 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA04399 for <ietf-open-pgp@imc.org>; Fri, 14 May 1999 07:02:46 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Fri, 14 May 1999 10:05:06 -0400
Date: Fri, 14 May 1999 10:05:30 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: ietf-open-pgp@imc.org
cc: hal@rain.org, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <199905140154.SAA13713@226-132.adsl2.avtel.net>
Message-Id: <99May14.100506edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

yOn Thu, 13 May 1999 hal@226-132.adsl2.avtel.net wrote:

> > > encryptwithmdc( <plaintext packet>, <mdc packet> )
> 
> (Note that what I showed here as "<plaintext packet>" could actually
> be multiple packets long.  It would be better described as an "<OpenPGP
> Message>" in the syntax of section 10.2 of RFC2440.)
> 
> If we did go with something like this, how would we handle the hashing
> of the packet headers on the mdc packet?  They should probably be hashed
> too, don't you think?
> 
> The simplest case from my point of view would be that we hash all the
> encrypted material except for the last 20 bytes (assuming we settle on
> a SHA-1 hash).

You probably would have the entire MDC packet in the buffer, so you could
use the prefix MDC as a sort of initial text to the hash function.

And also hash the beginning of the MDC value packet.  It would end up with
the final 20 bytes at the end, so it should work almost transparently.

One note, that it could mean hashing the packet content at this level
including the CTB bytes.  I would rather not hash the CTB, or hash a
"normalized" CTB sort of the way keys are prefixed with 99 hh ll for their
signature hash.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id SAA29263 for ietf-open-pgp-bks; Thu, 13 May 1999 18:52:15 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA29259 for <ietf-open-pgp@imc.org>; Thu, 13 May 1999 18:52:14 -0700 (PDT)
From: hal@226-132.adsl2.avtel.net
Received: (from hal@localhost) by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id SAA13713; Thu, 13 May 1999 18:54:56 -0700
Date: Thu, 13 May 1999 18:54:56 -0700
Message-Id: <199905140154.SAA13713@226-132.adsl2.avtel.net>
To: hal@rain.org, tzeruch@ceddec.com
Subject: Re: Agree with PRZs MDC suggestion
Cc: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

> > encryptwithmdc( <plaintext packet>, <mdc packet> )

(Note that what I showed here as "<plaintext packet>" could actually
be multiple packets long.  It would be better described as an "<OpenPGP
Message>" in the syntax of section 10.2 of RFC2440.)

If we did go with something like this, how would we handle the hashing
of the packet headers on the mdc packet?  They should probably be hashed
too, don't you think?

The simplest case from my point of view would be that we hash all the
encrypted material except for the last 20 bytes (assuming we settle on
a SHA-1 hash).

Hal


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id SAA29220 for ietf-open-pgp-bks; Thu, 13 May 1999 18:44:39 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA29216 for <ietf-open-pgp@imc.org>; Thu, 13 May 1999 18:44:37 -0700 (PDT)
From: hal@226-132.adsl2.avtel.net
Received: (from hal@localhost) by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id SAA13688; Thu, 13 May 1999 18:47:23 -0700
Date: Thu, 13 May 1999 18:47:23 -0700
Message-Id: <199905140147.SAA13688@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, tzeruch@ceddec.com
Subject: Re: Versions and hashing
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha, <tzeruch@ceddec.com>, writes:
> > >    1 byte version  (should be 1)
>
> Actually 5 would be more consistent.  Elsewhere 3 is used for PGP 2.6
> level packets, 4 for PGP 5-6.  Anything below 5 for this new packet would
> be an error.

Maybe, although with a new packet type it is questionable whether you
have to start that high.  It's not like there are any V1-V4 packets of
this type out there.  But for consistency maybe V5 is best.

> > >    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
> > 
> > This one worries me.  It allows an attacker to turn a 2 into a 0.  Also,
> > is there an implication that it can be something other than 2 or 0?  Like,
> > 1 means MD5?  If so, this again offers an attacker more opportunities to
> > mess with the receiver.  The attacker could change the hash algorithm to
> > something like 6.  Now the receiver doesn't know if this is a legitimate
> > message from a later version of PGP that supports hash algorithm 6, or
> > whether it is a messed up message by an attacker.  If we choose a fixed
> > hash algorithm this ambiguity cannot arise.
>
> The receiver would have to check the message on a later version of PGP.
> If 6 was a legitimage algorithm ID the hash would work.  The same problem
> arises if something shifts between any two valid IDs with the same length 
> hash, the second of which would might not be supported.

The point is that if no such new version of PGP is available, the
integrity protection is lost.  I think we can make a design where
integrity protection can't be stripped away.  Shouldn't we do so?

> One note is that if you use my idea of an MDC-ahead prefix packet, and
> MDC-result packet bracketing the plaintext, the MDC specification is
> encrypted too, making this attack difficult.

But still possible - you can make tweaks to encrypted data as I described
earlier.

> (CTB,len=2) 5 2; plaintext; (CTB, len=22) 5 2 <20 byte result>;
>
> Note that this would allow multiple MDCs with different algorithms
> (the hash would only be on the plaintext), so you could have
>
> [MDC: rmd160 follows][MDC: SHA1 follows][plaintext][MDC: SHA1 result][MDC:
> rmd result].
>
> Or these could be merged, (CTB len = 4) 5 2 3 0;/ (CTB len = 44) 5 2 <20
> byte sha1> 3 <20 byte rmd> 0; or something similar.

There is no point in having multiple MDC's with different algorithms.
There is not even any point in supporting more than one algorithm.
The attacker, when he makes his changes, either truncates the message
or can't help unpredictably corrupting a block of the message.  A simple
SHA hash will detect either of these changes with overwhelming security.

> While we are on the subject, last year at this time there was a suggestion
> to drop El Gamal. The objection was mainly that the only other two
> alternatives had other problems - RSA was patented, and DSA limited the
> hash length to 160 bits, so although you could do larger keys, they added
> no security since the hash was the weakest link.  ElGamal allowed for
> longer hashes and (if there were no flaws in the implementation) more
> functional bits in the public key.
>
> Various suggestions were made including a doublewide DSA or something
> similar including coming up with a hash system.
>
> Has anyone followed up on this?

We have spoken to NIST about this, and they say that they are acutely
aware of the need to standardize on a larger hash algorithm, and that
they are working very activelly on it.  However they have not given us
a fixed date for when they will have a result.

Hal Finney


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA24608 for ietf-open-pgp-bks; Thu, 13 May 1999 09:47:27 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA24604 for <ietf-open-pgp@imc.org>; Thu, 13 May 1999 09:47:26 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Thu, 13 May 1999 12:49:41 -0400
Date: Thu, 13 May 1999 12:50:03 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: hal@rain.org
cc: ietf-open-pgp@imc.org, tzeruch@ceddec.com, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <199905122021.NAA06259@226-132.adsl2.avtel.net>
Message-Id: <99May13.124941edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Wed, 12 May 1999 hal@rain.org wrote:

> > I am not arguing against an MDC packet, though I don't see as much problem
> > with the extra field bytes in the existing signature/validation packet.
> > They don't have to be in the existing signature packet (though I would
> > want things like version and algorithm bytes and length processing to make
> > them orthogonal with every other packet type).  I am arguing against a
> > required trailing naked MDC field unique to a new encryption packet.
> >
> > To clarify, it would be encrypt( literal(data), MDC ), MDC being the new
> > packet containing the hash of the literal.  And encrypt( "mdc follows",
> > literal(data), MDC) would be even better.
> 
> How about if the "encrypt" is a different packet number, something like
> "encryptwithmdc".  Then this would be:
> 
> encryptwithmdc( <plaintext packet>, <mdc packet> )

That too would work, but if you want to give (one or more) hash algorithm
IDs, or versions (we might want to change something with the MDC for 3.0),
that would have to go into the Ew/MDC header and be subject to the attack
you pointed out.  It can be an Ew/MDC function, but all MDC info will need
to go into the encrypted area.  (And if encrypted, you could have an MDC
header specifying "no algorithms" for those who want to use just the new 
algorithms but without MDC).

If these could be resolved, I would say the whole Ew/MDC stuff is a
SHOULD, but if so SHA1 is a MUST, rmd160 a SHOULD, none or others a MAY,
for the hash stuff.  I suspect TwoFish to be the MUST, the existing
SHOULD/MUST algorithms as SHOULDs here.

(assuming we aren't locked to SHA1 by having an MDC prefix packet in the
encrypted stream - note that if this header were checksummed you might not
need any other quick-check bytes).

> We would still need to decide whether to change to a more conventional
> IV handling, and if so how to handle check bytes.  I will tell you
> frankly that Phil likes the pseudo-IV; he invented it.  I have been
> the main one pushing for a more conventional handling of the IV,
> because I don't believe the pseudo IV offers any security advantage.
> It's unusual but has no security advantages.  This is generally not a
> good thing in cryptography.  So I'd like to make it more conventional.
> 
> Uri suggested that a conventional IV is less desirable from a security
> point of view, but I'd like to hear more about the reasons.
> 
> This is not the highest priority item for me so if everyone else likes
> the pseudo IV I can accept it.  But I would prefer to know a good reason
> for doing it that way.

I can go either way here.  I either pass the data directly to the
algorithm, or through my pseudoIV handler.  However I suspect it might be
nicer (especially if hardware implmentations of crypto become common) to
do things in the more conventional way.

> > Does GPG have any plans on allowing MDCs with the other algorithms?  Other
> > hash algorithms besides SHA1?
> 
> I would suggest that we should allow it with other algorithms in the spec.
> However initially implementations should accept it but not create it
> except for Twofish.
> 
> As for other hash algs, I have described how this could potentially open
> up a security hole (by letting an attacker tweak the hash-alg field).

Not if the field is encrypted.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id OAA17020 for ietf-open-pgp-bks; Wed, 12 May 1999 14:18:32 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA17016 for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 14:18:31 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Wed, 12 May 1999 17:20:38 -0400
Date: Wed, 12 May 1999 17:20:54 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: ietf-open-pgp@imc.org
Subject: Versions and hashing
In-Reply-To: <199905112352.QAA03374@226-132.adsl2.avtel.net>
Message-Id: <99May12.172038edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

On Tue, 11 May 1999 hal@rain.org wrote:

> In my other message I pointed out the problem that an attacker could
> perturb some of these header values.  With that in mind let us look at
> these fields:
> 
> >    1 byte version  (should be 1)
> 
> This is probably a good idea.  If perturbed by an attacker to a later
> version, the software will refuse to process the packet.  We need

Actually 5 would be more consistent.  Elsewhere 3 is used for PGP 2.6
level packets, 4 for PGP 5-6.  Anything below 5 for this new packet would
be an error.

> >    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
> 
> This one worries me.  It allows an attacker to turn a 2 into a 0.  Also,
> is there an implication that it can be something other than 2 or 0?  Like,
> 1 means MD5?  If so, this again offers an attacker more opportunities to
> mess with the receiver.  The attacker could change the hash algorithm to
> something like 6.  Now the receiver doesn't know if this is a legitimate
> message from a later version of PGP that supports hash algorithm 6, or
> whether it is a messed up message by an attacker.  If we choose a fixed
> hash algorithm this ambiguity cannot arise.

The receiver would have to check the message on a later version of PGP.
If 6 was a legitimage algorithm ID the hash would work.  The same problem
arises if something shifts between any two valid IDs with the same length 
hash, the second of which would might not be supported.

One note is that if you use my idea of an MDC-ahead prefix packet, and
MDC-result packet bracketing the plaintext, the MDC specification is
encrypted too, making this attack difficult.

(CTB,len=2) 5 2; plaintext; (CTB, len=22) 5 2 <20 byte result>;

Note that this would allow multiple MDCs with different algorithms
(the hash would only be on the plaintext), so you could have

[MDC: rmd160 follows][MDC: SHA1 follows][plaintext][MDC: SHA1 result][MDC:
rmd result].

Or these could be merged, (CTB len = 4) 5 2 3 0;/ (CTB len = 44) 5 2 <20
byte sha1> 3 <20 byte rmd> 0; or something similar.

-----------------------

While we are on the subject, last year at this time there was a suggestion
to drop El Gamal. The objection was mainly that the only other two
alternatives had other problems - RSA was patented, and DSA limited the
hash length to 160 bits, so although you could do larger keys, they added
no security since the hash was the weakest link.  ElGamal allowed for
longer hashes and (if there were no flaws in the implementation) more
functional bits in the public key.

Various suggestions were made including a doublewide DSA or something
similar including coming up with a hash system.

Has anyone followed up on this?



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id NAA16452 for ietf-open-pgp-bks; Wed, 12 May 1999 13:18:37 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA16448 for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 13:18:36 -0700 (PDT)
Received: (from hal@localhost) by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id NAA06259; Wed, 12 May 1999 13:21:06 -0700
Date: Wed, 12 May 1999 13:21:06 -0700
From: hal@rain.org
Message-Id: <199905122021.NAA06259@226-132.adsl2.avtel.net>
To: dontspam-tzeruch@ceddec.com, hal@rain.org
Subject: Re: Agree with PRZs MDC suggestion
Cc: ietf-open-pgp@imc.org, tzeruch@ceddec.com, wk@isil.d.shuttle.de
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha, <tzeruch@ceddec.com>, writes:
> And I am not saying it must be the signature packet or nothing.  My
> problem is with the 20 unencapsulated or unindicated hash bytes at the
> end.  Encapsulating them addresses all my major complaints.  But that
> would mean another new packet type or subtype.

OK, maybe we could do something along these lines.

> Is he also completely and irrevocably opposed to having the hash as
> anything except a naked 20 byte field at the end of the plaintext stream?

I recall that Phil and I did briefly discuss the idea of putting the
hash into a separate, following packet, and while he didn't like it as
much as integrating it, I don't think he objected to it.

> I am not arguing against an MDC packet, though I don't see as much problem
> with the extra field bytes in the existing signature/validation packet.
> They don't have to be in the existing signature packet (though I would
> want things like version and algorithm bytes and length processing to make
> them orthogonal with every other packet type).  I am arguing against a
> required trailing naked MDC field unique to a new encryption packet.
>
> To clarify, it would be encrypt( literal(data), MDC ), MDC being the new
> packet containing the hash of the literal.  And encrypt( "mdc follows",
> literal(data), MDC) would be even better.

How about if the "encrypt" is a different packet number, something like
"encryptwithmdc".  Then this would be:

encryptwithmdc( <plaintext packet>, <mdc packet> )

We would still need to decide whether to change to a more conventional
IV handling, and if so how to handle check bytes.  I will tell you
frankly that Phil likes the pseudo-IV; he invented it.  I have been
the main one pushing for a more conventional handling of the IV,
because I don't believe the pseudo IV offers any security advantage.
It's unusual but has no security advantages.  This is generally not a
good thing in cryptography.  So I'd like to make it more conventional.

Uri suggested that a conventional IV is less desirable from a security
point of view, but I'd like to hear more about the reasons.

This is not the highest priority item for me so if everyone else likes
the pseudo IV I can accept it.  But I would prefer to know a good reason
for doing it that way.

> What about Geiger's OS/2 (mainly) implementation?

I'm not familiar with this one.  Is there really such a thing?

> Does GPG have any plans on allowing MDCs with the other algorithms?  Other
> hash algorithms besides SHA1?

I would suggest that we should allow it with other algorithms in the spec.
However initially implementations should accept it but not create it
except for Twofish.

As for other hash algs, I have described how this could potentially open
up a security hole (by letting an attacker tweak the hash-alg field).
I believe we should stick with SHA-1.  There is actually no need for a
cryptographically collision-resistant hash here, and in practice probably
something like a CRC would work.  SHA-1 is overkill and even if it is
someday broken it will almost certainly still be more than adequate for
this purpose.

> To restate my position, the MDC should be encapsulated in some kind of
> packet consistent with the existing syntax and grammar.  My preference is
> for expanding the existing signature packet by adding a "zero" algorithm.
>
> But I don't have any objections to a new MDC-only packet, especially if it
> has a "MDC follows" prefix packet.
>
> All I don't want is an unencapsulated fixed number of bytes implicitly at
> the end of a packet.

I could go with this, along the lines Tom mentioned above, particularly
with the modification I suggested.  How does this sound to others?

Hal


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id MAA16084 for ietf-open-pgp-bks; Wed, 12 May 1999 12:25:18 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA16080 for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 12:25:16 -0700 (PDT)
Received: by brickwall.ceddec.com id <42114>; Wed, 12 May 1999 15:27:25 -0400
Date: Wed, 12 May 1999 15:27:42 -0400
From: Tom Zerucha <dontspam-tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: hal@rain.org
cc: tzeruch@ceddec.com, wk@isil.d.shuttle.de, ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <199905120010.RAA03421@226-132.adsl2.avtel.net>
Message-Id: <99May12.152725edt.42114@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

yOn Tue, 11 May 1999 hal@rain.org wrote:

> These statements are only valid in the context of your implementation.
> I have implemented it in a different way which did not require adding any
> new layers.  I simply added calls to the hash function in the decryption
> module, as well as the 20 byte holdback buffer.  As it happened I
> already had a buffer in the decryption module so modifying it to hold
> back 20 bytes was easy.  There were then two extra functions added to
> the decryption module, one to finalize and retrieve the hash value,
> and one to retrieve the value from the holdback buffer (which holds the
> final 20 bytes at the end of processing).  These are then compared at
> the end of the packet.  It was not a difficult change.

I would still call this a layer, even if it is inline.

> Which is the most architecturally attractive way to do it?  Which method
> is the most logical and coherent?  Which method would you use if you
> were designing from scratch, rather than trying to shoehorn it into an
> existing implementation so as to change it as little as possible?

Architecture attractive means different things when adding on to a
building v.s. building a completely new building.

It is not more logical or coherent to not use an existing layer that
already does hashing and returns those hash bytes (with about a dozen
extra bytes hashed).

If you are asking which method should be used if redesigning EVERYTHING
from scratch, I would give a different answer, but then why bother calling
it or otherwise associating it with OpenPGP.  I could list about a half
dozen other things that should be done differently.  Will you be open to
those suggestions as long as the standard for OpenPGP 2.0 will be a clean
sheet of paper?

And I am not saying it must be the signature packet or nothing.  My
problem is with the 20 unencapsulated or unindicated hash bytes at the
end.  Encapsulating them addresses all my major complaints.  But that
would mean another new packet type or subtype.

> > Altering one byte to add a definition to the signature packet is less of
> > a hack than holding back 20 bytes.  Don't assume everyone is running on
> > big machines with an OS or API calls to handle this and CPU cycles to
> > spare.
> 
> Holding back 20 bytes does not take a big machine, or any OS or API calls.
> It is a simple circular buffer and about half a page of code.

Neither does it take much to reserve 20 bytes at the beginning.  I would
rather burden the single encryption operation than the many decryption
operations.  You then don't need any of this extra stuff in the decryption
layer to find the EOF.  And most things work better on block boundaries.

Nor does it take anything more to put a CTB terminal packet at both the
end of the encryption stream and do a 20 byte packet for the hash (oh,
maybe in YOUR implementation it would be hard).  And at least a byte for
the algorithm number even if it is fixed simply to be consistent.

> Let's not go down the path of putting bytes outside a packet.  That would
> violate all of our conventions.

An implicit convention that has been true UNTIL NOW is that no unknown
variable length data element is FOLLOWED by a fixed length data element,
perhaps except if you do a signed compression packet with an old style
CTB, but you do get the end-of-packet indication at the end of the
compression stream (i.e. the compressor does know where the compressed
data ends).

Another implicit convention is that everywhere things like algorithms are
used, there is no implicit value, but an identifier.  Maybe we only want
to use SHA1, but it would follow the tradition if the 20 bytes were
prefixed by a version number and the algorithm identifier.

Defining two new packet types, new encryption format and new MDC only
valid if it follows and is encrypted by the above isn't that much harder.

> > I have pointed out that we can do it without bloating the code.  But it
> > seems everyone wants to bloat it.  Assuming PRZ isn't doing another
> > "hit-and-run", what does HE think of the alternatives?
> 
> Phil is out of the country now, but I have spoken at great length to him
> about this over the past month.  I assure you that Phil is THE strongest
> supporter of integrating the MDC feature with a new encryption packet.
> I cannot over emphasize how strongly he opposes doing it as a hack of
> the signature packet.

I take it he is in a country without Email?  I don't care how
strongly one favors or opposes something if it is not on technical
grounds.  And he has been capable of speaking for himself in the past.

Is he also completely and irrevocably opposed to having the hash as
anything except a naked 20 byte field at the end of the plaintext stream?

> I showed earlier how inappropriate the signature packet is for this
> purpose.  I listed all the fields and showed how few of them made any
> sense in this context.  I can understand that this is the path of least
> resistance for kludging this feature into existing code, but we would
> prefer an approach which makes sense architecturally.  Signature packets
> are not appropriate for this purpose.

I will repeat that I am only calling it signature packet because that is
the title of the packet I want to use and would move to change it to
"validity packet" or "verification packet" in the spec.  Because it has
been given one specific name doesn't restrict it from both the function
and name being generalized.

Many of the fields make no sense in other contexts as well.  But having
implemented it this is what we have inside:
4 - the version (which is needed)
X - the signature type (not needed)
A - sig algorithm, 0 for MDCs
a - hash algorithm, SHA1 (needed unless we never want anything else)
four zero bytes (length of hashed and unhashed packets)

Also 0x04 0xff and 4 length bytes are hashed.  It is either redundant in
the signature packet or useful, and that would extend to here.

I haven't checked the packet types to see if there is any potentially
useful information that someone might want to add (e.g. a timestamp or
comment for a file that wouldn't be part of the image if it were something
like an executable).

Then there are the two redundant bytes for the hash that still provide a
quick check, which is less useful if you dont' have to do a signature
calculation.  And the hash value, but encoded in an MPI, so the MPI
length word would be redundant.

All this v.s. having a special case for the new encryption type that also
does the MDC - the special casing won't work or apply to existing
encryption algorithms, and the hashing that is already there won't apply
(or have to be done while generating a signature as well).

And, if you do create a signed message (where having a signature is
significant, for example a timestamp), why wouldn't the entire MDC
infrastructure be redundant? You are validating the decryption and then
revalidating it again when checking the signature.  Shouldn't it be turned
off to avoid having this function that doesn't make sense in this context?

What added integrity does the MDC give to a signed message (and since we
are talking about elimination redundancy and extra fields, I am assuming
the key is available, etc.)?  Why is the MDC not redundant since that is
the reason you are giving for not having it encapsulated in the existing
validation structure.  I think there are fewer total redundant bytes.

And I have asked about existing algorithms.  Whatever extra security an
MDC would provide for TwoFish should also apply to 3DES, IDEA, and CAST.
Is there a reason for NOT doing MDCs with the existing algorithms?  It
might be useful to have an implementation that implements only the MUST
algorithms except to have the extra MDC function (insert all the reasons
we need an MDC and not merely an "anybody" signature key here). How does
your method address this?

Even having an MDC "packet" (those horrid extra header bytes and the
restart of the CTB packet length engine) appended to the plaintext packet
instead of being part of it would allow for this.

I am not arguing against an MDC packet, though I don't see as much problem
with the extra field bytes in the existing signature/validation packet.
They don't have to be in the existing signature packet (though I would
want things like version and algorithm bytes and length processing to make
them orthogonal with every other packet type).  I am arguing against a
required trailing naked MDC field unique to a new encryption packet.

To clarify, it would be encrypt( literal(data), MDC ), MDC being the new
packet containing the hash of the literal.  And encrypt( "mdc follows",
literal(data), MDC) would be even better.

Note this would also have use as a simple checksum - only detecting if the
file was corrupted in transmission for simple non-crypto type validation.

> > Conversely, extending the existing structure is easy enough to warrant
> > being a SHOULD.
> 
> As far as I know, there are three implementations that are affected:
> your reference implementation, the Gnu Privacy Guard, and the commercial
> PGP from Network Associates.  If we can come to agreement then we can get
> these changes into all of these implementations, and make it a SHOULD as
> Werner suggested.

What about Geiger's OS/2 (mainly) implementation?

Does GPG have any plans on allowing MDCs with the other algorithms?  Other
hash algorithms besides SHA1?

To restate my position, the MDC should be encapsulated in some kind of
packet consistent with the existing syntax and grammar.  My preference is
for expanding the existing signature packet by adding a "zero" algorithm.

But I don't have any objections to a new MDC-only packet, especially if it
has a "MDC follows" prefix packet.

All I don't want is an unencapsulated fixed number of bytes implicitly at
the end of a packet.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id EAA12212 for ietf-open-pgp-bks; Wed, 12 May 1999 04:20:54 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id EAA12208 for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 04:20:53 -0700 (PDT)
Received: from mailhub.watson.ibm.com (mailhub.watson.ibm.com [9.2.250.97]) by igw3.watson.ibm.com (8.9.3/8.9.3/04-14-1999) with ESMTP id HAA120624; Wed, 12 May 1999 07:23:34 -0400
Received: from buoy.watson.ibm.com (buoy.watson.ibm.com [9.2.3.94]) by mailhub.watson.ibm.com (8.8.7/Feb-20-98) with SMTP id HAA15238; Wed, 12 May 1999 07:23:33 -0400
Received: by buoy.watson.ibm.com (AIX 4.1/UCB 5.64/6/25/96) id AA23654; Wed, 12 May 1999 07:23:19 -0400
From: uri <uri@watson.ibm.com>
Message-Id: <9905121123.AA23654@buoy.watson.ibm.com>
Subject: Re: Agree with PRZs MDC suggestion
To: hal@rain.org
Date: Wed, 12 May 1999 07:23:19 -0400 (EDT)
Cc: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
In-Reply-To: <199905112352.QAA03374@226-132.adsl2.avtel.net> from "hal@rain.org" at May 11, 99 04:52:58 pm
Reply-To: uri@watson.ibm.com
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

hal@rain.org says:
> >    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
> 
> This one worries me.  It allows an attacker to turn a 2 into a 0. 

I would not have "disable MDC" at all.

> Also,
> is there an implication that it can be something other than 2 or 0?

Absolutely - like 3 for HAVAL, 5 for <whatever>...

> If so, this again offers an attacker more opportunities to
> mess with the receiver.  The attacker could change the hash algorithm to
> something like 6.  Now the receiver doesn't know if this is a legitimate
> message from a later version of PGP that supports hash algorithm 6, or
> whether it is a messed up message by an attacker.  If we choose a fixed
> hash algorithm this ambiguity cannot arise.

True. So it is up to the group to decide if the extra flexibility of
permitting several hash-functions is worth this potential attack...

> I would prefer to leave this field out.  If you use the new packet format
> at all, you get the MDC, using a fixed hash of SHA-1.

Quite acceptable, if you ask me.

> >    n byte random data used as IV (n=blocksize of the cipher)	
> 
> OK.  I continue to believe that a *conventional* IV is most desirable in
> terms of explaining what we are doing to others in the field.  The "pseudo
> IV" we have now is hard to explain.

1. A conventional IV is less desirable from security point of view.
2. If you have trouble explaining this approach to others in the
   field - I suggest that those others are in the wrong field.
-- 
Regards,
Uri		uri@watson.ibm.com
-=-=-=-=-=-=-
<Disclaimer>


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id BAA08680 for ietf-open-pgp-bks; Wed, 12 May 1999 01:18:55 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA08676 for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 01:18:46 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id KAA02151 for ietf-open-pgp@imc.org; Wed, 12 May 1999 10:21:14 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10hTxf-00029R-00; Wed, 12 May 1999 10:01:51 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10hTvg-0002jM-00; Wed, 12 May 1999 09:59:48 +0200
Date: Wed, 12 May 1999 09:59:48 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990512095948.K10418@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905112352.QAA03374@226-132.adsl2.avtel.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <199905112352.QAA03374@226-132.adsl2.avtel.net>; from hal@rain.org on Tue, May 11, 1999 at 04:52:58PM -0700
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

hal@rain.org writes:

> >    1 byte version  (should be 1)
> 
> This is probably a good idea.  If perturbed by an attacker to a later

Yes and the reason for this is simply to extend the range of possible
packet formats (view it as a packet subtype).

> attacker could execute a rollback attack by changing a V2 to a V1.
> We can deal with that at that time by making sure that V2 and V1 look

And he could also do this by changing the packet type.

> >    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
> 
> This one worries me.  It allows an attacker to turn a 2 into a 0.  Also,

I see your point.  The reason I suggest this is that there are a lot
of people who prefer to use RIPE-MD160 and this way we have te
opportunity to do just this.  The packet format may also be used for
some very small applications which use a subset of OpenPGP and don't
implement SHA1 at all.  My solution to this is to say in the standard,
that this SHOULD be SHA1 and an implementation SHOULD fail if this 
condition is not met. 

> whether it is a messed up message by an attacker.  If we choose a fixed
> hash algorithm this ambiguity cannot arise.

I guess we will have new hash algorithms with a larger digest size in the
near future and this way we can more easily extend the specs to make
it possible to use this hash (Frankly, don't see any need in a MDC for 
a larger hash, but if some one wants and has only implemented this
larger hash ...).

> >    1 byte number of extra bytes (m) at the end of the encrypted text
> >           From now on CFB encrypted with an IV of all zeroes without
> >           any strange syncing.

This is fine for automatic parsing of messages to let the parse know
how may bytes he has to hold back. 

> terms of explaining what we are doing to others in the field.  The "pseudo
> IV" we have now is hard to explain.  I had to go to some lengths in
> getting our FIPS 140 certification (a standard security certification)

I can't remember that the Internet Standards Process (BCP9) or our
chapter says anything about FIPS certification.  PGPG is a widely
deployed quasi-standard and believed to be really good secure.

If you need some certification it is matter of your company to work 
it out.

> >    2 byte the last two bytes of the random data.
> 
> You have not shown whether these are encrypted.  I presume that they are,

Ah sure.  It is what we are currently using.

> My proposal was that we have four bytes, two random ones and then those
> same two random ones repeated.  These would all be encrypted.  It's not

But that will be not better than the current practice.  It is okay for
PK encryption but when using a symmetric-only encryption it may not
detect wrong passphrases in all cases.  But okay, we catch this with
the MDC and therefore I think it is good enough.

>    Make the "pseudo-IV" prefix partially non-random - i.e. the last two 
>    bytes being checksum for the other 14. No big deal security-wise and
>    noticeable help in detecting the right key.
> 
> This isn't too bad for 128 bit block ciphers like Twofish or AES, but as
> a general principle we would need to apply it to all ciphers, including
> 64 bit block ciphers.  I don't like taking away 16 of the 64 bits of IV

So we could always use 128 bits and use only the lower half for 64 bit
blocksize ciphers.  But okay, with the MDC we don't really need it.

> I agree that it would be sensible to encourage the new format when we go
> to new block ciphers.  Unfortunately the next version of PGP will have
> Twofish support without MDC, since we were not able to come to consensus

Ahhh great:  I'm holding back Twofish support for GnuPG for many weeks
now, only to have the chance to use 128 bit block ciphers as a
criteria to decide whether to use MDCed encryption - but NAI has already
decided to make facts and thereby ignoring the discussion at the WG.
But sure, it is your companies decision - tssss.

BTW, how did you solve the ambiguities in the rfc regarding the use of
synced CFB and length of IVs? 

> By this, do you mean the special sync operation after reading the pseudo
> IV and check bytes?

Yes.
#define CIPHER_MODE_PHILS_CFB 3


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id BAA08675 for ietf-open-pgp-bks; Wed, 12 May 1999 01:18:42 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA08670 for <ietf-open-pgp@imc.org>; Wed, 12 May 1999 01:18:37 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id KAA02154 for ietf-open-pgp@imc.org; Wed, 12 May 1999 10:21:17 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10hUBa-00029Z-00; Wed, 12 May 1999 10:16:14 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10hU9b-0002jV-00; Wed, 12 May 1999 10:14:11 +0200
Date: Wed, 12 May 1999 10:14:11 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990512101411.L10418@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <19990509205054.B6295@frodo.isil.d.shuttle.de> <99May11.172534edt.42115@brickwall.ceddec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <99May11.172534edt.42115@brickwall.ceddec.com>; from Tom Zerucha on Tue, May 11, 1999 at 05:24:52PM -0400
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Tom Zerucha <tzeruch@ceddec.com> writes:

> >    Encrypted_Data -+- Data_Containter_Packet -+- Onepass
> >                    !                          !- Plaintext	
> >                    !                          !- Signature  		
> >                    !- MDC_Packet
> 
> Not true.  Just as you run the encryptor and get two or more packets out

Partly true, for my implementaion such a scheme would make for
sense ;-) 

> No one has yet told me why this is any less secure, slower, or harder than
> tacking the 20 bytes onto the end of the plaintext.
> 
> How many lines of code did each method take?  How many cpu-seconds?

You know that I implemented this in GnuPG (it is in 0.9.6, use
--force-mdc).  But the way I implemented it was more a hack.  Using a
different packet than the signature packet would have made more sense
as it will lead to a cleaner implementation.

I dropped this to check my proposol and Phil's and it turned out that
Phil's was the easiest to implement.  Holding back the 20 bytes is
really easy if you are already doing some buffering and it can be
coded in a way to minimize any performance penalty (which is anyway in
the MDC calculation).

> a hack than holding back 20 bytes.  Don't assume everyone is running on
> big machines with an OS or API calls to handle this and CPU cycles to

Not CPU cycles but larger buffers are needed.

> It may be easy to add in your implementation, and you may not be trying to
> do stream I/O and have something that handles errant packet boundaries

GnuPG handles everything has stream (with the strange partial header
scheme of PGP 5 which claims to save some bytes :-)

> of adding algorithms).  Holding back 20 bytes when I am already against
> the memory limitations is going to be very painful.

As Hal already said, the extra memory needed for the hashing context
outweights some 20 bytes.

> I have pointed out that we can do it without bloating the code.  But it

Actually the signature packet hack bloated my code (although a
different type of packet won't do so).

> If this is going to require another layer, then all such algorithms using
> this new method should be given a MAY level of compliance and not SHOULD

I only wanted to get a faster consensus, therefore I suggested SHOUlD
- but it has now turned out that NAI is doing anyway there own way, we
can use MAY and an implementor can decide whether to print a warning
or now.

[Really fine that we have a holiday tomorrow :-), back on Monday]

-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id RAA22118 for ietf-open-pgp-bks; Tue, 11 May 1999 17:07:43 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA22104 for <ietf-open-pgp@imc.org>; Tue, 11 May 1999 17:07:40 -0700 (PDT)
Received: (from hal@localhost) by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id RAA03421; Tue, 11 May 1999 17:10:08 -0700
Date: Tue, 11 May 1999 17:10:08 -0700
From: hal@rain.org
Message-Id: <199905120010.RAA03421@226-132.adsl2.avtel.net>
To: tzeruch@ceddec.com, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
Cc: ietf-open-pgp@imc.org
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

 Tom Zerucha, <tzeruch@ceddec.com>, writes:

> In effect what we have now (with buffering or pipes between threads) is:
>
> ciphertext | dearmor | pkdecrypt | symdecrypt | sigver | deliteral
>
> There may be multiple sigvers, one per level of nesting (I use a stack
> instead of spawning another layer).
>
> What will happen is that this will insert something between the symdecrypt
> and the sigver sections.  It will function nearly the same as the sigver,
> except we are creating a completely new and disjoint syntax for handling
> the new packet.
>
> For me, it is really ugly to add a new layer when the existing one can
> easily be modified to work and provide the same function.
>
> Instead we fiddle with the definitions to make it incompatible with the
> existing layers just enough so it must be a new layer, but realize that
> all this new verbage simply exists to forcibly create a new layer, and not
> for any functional reason.

These statements are only valid in the context of your implementation.
I have implemented it in a different way which did not require adding any
new layers.  I simply added calls to the hash function in the decryption
module, as well as the 20 byte holdback buffer.  As it happened I
already had a buffer in the decryption module so modifying it to hold
back 20 bytes was easy.  There were then two extra functions added to
the decryption module, one to finalize and retrieve the hash value,
and one to retrieve the value from the holdback buffer (which holds the
final 20 bytes at the end of processing).  These are then compared at
the end of the packet.  It was not a difficult change.

I don't believe we should judge the difficulty based on just how it
affects your implementation.  If you would like some help I suspect we
could work with you to make similar modifications to your symdecrypt
module.

> I asked what didn't work about extending "signature" packets to
> "verification" packets (with the zero algorithm or something similar -
> or even keeping the signature packet format with a different ID number
> for MDC only packets).
>   
> No one has yet told me why this is any less secure, slower, or harder than
> tacking the 20 bytes onto the end of the plaintext.

I did mention this, in my original message on this topic, when I wrote:

   We have also discussed providing integrity protection via some
   modification to the signature packet format rather than by a new form
   of encrypted packet.  There would be a special kind of "signature" which
   would just consist of a hash of the message to protect its integrity.
   
   However, Phil argues that this kind of integrity protection is inherently
   tied to the use of encryption.  It has no functional effect if not used
   in conjunction with encryption.  This is unlike our other signatures,
   which are cryptographically useful transformations even on their own.
   Because of this close tie to the encryption functionality it makes most
   sense to make it part of the encrypted packet.

> How many lines of code did each method take?  How many cpu-seconds?

Which is the most architecturally attractive way to do it?  Which method
is the most logical and coherent?  Which method would you use if you
were designing from scratch, rather than trying to shoehorn it into an
existing implementation so as to change it as little as possible?

> Altering one byte to add a definition to the signature packet is less of
> a hack than holding back 20 bytes.  Don't assume everyone is running on
> big machines with an OS or API calls to handle this and CPU cycles to
> spare.

Holding back 20 bytes does not take a big machine, or any OS or API calls.
It is a simple circular buffer and about half a page of code.

> I don't.  If you are going to do this then at least force an EOF and
> append 20 bytes without any packet information (i.e. the new stream
> packets would indicate an end where the message ends, but there would be
> 20 bytes (or whatever) extra following not encapsulated in any packet).

Let's not go down the path of putting bytes outside a packet.  That would
violate all of our conventions.

> It may be easy to add in your implementation, and you may not be trying to
> do stream I/O and have something that handles errant packet boundaries
> easily.  This is by no means universal.
>
> One of my implementations is for the Palm Pilot.  Adding a layer instead
> of a few lines in an existing layer) is a really big deal there (exclusive
> of adding algorithms).  Holding back 20 bytes when I am already against
> the memory limitations is going to be very painful.

Surely a 20 byte holdback buffer can't be a major problem, when adding the
new hash context is going to take at least 84 bytes of ram.

> I have pointed out that we can do it without bloating the code.  But it
> seems everyone wants to bloat it.  Assuming PRZ isn't doing another
> "hit-and-run", what does HE think of the alternatives?

Phil is out of the country now, but I have spoken at great length to him
about this over the past month.  I assure you that Phil is THE strongest
supporter of integrating the MDC feature with a new encryption packet.
I cannot over emphasize how strongly he opposes doing it as a hack of
the signature packet.

I showed earlier how inappropriate the signature packet is for this
purpose.  I listed all the fields and showed how few of them made any
sense in this context.  I can understand that this is the path of least
resistance for kludging this feature into existing code, but we would
prefer an approach which makes sense architecturally.  Signature packets
are not appropriate for this purpose.

> If this is going to require another layer, then all such algorithms using
> this new method should be given a MAY level of compliance and not SHOULD
> because of the larger impact on the existing code base.
>
> Conversely, extending the existing structure is easy enough to warrant
> being a SHOULD.

As far as I know, there are three implementations that are affected:
your reference implementation, the Gnu Privacy Guard, and the commercial
PGP from Network Associates.  If we can come to agreement then we can get
these changes into all of these implementations, and make it a SHOULD as
Werner suggested.

Hal Finney
Network Associates, Inc.


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id QAA21310 for ietf-open-pgp-bks; Tue, 11 May 1999 16:50:27 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA21306 for <ietf-open-pgp@imc.org>; Tue, 11 May 1999 16:50:25 -0700 (PDT)
Received: (from hal@localhost) by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id QAA03374; Tue, 11 May 1999 16:52:58 -0700
Date: Tue, 11 May 1999 16:52:58 -0700
From: hal@rain.org
Message-Id: <199905112352.QAA03374@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Werner Koch, <wk@isil.d.shuttle.de>, writes:
> We should invent a new encrypted data packet which is used for
> encrypted messages with MDC.  Suggestion:
>
>    Packet number ???
>
>    1 byte version  (should be 1)
>    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
>    1 byte number of extra bytes (m) at the end of the encrypted text
>           From now on CFB encrypted with an IV of all zeroes without
>           any strange syncing.
>    n byte random data used as IV (n=blocksize of the cipher)	
>    2 byte the last two bytes of the random data.
>    k byte message
>    m byte hash used for MD

In my other message I pointed out the problem that an attacker could
perturb some of these header values.  With that in mind let us look at
these fields:

>    1 byte version  (should be 1)

This is probably a good idea.  If perturbed by an attacker to a later
version, the software will refuse to process the packet.  We need
to consider though whether, if we later move to a higher version, an
attacker could execute a rollback attack by changing a V2 to a V1.
We can deal with that at that time by making sure that V2 and V1 look
very different (assuming we ever need to create a V2).

>    1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)

This one worries me.  It allows an attacker to turn a 2 into a 0.  Also,
is there an implication that it can be something other than 2 or 0?  Like,
1 means MD5?  If so, this again offers an attacker more opportunities to
mess with the receiver.  The attacker could change the hash algorithm to
something like 6.  Now the receiver doesn't know if this is a legitimate
message from a later version of PGP that supports hash algorithm 6, or
whether it is a messed up message by an attacker.  If we choose a fixed
hash algorithm this ambiguity cannot arise.

I would prefer to leave this field out.  If you use the new packet format
at all, you get the MDC, using a fixed hash of SHA-1.

>    1 byte number of extra bytes (m) at the end of the encrypted text
>           From now on CFB encrypted with an IV of all zeroes without
>           any strange syncing.

We would then not need this, as the value would always be 20.

>    n byte random data used as IV (n=blocksize of the cipher)	

OK.  I continue to believe that a *conventional* IV is most desirable in
terms of explaining what we are doing to others in the field.  The "pseudo
IV" we have now is hard to explain.  I had to go to some lengths in
getting our FIPS 140 certification (a standard security certification)
to show that our way was just as good as the regular way.

>    2 byte the last two bytes of the random data.

You have not shown whether these are encrypted.  I presume that they are,
and that these are meant to be check bytes used to detect when we have the
right session key.  This way of doing it does not work well when the IV
is unencrypted, as is done in virtually every other cipher in the world
except PGP.  With an unencrypted IV the two check bytes are known, thus
putting two bytes of known plaintext right at the start of the message.
Since one of the goals of the new encryption packet is to regularize our
methods and bring them into conformance with the practices used by other
professionals, I believe we should do check bytes slightly differently.

My proposal was that we have four bytes, two random ones and then those
same two random ones repeated.  These would all be encrypted.  It's not
known plaintext although there is a certain amount of redundancy in the
data, which redundancy is necessary for them to serve as check bytes.

>    k byte message
>    m byte hash used for MD

These, too, would both presuambly be encrypted.  The hash size should be
fixed if we fix a hash algorithm.

> Uri proposed another scheme for better detection of wrong keys - we 
> should consider to use this.

His proposal, from http://www.imc.org/ietf-open-pgp/mail-archive/msg02471.html:

   Make the "pseudo-IV" prefix partially non-random - i.e. the last two 
   bytes being checksum for the other 14. No big deal security-wise and
   noticeable help in detecting the right key.

This isn't too bad for 128 bit block ciphers like Twofish or AES, but as
a general principle we would need to apply it to all ciphers, including
64 bit block ciphers.  I don't like taking away 16 of the 64 bits of IV
in that case.  I can't name a specific attack this would cause but it
doesn't feel right to give up that much of the IV.

Also, of course this only works with the pseudo-IV.  As I wrote above, our
use of a pseudo-IV is an oddball quirk that no one else does.  In order to
generate support for the standard we should try to move away from peculiar
features like this and towards the conventional ways of doing things.

> "If a cipher with a blocksize > 64 bits is used, this new packet 
>  format SHOULD be used".

I agree that it would be sensible to encourage the new format when we go
to new block ciphers.  Unfortunately the next version of PGP will have
Twofish support without MDC, since we were not able to come to consensus
here (and it doesn't look like we are coming any closer).

> To clarify thinks for the old encypted data packet (9), we should
> say that the special CFB mode is used with all blocksizes. 

By this, do you mean the special sync operation after reading the pseudo
IV and check bytes?

Hal Finney
Network Associates, Inc.


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id QAA20334 for ietf-open-pgp-bks; Tue, 11 May 1999 16:39:56 -0700 (PDT)
Received: from seas.gwu.edu (root@malone.seas.gwu.edu [128.164.9.13]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA20275 for <ietf-open-pgp@imc.org>; Tue, 11 May 1999 16:39:50 -0700 (PDT)
Received: from felix.seas.gwu.edu (felix.seas.gwu.edu [128.164.9.3]) by seas.gwu.edu (v8) with ESMTP id TAA09472; Tue, 11 May 1999 19:42:23 -0400 (EDT)
From: Cyberspace Policy Institute <cpi@SEAS.GWU.EDU>
Received: (from cpi@localhost) by felix.seas.gwu.edu (8.9.1a/8.9.1) id TAA19300; Tue, 11 May 1999 19:42:22 -0400 (EDT)
Message-Id: <199905112342.TAA19300@felix.seas.gwu.edu>
Subject: URGENT: Need crypto product info!
To: ietf-open-pgp@imc.org, ietf-ssh@clinet.fi
Date: Tue, 11 May 1999 19:42:22 -0400 (EDT)
Cc: cpi@SEAS.GWU.EDU
X-Mailer: ELM [version 2.5 PL0]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Please forward this message to others who are interested on the topic. A

WWW-version of this message can be found at
http://www.seas.gwu.edu/seas/institutes/cpi/cryptosurvey/call4info.html

Please excuse us for the cross-postings


**************************************************************
           NON-U.S. CRYPTOGRAPHIC PRODUCT SURVEY
                  CALL FOR INFORMATION
**************************************************************

The George Washington University and NAI Labs, The Security Research
Division of Network Associates (formerly the research division of
Trusted Information Systems) are conducting a survey to identify
cryptographic products manufactured outside the United States and are
examining product specifications to assess their functionality and
security.

We are soliciting input from those with knowledge of cryptographic
products through the use of this survey form.  If you know of
cryptographic products that are manufactured in countries other than the
United States, please complete this form and submit it to the Cyberspace
Policy Institute (CPI) NO LATER THAN TUESDAY MAY 18, 1999. You may
submit this form via email to cpi@seas.gwu.edu or fax at (202) 994-5505
in Washington D.C.

In addition, we ask you to send or post this survey to anyone or place
that would have knowledge of cryptographic products. Inquiries about
this survey may be made to the Cyberspace Policy Institute at
cpi@seas.gwu.edu or (202) 994-5512. This survey may also be found on the
CPI Web site at http://www.seas.gwu.edu/seas/institutes/cpi.

Your cooperation is greatly appreciated.

Professor Lance J. Hoffman, The George Washington University
David Balenson, NAI Labs, The Security Research Division of Network Associates

**************************************************************

           NON-U.S. CRYPTOGRAPHIC PRODUCT SURVEY

DATE:


COMPLETED BY:

Your Name:
Phone:
E-mail:

NAME AND ADDRESS OF MANUFACTURER

Name:
Address:
City:                    State:                  Zip Code:
Country:
URL:

MANUFACTURER CONTACT INFORMATION

Name:                                Title:
Phone:                               FAX:
E-mail:                              800#:


PRODUCT DESCRIPTION

Name (including model and version information):

Product-specific URL:

Is it software-only, hardware-only, or a software/hardware combination?

What does it encrypt (e.g., disk, file, communications, FAX, voice,
magnetic tape, electronic mail)?

If embedded software or hardware, what platforms does it support (e.g.,
PC, Mac, UNIX workstation, IBM mainframe), else if standalone hardware,
what interfaces does it support (RS-232, telephone, V.24, V.35)?

If software, is it in the form of a kit or as an end-user program, else
if hardware, what is the embodiment (e.g., chip, board, PCMCIA card,
smart card, box, phone)?

What algorithms does it employ for data encryption (including
proprietary algorithms and key length)?

If applicable, what algorithms does it employ for key management
(including proprietary algorithms and key length)?

If applicable, what algorithms does it employ for data authentication
(including proprietary algorithms)?

How is the product sold or distributed (e.g., store front, mail order,
telephone order, World Wide Web, anonymous ftp over the Internet)?

If applicable, what is the quantity one purchase price?

(Optional) Approximate number of units sold or distributed?

(Optional) Approximate date product was first available?

Please provide a list of the names and relationships of any associated
companies (e.g., parent company, sister company, distributors). Include
full address and contact name, title, phone, FAX, and e-mail address.
Other information:


PLEASE PROVIDE A COPY OF ANY RELEVANT PRODUCT LITERATURE.


Send completed forms and product literature via e-mail to
cpi@seas.gwu.edu or via fax to the Cyberspace Policy Institute at 
202-994-5505 in Washington D.C.

THANK YOU!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This survey is part of an ongoing worldwide study of cryptographic
products started in April 1994 by Trusted Information Systems and 
Dr. Lance J. Hoffman of the George Washington University.
The December 1997 summary results of the survey are available on the
World Wide Web at
http://www.nai.com/products/security/tis_research/crypto/crypt_surv.asp.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id OAA08025 for ietf-open-pgp-bks; Tue, 11 May 1999 14:23:49 -0700 (PDT)
Received: from ceddec.com (brickwall.ceddec.com [207.91.200.193]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA08021 for <ietf-open-pgp@imc.org>; Tue, 11 May 1999 14:23:44 -0700 (PDT)
Received: by brickwall.ceddec.com id <42115>; Tue, 11 May 1999 17:25:34 -0400
Date: Tue, 11 May 1999 17:24:52 -0400
From: Tom Zerucha <tzeruch@ceddec.com>
X-Sender: nobody@mars.ceddec.com
To: Werner Koch <wk@isil.d.shuttle.de>
cc: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
In-Reply-To: <19990509205054.B6295@frodo.isil.d.shuttle.de>
Message-Id: <99May11.172534edt.42115@brickwall.ceddec.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

yOn Sun, 9 May 1999, Werner Koch wrote:

> Hello,
> 
> After implementing the MDC by using the signature packets and
> verifiyng that Tom's and my implementation are interoperable, I
> started over and tried to implement my suggestion to use
> use a special MDC packet instead of a signature packet.
> 
>    (1) new encrypted data packet
>    (2) mdc packet with the encrypted hash over (1)
> 
> The problem here is that (2) is encrypted with the same key as (1)
> and actually is part of (1).  We must encrypt only the hash inside 
> of (2), so that the parse can distinguish both packets.  It is quiet
> obvious, that passing the decryption context from (1) to (2) is not 
> very easy.  What we would need to have a good solution, is a conatiner
> packet which replaces the old encrypted data packet
> 
>    Encrypted_Data -+- Data_Containter_Packet -+- Onepass
>                    !                          !- Plaintext	
>                    !                          !- Signature  		
>                    !- MDC_Packet

Not true.  Just as you run the encryptor and get two or more packets out
currently for signatures, and thus you don't need to "pass a decryption
context" from the 1 pass header to the plaintext to the Signature, you
wouldn't need to do this for the MDC, any more than you do if the MDC is
not a separate packet.

In effect what we have now (with buffering or pipes between threads) is:

ciphertext | dearmor | pkdecrypt | symdecrypt | sigver | deliteral

There may be multiple sigvers, one per level of nesting (I use a stack
instead of spawning another layer).

What will happen is that this will insert something between the symdecrypt
and the sigver sections.  It will function nearly the same as the sigver,
except we are creating a completely new and disjoint syntax for handling
the new packet.

For me, it is really ugly to add a new layer when the existing one can
easily be modified to work and provide the same function.

Instead we fiddle with the definitions to make it incompatible with the
existing layers just enough so it must be a new layer, but realize that
all this new verbage simply exists to forcibly create a new layer, and not
for any functional reason.

I asked what didn't work about extending "signature" packets to
"verification" packets (with the zero algorithm or something similar -
or even keeping the signature packet format with a different ID number
for MDC only packets).
  
No one has yet told me why this is any less secure, slower, or harder than
tacking the 20 bytes onto the end of the plaintext.

How many lines of code did each method take?  How many cpu-seconds?

> The bottom line is, that Phil's original suggestion to put the hash
> at the end of the encrypted message is the easiest way to address it.

The MDC is more easily added where it is already being generated through
existing control paths in the code, simply altering the output format
slightly.  How can something that is already there be harder to add than
something completely new?

> I know that it is annoying to hold back the last 20 bytes, but compared
> to the hacked signature packets, I thing it is okay to to this. 

Altering one byte to add a definition to the signature packet is less of
a hack than holding back 20 bytes.  Don't assume everyone is running on
big machines with an OS or API calls to handle this and CPU cycles to
spare.

I don't.  If you are going to do this then at least force an EOF and
append 20 bytes without any packet information (i.e. the new stream
packets would indicate an end where the message ends, but there would be
20 bytes (or whatever) extra following not encapsulated in any packet).

It may be easy to add in your implementation, and you may not be trying to
do stream I/O and have something that handles errant packet boundaries
easily.  This is by no means universal.

One of my implementations is for the Palm Pilot.  Adding a layer instead
of a few lines in an existing layer) is a really big deal there (exclusive
of adding algorithms).  Holding back 20 bytes when I am already against
the memory limitations is going to be very painful.

I have pointed out that we can do it without bloating the code.  But it
seems everyone wants to bloat it.  Assuming PRZ isn't doing another
"hit-and-run", what does HE think of the alternatives?

If this is going to require another layer, then all such algorithms using
this new method should be given a MAY level of compliance and not SHOULD
because of the larger impact on the existing code base.

Conversely, extending the existing structure is easy enough to warrant
being a SHOULD.




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id AAA26678 for ietf-open-pgp-bks; Mon, 10 May 1999 00:41:08 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA26671 for <ietf-open-pgp@imc.org>; Mon, 10 May 1999 00:41:05 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id JAA13060 for ietf-open-pgp@imc.org; Mon, 10 May 1999 09:43:22 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10gkdU-0000xw-00; Mon, 10 May 1999 09:38:00 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10gkb4-0001vM-00; Mon, 10 May 1999 09:35:30 +0200
Date: Mon, 10 May 1999 09:35:30 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Re: Agree with PRZs MDC suggestion
Message-ID: <19990510093530.G7337@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
References: <199905100108.SAA32553@226-132.adsl2.avtel.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
In-Reply-To: <199905100108.SAA32553@226-132.adsl2.avtel.net>; from hal@rain.org on Sun, May 09, 1999 at 06:08:17PM -0700
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

hal@rain.org writes:

[ About attacks flipping some bits in the headers to 
  make the receiver think the message has no MDC ]

> I suggest that we should design the packets, if possible, to prevent
> this attack.  What do others feel?  Do we care about this kind of attack?
> Should we take steps to prevent it, or should we allow it to happen?

I think the easiest solution and the one we did at other places too
is to say:

"Implementations SHOULD use the MDC for ciphers with a blocksize of 64
bit.  Implementations MUST use the MDC for ciphers with a blocksize
other than 64.  If an implemenations detects a violation of the above
it SHOULD notify the user about this.  It MUST do this for messages
encrypted with non-64 bit blocksize cipher."

Or something similar.


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id SAA10749 for ietf-open-pgp-bks; Sun, 9 May 1999 18:05:58 -0700 (PDT)
Received: from 226-132.adsl2.avtel.net (226-132.adsl2.avtel.net [207.71.226.132]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA10745 for <ietf-open-pgp@imc.org>; Sun, 9 May 1999 18:05:56 -0700 (PDT)
Received: (from hal@localhost) by 226-132.adsl2.avtel.net (8.8.7/8.8.7) id SAA32553; Sun, 9 May 1999 18:08:17 -0700
Date: Sun, 9 May 1999 18:08:17 -0700
From: hal@rain.org
Message-Id: <199905100108.SAA32553@226-132.adsl2.avtel.net>
To: ietf-open-pgp@imc.org, wk@isil.d.shuttle.de
Subject: Re: Agree with PRZs MDC suggestion
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

An attacker can modify encrypted messages to a limited extent.  In CFB
mode, if he xors one bit of the ciphertext, it has two effects.  It xors
the corresponding bit of the plaintext, and it also turns the following
block of plaintext into complete garbage.  The remainder of the message
is unchained.

Attackers can also delete entire blocks of messages.  If they do it at
the end, this has no obvious effect.  If they do it at the beginning,
they can supply an IV so that everything decrypts OK (but missing the
first blocks of the encrypted messages).  If they do it in the middle,
there will be one block of garbage after the spot where the deleted
blocks would go.

Attackers can also rearrange blocks of messages, or moving groups of
blocks from one point to another, or duplicating groups of blocks in
various ways.  This will normally put a block of garbage at the join
points when the messages are decrypted.

It is important to realize that these blocks of garbage or noise will
not necessarily expose the attacker's actions.  They may be overlooked
by the receiver.  They may be located in a part of the message which
he does not study closely (like mail headers or data tables).  They may
be at the very beginning or end of the message where the important data
is in the middle, or vice versa.  We can't assume that blocks of noise
will always be detected.  (And of course the truncation attack leaves
no noise blocks.)

Our goal with the MDC feature is to detect these kinds of transformations.
As we have been discussing, including a hash of the message within the
encrypted data should accomplish this.

One possible attack we need to then consider is whether a message sent
in this form can be transformed by an attacker so that the receiver does
not attempt to do the MDC verification.  The attacker might be able to
change the format of the message so that it looks like a non-MDC message,
using some of the tools above.

As a simple example, if we include a bit in the message header that
tells whether the message has MDC protection, and the attacker guessed
that that bit was on, he could turn it off by xoring the right place in
the ciphertext.  This would introduce a burst of noise in the following
block of the message, but depending on the block size and the message
format, this might still allow the message to decrypt successfully.

The receiver would not be fooled into thinking that he had an
MDC-protected message which was untouched, but he would be fooled into
thinking that the message had been sent without MDC protection when in
fact the sender had intended to protect it.

I believe it is possible to provide for this level of protection, but it
will put some constraints on the design.  Anything in the headers which
the attacker could tweak to disable the MDC checking (like changing a hash
algorithm value) would have to be such that the change will be detected.
There could be another checksum in the headers itself, or the headers
could be structured so that the block of noise is guaranteed to corrupt
crucial data, or the data structures could be such that MDC checking
can't be disabled.

I suggest that we should design the packets, if possible, to prevent
this attack.  What do others feel?  Do we care about this kind of attack?
Should we take steps to prevent it, or should we allow it to happen?

Hal Finney
Network Associates


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id LAA08321 for ietf-open-pgp-bks; Sun, 9 May 1999 11:52:39 -0700 (PDT)
Received: from koeln.shuttle.de (uucp@koeln.shuttle.de [194.95.247.252]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA08317 for <ietf-open-pgp@imc.org>; Sun, 9 May 1999 11:52:37 -0700 (PDT)
Received: (from uucp@localhost) by koeln.shuttle.de (8.9.3/8.9.3) with UUCP id UAA02322 for ietf-open-pgp@imc.org; Sun, 9 May 1999 20:54:59 +0200 (MET DST)
Received: from (frodo.isil.d.shuttle.de) [172.20.1.4] (mail) by beren.isil.d.shuttle.de with esmtp (Exim 1.92 #1 (Debian)) id 10gYhg-0000fO-00; Sun, 9 May 1999 20:53:32 +0200
Received: from wk by frodo.isil.d.shuttle.de with local (Exim 1.92 #1 (Debian)) id 10gYf8-0001hr-00; Sun, 9 May 1999 20:50:54 +0200
Date: Sun, 9 May 1999 20:50:54 +0200
From: Werner Koch <wk@isil.d.shuttle.de>
To: ietf-open-pgp@imc.org
Subject: Agree with PRZs MDC suggestion
Message-ID: <19990509205054.B6295@frodo.isil.d.shuttle.de>
Mail-Followup-To: ietf-open-pgp@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.96.1i
X-URL: http://www.d.shuttle.de/isil
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-open-pgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-open-pgp-request@imc.org?body=unsubscribe>

Hello,

After implementing the MDC by using the signature packets and
verifiyng that Tom's and my implementation are interoperable, I
started over and tried to implement my suggestion to use
use a special MDC packet instead of a signature packet.

   (1) new encrypted data packet
   (2) mdc packet with the encrypted hash over (1)

The problem here is that (2) is encrypted with the same key as (1)
and actually is part of (1).  We must encrypt only the hash inside 
of (2), so that the parse can distinguish both packets.  It is quiet
obvious, that passing the decryption context from (1) to (2) is not 
very easy.  What we would need to have a good solution, is a conatiner
packet which replaces the old encrypted data packet

   Encrypted_Data -+- Data_Containter_Packet -+- Onepass
                   !                          !- Plaintext	
                   !                          !- Signature  		
                   !- MDC_Packet

I think this is the most clear solution but far too complicate for
the our goal.

The bottom line is, that Phil's original suggestion to put the hash
at the end of the encrypted message is the easiest way to address it.
I know that it is annoying to hold back the last 20 bytes, but compared
to the hacked signature packets, I thing it is okay to to this. 

We should invent a new encrypted data packet which is used for
encrypted messages with MDC.  Suggestion:

   Packet number ???

   1 byte version  (should be 1)
   1 byte MDC method (should be 2 to match SHA, or 0 to disable MDC)
   1 byte number of extra bytes (m) at the end of the encrypted text
          From now on CFB encrypted with an IV of all zeroes without
          any strange syncing.
   n byte random data used as IV (n=blocksize of the cipher)	
   2 byte the last two bytes of the random data.
   k byte message
   m byte hash used for MD

Uri proposed another scheme for better detection of wrong keys - we 
should consider to use this.

"If a cipher with a blocksize > 64 bits is used, this new packet 
 format SHOULD be used".

To clarify thinks for the old encypted data packet (9), we should
say that the special CFB mode is used with all blocksizes. 


-- 
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013


