From owner-ietf-open-pgp@imc.org  Wed Nov 11 19:05:18 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id TAA24858
	for <openpgp-archive@odin.ietf.org>; Wed, 11 Nov 1998 19:05:18 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA29582
	for ietf-open-pgp-bks; Wed, 11 Nov 1998 14:58:11 -0800 (PST)
Received: from mage.qualcomm.com (mage.qualcomm.com [129.46.174.16])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA29578
	for <ietf-open-pgp@imc.org>; Wed, 11 Nov 1998 14:58:10 -0800 (PST)
Received: from [129.46.172.254] (jnoerenberg-mac.qualcomm.com [129.46.172.254]) by mage.qualcomm.com (8.8.5/1.4/8.7.2/1.14) with ESMTP id PAA03243 for <ietf-open-pgp@imc.org>; Wed, 11 Nov 1998 15:01:00 -0800 (PST)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Sender: jwn2@mage.qualcomm.com
Message-Id: <v04102e10b26fc5bc1b03@[129.46.172.254]>
X-Mailer: Eudora [Macintosh version 4.1b46-1.99]
X-PGP-RSA-Fingerprint: EA53 01A6 C076 F9C2  09E8 9480 645A 8857
X-PGP-DH-Fingerprint: 4F5E 56C9 BD4D 0227 331F 6AEE 9590 24F9 6FD7 04F8
Date: Wed, 11 Nov 1998 14:54:05 -0800
To: OpenPGP mailing list <ietf-open-pgp@imc.org>
From: "John  W. Noerenberg" <jwn2@qualcomm.com>
Subject: Fwd: RFC 2440 on OpenPGP Message Format
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

> To: IETF-Announce: ;
> Subject: RFC 2440 on OpenPGP Message Format
> Mime-Version: 1.0
> Date: Wed, 11 Nov 1998 14:06:14 -0800
> From: RFC Editor <rfc-ed@isi.edu>
>
> A new Request for Comments is now available in online RFC libraries.
>
>
>         RFC 2440:

In case you missed it. <GRIN>

john noerenberg
jwn2@qualcomm.com
  ----------------------------------------------------------------------
  no matter what a waste one has made of one's life, it is ever
  possible to find some path to redemption
  -- Charles Frazier, "Cold Mountain", Vintage Books, 1997
  ----------------------------------------------------------------------


From owner-ietf-open-pgp@imc.org  Tue Nov 17 15:05:50 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id PAA19169
	for <openpgp-archive@odin.ietf.org>; Tue, 17 Nov 1998 15:05:49 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA02338
	for ietf-open-pgp-bks; Tue, 17 Nov 1998 10:42:31 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA02334
	for <ietf-open-pgp@imc.org>; Tue, 17 Nov 1998 10:42:30 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id NAA13716;
	Tue, 17 Nov 1998 13:45:46 -0500 (EST)
Message-Id: <199811171845.NAA13716@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
From: Internet-Drafts@ietf.org
cc: ietf-pgpticket@vmeng.com, ietf-open-pgp@imc.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-moscaritolo-mione-pgpticket-01.txt (resend)
Date: Tue, 17 Nov 1998 13:45:45 -0500
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.

	Title		: PGPticket
	Author(s)	: V. Moscaritolo, A. Mione
	Filename	: draft-moscaritolo-mione-pgpticket-01.txt
	Pages		: 19
	Date		: 16-Nov-98
	
   OpenPGP specifies message formats and certificate formats used for
   exchange of encrypted and/or authenticated objects. This document
   discusses methods of extending OpenPGP's message formats to support
   an authorization system. This system would use public key
   cryptography to authenticate a user to a server and establish the
   user's access permissions. The concept is that the user acquires a
   ticket signed by some issuer that specifies what they are entitled to
   do. That ticket is then submitted to a server. The server uses a
   challenge/response method to verify that the holder really has the
   matching private key. The server then allows the access specified.

Internet-Drafts are available by anonymous FTP.  Login with the username
"anonymous" and a password of your e-mail address.  After logging in,
type "cd internet-drafts" and then
	"get draft-moscaritolo-mione-pgpticket-01.txt".
A URL for the Internet-Draft is:
ftp://ftp.ietf.org/internet-drafts/draft-moscaritolo-mione-pgpticket-01.txt

Internet-Drafts directories are located at:

	Africa:	ftp.is.co.za
	
	Europe: ftp.nordu.net
		ftp.nic.it
			
	Pacific Rim: munnari.oz.au
	
	US East Coast: ftp.ietf.org
	
	US West Coast: ftp.isi.edu

Internet-Drafts are also available by mail.

Send a message to:	mailserv@ietf.org.  In the body type:
	"FILE /internet-drafts/draft-moscaritolo-mione-pgpticket-01.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<19981116164302.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-moscaritolo-mione-pgpticket-01.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-moscaritolo-mione-pgpticket-01.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<19981116164302.I-D@ietf.org>

--OtherAccess--

--NextPart--





From owner-ietf-open-pgp@imc.org  Tue Nov 24 19:32:26 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id TAA14713
	for <openpgp-archive@odin.ietf.org>; Tue, 24 Nov 1998 19:32:25 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id PAA09165
	for ietf-open-pgp-bks; Tue, 24 Nov 1998 15:29:15 -0800 (PST)
Received: from mail2.svr.pol.co.uk (mail2.svr.pol.co.uk [195.92.193.210])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id PAA09161
	for <ietf-open-pgp@imc.org>; Tue, 24 Nov 1998 15:29:13 -0800 (PST)
Received: from modem-98.molybdenum.dialup.pol.co.uk ([62.136.20.226] helo=server.eternity.org)
	by mail2.svr.pol.co.uk with esmtp (Exim 2.05iplimit-2 #5)
	id 0ziRZ5-0007Hq-00; Tue, 24 Nov 1998 23:08:12 +0000
Received: (from aba@localhost) by server.eternity.org (8.8.3/8.6.12) id WAA04469; Tue, 24 Nov 1998 22:59:30 GMT
Date: Tue, 24 Nov 1998 22:59:30 GMT
Message-Id: <199811242259.WAA04469@server.eternity.org>
From: Adam Back <aba@dcs.ex.ac.uk>
To: cypherpunks@cyberpass.net
Cc: ietf-open-pgp@imc.org
Subject: open-pgp / s/mime interoperability
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk


On the IETF s/mime list Jon Callas (PGP/NAI employee and co-author of
IETF open-pgp draft for cypherpunks not following open-pgp) wrote:

: I'd like to note that PGP is supported by NAI, Microsoft, Novell,
: and more that are coming soon.

curious as to what form Microsoft support of PGP will come in.
Integrated PGP support with microsoft mail clients in later versions?

Jon also wrote:

: there is no reason why you can't have PGP
: messages backed by X.509 certificates, and it is trivial to use S/MIME
: with OpenPGP certificates.  I'm planning on writing a short
: informational RFC on how to do it once we all get RFC numbers for our
: respective systems.

open-pgp public keys aren't based on X.509 keys, so I would've thought
s/mime implementation would barf on them.  Are you basing this on the
fact that you can extract the actual public key and repackage it as an
X.509 public key?  In this way you could take the same key into the
X.509 / s/mime world, but you would lose open-pgp sigantures on the
key, so it would lose it's certification.

More recently we've been hearing that PGP6.x? or a future version of
PGP does or will allow one to carry along X.509 keys, or perhaps even
work directly with X.509 keys.  Is this what you are referring to?

(Separate question: any due date on the netscape plugin -- I want one
of those!)

Adam

(message from IETF s/mime list the above is quoted from below).

------- Start of forwarded message -------
Date: Mon, 09 Nov 1998 17:54:29 -0800
To: Stefan_Salzmann/HAM/Lotus@lotus.com, ietf-smime@imc.org
From: Jon Callas <jon@pgp.com>
Subject: Re: Difference between SMIME and PGP

At 05:20 PM 11/4/98 +0100, Stefan_Salzmann/HAM/Lotus@lotus.com wrote:
   
   I am struggling on the difference between SMIME and PGP. One of my
customers
   wants to make the decision between using SMIME and PGP. I have been talking
   already with them but we got stuck in detailes.
   
   Basically its quit clear. SMIME will be supported by all important industry
   leaders such as Netscape, Microsoft, Novell etc. 

I'd like to note that PGP is supported by NAI, Microsoft, Novell, and more
that are coming soon.

   Further SMIME supports the
   hierarchical trust model and PGP only supports the "web of trust" model. 

Actually, this is false. PGP supports all trust models, direct trust,
hierarchical trust, and web of trust. As I said in my previous message, PGP
supports 255 levels of hierarchy.

However, I forgot to say that OpenPGP does not mandate *any* trust model.
As a matter of fact, the OpenPGP working group has rejected any mandate of
trust model. You are permitted to use an OpenPGP certificate with PKIX
evaluation rules, and still be OpenPGP compliant!

   Now
   with PGP Version 6.0, PGP will support also X.509 certificates. Those
can also
   be loaded into an PGP client than an SMIME Client can do it.
   So where is the difference now? Is it just the fact that the industry
decided to
   go with SMIME or are there more differences (advantages for SMIME) when
looking
   more closely.

Actually, the industry hasn't decided to go with anything. Furthermore,
there is no reason why you can't have PGP messages backed by X.509
certificates, and it is trivial to use S/MIME with OpenPGP certificates.
I'm planning on writing a short informational RFC on how to do it once we
all get RFC numbers for our respective systems.

   For instance using RSA public key encryption versus Deffie Helman public
key
   encryption. How about Digital Signature Standard (DSS)? I have red about
DSS and
   understand that DSS is the standard that provides the Digital Signature
   Algorithm. Before applying it there has to be calculated an Digest using
SHA. I
   always thought that calculating the digest would be the signature
already!! So
   why using the DSA in addition? Will the digest be decrypted using the
Deffie
   Helman private key? 

The issue of algorithm is orthogonal to message encoding. The PGP-S/MIME
question is really one of message encoding format. Each requires DSS, and
allows RSA.

The DSS (Digital Signature Standard) describes how to make a signature
using DSA (Digital Signature Algorithm) and SHA1 (Secure Hash Algorithm).
That's how they relate. You could (for example) use DSA with RIPEMD-160,
but it wouldn't be DSS because DSS specifies the hash algorithm you should
be using for the signature.

DSA is a signature-only algorithm. Consequently, you aren't doing a
"decryption" with it when you evaluate a signature. I recommend you look in
a crypto source book, like Schneier's "Applied Cryptography" or Menezes,
van Oorschot, and Vanstone's "Handbook of Applied Cryptography" for details
of how DSS is done. There is also source code available from a wide variety
of places.

   Users that apply Deffie Helman exchange their public values
   in order to derive an secret key that will be known at both party sides.
Is that
   secret key the private key used to encrypt message digests or is the
private key
   generated by the DSA algorithm?

Like I said, DSS has its own signature-only key. As for "Diffie-Hellman"
depending on the variant of DH you're using, you may or may not have an
actual key. Many real-time systems use ephemeral DH merely to exchange
symmetric keys. In OpenPGP, we use the Elgamal system for encryption.
S/MIME is using an X9.42 algorithm that is very close (if not identical) to
Elgamal.

   In PGP further exist key rings that contain the public keys of other
users? How
   does that work with X.509 Certificates that actually contain the public
key. If
   there has to be a public key revoked, it happens in the key ring. Would
it be
   possible to export that revoked certificate. If not the revoked public
key would
   resist only lokally.

Most systems, be they PGP or X.509, use something akin to a directory to
store certs, revocations, etc. Typically, these are HTTP or LDAP based
systems.

   Are there any differences/advantages between RSA and Deffie Helman?

Again, this is orthoganal to encoding, as these are merely algorithms. But
yes, of course. The security of RSA is based upon the difficulty of
factoring large numbers. Most people who toss around the term
"Diffie-Hellman" use it to cover an entire family of algorithms whose
security is all based on the difficulty of solving discrete logs. These
include DSA, X9.42, Schnorr, and Elgamal. They are all approximately of the
same strength.

There are also a wide variety of advantages and disadvantages. Frequently,
these are the same. For example, in RSA encryption and signatures are the
same, which is simple, but leads to some hygenic problems. A signature-only
system like DSA is less flexible, but easier to export, and enforces good
key hygene (meaning that it is bad practice to use the same key for
signatures as for encryption). I could go on with a discussion of all this,
but this thread is already off-topic for this mailing list. Feel free to
mail me privately or phone.
   
   You see I am very confused right now and I have the feeling that all my
security
   theories woun´t match with those used in PGP.

There are many good reasons for being confused. One of the most important
ones is that there really aren't a lot of differences between the systems.
They are all trying to solve the same problem, but each has a slightly
different slant to it.
   
   I really would appreciate it if there would be someone helping my to
remove all
   that dust of my mind...
   
   Thank you in advance

You're welcome.

	Jon   

-----
Jon Callas                                  jon@pgp.com
CTO, Total Network Security                 3965 Freedom Circle
Network Associates, Inc.                    Santa Clara, CA 95054
(408) 346-5860                              
Fingerprints: D1EC 3C51 FCB1 67F8 4345 4A04 7DF9 C2E6 F129 27A9 (DSS)
              665B 797F 37D1 C240 53AC 6D87 3A60 4628           (RSA)


From owner-ietf-open-pgp@imc.org  Wed Nov 25 03:47:21 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id DAA23678
	for <openpgp-archive@odin.ietf.org>; Wed, 25 Nov 1998 03:47:21 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id XAA23633
	for ietf-open-pgp-bks; Tue, 24 Nov 1998 23:47:02 -0800 (PST)
Received: from thoth.mch.sni.de (thoth.mch.sni.de [192.35.17.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id XAA23619
	for <ietf-open-pgp@imc.org>; Tue, 24 Nov 1998 23:46:57 -0800 (PST)
X-Envelope-Sender-Is: Frank.Brueckner@mch.sni.de (at relayer thoth.mch.sni.de)
Received: from horus.mch.sni.de (horus.mch.sni.de [139.25.208.11])
	by thoth.mch.sni.de (8.9.1a/8.9.1) with ESMTP id IAA23302;
	Wed, 25 Nov 1998 08:45:29 +0100 (MET)
Received: from mch.sni.de (maus2.mch.sni.de [192.103.27.32])
	by horus.mch.sni.de (8.9.1a/8.9.1) with ESMTP id IAA01692;
	Wed, 25 Nov 1998 08:45:27 +0100 (MET)
Message-ID: <365BB786.4C2E2448@mch.sni.de>
Date: Wed, 25 Nov 1998 08:53:42 +0100
From: Frank Brueckner <Frank.Brueckner@mch.sni.de>
Organization: SNI
X-Mailer: Mozilla 4.03 [en] (WinNT; I)
MIME-Version: 1.0
To: cypherpunks@cyberpass.net
CC: pgp-directory@dante.net, ietf-open-pgp@imc.org
Subject: Re: OpenPGP / S/MIME Interoperability
References: <199811242259.WAA04469@server.eternity.org>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

Adam Back reported that Jon Callas wrote: 
 
> [...] there is no reason why you can't have PGP 
> messages backed by X.509 certificates, and it is trivial to use S/MIME 
> with OpenPGP certificates.  I'm planning on writing a short 
> informational RFC on how to do it once we all get RFC numbers for our 
> respective systems. 
 
It wouldn't be bad to include this activity in the discussion hosted by 
<pgp-directory@dante.net>. 
 
Am I right ? 
 
 
Regards 
 
  Frank Brückner 
  Siemens Information and Communication Networks 
  Directory Team     http://www.siemensmeta.com/


From owner-ietf-open-pgp@imc.org  Thu Nov 26 10:42:38 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id KAA27376
	for <openpgp-archive@odin.ietf.org>; Thu, 26 Nov 1998 10:42:35 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA24017
	for ietf-open-pgp-bks; Thu, 26 Nov 1998 06:10:11 -0800 (PST)
Received: from stud.ee.ethz.ch (tardis-delek-fast.ee.ethz.ch [129.132.2.199])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA24013
	for <ietf-open-pgp@imc.org>; Thu, 26 Nov 1998 06:10:09 -0800 (PST)
Received: from tardis-a5 (awhalter@tardis-a5.ee.ethz.ch [129.132.3.15])
	by stud.ee.ethz.ch (8.8.4/8.8.8) with SMTP id PAA00975;
	Thu, 26 Nov 1998 15:14:40 +0100 (MET)
Message-ID: <365D624E.1896@stud.ee.ethz.ch>
Date: Thu, 26 Nov 1998 15:14:38 +0100
From: Andrea Halter <awhalter@stud.ee.ethz.ch>
Organization: Kuesnachter Schwimm-Verein
X-Mailer: Mozilla 3.04 (X11; I; SunOS 5.5.1 sun4u)
MIME-Version: 1.0
To: ietf-open-pgp@imc.org
CC: Marcel Waldvogel <mwa@tik.ee.ethz.ch>
Subject: Semantics of having multiple encrypted data packets
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

To provide for random read/write semantics, we would like to chain
multiple Symmetrically Encrypted Data Packets, each of constant length.
In RFC 2440, this is not listed as one of the message formats.

Therefore, we suppose that our approach is not standards compliant. But
does any of you see a better way to support random access without
re-encrypting the whole message each time? Will other implementations be
able to understand this? Could we even tweak the standard into this
direction (ignoring that we're a few weeks late)?

cu
Andi, Marcel


From owner-ietf-open-pgp@imc.org  Thu Nov 26 11:08:28 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA27519
	for <openpgp-archive@odin.ietf.org>; Thu, 26 Nov 1998 11:08:27 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA24644
	for ietf-open-pgp-bks; Thu, 26 Nov 1998 06:50:45 -0800 (PST)
Received: from grannus.iks-jena.de (news@grannus.iks-jena.de [194.221.90.36])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA24638
	for <ietf-open-pgp@imc.org>; Thu, 26 Nov 1998 06:50:43 -0800 (PST)
Received: (from news@localhost)
	by grannus.iks-jena.de (8.9.1/8.9.1) id PAA32515
	for ietf-open-pgp@imc.org; Thu, 26 Nov 1998 15:55:15 +0100
To: ietf-open-pgp@imc.org
Path: lutz
From: lutz@taranis.iks-jena.de (Lutz Donnerhacke)
Newsgroups: iks.lists.ietf-open-pgp
Subject: Re: Semantics of having multiple encrypted data packets
Date: 26 Nov 1998 14:55:15 GMT
Organization: IKS GmbH Jena
Lines: 14
Message-ID: <slrn75qque.6jf.lutz@taranis.iks-jena.de>
References: <365D624E.1896@stud.ee.ethz.ch>
NNTP-Posting-Host: taranis.iks-jena.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: slrn (0.9.5.2 UNIX)
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

* Andrea Halter wrote:
>To provide for random read/write semantics, we would like to chain
>multiple Symmetrically Encrypted Data Packets, each of constant length.
>In RFC 2440, this is not listed as one of the message formats.
>
>Therefore, we suppose that our approach is not standards compliant. But
>does any of you see a better way to support random access without
>re-encrypting the whole message each time? Will other implementations be
>able to understand this? Could we even tweak the standard into this
>direction (ignoring that we're a few weeks late)?

IMHO the standard does not forbit such a concatination but it's not
enshured, that every application will understand this. PGP2.6.3 is known to
stop after decrypting the first message.


From owner-ietf-open-pgp@imc.org  Sat Nov 28 13:07:25 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id NAA16015
	for <openpgp-archive@odin.ietf.org>; Sat, 28 Nov 1998 13:07:25 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id SAA12313
	for ietf-open-pgp-bks; Fri, 27 Nov 1998 18:25:24 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA12309
	for <ietf-open-pgp@imc.org>; Fri, 27 Nov 1998 18:25:22 -0800 (PST)
Received: from cs26.cs.auckland.ac.nz (pgut001@cs26.cs.auckland.ac.nz [130.216.36.9]) by mail.student.auckland.ac.nz (8.8.6/8.8.6/cs-master) with SMTP id PAA25270; Sat, 28 Nov 1998 15:29:50 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <91222019014234>; Sat, 28 Nov 1998 15:29:50 (NZDT)
From: pgut001@cs.auckland.ac.nz (Peter Gutmann)
To: aba@dcs.ex.ac.uk, cypherpunks@cyberpass.net
Subject: Re: open-pgp / s/mime interoperability
Cc: ietf-open-pgp@imc.org
Reply-To: pgut001@cs.auckland.ac.nz
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Sat, 28 Nov 1998 15:29:50 (NZDT)
Message-ID: <91222019014234@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk



>: there is no reason why you can't have PGP
>: messages backed by X.509 certificates, and it is trivial to use S/MIME
>: with OpenPGP certificates.  I'm planning on writing a short
>: informational RFC on how to do it once we all get RFC numbers for our
>: respective systems.

>open-pgp public keys aren't based on X.509 keys, so I would've thought
>s/mime implementation would barf on them.  

Actually S/MIME *could* support the use of PGP keys, but there's a field
(the SubjectKeyIdentifier) missing from the CMS SignerInfo which prevents
this.  This is rather inconsistent, because the same field is present in
the RecipientInfo.  I'm currently arguing in favour of adding it to 
SignerInfo on the basis that any argument against it would also apply to
RecipientInfo.  Not sure whether it'll work though - a couple of list
members seem convinced that exactly the same thing which is currently in
RecipientInfo won't work if used in SignerInfo.

Peter.




From owner-ietf-open-pgp@imc.org  Mon Nov 30 12:10:53 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id MAA21354
	for <openpgp-archive@odin.ietf.org>; Mon, 30 Nov 1998 12:10:52 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA16817
	for ietf-open-pgp-bks; Mon, 30 Nov 1998 08:01:35 -0800 (PST)
Received: from mgo.iij.ad.jp (root@mgo.iij.ad.jp [202.232.15.6])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA16813
	for <ietf-open-pgp@imc.org>; Mon, 30 Nov 1998 08:01:34 -0800 (PST)
Received: from ns.iij.ad.jp (root@ns.iij.ad.jp [192.168.2.8])
	by mgo.iij.ad.jp (8.8.8/MGO1.0) with ESMTP id BAA21388
	for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 01:06:16 +0900 (JST)
Received: from fs.iij.ad.jp (root@fs.iij.ad.jp [192.168.2.9]) by ns.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id BAA07682 for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 01:06:16 +0900 (JST)
Received: from localhost (mine.iij.ad.jp [192.168.4.209]) by fs.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id BAA26881 for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 01:06:15 +0900 (JST)
To: ietf-open-pgp@imc.org
Subject: typo in RFC2440
From: Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) <kazu@iijlab.net>
X-Mailer: Mew version 1.94b2 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <19981201010609E.kazu@iijlab.net>
Date: Tue, 01 Dec 1998 01:06:09 +0900
X-Dispatcher: imput version 981124(IM104)
Lines: 7
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

I'm sorry for this late reporting. I should have found this typo when
RFC 2440 was Internet-Drafts.

The MIME specification is referred as RFC 2231 in RFC 2440, but the
right number is 2045.

--Kazu


From owner-ietf-open-pgp@imc.org  Mon Nov 30 17:05:41 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA25480
	for <openpgp-archive@odin.ietf.org>; Mon, 30 Nov 1998 17:05:41 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA18889
	for ietf-open-pgp-bks; Mon, 30 Nov 1998 12:21:25 -0800 (PST)
Received: from fusebox.pgp.com ([161.69.1.11])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA18885
	for <ietf-open-pgp@imc.org>; Mon, 30 Nov 1998 12:21:24 -0800 (PST)
Received: from foobar (dhcp-47-64.dhcp.nai.com [161.69.47.64])
	by fusebox.pgp.com (8.8.7/8.8.7) with SMTP id MAA19720;
	Mon, 30 Nov 1998 12:25:06 -0800 (PST)
Message-Id: <3.0.3.32.19981130122004.00bd4560@mail.pgp.com>
X-Sender: jon@mail.pgp.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32)
Date: Mon, 30 Nov 1998 12:20:04 -0800
To: Andrea Halter <awhalter@stud.ee.ethz.ch>, ietf-open-pgp@imc.org
From: Jon Callas <jon@pgp.com>
Subject: Re: Semantics of having multiple encrypted data packets
Cc: Marcel Waldvogel <mwa@tik.ee.ethz.ch>
In-Reply-To: <365D624E.1896@stud.ee.ethz.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

At 03:14 PM 11/26/98 +0100, Andrea Halter wrote:
   To provide for random read/write semantics, we would like to chain
   multiple Symmetrically Encrypted Data Packets, each of constant length.
   In RFC 2440, this is not listed as one of the message formats.
   
   Therefore, we suppose that our approach is not standards compliant. But
   does any of you see a better way to support random access without
   re-encrypting the whole message each time? Will other implementations be
   able to understand this? Could we even tweak the standard into this
   direction (ignoring that we're a few weeks late)?
   
Actually, your implementation could easily be 2440-compliant.

I agree 100% with what Lutz said, and I'll expand a little here.

It's permissable in an implementation of an IETF standard to go beyond what
the specification requires. This is how people "add value."

Suppose you make a 2440 implementation, and it handles a message with
multiple encrypted data packets. It's compliant. A 2440-compliant message
will decode correctly. What you've done is merely follow the first half of
the old dictum of "be generous in what you accept and stingy in what you
generate." I

The place to be careful in your implementation is the secont hald of that
dictum -- if you create an enhanced message, a strict 2440 application may
not decode it. It may stop after the first ED packet. (Or it might decode
it -- the other implementer may have quietly handled N ED packets
correctly, too.)

If what you're building is an application that internally makes objects
that are made up of multiple ED packets, and you know that your objects
won't be sent out into the wild like that, no one could possibly complain.

If you *are* sending them out in the wild, there are at least two things
you can do:

(1) have an "export" format that adds ESK packets as headers to each ED
packet. This increases the size, but makes sure a 2440-strict
implementation will decode the chunks. Of course, though, there's a
re-assembly problem, but I'll handwave that.

(2) Only send your "extended" messages to people you know will understand
them. A simple way to do this is to use a notation in the recipient's
self-sig as a way for that person to say they understand your bundled
messages. There may be other ways, and implicit ways for you to know that.

There are also other solutions, like decrypting the entire object and
re-encrypting it into a single ED packet for export. I'll also note that
all of these have security considerations and wave my hand.

The upshot is that there is nothing in the standard that says you can't go
off on a limb and make an application that understands 2440 and does a
whole lot more. Just don't get huffy if no one else does your enhancements
-- or does them in a slightly different way.

	Jon



-----
Jon Callas                                  jon@pgp.com
CTO, Total Network Security                 3965 Freedom Circle
Network Associates, Inc.                    Santa Clara, CA 95054
(408) 346-5860                              
Fingerprints: D1EC 3C51 FCB1 67F8 4345 4A04 7DF9 C2E6 F129 27A9 (DSS)
              665B 797F 37D1 C240 53AC 6D87 3A60 4628           (RSA)


From owner-ietf-open-pgp@imc.org  Mon Nov 30 17:05:43 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA25483
	for <openpgp-archive@odin.ietf.org>; Mon, 30 Nov 1998 17:05:41 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA18638
	for ietf-open-pgp-bks; Mon, 30 Nov 1998 11:54:12 -0800 (PST)
Received: from mage.qualcomm.com (mage.qualcomm.com [129.46.174.16])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA18634
	for <ietf-open-pgp@imc.org>; Mon, 30 Nov 1998 11:54:01 -0800 (PST)
Received: from [129.46.172.254] (jnoerenberg-mac.qualcomm.com [129.46.172.254]) by mage.qualcomm.com (8.8.5/1.4/8.7.2/1.14) with ESMTP id LAA22200; Mon, 30 Nov 1998 11:58:05 -0800 (PST)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Sender: jwn2@mage.qualcomm.com
Message-Id: <v0410350db288a0b257d6@[129.46.172.254]>
X-Mailer: Eudora [Macintosh version 4.1b53-1.99]
X-PGP-RSA-Fingerprint: EA53 01A6 C076 F9C2  09E8 9480 645A 8857
X-PGP-DH-Fingerprint: 4F5E 56C9 BD4D 0227 331F 6AEE 9590 24F9 6FD7 04F8
Date: Mon, 30 Nov 1998 11:47:13 -0800
To: OpenPGP mailing list <ietf-open-pgp@imc.org>
From: "John  W. Noerenberg" <jwn2@qualcomm.com>
Subject: OpenPGP agenda for Dec 7
Cc: Peter Gietz <peter.gietz@dante.org.uk>, Marc Horowitz <marc@mit.edu>,
        Lutz Donnerhacke <lutz@iks-jena.de>, Jon Callas <jon@pgp.com>,
        Marc Dyksterhouse <marcd@pgp.com>,
        PGP-Directory mailing list <pgp-directory@dante.net>,
        "jwn2@qualcomm.com,Jon Callas" <jwn2@qualcomm.com>
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

>
> Anyway, we are a couple of guys who once more would like to have a stab at
> a public definition on how PGP keys should be stored in a LDAP directory.
> I wrote a I-D a couple of years ago but we where not able then to agree on a
> standard that would allow you to store several PGP keys for one object.

LDAP & PGP
Recently I learned about discussion concerning how to store PGP keys 
in LDAP directories.  This would be out of scope for our current WG 
charter.  I plan to put a discussion of whether to expand our charter 
to include this on the agenda for the meeting next Monday.

PGP/MIME
The other work item for our charter, PGP/MIME hasn't gotten much 
attention.  Kazu Yamamoto keeps reminding me about this.  I've 
finally succumbed and invited him to write a new draft for PGP/MIME. 
It is too late for it to appear in the I-D directory, however, I've 
suggested Kazu send it to the mailing list in advance of the meeting, 
so you have a chance to see it.  We'll get it -- and future revisions 
-- posted as proper I-Ds, so we won't have to annoy you with large 
messages, and so we insure we're properly documenting our work.

RFC2440
A few nits have been noted in the Proposed Standard (I do like saying 
that).  Since there hasn't been a great deal of discussion about 
them, this will be on the agenda.  Also, I want to outline the steps 
for getting to Draft Standard.

This is  what I have currently.  Unless anyone offers any other 
topics, we probably will not fill the two hours -- which will allow 
more terminal room time for those inclined (or other entertainments). 
If there is anything else you'd like to talk about, now would be a 
real good time to tell me about them.

john noerenberg
jwn2@qualcomm.com
  ----------------------------------------------------------------------
  no matter what a waste one has made of one's life, it is ever
  possible to find some path to redemption
  -- Charles Frazier, "Cold Mountain", Vintage Books, 1997
  ----------------------------------------------------------------------


From owner-ietf-open-pgp@imc.org  Mon Nov 30 21:48:31 1998
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id VAA29244
	for <openpgp-archive@odin.ietf.org>; Mon, 30 Nov 1998 21:48:30 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA21122
	for ietf-open-pgp-bks; Mon, 30 Nov 1998 16:47:40 -0800 (PST)
Received: from mgo.iij.ad.jp (root@mgo.iij.ad.jp [202.232.15.6])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA21116
	for <ietf-open-pgp@imc.org>; Mon, 30 Nov 1998 16:47:37 -0800 (PST)
Received: from ns.iij.ad.jp (root@ns.iij.ad.jp [192.168.2.8])
	by mgo.iij.ad.jp (8.8.8/MGO1.0) with ESMTP id JAA25755
	for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 09:52:32 +0900 (JST)
Received: from fs.iij.ad.jp (root@fs.iij.ad.jp [192.168.2.9]) by ns.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id JAA04296 for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 09:52:32 +0900 (JST)
Received: from localhost (mine.iij.ad.jp [192.168.4.209]) by fs.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id JAA28412 for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 09:52:32 +0900 (JST)
To: ietf-open-pgp@imc.org
Subject: Re: OpenPGP agenda for Dec 7
From: Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) <kazu@iijlab.net>
In-Reply-To: <v0410350db288a0b257d6@[129.46.172.254]>
References: <v0410350db288a0b257d6@[129.46.172.254]>
X-Mailer: Mew version 1.94b2 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Tue_Dec__1_09:50:54_1998_809)--"
Content-Transfer-Encoding: 7bit
Message-Id: <19981201095225V.kazu@iijlab.net>
Date: Tue, 01 Dec 1998 09:52:25 +0900
X-Dispatcher: imput version 981124(IM104)
Lines: 791
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

----Next_Part(Tue_Dec__1_09:50:54_1998_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

From: "John  W. Noerenberg" <jwn2@qualcomm.com>
Subject: OpenPGP agenda for Dec 7
Date: Mon, 30 Nov 1998 11:47:13 -0800

> It is too late for it to appear in the I-D directory, however, I've 
> suggested Kazu send it to the mailing list in advance of the meeting, 
> so you have a chance to see it.  

Attached is a OpenPGP/MIME ID. Since this ID has not been submitted,
you should refer this as #rev 00.00.

Many things, including the author list, are tentative. (Some ideas
came from Thomas Roessler.)

--Kazu


----Next_Part(Tue_Dec__1_09:50:54_1998_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=draft-ietf-openpgp-pgpmime

#rev 00.00
Internet-Draft                                               K. Yamamoto
                                                 IIJ Research Laboratory
Expires in six months                                     December, 1998


               MIME Security with OpenPGP (OpenPGP/MIME)

                  <draft-ietf-openpgp-pgpmime-00.txt>

Status of this Memo

    This document is an Internet-Draft.  Internet-Drafts are working
    documents of the Internet Engineering Task Force (IETF), its areas,
    and its working groups.  Note that other groups may also distribute
    working documents as Internet-Drafts.

    Internet-Drafts are draft documents valid for a maximum of six
    months and may be updated, replaced, or obsoleted by other documents
    at any time.  It is inappropriate to use Internet-Drafts as
    reference material or to cite them other than as ``work in
    progress.''

    To learn the current status of any Internet-Draft, please check the
    ``1id-abstracts.txt'' listing contained in the Internet-Drafts
    Shadow Directories on ds.internic.net (US East Coast), nic.nordu.net
    (Europe), ftp.isi.edu (US West Coast), or munnari.oz.au (Pacific
    Rim).

Abstract

    This memo specifies how to protect a MIME object within an OpenPGP
    object and how to embed the OpenPGP object to a MIME object based on
    security multipart.

1. Introduction

    Pretty Good Privacy (PGP)[PGP] version 2 was a de facto standard of
    cipher programs in the Internet.  So, PGP version 2 was a good
    candidate for security services of e-mail messages.

    PGP version 2 itself has the cleartext signature format and ASCII
    Armor[OldPGP] to exchange protected objects by e-mail.  However,
    these formats themselves are not suitable to be used in the context
    of MIME[MIME].

    Several efforts were made to integrate MIME and PGP version 2.  As a
    result, PGP/MIME[OldPGPMIME] based on security multipart[SECMULTI]
    was standardized.

    PGP version 2 depends on patented and/or licensed cryptographic
    technologies.  To be free from these problems and to introduce
    richer functionality, OpenPGP[OpenPGP] (aka PGP version 5 or 6) has
    been standardized.  It is, thus, necessary to synchronize PGP/MIME
    with OpenPGP.

    This memo aims to specify how to protect a MIME object within an
    OpenPGP object and how to embed the OpenPGP object to a MIME object
    based on security multipart.  With this format, signature,
    encryption, decryption, verification, and/or combined services are
    available to protect security of MIME objects.

    Throughout this memo, PGP object and OpenPGP object refer to object
    presented in the format define in [OldPGP] and in [OpenPGP],
    respectively.  Note that the OpenPGP format is a super set of the
    PGP format, so OpenPGP objects includes PGP objects.  Also, PGP/MIME
    and OpenPGP/MIME indicate the format defined in [OldPGPMIME] and in
    this memo, respectively.

    Readers are assumed to be familiar to [OpenPGP] and [OldPGPMIME].

2. Standard Keywords

    This memo uses terms which are in capital letters.  When the terms
    "MUST", "SHOULD", "MUST NOT", "SHOULD NOT", "MAY", "REQUIRED" and
    "RECOMMENDED" appear capitalized, they are being used to indicate
    particular requirements, whose definitions are found in [KEYWORDS].

3. Design Goals

    The design goals of OpenPGP/MIME are as follows:

        (1) OpenPGP/MIME should bring a security mechanism to MIME
            objects, whose security level is the same as OpenPGP itself.

        (2) OpenPGP/MIME should be more friendly to MIME-aware
            viewers/composers than to PGP-aware viewers/composers.  This
            is because the number of MIME-aware viewers/composers much
            larger than that of PGP-aware viewers/composers.

        (3) For the signature service, it is more important to deliver a
            signed object itself than to protect the object.  In other
            words, it is more important for MIME viewers to extract the
            object than to verify the signature.

        (4) It is important to maintain backward compatibility with
            PGP/MIME and to encourage the migration from PGP to OpenPGP.

4. Conceptual Model

    This section describes conceptual model of OpenPGP/MIME composer and
    viewer.  This conceptual model is descriptive and does NOT impose
    any restrictions or requirements on implementations.

4.1 OpenPGP/MIME composer

    Composers that conforms the spec defined in this memo are called
    OpenPGP/MIME composer.  An OpenPGP/MIME composer consists of a MIME
    composer and an OpenPGP engine.

    The MIME composer creates MIME objects, which consist of a content
    header and a content body.  The MIME composer cannot create PGP or
    OpenPGP objects.  So, PGP or OpenPGP objects are opaque to the MIME
    composer.  The MIME composer are also careless about version control
    for PGP and OpenPGP.  However, the MIME composer may give control
    information to the OpenPGP engine.

    The OpenPGP engine signs and/or encrypts input data (which is an
    MIME object), then produces a PGP or OpenPGP object.  Version
    control for PGP and OpenPGP, including packet formats and versions
    for each packet type, is carried out by the OpenPGP engine.  The
    OpenPGP engine cannot create MIME objects.

    Figure 1 illustrates this conceptual model of OpenPGP/MIME composer
    for the signature service.

            An object to be signed
                     |
                     v
              +---------------+
              | MIME composer |---------+
              +---------------+         | A MIME object to be signed*
                     |                  v
       A MIME object |            +--------------------------+
       to be signed* |            | OpenPGP signature engine |
                     |            +--------------------------+
                     v                  |
              +---------------+         |  An OpenPGP object of 
              | MIME composer |<--------+  a detached signature
              +---------------+
                     |
                     v
            An OpenPGP/MIME object

        Figure 1, the conceptual model of OpenPGP/MIME composer
        Note: Data follows illustrated by arrows are different
              for the signature and encryption services.
              The two objects marked with "*" are copies in the 
              signature service.

4.2 OpenPGP/MIME viewer

    Viewers that conforms the spec defined in this memo are called
    OpenPGP/MIME viewer.  An OpenPGP/MIME composer consists of a MIME
    viewer and the OpenPGP engine.

    The MIME viewer analyzes MIME objects.  The MIME viewer cannot
    analyze PGP or OpenPGP objects.  So, PGP or OpenPGP objects are
    opaque to the MIME viewer.  The MIME viewer are also careless about
    version control for PGP and OpenPGP.  However, the MIME viewer may
    give control information to the OpenPGP engine.

    The OpenPGP engine decrypts and/or verifies a PGP or OpenPGP object
    (then extracts plain output data, which is a MIME object, for the
    decryption service).  The OpenPGP engine cannot analyze MIME
    objects.

    Figure 2 illustrates this conceptual model of OpenPGP/MIME viewer
    for the verification service.

            An OpenPGP/MIME object
                     |
                     v
              +---------------+
              |  MIME viewer  |---------+ The MIME object in the first part*
              +---------------+         | The PGP object in the second part
                     |                  v
  The MIME object    |            +-----------------------------+
  in the first part* |            | OpenPGP verification engine |
                     |            +-----------------------------+
                     v                  |
              +---------------+         | A report on verification
              |  MIME viewer  |<--------+  
              +---------------+
                     |
                     v
      The MIME object in the first part*
            
        Figure 2, the conceptual model of OpenPGP/MIME viewer
        Note: Data follows illustrated by arrows are different
              for the decryption and verification services.
              The two objects marked with "*" are copies in the 
              verification service.

5. PGP or OpenPGP object

    PGP or OpenPGP objects can be represented by native raw binary
    octets or by ASCII Armor.  ASCII Armor was REQUIRED for PGP/MIME
    wherever PGP or OpenPGP objects are used.

    However, ASCII Armor is not so efficient to maintain backward
    compatibility with "MIME-unaware but PGP-aware" viewers as it is
    expected.  Moreover, MIME encodings are more suitable than ASCII
    Armor in the context of MIME.  So, OpenPGP/MIME should prepare the
    migration from ASCII Armor to native raw binary octets encoded with
    a MIME encoding (such as base64).

    To achieve this, throughout this memo, the followings are required
    wherever PGP or OpenPGP objects are used.

        (1) OpenPGP/MIME composers SHOULD generate PGP or OpenPGP
            objects encoded with ASCII Armor.  They SHOULD NOT generate
            OpenPGP objects encoded with a MIME encoding.

        (2) OpenPGP/MIME viewers MUST accept PGP or OpenPGP objects
            encoded both with ASCII Armor and with a MIME encoding.

    This requirement affects all PGP or OpenPGP objects including the
    detached signature, the encryption, and the public key distribution.

    NOTE:

        There are two kinds of ASCII Armor boundary for a detached
        signature.  PGP uses the "-----BEGIN PGP MESSAGE-----" string
        while OpenPGP uses the "-----BEGIN PGP SIGNATUREE-----" string.
        OpenPGP/MIME composer SHOULD generate the latter and MAY
        generate the former for backward compatibility.  OpenPGP/MIME
        viewer MUST accept both.

6. The Signature Service

    For the signature service of OpenPGP/MIME, multipart/signed is used.
    The protocol parameter is "application/pgp-signature".  OpenPGP/MIME
    composers MUST generate the OpenPGP/MIME object defined as follows:

        Top level:
            Content-Type: multipart/signed
            Required parameters: boundary
            Required parameters: protocol=application/pgp-signature 
                                 (case-insensitive)
            Optional parameters: micalg
            Content body is defined as follows:

        The first part:
            An MIME object to be signed.
            Content-Transfer-Encoding: MUST be other than "binary".

        The second part:
            Content-Type: application/pgp-signature
            Required parameters: none
            Optional parameters: none
            Content body: an OpenPGP object which contains a detached
                          signature

    A multipart/signed object of OpenPGP/MIME is created as follows:

    (1) The MIME composer prepares an object to be signed according to a
        local convention.

    (2) The MIME composer converts the object to a MIME object according
        to the MIME canonical form.  That is, a content header is
        created and the object becomes a content body.  The content body
        MUST be in 7bit or 8bit.  So, if the object is "binary", an
        appropriate MIME encoding MUST be applied(line delimiters are
        converted by the MIME encoding).  Note that this spec allows an
        "8bit" content body.

    (3) The MIME object is copied.  One MIME object will be passed to
        the OpenPGP engine while the other MIME object will be the first
        part of multipart/signed.

    (4) The MIME composer or the OpenPGP engine converts line delimiters
        of the latter MIME object (including those of the content
        header) to <CR><LF>.

    (5) The OpenPGP engine calculates a signature over the latter MIME
        object and creates an OpenPGP object which contains the detached
        signature.

    (6) The MIME composer creates a multipart/signed object.  The first
        part is the former MIME object created in step (3).  The MIME
        composer treates this object as opaque.  The second part is the
        OpenPGP object created in step (5).  If this OpenPGP object is
        native raw binary octets, an appropriate MIME encoding is
        applied to it.

    The OpenPGP object for the detached signature MUST NOT include
    literal packets.

    The micalg parameter MAY be omitted.  Just in case, the micalg
    parameter MAY be specified for multipart/signed.  If specified, the
    value of the micalg parameter SHOULD be "pgp-md5" or "pgp-sha1",
    which will be ignored OpenPGP/MIME viewers.

    NOTE: 

        The micalg parameter is mandatory for multipart/signed.  And
        PGP/MIME defined the values of the micalg parameter.  However,
        this memo doesn't require the micalg parameter for two reasons.

        The first reason is that this parameter is not necessary for
        OpenPGP/MIME.  The micalg parameter was designed hoping that
        one-pass operation can be implemented for multiple hashes in
        MIME level.  However, hash calculation is closed in the OpenPGP
        engine in the conceptual model.

        The second reason is that there is no perfect way for the MIME
        composer to know which hash are actually used in an OpenPGP
        object produced by the OpenPGP engine.  Remember that OpenPGP
        objects are opaque for the MIME composer.  

        The author believes that the micalg parameter should be optional
        and the spec of multipart/signed should be revised in the
        future.

    IMPLEMENTATION NOTE:

        A user may have two or more secret keys.  For instance, one is
        for an RSA secret key for PGP and the other is a ElGamal/DSS
        secret key for OpenPGP.  OpenPGP/MIME composers SHOULD create a
        detached signature of OpenPGP (excluding PGP) by default.
        OpenPGP/MIME composers MAY create a detached signature of PGP
        for backward compatibility.  OpenPGP/MIME composers SHOULD
        provide a user with a mechanism to select which secret key is
        used for signature calculation.

    There are two ways to support multiple signatures.  One is storing
    them in an OpenPGP object.  The other is storing a multipart/*
    object in the second part.  Such functionality is outside the scope
    of this memo.

    NOTE: 

        Multipart/Signed requires to convert a MIME object to 7bit
        before calculating a signature.  This is because, at the time of
        the standardization of security multipart, several message
        transfer agents(MTA) converts 8bit messages into 7bit in some
        cases during deliveries.

        Most MTAs are 8bit clean nowadays.  The 7bit restriction is too
        strong since there is strong demand for 8bit messages without
        any encoding, typically to transfer European charcter sets.

        Moreover, the 7bit restriction makes OpenPGP/MIME composers very
        complicated.  Consider this scenario.  There is a MIME message
        whose body contains an 8bit European character set.  A user want
        to attach it onto a new message and to signed it with
        OpenPGP/MIME.  If the 7bit restriction should be applied,
        OpenPGP/MIME composers must analyze the 8bit MIME message first,
        then convert the body (not the entire message) into 7bit with an
        appropriate MIME encoding.

        A worse senario it that, if a message is deeply recursed and one
        part is 8bit, OpenPGP/MIME composers must analyze the message
        and encode the 8bit MIME object.

        If 8bit is allowed, such complicated procedures can be omitted.
        Even if 8bit is allowed, "binary" MIME objects must be converted
        into 7bit when signed.  However, such binary objects are rare
        cases.

        The author believes that 8bit MIME objects should be allowed in
        multipart/signed.

7. The Encryption Service

    For the encryption service of OpenPGP/MIME, multipart/encrypted is
    used.  The protocol parameter is "application/pgp-encrypted".
    OpenPGP/MIME composers MUST generate the OpenPGP/MIME object defined
    as follows:

        Top level:
            Content-Type: multipart/encrypted
            Required parameters: boundary
            Required parameters: protocol=application/pgp-encrypted
                                 (case-insensitive)
            Optional parameters: none
            Content body is defined as follows:

        The first part:
            Content-Type: application/pgp-encrypted
            Required parameters: none
            Optional parameters: none
            Content body: "Version: 1"
            Note: existence of this part is for historical reason. 
                  The content body is meaningless while it seems to 
                  control versions.

        The second part:
            Content-Type: application/octet-stream
            Required parameters: none
            Optional parameters: none
            Content body: an OpenPGP object which encrypts an MIME object.

    A multipart/encrypted object of OpenPGP/MIME is created as follows:

    (1) The MIME composer prepares an object to be signed according to a
        local convention.

    (2) The MIME composer converts the object to a MIME object according
        to the MIME canonical form.  That is, a content header is
        created and the object becomes a content body.  The content body
        need not to be encoded with an MIME encoding.  The content body
        MAY be encoded with an appropriate MIME encoding(line delimiters
        are converted by the MIME encoding).

    (3) The MIME composer or the OpenPGP engine converts line delimiters
        of the MIME object (including those of the content header) to
        <CR><LF>.

    (4) The OpenPGP engine encryptes the MIME object and creates an
        OpenPGP object according to user IDs specified by the MIME
        composer.

    (5) The MIME composer creates a multipart/encrypted object.  The
        first part is the application/pgp-encrypted object defined
        above.  The second part is the OpenPGP object created in step
        (4) which is labeled as application/octet-stream.

    IMPLEMENATION NOTE:

        The OpenPGP engine selects public keys according to the
        specified user IDs.  For example, if there are two public keys
        for a user ID, the OpenPGP engine may encrypt a session key with
        both two keys.

8. Combined Services

    This section describes two typical combined services for
    OpenPGP/MIME.

8.1 Signed-then-Encrypted Service

    There are two methods for for the signed-then-encrypted service.

8.1.1 Signed-then-Encrypted Service with Security Multipart

    Signed-then-Encrypted service can be implemented combining with
    multipart/signed and multipart/encrypted.  OpenPGP/MIME composers
    MAY produce this format.  OpenPGP/MIME viewers MUST accept this
    format.

    OpenPGP/MIME composers first create a multipart/signed object
    according to the procedures defined in Section 6.  Then they creates
    a multipart/encrypted object according to the procedures defined in
    Section 7 from step (3) considering as if the multipart/signed
    object is created in step (1) and (2).

8.1.2 Signed-then-Encrypted Service with Atomic OpenPGP

    The OpenPGP engine itself can create an OpenPGP object which
    signs-then-encrypts input data.  OpenPGP/MIME composers MAY produce
    this format.  OpenPGP/MIME viewers MUST accept this format.

    OpenPGP/MIME composers create this format according to the
    procedures defined in Section 7.

8.2 Encrypted-then-Signed Service

    Encrypted-then-signed service can be implemented combining with
    multipart/encrypted and multipart/signed.  OpenPGP/MIME composers
    MAY produce this format.  OpenPGP/MIME viewers MUST accept this
    format.

    OpenPGP/MIME composers first create a multipart/encrypted object
    according to the procedures defined in Section 7.  Then they creates
    a multipart/signed object according to the procedures defined in
    Section 6 from step (3) considering as if the multipart/encrypted
    object is created in step (1) and (2).

9. The Decryption Service

    OpenPGP/MIME viewers MUST be able to decrypt the OpenPGP/MIME object
    defined in Section 7 and 8.  The decryption procedures are as
    follows:

    (1) The MIME viewer extract the first part and the second part from
        the multipart/encrypted object.  The first part, the
        application/pgp-encrypted object, is ignored.  The OpenPGP
        object stored in the second part is extracted by removing its
        content header and decoding according to the value of
        Content-Transfer encoding.

    (2) The OpenPGP engine extracts the MIME object by decrypting (and
        verifying, if necessary) the OpenPGP object.  Both the MIME
        object and a resulting report (on decryption and verification)
        are passed to the MIME viewer.

    (3) The MIME viewer or the PGP engine converts line delimiters of
        the MIME object into the local form.

    (4) The MIME viewer analyze the MIME object in the context of MIME.

    OpenPGP/MIME viewers MUST ignore the first part even if it doesn't
    conform to the format defined in Section 7.

    IMPLEMENTATION NOTE:

        OpenPGP/MIME viewers SHOULD inform the resulting report of step
        (2) to users.

10. The Verification Service

    OpenPGP/MIME viewers MUST be able to verify the OpenPGP/MIME object
    defined in Section 6 and 8.  The verification procedures are as
    follows:

    (1) The MIME viewer extract the first part and the second part of
        the multipart/encrypted object.  The first part is the signed
        MIME object.  The OpenPGP object stored in the second part is
        extracted by removing its content header and decoding according
        to the value of Content-Transfer encoding.

    (2) The signed MIME object is copied.  One MIME object will be
        passed to the OpenPGP engine while the other MIME object will be
        analyzed in the context of MIME later. 

    (3) The MIME viewer converts line delimiters of the former MIME
        object into <CR><LF>.

    (4) The OpenPGP engine verify the signature with the former MIME
        object and the OpenPGP object.  A resulting report (on
        verification) is passed to the MIME viewer.

    (5) The MIME viewer analyze the latter MIME object in the context of
        MIME.

    OpenPGP/MIME viewers MUST ignore objects in literal packets if exist
    and MUST accept the first part of the multipart/signed object as the
    signed MIME object.

    OpenPGP/MIME viewers MUST ignore the micalg parameter if exists.

    IMPLEMENTATION NOTE:

        The PGP/OpenPGP signature packet specified has "canonical text
        document" type and "binary document" type.  PGP/MIME and
        OpenPGP/MIME allows these two types for the signature service.

        On signature calculation, for canonical text document, line
        delimiters are converted into <CR><LF> by the OpenPGP engine,
        then a signature is calculated.  For binary document, a
        signature is calculated over the original input.

        On verification, for canonical text document, the line
        delimiters are first converted into <CR><LF> by the OpenPGP
        engine, then verified.  For binary documnt, verification is
        carried out over the original input.

        Suppose that an OpenPGP/MIME composer itself converts line
        delimiters of a MIME object into <CR><LF> then calls the OpenPGP
        engine telling that this object is binary document, the
        signature type will be binary document.  Please note that this
        signature is valid in the context of OpenPGP/MIME and signature
        verification should success.  If another OpenPGP/MIME viewer on a
        system whose line delimiter is <LF> calls the OpenPGP engine
        without line delimiter conversion, the verification fails
        because the OpenPGP engine never converts line delimiters of
        binary document.

        So, to verify signatures, the MIME viewer MUST convert line
        delimiters of the first part to <CR><LF> by itself.

    IMPLEMENTATION NOTE:

        OpenPGP/MIME viewers SHOULD inform the resulting report of step
        (2) to users.

11. Distribution of PGP Transferable Public Keys

    To distribute PGP public keys in the context of MIME, the following
    content type is defined:

        Content-Type: application/pgp-keys
        Required parameters: none
        Optional parameters: none

    OpenPGP/MIME composers MUST embed PGP public keys in this MIME
    object.  For a filename contained in Content-Disposition:, the
    ".asc" suffix SHOULD be used when encoded with ASCII Armor.

# How about raw binary data?

    OpenPGP/MIME viewers MUST accept this format.  OpenPGP/MIME viewers
    MUST NOT automatically add the PGP public keys in this MIME object
    to a public keyring for security reasons.  OpenPGP/MIME viewers
    SHOULD interact with a user to decide how to treat the PGP public
    keys.

12. Historical Note

    Many ideas were proposed to integrate MIME and PGP in the past.

    The first trial was the applicaton/pgp content type.  An
    applicaton/pgp MIME object embeds a PGP object, which is signs or
    encrypts or signs-then-encrypts a MIME object.  This approach is
    against the design goal (2).  That is, it is difficult to extract
    the inside MIME object from the PGP object even if it is a clear
    text signature.

    Multipart/signed achieves the design goal (2).  If a MIME-aware
    viewer doesn't know multipart/signed, it is treated as
    multipart/mixed.  So, the MIME object in the first part is easily
    extracted.

    [OldPGPMIME] adopts multipart/encrypted for encrypted PGP objects to
    align to the standard way, security multipart.  Since PGP or OpenPGP
    doesn't have functionality to separate encrypted data and its
    control keys, the first part of multipart/encrypted defined in this
    memo is mostly empty.  

    If all security mechanisms adopt multipart/encrypted for encryption
    services, MIME viewers can abstract reporting routines (that tell
    users MIME objects were encrypted).  However, S/MIME[SMIME] doesn't
    adopt multipart/encrypted but does adopt the applicaton/* approach
    for the encryption service.  Thus, this merit is being lost.  The
    reason why this memo uses multipart/encrypted is just for backward
    compatibility.

    Another approach proposed time to time is the text/pgp, which embeds
    a cleartext signature PGP object, for MIME-unaware but PGP-aware
    viewers.  This approach is against the design goal (2) and (3).
    Note that since lines started with "-" are escaped in a cleartext
    signature, it is hard for MIME-aware viwers to extract the original
    object.

13. Examples

    This section contains examples of OpenPGP/MIME objects.

    (1) The following is a simple OpenPGP/MIME object for the signature
        service.

        Content-Type: Multipart/Signed; boundary="simple"
                protocol="application/pgp-signature";

        --simple
        Content-Type: Text/Plain; charset=us-ascii
        Content-Transfer-Encoding: 7bit

        This is a text object to be signed with OpenPGP/MIME.

        --simple
        Content-Type: Application/Pgp-Signature
        Content-Transfer-Encoding: 7bit

        -----BEGIN PGP SIGNATURE-----
        Version: PGPfreeware 5.0i for non-commercial use
        MessageID: M13gFu827jrvjz0U5rM0iWLMfKpt2PzB

        iQA/AwUANmJ8V6eXeOJHtjA3EQKOugCfUKYA9iw3KssVncR3hW2oSKKGFDAAn27d
        m8dNeZ0d4UO9MLuCITa0sAS1
        =czIa
        -----END PGP SIGNATURE-----

        --simple--

    (2) The following is a simple OpenPGP/MIME object for the encryption
        service.


        Content-Type: Multipart/Encrypted; boundary="simple"
                protocol="application/pgp-encrypted";

        --simple
        Content-Type: Application/Pgp-Encrypted
        Content-Transfer-Encoding: 7bit

        Version: 1

        --simple
        Content-Type: Application/Octet-Stream
        Content-Transfer-Encoding: 7bit

        -----BEGIN PGP MESSAGE-----
        Version: PGPfreeware 5.0i for non-commercial use
        MessageID: vdnh0wRmUsog31/QvX620a0hlwLtD+m5

        hQCMAw9kihyeT3RNAQP/fLxae4lOuvZxWoZN62cm/3/9K2BSg0OphyqSQu6WVV7u
        IPgbvaRqPz7ejJITXEtr+GVR01OEAOENxYTKU/s+vv//XQ1AOljWCuXBJRU0K/L0
        Qm9kCw6vprAF8Mwm0QjquOx7PRd/GhqjK5PVBBuXPfFFqlE5ARtQ+27qPYLck7WF
        AQ4DYDI64N0KZe0QBACjjBbDgTtYKVPW2J53DxnmwnNTH4t7GuDQ14jfzCYNOeFa
        2rpxdd54NgtB932Kh0lyAY7JCAJG2oaKedT7w6owAkdX6bUw4T9RkkWCytsKLPcM
        S35OoiLajnS9LXvY7EEEIrmXB2D5AFdPsBLOg9nOJy9giB98hk/OiSYvVqPzigP/
        RLmgCjQwlqCGuxAmp9mpqI76mMXfpR5ZN7zXd0hjI2nh9Vnu9/DSUTrzn6mNV/Gt
        xN7Afl6YIW/16FbwHozwve2vyJyCRT5XHvFe294eBkJvcdCIIOsW/IMT99NvK3rQ
        CK7cwxe1nml33e/QMTh9F3mRibk9fQBQDgS4XOXob5Ckg8JfJbFEA3w5HmwUWfPl
        sG0iXQJB6/pSCtV8m1ZBEgJSPSvcwWfR0MCgZr7uyvaxTDgIKE7fcX3a/DzGuYwc
        XEWAudEYYjGSWDL21iLMj1g7FehsfDqZZBAMpOr+l/iSxjOypeDhZKYzf/qKK73r
        HmgY23tNmMJndoiePbHf7a4KNcUD
        =SXzQ
        -----END PGP MESSAGE-----

        --simple

14. Security Consideration

    This memo brings a security mechanism to protect MIME objects.  The
    security level of OpenPGP/MIME is believed the same as that of
    OpenPGP.

References

    [KEYWORDS] S. Bradner, "Key words for use in RFCs to Indicate
        Requirement Levels", RFC 2119, March 1997.

    [MIME] The primary definition of MIME. "MIME Part 1: Format of
        Internet Message Bodies", RFC 2045; "MIME Part 2: Media Types",
        RFC 2046; "MIME Part 3: Message Header Extensions for Non-ASCII
        Text", RFC 2047; "MIME Part 4: Registration Procedures", RFC
        2048; "MIME Part 5: Conformance Criteria and Examples", RFC 2049;
        November 1996.

    [OldPGP] D. Atkins, W. Stallings, and P. Zimmerman, "PGP Message
        Exchange Formats", RFC 1991, August 1996.

    [OldPGPMIME] M. Elkins, "MIME Security with Pretty Good Privacy
        (PGP)", RFC2015, October 1996.

    [OpenPGP] J. Callas, L. Donnerhacke, H. Finney, and R. Thayer,
        "OpenPGP Message Format", RFC2440, November 1998.

    [PGP] P. Zimmermann, "The Official PGP User's Guide", MIT Press,
        1995.

    [SECMULTI] J. Galvin, S. Murphy, S. Crocker, and N. Freed, "Security
        Multiparts for MIME: Multipart/Signed and Multipart/Encrypted",
        RFC1847, October 1995.

    [SMIME] S. Dusse, P. Hoffman, B.  Ramsdell, L. Lundblade, and
        L. Repka, "S/MIME Version 2 Message Specification", RFC 2311,
        March 1998.

Acknowledgement

    To be written.

Authors' Addresses

    Kazuhiko YAMAMOTO
    Research Laboratory, Internet Initiative Japan Inc.
    Takebashi Yasuda Bldg., 3-13 Kanda Nishiki-cho Chiyoda-ku, Tokyo
    101-0054 JAPAN

    Phone: +81-3-5259-6350
    FAX:   +81-3-5259-6351
    EMail: kazu@iijlab.net

Open Problems

    RFC 1847:
        - Should make the micalg parameter optional?
        - Should allow 8bit objects for the signature service?
        - Clearly say that the protocol parameter is case-insensitive.

    Misc:
        - Should define error handlings when parameter mismatch
          (e.g. the protocol parameter vs. the first/second part)
        - Multiple signatures.

Changes from RFC 2015

    To be written.

----Next_Part(Tue_Dec__1_09:50:54_1998_809)----



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id QAA21122 for ietf-open-pgp-bks; Mon, 30 Nov 1998 16:47:40 -0800 (PST)
Received: from mgo.iij.ad.jp (root@mgo.iij.ad.jp [202.232.15.6]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA21116 for <ietf-open-pgp@imc.org>; Mon, 30 Nov 1998 16:47:37 -0800 (PST)
Received: from ns.iij.ad.jp (root@ns.iij.ad.jp [192.168.2.8]) by mgo.iij.ad.jp (8.8.8/MGO1.0) with ESMTP id JAA25755 for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 09:52:32 +0900 (JST)
Received: from fs.iij.ad.jp (root@fs.iij.ad.jp [192.168.2.9]) by ns.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id JAA04296 for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 09:52:32 +0900 (JST)
Received: from localhost (mine.iij.ad.jp [192.168.4.209]) by fs.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id JAA28412 for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 09:52:32 +0900 (JST)
To: ietf-open-pgp@imc.org
Subject: Re: OpenPGP agenda for Dec 7
From: Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) <kazu@iijlab.net>
In-Reply-To: <v0410350db288a0b257d6@[129.46.172.254]>
References: <v0410350db288a0b257d6@[129.46.172.254]>
X-Mailer: Mew version 1.94b2 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Multipart/Mixed; boundary="--Next_Part(Tue_Dec__1_09:50:54_1998_809)--"
Content-Transfer-Encoding: 7bit
Message-Id: <19981201095225V.kazu@iijlab.net>
Date: Tue, 01 Dec 1998 09:52:25 +0900
X-Dispatcher: imput version 981124(IM104)
Lines: 791
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

----Next_Part(Tue_Dec__1_09:50:54_1998_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

From: "John  W. Noerenberg" <jwn2@qualcomm.com>
Subject: OpenPGP agenda for Dec 7
Date: Mon, 30 Nov 1998 11:47:13 -0800

> It is too late for it to appear in the I-D directory, however, I've 
> suggested Kazu send it to the mailing list in advance of the meeting, 
> so you have a chance to see it.  

Attached is a OpenPGP/MIME ID. Since this ID has not been submitted,
you should refer this as #rev 00.00.

Many things, including the author list, are tentative. (Some ideas
came from Thomas Roessler.)

--Kazu


----Next_Part(Tue_Dec__1_09:50:54_1998_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=draft-ietf-openpgp-pgpmime

#rev 00.00
Internet-Draft                                               K. Yamamoto
                                                 IIJ Research Laboratory
Expires in six months                                     December, 1998


               MIME Security with OpenPGP (OpenPGP/MIME)

                  <draft-ietf-openpgp-pgpmime-00.txt>

Status of this Memo

    This document is an Internet-Draft.  Internet-Drafts are working
    documents of the Internet Engineering Task Force (IETF), its areas,
    and its working groups.  Note that other groups may also distribute
    working documents as Internet-Drafts.

    Internet-Drafts are draft documents valid for a maximum of six
    months and may be updated, replaced, or obsoleted by other documents
    at any time.  It is inappropriate to use Internet-Drafts as
    reference material or to cite them other than as ``work in
    progress.''

    To learn the current status of any Internet-Draft, please check the
    ``1id-abstracts.txt'' listing contained in the Internet-Drafts
    Shadow Directories on ds.internic.net (US East Coast), nic.nordu.net
    (Europe), ftp.isi.edu (US West Coast), or munnari.oz.au (Pacific
    Rim).

Abstract

    This memo specifies how to protect a MIME object within an OpenPGP
    object and how to embed the OpenPGP object to a MIME object based on
    security multipart.

1. Introduction

    Pretty Good Privacy (PGP)[PGP] version 2 was a de facto standard of
    cipher programs in the Internet.  So, PGP version 2 was a good
    candidate for security services of e-mail messages.

    PGP version 2 itself has the cleartext signature format and ASCII
    Armor[OldPGP] to exchange protected objects by e-mail.  However,
    these formats themselves are not suitable to be used in the context
    of MIME[MIME].

    Several efforts were made to integrate MIME and PGP version 2.  As a
    result, PGP/MIME[OldPGPMIME] based on security multipart[SECMULTI]
    was standardized.

    PGP version 2 depends on patented and/or licensed cryptographic
    technologies.  To be free from these problems and to introduce
    richer functionality, OpenPGP[OpenPGP] (aka PGP version 5 or 6) has
    been standardized.  It is, thus, necessary to synchronize PGP/MIME
    with OpenPGP.

    This memo aims to specify how to protect a MIME object within an
    OpenPGP object and how to embed the OpenPGP object to a MIME object
    based on security multipart.  With this format, signature,
    encryption, decryption, verification, and/or combined services are
    available to protect security of MIME objects.

    Throughout this memo, PGP object and OpenPGP object refer to object
    presented in the format define in [OldPGP] and in [OpenPGP],
    respectively.  Note that the OpenPGP format is a super set of the
    PGP format, so OpenPGP objects includes PGP objects.  Also, PGP/MIME
    and OpenPGP/MIME indicate the format defined in [OldPGPMIME] and in
    this memo, respectively.

    Readers are assumed to be familiar to [OpenPGP] and [OldPGPMIME].

2. Standard Keywords

    This memo uses terms which are in capital letters.  When the terms
    "MUST", "SHOULD", "MUST NOT", "SHOULD NOT", "MAY", "REQUIRED" and
    "RECOMMENDED" appear capitalized, they are being used to indicate
    particular requirements, whose definitions are found in [KEYWORDS].

3. Design Goals

    The design goals of OpenPGP/MIME are as follows:

        (1) OpenPGP/MIME should bring a security mechanism to MIME
            objects, whose security level is the same as OpenPGP itself.

        (2) OpenPGP/MIME should be more friendly to MIME-aware
            viewers/composers than to PGP-aware viewers/composers.  This
            is because the number of MIME-aware viewers/composers much
            larger than that of PGP-aware viewers/composers.

        (3) For the signature service, it is more important to deliver a
            signed object itself than to protect the object.  In other
            words, it is more important for MIME viewers to extract the
            object than to verify the signature.

        (4) It is important to maintain backward compatibility with
            PGP/MIME and to encourage the migration from PGP to OpenPGP.

4. Conceptual Model

    This section describes conceptual model of OpenPGP/MIME composer and
    viewer.  This conceptual model is descriptive and does NOT impose
    any restrictions or requirements on implementations.

4.1 OpenPGP/MIME composer

    Composers that conforms the spec defined in this memo are called
    OpenPGP/MIME composer.  An OpenPGP/MIME composer consists of a MIME
    composer and an OpenPGP engine.

    The MIME composer creates MIME objects, which consist of a content
    header and a content body.  The MIME composer cannot create PGP or
    OpenPGP objects.  So, PGP or OpenPGP objects are opaque to the MIME
    composer.  The MIME composer are also careless about version control
    for PGP and OpenPGP.  However, the MIME composer may give control
    information to the OpenPGP engine.

    The OpenPGP engine signs and/or encrypts input data (which is an
    MIME object), then produces a PGP or OpenPGP object.  Version
    control for PGP and OpenPGP, including packet formats and versions
    for each packet type, is carried out by the OpenPGP engine.  The
    OpenPGP engine cannot create MIME objects.

    Figure 1 illustrates this conceptual model of OpenPGP/MIME composer
    for the signature service.

            An object to be signed
                     |
                     v
              +---------------+
              | MIME composer |---------+
              +---------------+         | A MIME object to be signed*
                     |                  v
       A MIME object |            +--------------------------+
       to be signed* |            | OpenPGP signature engine |
                     |            +--------------------------+
                     v                  |
              +---------------+         |  An OpenPGP object of 
              | MIME composer |<--------+  a detached signature
              +---------------+
                     |
                     v
            An OpenPGP/MIME object

        Figure 1, the conceptual model of OpenPGP/MIME composer
        Note: Data follows illustrated by arrows are different
              for the signature and encryption services.
              The two objects marked with "*" are copies in the 
              signature service.

4.2 OpenPGP/MIME viewer

    Viewers that conforms the spec defined in this memo are called
    OpenPGP/MIME viewer.  An OpenPGP/MIME composer consists of a MIME
    viewer and the OpenPGP engine.

    The MIME viewer analyzes MIME objects.  The MIME viewer cannot
    analyze PGP or OpenPGP objects.  So, PGP or OpenPGP objects are
    opaque to the MIME viewer.  The MIME viewer are also careless about
    version control for PGP and OpenPGP.  However, the MIME viewer may
    give control information to the OpenPGP engine.

    The OpenPGP engine decrypts and/or verifies a PGP or OpenPGP object
    (then extracts plain output data, which is a MIME object, for the
    decryption service).  The OpenPGP engine cannot analyze MIME
    objects.

    Figure 2 illustrates this conceptual model of OpenPGP/MIME viewer
    for the verification service.

            An OpenPGP/MIME object
                     |
                     v
              +---------------+
              |  MIME viewer  |---------+ The MIME object in the first part*
              +---------------+         | The PGP object in the second part
                     |                  v
  The MIME object    |            +-----------------------------+
  in the first part* |            | OpenPGP verification engine |
                     |            +-----------------------------+
                     v                  |
              +---------------+         | A report on verification
              |  MIME viewer  |<--------+  
              +---------------+
                     |
                     v
      The MIME object in the first part*
            
        Figure 2, the conceptual model of OpenPGP/MIME viewer
        Note: Data follows illustrated by arrows are different
              for the decryption and verification services.
              The two objects marked with "*" are copies in the 
              verification service.

5. PGP or OpenPGP object

    PGP or OpenPGP objects can be represented by native raw binary
    octets or by ASCII Armor.  ASCII Armor was REQUIRED for PGP/MIME
    wherever PGP or OpenPGP objects are used.

    However, ASCII Armor is not so efficient to maintain backward
    compatibility with "MIME-unaware but PGP-aware" viewers as it is
    expected.  Moreover, MIME encodings are more suitable than ASCII
    Armor in the context of MIME.  So, OpenPGP/MIME should prepare the
    migration from ASCII Armor to native raw binary octets encoded with
    a MIME encoding (such as base64).

    To achieve this, throughout this memo, the followings are required
    wherever PGP or OpenPGP objects are used.

        (1) OpenPGP/MIME composers SHOULD generate PGP or OpenPGP
            objects encoded with ASCII Armor.  They SHOULD NOT generate
            OpenPGP objects encoded with a MIME encoding.

        (2) OpenPGP/MIME viewers MUST accept PGP or OpenPGP objects
            encoded both with ASCII Armor and with a MIME encoding.

    This requirement affects all PGP or OpenPGP objects including the
    detached signature, the encryption, and the public key distribution.

    NOTE:

        There are two kinds of ASCII Armor boundary for a detached
        signature.  PGP uses the "-----BEGIN PGP MESSAGE-----" string
        while OpenPGP uses the "-----BEGIN PGP SIGNATUREE-----" string.
        OpenPGP/MIME composer SHOULD generate the latter and MAY
        generate the former for backward compatibility.  OpenPGP/MIME
        viewer MUST accept both.

6. The Signature Service

    For the signature service of OpenPGP/MIME, multipart/signed is used.
    The protocol parameter is "application/pgp-signature".  OpenPGP/MIME
    composers MUST generate the OpenPGP/MIME object defined as follows:

        Top level:
            Content-Type: multipart/signed
            Required parameters: boundary
            Required parameters: protocol=application/pgp-signature 
                                 (case-insensitive)
            Optional parameters: micalg
            Content body is defined as follows:

        The first part:
            An MIME object to be signed.
            Content-Transfer-Encoding: MUST be other than "binary".

        The second part:
            Content-Type: application/pgp-signature
            Required parameters: none
            Optional parameters: none
            Content body: an OpenPGP object which contains a detached
                          signature

    A multipart/signed object of OpenPGP/MIME is created as follows:

    (1) The MIME composer prepares an object to be signed according to a
        local convention.

    (2) The MIME composer converts the object to a MIME object according
        to the MIME canonical form.  That is, a content header is
        created and the object becomes a content body.  The content body
        MUST be in 7bit or 8bit.  So, if the object is "binary", an
        appropriate MIME encoding MUST be applied(line delimiters are
        converted by the MIME encoding).  Note that this spec allows an
        "8bit" content body.

    (3) The MIME object is copied.  One MIME object will be passed to
        the OpenPGP engine while the other MIME object will be the first
        part of multipart/signed.

    (4) The MIME composer or the OpenPGP engine converts line delimiters
        of the latter MIME object (including those of the content
        header) to <CR><LF>.

    (5) The OpenPGP engine calculates a signature over the latter MIME
        object and creates an OpenPGP object which contains the detached
        signature.

    (6) The MIME composer creates a multipart/signed object.  The first
        part is the former MIME object created in step (3).  The MIME
        composer treates this object as opaque.  The second part is the
        OpenPGP object created in step (5).  If this OpenPGP object is
        native raw binary octets, an appropriate MIME encoding is
        applied to it.

    The OpenPGP object for the detached signature MUST NOT include
    literal packets.

    The micalg parameter MAY be omitted.  Just in case, the micalg
    parameter MAY be specified for multipart/signed.  If specified, the
    value of the micalg parameter SHOULD be "pgp-md5" or "pgp-sha1",
    which will be ignored OpenPGP/MIME viewers.

    NOTE: 

        The micalg parameter is mandatory for multipart/signed.  And
        PGP/MIME defined the values of the micalg parameter.  However,
        this memo doesn't require the micalg parameter for two reasons.

        The first reason is that this parameter is not necessary for
        OpenPGP/MIME.  The micalg parameter was designed hoping that
        one-pass operation can be implemented for multiple hashes in
        MIME level.  However, hash calculation is closed in the OpenPGP
        engine in the conceptual model.

        The second reason is that there is no perfect way for the MIME
        composer to know which hash are actually used in an OpenPGP
        object produced by the OpenPGP engine.  Remember that OpenPGP
        objects are opaque for the MIME composer.  

        The author believes that the micalg parameter should be optional
        and the spec of multipart/signed should be revised in the
        future.

    IMPLEMENTATION NOTE:

        A user may have two or more secret keys.  For instance, one is
        for an RSA secret key for PGP and the other is a ElGamal/DSS
        secret key for OpenPGP.  OpenPGP/MIME composers SHOULD create a
        detached signature of OpenPGP (excluding PGP) by default.
        OpenPGP/MIME composers MAY create a detached signature of PGP
        for backward compatibility.  OpenPGP/MIME composers SHOULD
        provide a user with a mechanism to select which secret key is
        used for signature calculation.

    There are two ways to support multiple signatures.  One is storing
    them in an OpenPGP object.  The other is storing a multipart/*
    object in the second part.  Such functionality is outside the scope
    of this memo.

    NOTE: 

        Multipart/Signed requires to convert a MIME object to 7bit
        before calculating a signature.  This is because, at the time of
        the standardization of security multipart, several message
        transfer agents(MTA) converts 8bit messages into 7bit in some
        cases during deliveries.

        Most MTAs are 8bit clean nowadays.  The 7bit restriction is too
        strong since there is strong demand for 8bit messages without
        any encoding, typically to transfer European charcter sets.

        Moreover, the 7bit restriction makes OpenPGP/MIME composers very
        complicated.  Consider this scenario.  There is a MIME message
        whose body contains an 8bit European character set.  A user want
        to attach it onto a new message and to signed it with
        OpenPGP/MIME.  If the 7bit restriction should be applied,
        OpenPGP/MIME composers must analyze the 8bit MIME message first,
        then convert the body (not the entire message) into 7bit with an
        appropriate MIME encoding.

        A worse senario it that, if a message is deeply recursed and one
        part is 8bit, OpenPGP/MIME composers must analyze the message
        and encode the 8bit MIME object.

        If 8bit is allowed, such complicated procedures can be omitted.
        Even if 8bit is allowed, "binary" MIME objects must be converted
        into 7bit when signed.  However, such binary objects are rare
        cases.

        The author believes that 8bit MIME objects should be allowed in
        multipart/signed.

7. The Encryption Service

    For the encryption service of OpenPGP/MIME, multipart/encrypted is
    used.  The protocol parameter is "application/pgp-encrypted".
    OpenPGP/MIME composers MUST generate the OpenPGP/MIME object defined
    as follows:

        Top level:
            Content-Type: multipart/encrypted
            Required parameters: boundary
            Required parameters: protocol=application/pgp-encrypted
                                 (case-insensitive)
            Optional parameters: none
            Content body is defined as follows:

        The first part:
            Content-Type: application/pgp-encrypted
            Required parameters: none
            Optional parameters: none
            Content body: "Version: 1"
            Note: existence of this part is for historical reason. 
                  The content body is meaningless while it seems to 
                  control versions.

        The second part:
            Content-Type: application/octet-stream
            Required parameters: none
            Optional parameters: none
            Content body: an OpenPGP object which encrypts an MIME object.

    A multipart/encrypted object of OpenPGP/MIME is created as follows:

    (1) The MIME composer prepares an object to be signed according to a
        local convention.

    (2) The MIME composer converts the object to a MIME object according
        to the MIME canonical form.  That is, a content header is
        created and the object becomes a content body.  The content body
        need not to be encoded with an MIME encoding.  The content body
        MAY be encoded with an appropriate MIME encoding(line delimiters
        are converted by the MIME encoding).

    (3) The MIME composer or the OpenPGP engine converts line delimiters
        of the MIME object (including those of the content header) to
        <CR><LF>.

    (4) The OpenPGP engine encryptes the MIME object and creates an
        OpenPGP object according to user IDs specified by the MIME
        composer.

    (5) The MIME composer creates a multipart/encrypted object.  The
        first part is the application/pgp-encrypted object defined
        above.  The second part is the OpenPGP object created in step
        (4) which is labeled as application/octet-stream.

    IMPLEMENATION NOTE:

        The OpenPGP engine selects public keys according to the
        specified user IDs.  For example, if there are two public keys
        for a user ID, the OpenPGP engine may encrypt a session key with
        both two keys.

8. Combined Services

    This section describes two typical combined services for
    OpenPGP/MIME.

8.1 Signed-then-Encrypted Service

    There are two methods for for the signed-then-encrypted service.

8.1.1 Signed-then-Encrypted Service with Security Multipart

    Signed-then-Encrypted service can be implemented combining with
    multipart/signed and multipart/encrypted.  OpenPGP/MIME composers
    MAY produce this format.  OpenPGP/MIME viewers MUST accept this
    format.

    OpenPGP/MIME composers first create a multipart/signed object
    according to the procedures defined in Section 6.  Then they creates
    a multipart/encrypted object according to the procedures defined in
    Section 7 from step (3) considering as if the multipart/signed
    object is created in step (1) and (2).

8.1.2 Signed-then-Encrypted Service with Atomic OpenPGP

    The OpenPGP engine itself can create an OpenPGP object which
    signs-then-encrypts input data.  OpenPGP/MIME composers MAY produce
    this format.  OpenPGP/MIME viewers MUST accept this format.

    OpenPGP/MIME composers create this format according to the
    procedures defined in Section 7.

8.2 Encrypted-then-Signed Service

    Encrypted-then-signed service can be implemented combining with
    multipart/encrypted and multipart/signed.  OpenPGP/MIME composers
    MAY produce this format.  OpenPGP/MIME viewers MUST accept this
    format.

    OpenPGP/MIME composers first create a multipart/encrypted object
    according to the procedures defined in Section 7.  Then they creates
    a multipart/signed object according to the procedures defined in
    Section 6 from step (3) considering as if the multipart/encrypted
    object is created in step (1) and (2).

9. The Decryption Service

    OpenPGP/MIME viewers MUST be able to decrypt the OpenPGP/MIME object
    defined in Section 7 and 8.  The decryption procedures are as
    follows:

    (1) The MIME viewer extract the first part and the second part from
        the multipart/encrypted object.  The first part, the
        application/pgp-encrypted object, is ignored.  The OpenPGP
        object stored in the second part is extracted by removing its
        content header and decoding according to the value of
        Content-Transfer encoding.

    (2) The OpenPGP engine extracts the MIME object by decrypting (and
        verifying, if necessary) the OpenPGP object.  Both the MIME
        object and a resulting report (on decryption and verification)
        are passed to the MIME viewer.

    (3) The MIME viewer or the PGP engine converts line delimiters of
        the MIME object into the local form.

    (4) The MIME viewer analyze the MIME object in the context of MIME.

    OpenPGP/MIME viewers MUST ignore the first part even if it doesn't
    conform to the format defined in Section 7.

    IMPLEMENTATION NOTE:

        OpenPGP/MIME viewers SHOULD inform the resulting report of step
        (2) to users.

10. The Verification Service

    OpenPGP/MIME viewers MUST be able to verify the OpenPGP/MIME object
    defined in Section 6 and 8.  The verification procedures are as
    follows:

    (1) The MIME viewer extract the first part and the second part of
        the multipart/encrypted object.  The first part is the signed
        MIME object.  The OpenPGP object stored in the second part is
        extracted by removing its content header and decoding according
        to the value of Content-Transfer encoding.

    (2) The signed MIME object is copied.  One MIME object will be
        passed to the OpenPGP engine while the other MIME object will be
        analyzed in the context of MIME later. 

    (3) The MIME viewer converts line delimiters of the former MIME
        object into <CR><LF>.

    (4) The OpenPGP engine verify the signature with the former MIME
        object and the OpenPGP object.  A resulting report (on
        verification) is passed to the MIME viewer.

    (5) The MIME viewer analyze the latter MIME object in the context of
        MIME.

    OpenPGP/MIME viewers MUST ignore objects in literal packets if exist
    and MUST accept the first part of the multipart/signed object as the
    signed MIME object.

    OpenPGP/MIME viewers MUST ignore the micalg parameter if exists.

    IMPLEMENTATION NOTE:

        The PGP/OpenPGP signature packet specified has "canonical text
        document" type and "binary document" type.  PGP/MIME and
        OpenPGP/MIME allows these two types for the signature service.

        On signature calculation, for canonical text document, line
        delimiters are converted into <CR><LF> by the OpenPGP engine,
        then a signature is calculated.  For binary document, a
        signature is calculated over the original input.

        On verification, for canonical text document, the line
        delimiters are first converted into <CR><LF> by the OpenPGP
        engine, then verified.  For binary documnt, verification is
        carried out over the original input.

        Suppose that an OpenPGP/MIME composer itself converts line
        delimiters of a MIME object into <CR><LF> then calls the OpenPGP
        engine telling that this object is binary document, the
        signature type will be binary document.  Please note that this
        signature is valid in the context of OpenPGP/MIME and signature
        verification should success.  If another OpenPGP/MIME viewer on a
        system whose line delimiter is <LF> calls the OpenPGP engine
        without line delimiter conversion, the verification fails
        because the OpenPGP engine never converts line delimiters of
        binary document.

        So, to verify signatures, the MIME viewer MUST convert line
        delimiters of the first part to <CR><LF> by itself.

    IMPLEMENTATION NOTE:

        OpenPGP/MIME viewers SHOULD inform the resulting report of step
        (2) to users.

11. Distribution of PGP Transferable Public Keys

    To distribute PGP public keys in the context of MIME, the following
    content type is defined:

        Content-Type: application/pgp-keys
        Required parameters: none
        Optional parameters: none

    OpenPGP/MIME composers MUST embed PGP public keys in this MIME
    object.  For a filename contained in Content-Disposition:, the
    ".asc" suffix SHOULD be used when encoded with ASCII Armor.

# How about raw binary data?

    OpenPGP/MIME viewers MUST accept this format.  OpenPGP/MIME viewers
    MUST NOT automatically add the PGP public keys in this MIME object
    to a public keyring for security reasons.  OpenPGP/MIME viewers
    SHOULD interact with a user to decide how to treat the PGP public
    keys.

12. Historical Note

    Many ideas were proposed to integrate MIME and PGP in the past.

    The first trial was the applicaton/pgp content type.  An
    applicaton/pgp MIME object embeds a PGP object, which is signs or
    encrypts or signs-then-encrypts a MIME object.  This approach is
    against the design goal (2).  That is, it is difficult to extract
    the inside MIME object from the PGP object even if it is a clear
    text signature.

    Multipart/signed achieves the design goal (2).  If a MIME-aware
    viewer doesn't know multipart/signed, it is treated as
    multipart/mixed.  So, the MIME object in the first part is easily
    extracted.

    [OldPGPMIME] adopts multipart/encrypted for encrypted PGP objects to
    align to the standard way, security multipart.  Since PGP or OpenPGP
    doesn't have functionality to separate encrypted data and its
    control keys, the first part of multipart/encrypted defined in this
    memo is mostly empty.  

    If all security mechanisms adopt multipart/encrypted for encryption
    services, MIME viewers can abstract reporting routines (that tell
    users MIME objects were encrypted).  However, S/MIME[SMIME] doesn't
    adopt multipart/encrypted but does adopt the applicaton/* approach
    for the encryption service.  Thus, this merit is being lost.  The
    reason why this memo uses multipart/encrypted is just for backward
    compatibility.

    Another approach proposed time to time is the text/pgp, which embeds
    a cleartext signature PGP object, for MIME-unaware but PGP-aware
    viewers.  This approach is against the design goal (2) and (3).
    Note that since lines started with "-" are escaped in a cleartext
    signature, it is hard for MIME-aware viwers to extract the original
    object.

13. Examples

    This section contains examples of OpenPGP/MIME objects.

    (1) The following is a simple OpenPGP/MIME object for the signature
        service.

        Content-Type: Multipart/Signed; boundary="simple"
                protocol="application/pgp-signature";

        --simple
        Content-Type: Text/Plain; charset=us-ascii
        Content-Transfer-Encoding: 7bit

        This is a text object to be signed with OpenPGP/MIME.

        --simple
        Content-Type: Application/Pgp-Signature
        Content-Transfer-Encoding: 7bit

        -----BEGIN PGP SIGNATURE-----
        Version: PGPfreeware 5.0i for non-commercial use
        MessageID: M13gFu827jrvjz0U5rM0iWLMfKpt2PzB

        iQA/AwUANmJ8V6eXeOJHtjA3EQKOugCfUKYA9iw3KssVncR3hW2oSKKGFDAAn27d
        m8dNeZ0d4UO9MLuCITa0sAS1
        =czIa
        -----END PGP SIGNATURE-----

        --simple--

    (2) The following is a simple OpenPGP/MIME object for the encryption
        service.


        Content-Type: Multipart/Encrypted; boundary="simple"
                protocol="application/pgp-encrypted";

        --simple
        Content-Type: Application/Pgp-Encrypted
        Content-Transfer-Encoding: 7bit

        Version: 1

        --simple
        Content-Type: Application/Octet-Stream
        Content-Transfer-Encoding: 7bit

        -----BEGIN PGP MESSAGE-----
        Version: PGPfreeware 5.0i for non-commercial use
        MessageID: vdnh0wRmUsog31/QvX620a0hlwLtD+m5

        hQCMAw9kihyeT3RNAQP/fLxae4lOuvZxWoZN62cm/3/9K2BSg0OphyqSQu6WVV7u
        IPgbvaRqPz7ejJITXEtr+GVR01OEAOENxYTKU/s+vv//XQ1AOljWCuXBJRU0K/L0
        Qm9kCw6vprAF8Mwm0QjquOx7PRd/GhqjK5PVBBuXPfFFqlE5ARtQ+27qPYLck7WF
        AQ4DYDI64N0KZe0QBACjjBbDgTtYKVPW2J53DxnmwnNTH4t7GuDQ14jfzCYNOeFa
        2rpxdd54NgtB932Kh0lyAY7JCAJG2oaKedT7w6owAkdX6bUw4T9RkkWCytsKLPcM
        S35OoiLajnS9LXvY7EEEIrmXB2D5AFdPsBLOg9nOJy9giB98hk/OiSYvVqPzigP/
        RLmgCjQwlqCGuxAmp9mpqI76mMXfpR5ZN7zXd0hjI2nh9Vnu9/DSUTrzn6mNV/Gt
        xN7Afl6YIW/16FbwHozwve2vyJyCRT5XHvFe294eBkJvcdCIIOsW/IMT99NvK3rQ
        CK7cwxe1nml33e/QMTh9F3mRibk9fQBQDgS4XOXob5Ckg8JfJbFEA3w5HmwUWfPl
        sG0iXQJB6/pSCtV8m1ZBEgJSPSvcwWfR0MCgZr7uyvaxTDgIKE7fcX3a/DzGuYwc
        XEWAudEYYjGSWDL21iLMj1g7FehsfDqZZBAMpOr+l/iSxjOypeDhZKYzf/qKK73r
        HmgY23tNmMJndoiePbHf7a4KNcUD
        =SXzQ
        -----END PGP MESSAGE-----

        --simple

14. Security Consideration

    This memo brings a security mechanism to protect MIME objects.  The
    security level of OpenPGP/MIME is believed the same as that of
    OpenPGP.

References

    [KEYWORDS] S. Bradner, "Key words for use in RFCs to Indicate
        Requirement Levels", RFC 2119, March 1997.

    [MIME] The primary definition of MIME. "MIME Part 1: Format of
        Internet Message Bodies", RFC 2045; "MIME Part 2: Media Types",
        RFC 2046; "MIME Part 3: Message Header Extensions for Non-ASCII
        Text", RFC 2047; "MIME Part 4: Registration Procedures", RFC
        2048; "MIME Part 5: Conformance Criteria and Examples", RFC 2049;
        November 1996.

    [OldPGP] D. Atkins, W. Stallings, and P. Zimmerman, "PGP Message
        Exchange Formats", RFC 1991, August 1996.

    [OldPGPMIME] M. Elkins, "MIME Security with Pretty Good Privacy
        (PGP)", RFC2015, October 1996.

    [OpenPGP] J. Callas, L. Donnerhacke, H. Finney, and R. Thayer,
        "OpenPGP Message Format", RFC2440, November 1998.

    [PGP] P. Zimmermann, "The Official PGP User's Guide", MIT Press,
        1995.

    [SECMULTI] J. Galvin, S. Murphy, S. Crocker, and N. Freed, "Security
        Multiparts for MIME: Multipart/Signed and Multipart/Encrypted",
        RFC1847, October 1995.

    [SMIME] S. Dusse, P. Hoffman, B.  Ramsdell, L. Lundblade, and
        L. Repka, "S/MIME Version 2 Message Specification", RFC 2311,
        March 1998.

Acknowledgement

    To be written.

Authors' Addresses

    Kazuhiko YAMAMOTO
    Research Laboratory, Internet Initiative Japan Inc.
    Takebashi Yasuda Bldg., 3-13 Kanda Nishiki-cho Chiyoda-ku, Tokyo
    101-0054 JAPAN

    Phone: +81-3-5259-6350
    FAX:   +81-3-5259-6351
    EMail: kazu@iijlab.net

Open Problems

    RFC 1847:
        - Should make the micalg parameter optional?
        - Should allow 8bit objects for the signature service?
        - Clearly say that the protocol parameter is case-insensitive.

    Misc:
        - Should define error handlings when parameter mismatch
          (e.g. the protocol parameter vs. the first/second part)
        - Multiple signatures.

Changes from RFC 2015

    To be written.

----Next_Part(Tue_Dec__1_09:50:54_1998_809)----


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id MAA18889 for ietf-open-pgp-bks; Mon, 30 Nov 1998 12:21:25 -0800 (PST)
Received: from fusebox.pgp.com ([161.69.1.11]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA18885 for <ietf-open-pgp@imc.org>; Mon, 30 Nov 1998 12:21:24 -0800 (PST)
Received: from foobar (dhcp-47-64.dhcp.nai.com [161.69.47.64]) by fusebox.pgp.com (8.8.7/8.8.7) with SMTP id MAA19720; Mon, 30 Nov 1998 12:25:06 -0800 (PST)
Message-Id: <3.0.3.32.19981130122004.00bd4560@mail.pgp.com>
X-Sender: jon@mail.pgp.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32)
Date: Mon, 30 Nov 1998 12:20:04 -0800
To: Andrea Halter <awhalter@stud.ee.ethz.ch>, ietf-open-pgp@imc.org
From: Jon Callas <jon@pgp.com>
Subject: Re: Semantics of having multiple encrypted data packets
Cc: Marcel Waldvogel <mwa@tik.ee.ethz.ch>
In-Reply-To: <365D624E.1896@stud.ee.ethz.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

At 03:14 PM 11/26/98 +0100, Andrea Halter wrote:
   To provide for random read/write semantics, we would like to chain
   multiple Symmetrically Encrypted Data Packets, each of constant length.
   In RFC 2440, this is not listed as one of the message formats.
   
   Therefore, we suppose that our approach is not standards compliant. But
   does any of you see a better way to support random access without
   re-encrypting the whole message each time? Will other implementations be
   able to understand this? Could we even tweak the standard into this
   direction (ignoring that we're a few weeks late)?
   
Actually, your implementation could easily be 2440-compliant.

I agree 100% with what Lutz said, and I'll expand a little here.

It's permissable in an implementation of an IETF standard to go beyond what
the specification requires. This is how people "add value."

Suppose you make a 2440 implementation, and it handles a message with
multiple encrypted data packets. It's compliant. A 2440-compliant message
will decode correctly. What you've done is merely follow the first half of
the old dictum of "be generous in what you accept and stingy in what you
generate." I

The place to be careful in your implementation is the secont hald of that
dictum -- if you create an enhanced message, a strict 2440 application may
not decode it. It may stop after the first ED packet. (Or it might decode
it -- the other implementer may have quietly handled N ED packets
correctly, too.)

If what you're building is an application that internally makes objects
that are made up of multiple ED packets, and you know that your objects
won't be sent out into the wild like that, no one could possibly complain.

If you *are* sending them out in the wild, there are at least two things
you can do:

(1) have an "export" format that adds ESK packets as headers to each ED
packet. This increases the size, but makes sure a 2440-strict
implementation will decode the chunks. Of course, though, there's a
re-assembly problem, but I'll handwave that.

(2) Only send your "extended" messages to people you know will understand
them. A simple way to do this is to use a notation in the recipient's
self-sig as a way for that person to say they understand your bundled
messages. There may be other ways, and implicit ways for you to know that.

There are also other solutions, like decrypting the entire object and
re-encrypting it into a single ED packet for export. I'll also note that
all of these have security considerations and wave my hand.

The upshot is that there is nothing in the standard that says you can't go
off on a limb and make an application that understands 2440 and does a
whole lot more. Just don't get huffy if no one else does your enhancements
-- or does them in a slightly different way.

	Jon



-----
Jon Callas                                  jon@pgp.com
CTO, Total Network Security                 3965 Freedom Circle
Network Associates, Inc.                    Santa Clara, CA 95054
(408) 346-5860                              
Fingerprints: D1EC 3C51 FCB1 67F8 4345 4A04 7DF9 C2E6 F129 27A9 (DSS)
              665B 797F 37D1 C240 53AC 6D87 3A60 4628           (RSA)


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id LAA18638 for ietf-open-pgp-bks; Mon, 30 Nov 1998 11:54:12 -0800 (PST)
Received: from mage.qualcomm.com (mage.qualcomm.com [129.46.174.16]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA18634 for <ietf-open-pgp@imc.org>; Mon, 30 Nov 1998 11:54:01 -0800 (PST)
Received: from [129.46.172.254] (jnoerenberg-mac.qualcomm.com [129.46.172.254]) by mage.qualcomm.com (8.8.5/1.4/8.7.2/1.14) with ESMTP id LAA22200; Mon, 30 Nov 1998 11:58:05 -0800 (PST)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Sender: jwn2@mage.qualcomm.com
Message-Id: <v0410350db288a0b257d6@[129.46.172.254]>
X-Mailer: Eudora [Macintosh version 4.1b53-1.99]
X-PGP-RSA-Fingerprint: EA53 01A6 C076 F9C2  09E8 9480 645A 8857
X-PGP-DH-Fingerprint: 4F5E 56C9 BD4D 0227 331F 6AEE 9590 24F9 6FD7 04F8
Date: Mon, 30 Nov 1998 11:47:13 -0800
To: OpenPGP mailing list <ietf-open-pgp@imc.org>
From: "John  W. Noerenberg" <jwn2@qualcomm.com>
Subject: OpenPGP agenda for Dec 7
Cc: Peter Gietz <peter.gietz@dante.org.uk>, Marc Horowitz <marc@mit.edu>, Lutz Donnerhacke <lutz@iks-jena.de>, Jon Callas <jon@pgp.com>, Marc Dyksterhouse <marcd@pgp.com>, PGP-Directory mailing list <pgp-directory@dante.net>, "jwn2@qualcomm.com,Jon Callas" <jwn2@qualcomm.com>
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

>
> Anyway, we are a couple of guys who once more would like to have a stab at
> a public definition on how PGP keys should be stored in a LDAP directory.
> I wrote a I-D a couple of years ago but we where not able then to agree on a
> standard that would allow you to store several PGP keys for one object.

LDAP & PGP
Recently I learned about discussion concerning how to store PGP keys 
in LDAP directories.  This would be out of scope for our current WG 
charter.  I plan to put a discussion of whether to expand our charter 
to include this on the agenda for the meeting next Monday.

PGP/MIME
The other work item for our charter, PGP/MIME hasn't gotten much 
attention.  Kazu Yamamoto keeps reminding me about this.  I've 
finally succumbed and invited him to write a new draft for PGP/MIME. 
It is too late for it to appear in the I-D directory, however, I've 
suggested Kazu send it to the mailing list in advance of the meeting, 
so you have a chance to see it.  We'll get it -- and future revisions 
-- posted as proper I-Ds, so we won't have to annoy you with large 
messages, and so we insure we're properly documenting our work.

RFC2440
A few nits have been noted in the Proposed Standard (I do like saying 
that).  Since there hasn't been a great deal of discussion about 
them, this will be on the agenda.  Also, I want to outline the steps 
for getting to Draft Standard.

This is  what I have currently.  Unless anyone offers any other 
topics, we probably will not fill the two hours -- which will allow 
more terminal room time for those inclined (or other entertainments). 
If there is anything else you'd like to talk about, now would be a 
real good time to tell me about them.

john noerenberg
jwn2@qualcomm.com
  ----------------------------------------------------------------------
  no matter what a waste one has made of one's life, it is ever
  possible to find some path to redemption
  -- Charles Frazier, "Cold Mountain", Vintage Books, 1997
  ----------------------------------------------------------------------


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA16817 for ietf-open-pgp-bks; Mon, 30 Nov 1998 08:01:35 -0800 (PST)
Received: from mgo.iij.ad.jp (root@mgo.iij.ad.jp [202.232.15.6]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA16813 for <ietf-open-pgp@imc.org>; Mon, 30 Nov 1998 08:01:34 -0800 (PST)
Received: from ns.iij.ad.jp (root@ns.iij.ad.jp [192.168.2.8]) by mgo.iij.ad.jp (8.8.8/MGO1.0) with ESMTP id BAA21388 for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 01:06:16 +0900 (JST)
Received: from fs.iij.ad.jp (root@fs.iij.ad.jp [192.168.2.9]) by ns.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id BAA07682 for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 01:06:16 +0900 (JST)
Received: from localhost (mine.iij.ad.jp [192.168.4.209]) by fs.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id BAA26881 for <ietf-open-pgp@imc.org>; Tue, 1 Dec 1998 01:06:15 +0900 (JST)
To: ietf-open-pgp@imc.org
Subject: typo in RFC2440
From: Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) <kazu@iijlab.net>
X-Mailer: Mew version 1.94b2 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <19981201010609E.kazu@iijlab.net>
Date: Tue, 01 Dec 1998 01:06:09 +0900
X-Dispatcher: imput version 981124(IM104)
Lines: 7
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

I'm sorry for this late reporting. I should have found this typo when
RFC 2440 was Internet-Drafts.

The MIME specification is referred as RFC 2231 in RFC 2440, but the
right number is 2045.

--Kazu


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id SAA12313 for ietf-open-pgp-bks; Fri, 27 Nov 1998 18:25:24 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA12309 for <ietf-open-pgp@imc.org>; Fri, 27 Nov 1998 18:25:22 -0800 (PST)
Received: from cs26.cs.auckland.ac.nz (pgut001@cs26.cs.auckland.ac.nz [130.216.36.9]) by mail.student.auckland.ac.nz (8.8.6/8.8.6/cs-master) with SMTP id PAA25270; Sat, 28 Nov 1998 15:29:50 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <91222019014234>; Sat, 28 Nov 1998 15:29:50 (NZDT)
From: pgut001@cs.auckland.ac.nz (Peter Gutmann)
To: aba@dcs.ex.ac.uk, cypherpunks@cyberpass.net
Subject: Re: open-pgp / s/mime interoperability
Cc: ietf-open-pgp@imc.org
Reply-To: pgut001@cs.auckland.ac.nz
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Sat, 28 Nov 1998 15:29:50 (NZDT)
Message-ID: <91222019014234@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

>: there is no reason why you can't have PGP
>: messages backed by X.509 certificates, and it is trivial to use S/MIME
>: with OpenPGP certificates.  I'm planning on writing a short
>: informational RFC on how to do it once we all get RFC numbers for our
>: respective systems.

>open-pgp public keys aren't based on X.509 keys, so I would've thought
>s/mime implementation would barf on them.  

Actually S/MIME *could* support the use of PGP keys, but there's a field
(the SubjectKeyIdentifier) missing from the CMS SignerInfo which prevents
this.  This is rather inconsistent, because the same field is present in
the RecipientInfo.  I'm currently arguing in favour of adding it to 
SignerInfo on the basis that any argument against it would also apply to
RecipientInfo.  Not sure whether it'll work though - a couple of list
members seem convinced that exactly the same thing which is currently in
RecipientInfo won't work if used in SignerInfo.

Peter.




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA24644 for ietf-open-pgp-bks; Thu, 26 Nov 1998 06:50:45 -0800 (PST)
Received: from grannus.iks-jena.de (news@grannus.iks-jena.de [194.221.90.36]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA24638 for <ietf-open-pgp@imc.org>; Thu, 26 Nov 1998 06:50:43 -0800 (PST)
Received: (from news@localhost) by grannus.iks-jena.de (8.9.1/8.9.1) id PAA32515 for ietf-open-pgp@imc.org; Thu, 26 Nov 1998 15:55:15 +0100
To: ietf-open-pgp@imc.org
Path: lutz
From: lutz@taranis.iks-jena.de (Lutz Donnerhacke)
Newsgroups: iks.lists.ietf-open-pgp
Subject: Re: Semantics of having multiple encrypted data packets
Date: 26 Nov 1998 14:55:15 GMT
Organization: IKS GmbH Jena
Lines: 14
Message-ID: <slrn75qque.6jf.lutz@taranis.iks-jena.de>
References: <365D624E.1896@stud.ee.ethz.ch>
NNTP-Posting-Host: taranis.iks-jena.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: slrn (0.9.5.2 UNIX)
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

* Andrea Halter wrote:
>To provide for random read/write semantics, we would like to chain
>multiple Symmetrically Encrypted Data Packets, each of constant length.
>In RFC 2440, this is not listed as one of the message formats.
>
>Therefore, we suppose that our approach is not standards compliant. But
>does any of you see a better way to support random access without
>re-encrypting the whole message each time? Will other implementations be
>able to understand this? Could we even tweak the standard into this
>direction (ignoring that we're a few weeks late)?

IMHO the standard does not forbit such a concatination but it's not
enshured, that every application will understand this. PGP2.6.3 is known to
stop after decrypting the first message.


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA24017 for ietf-open-pgp-bks; Thu, 26 Nov 1998 06:10:11 -0800 (PST)
Received: from stud.ee.ethz.ch (tardis-delek-fast.ee.ethz.ch [129.132.2.199]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA24013 for <ietf-open-pgp@imc.org>; Thu, 26 Nov 1998 06:10:09 -0800 (PST)
Received: from tardis-a5 (awhalter@tardis-a5.ee.ethz.ch [129.132.3.15]) by stud.ee.ethz.ch (8.8.4/8.8.8) with SMTP id PAA00975; Thu, 26 Nov 1998 15:14:40 +0100 (MET)
Message-ID: <365D624E.1896@stud.ee.ethz.ch>
Date: Thu, 26 Nov 1998 15:14:38 +0100
From: Andrea Halter <awhalter@stud.ee.ethz.ch>
Organization: Kuesnachter Schwimm-Verein
X-Mailer: Mozilla 3.04 (X11; I; SunOS 5.5.1 sun4u)
MIME-Version: 1.0
To: ietf-open-pgp@imc.org
CC: Marcel Waldvogel <mwa@tik.ee.ethz.ch>
Subject: Semantics of having multiple encrypted data packets
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

To provide for random read/write semantics, we would like to chain
multiple Symmetrically Encrypted Data Packets, each of constant length.
In RFC 2440, this is not listed as one of the message formats.

Therefore, we suppose that our approach is not standards compliant. But
does any of you see a better way to support random access without
re-encrypting the whole message each time? Will other implementations be
able to understand this? Could we even tweak the standard into this
direction (ignoring that we're a few weeks late)?

cu
Andi, Marcel


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id XAA23633 for ietf-open-pgp-bks; Tue, 24 Nov 1998 23:47:02 -0800 (PST)
Received: from thoth.mch.sni.de (thoth.mch.sni.de [192.35.17.2]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id XAA23619 for <ietf-open-pgp@imc.org>; Tue, 24 Nov 1998 23:46:57 -0800 (PST)
X-Envelope-Sender-Is: Frank.Brueckner@mch.sni.de (at relayer thoth.mch.sni.de)
Received: from horus.mch.sni.de (horus.mch.sni.de [139.25.208.11]) by thoth.mch.sni.de (8.9.1a/8.9.1) with ESMTP id IAA23302; Wed, 25 Nov 1998 08:45:29 +0100 (MET)
Received: from mch.sni.de (maus2.mch.sni.de [192.103.27.32]) by horus.mch.sni.de (8.9.1a/8.9.1) with ESMTP id IAA01692; Wed, 25 Nov 1998 08:45:27 +0100 (MET)
Message-ID: <365BB786.4C2E2448@mch.sni.de>
Date: Wed, 25 Nov 1998 08:53:42 +0100
From: Frank Brueckner <Frank.Brueckner@mch.sni.de>
Organization: SNI
X-Mailer: Mozilla 4.03 [en] (WinNT; I)
MIME-Version: 1.0
To: cypherpunks@cyberpass.net
CC: pgp-directory@dante.net, ietf-open-pgp@imc.org
Subject: Re: OpenPGP / S/MIME Interoperability
References: <199811242259.WAA04469@server.eternity.org>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

Adam Back reported that Jon Callas wrote: 
 
> [...] there is no reason why you can't have PGP 
> messages backed by X.509 certificates, and it is trivial to use S/MIME 
> with OpenPGP certificates.  I'm planning on writing a short 
> informational RFC on how to do it once we all get RFC numbers for our 
> respective systems. 
 
It wouldn't be bad to include this activity in the discussion hosted by 
<pgp-directory@dante.net>. 
 
Am I right ? 
 
 
Regards 
 
  Frank Brückner 
  Siemens Information and Communication Networks 
  Directory Team     http://www.siemensmeta.com/


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id PAA09165 for ietf-open-pgp-bks; Tue, 24 Nov 1998 15:29:15 -0800 (PST)
Received: from mail2.svr.pol.co.uk (mail2.svr.pol.co.uk [195.92.193.210]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id PAA09161 for <ietf-open-pgp@imc.org>; Tue, 24 Nov 1998 15:29:13 -0800 (PST)
Received: from modem-98.molybdenum.dialup.pol.co.uk ([62.136.20.226] helo=server.eternity.org) by mail2.svr.pol.co.uk with esmtp (Exim 2.05iplimit-2 #5) id 0ziRZ5-0007Hq-00; Tue, 24 Nov 1998 23:08:12 +0000
Received: (from aba@localhost) by server.eternity.org (8.8.3/8.6.12) id WAA04469; Tue, 24 Nov 1998 22:59:30 GMT
Date: Tue, 24 Nov 1998 22:59:30 GMT
Message-Id: <199811242259.WAA04469@server.eternity.org>
From: Adam Back <aba@dcs.ex.ac.uk>
To: cypherpunks@cyberpass.net
Cc: ietf-open-pgp@imc.org
Subject: open-pgp / s/mime interoperability
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

On the IETF s/mime list Jon Callas (PGP/NAI employee and co-author of
IETF open-pgp draft for cypherpunks not following open-pgp) wrote:

: I'd like to note that PGP is supported by NAI, Microsoft, Novell,
: and more that are coming soon.

curious as to what form Microsoft support of PGP will come in.
Integrated PGP support with microsoft mail clients in later versions?

Jon also wrote:

: there is no reason why you can't have PGP
: messages backed by X.509 certificates, and it is trivial to use S/MIME
: with OpenPGP certificates.  I'm planning on writing a short
: informational RFC on how to do it once we all get RFC numbers for our
: respective systems.

open-pgp public keys aren't based on X.509 keys, so I would've thought
s/mime implementation would barf on them.  Are you basing this on the
fact that you can extract the actual public key and repackage it as an
X.509 public key?  In this way you could take the same key into the
X.509 / s/mime world, but you would lose open-pgp sigantures on the
key, so it would lose it's certification.

More recently we've been hearing that PGP6.x? or a future version of
PGP does or will allow one to carry along X.509 keys, or perhaps even
work directly with X.509 keys.  Is this what you are referring to?

(Separate question: any due date on the netscape plugin -- I want one
of those!)

Adam

(message from IETF s/mime list the above is quoted from below).

------- Start of forwarded message -------
Date: Mon, 09 Nov 1998 17:54:29 -0800
To: Stefan_Salzmann/HAM/Lotus@lotus.com, ietf-smime@imc.org
From: Jon Callas <jon@pgp.com>
Subject: Re: Difference between SMIME and PGP

At 05:20 PM 11/4/98 +0100, Stefan_Salzmann/HAM/Lotus@lotus.com wrote:
   
   I am struggling on the difference between SMIME and PGP. One of my
customers
   wants to make the decision between using SMIME and PGP. I have been talking
   already with them but we got stuck in detailes.
   
   Basically its quit clear. SMIME will be supported by all important industry
   leaders such as Netscape, Microsoft, Novell etc. 

I'd like to note that PGP is supported by NAI, Microsoft, Novell, and more
that are coming soon.

   Further SMIME supports the
   hierarchical trust model and PGP only supports the "web of trust" model. 

Actually, this is false. PGP supports all trust models, direct trust,
hierarchical trust, and web of trust. As I said in my previous message, PGP
supports 255 levels of hierarchy.

However, I forgot to say that OpenPGP does not mandate *any* trust model.
As a matter of fact, the OpenPGP working group has rejected any mandate of
trust model. You are permitted to use an OpenPGP certificate with PKIX
evaluation rules, and still be OpenPGP compliant!

   Now
   with PGP Version 6.0, PGP will support also X.509 certificates. Those
can also
   be loaded into an PGP client than an SMIME Client can do it.
   So where is the difference now? Is it just the fact that the industry
decided to
   go with SMIME or are there more differences (advantages for SMIME) when
looking
   more closely.

Actually, the industry hasn't decided to go with anything. Furthermore,
there is no reason why you can't have PGP messages backed by X.509
certificates, and it is trivial to use S/MIME with OpenPGP certificates.
I'm planning on writing a short informational RFC on how to do it once we
all get RFC numbers for our respective systems.

   For instance using RSA public key encryption versus Deffie Helman public
key
   encryption. How about Digital Signature Standard (DSS)? I have red about
DSS and
   understand that DSS is the standard that provides the Digital Signature
   Algorithm. Before applying it there has to be calculated an Digest using
SHA. I
   always thought that calculating the digest would be the signature
already!! So
   why using the DSA in addition? Will the digest be decrypted using the
Deffie
   Helman private key? 

The issue of algorithm is orthogonal to message encoding. The PGP-S/MIME
question is really one of message encoding format. Each requires DSS, and
allows RSA.

The DSS (Digital Signature Standard) describes how to make a signature
using DSA (Digital Signature Algorithm) and SHA1 (Secure Hash Algorithm).
That's how they relate. You could (for example) use DSA with RIPEMD-160,
but it wouldn't be DSS because DSS specifies the hash algorithm you should
be using for the signature.

DSA is a signature-only algorithm. Consequently, you aren't doing a
"decryption" with it when you evaluate a signature. I recommend you look in
a crypto source book, like Schneier's "Applied Cryptography" or Menezes,
van Oorschot, and Vanstone's "Handbook of Applied Cryptography" for details
of how DSS is done. There is also source code available from a wide variety
of places.

   Users that apply Deffie Helman exchange their public values
   in order to derive an secret key that will be known at both party sides.
Is that
   secret key the private key used to encrypt message digests or is the
private key
   generated by the DSA algorithm?

Like I said, DSS has its own signature-only key. As for "Diffie-Hellman"
depending on the variant of DH you're using, you may or may not have an
actual key. Many real-time systems use ephemeral DH merely to exchange
symmetric keys. In OpenPGP, we use the Elgamal system for encryption.
S/MIME is using an X9.42 algorithm that is very close (if not identical) to
Elgamal.

   In PGP further exist key rings that contain the public keys of other
users? How
   does that work with X.509 Certificates that actually contain the public
key. If
   there has to be a public key revoked, it happens in the key ring. Would
it be
   possible to export that revoked certificate. If not the revoked public
key would
   resist only lokally.

Most systems, be they PGP or X.509, use something akin to a directory to
store certs, revocations, etc. Typically, these are HTTP or LDAP based
systems.

   Are there any differences/advantages between RSA and Deffie Helman?

Again, this is orthoganal to encoding, as these are merely algorithms. But
yes, of course. The security of RSA is based upon the difficulty of
factoring large numbers. Most people who toss around the term
"Diffie-Hellman" use it to cover an entire family of algorithms whose
security is all based on the difficulty of solving discrete logs. These
include DSA, X9.42, Schnorr, and Elgamal. They are all approximately of the
same strength.

There are also a wide variety of advantages and disadvantages. Frequently,
these are the same. For example, in RSA encryption and signatures are the
same, which is simple, but leads to some hygenic problems. A signature-only
system like DSA is less flexible, but easier to export, and enforces good
key hygene (meaning that it is bad practice to use the same key for
signatures as for encryption). I could go on with a discussion of all this,
but this thread is already off-topic for this mailing list. Feel free to
mail me privately or phone.
   
   You see I am very confused right now and I have the feeling that all my
security
   theories woun´t match with those used in PGP.

There are many good reasons for being confused. One of the most important
ones is that there really aren't a lot of differences between the systems.
They are all trying to solve the same problem, but each has a slightly
different slant to it.
   
   I really would appreciate it if there would be someone helping my to
remove all
   that dust of my mind...
   
   Thank you in advance

You're welcome.

	Jon   

-----
Jon Callas                                  jon@pgp.com
CTO, Total Network Security                 3965 Freedom Circle
Network Associates, Inc.                    Santa Clara, CA 95054
(408) 346-5860                              
Fingerprints: D1EC 3C51 FCB1 67F8 4345 4A04 7DF9 C2E6 F129 27A9 (DSS)
              665B 797F 37D1 C240 53AC 6D87 3A60 4628           (RSA)


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA02338 for ietf-open-pgp-bks; Tue, 17 Nov 1998 10:42:31 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA02334 for <ietf-open-pgp@imc.org>; Tue, 17 Nov 1998 10:42:30 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.8.5/8.8.7a) with ESMTP id NAA13716; Tue, 17 Nov 1998 13:45:46 -0500 (EST)
Message-Id: <199811171845.NAA13716@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
From: Internet-Drafts@ietf.org
cc: ietf-pgpticket@vmeng.com, ietf-open-pgp@imc.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-moscaritolo-mione-pgpticket-01.txt (resend)
Date: Tue, 17 Nov 1998 13:45:45 -0500
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.

	Title		: PGPticket
	Author(s)	: V. Moscaritolo, A. Mione
	Filename	: draft-moscaritolo-mione-pgpticket-01.txt
	Pages		: 19
	Date		: 16-Nov-98
	
   OpenPGP specifies message formats and certificate formats used for
   exchange of encrypted and/or authenticated objects. This document
   discusses methods of extending OpenPGP's message formats to support
   an authorization system. This system would use public key
   cryptography to authenticate a user to a server and establish the
   user's access permissions. The concept is that the user acquires a
   ticket signed by some issuer that specifies what they are entitled to
   do. That ticket is then submitted to a server. The server uses a
   challenge/response method to verify that the holder really has the
   matching private key. The server then allows the access specified.

Internet-Drafts are available by anonymous FTP.  Login with the username
"anonymous" and a password of your e-mail address.  After logging in,
type "cd internet-drafts" and then
	"get draft-moscaritolo-mione-pgpticket-01.txt".
A URL for the Internet-Draft is:
ftp://ftp.ietf.org/internet-drafts/draft-moscaritolo-mione-pgpticket-01.txt

Internet-Drafts directories are located at:

	Africa:	ftp.is.co.za
	
	Europe: ftp.nordu.net
		ftp.nic.it
			
	Pacific Rim: munnari.oz.au
	
	US East Coast: ftp.ietf.org
	
	US West Coast: ftp.isi.edu

Internet-Drafts are also available by mail.

Send a message to:	mailserv@ietf.org.  In the body type:
	"FILE /internet-drafts/draft-moscaritolo-mione-pgpticket-01.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<19981116164302.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-moscaritolo-mione-pgpticket-01.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-moscaritolo-mione-pgpticket-01.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<19981116164302.I-D@ietf.org>

--OtherAccess--

--NextPart--





Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id OAA29582 for ietf-open-pgp-bks; Wed, 11 Nov 1998 14:58:11 -0800 (PST)
Received: from mage.qualcomm.com (mage.qualcomm.com [129.46.174.16]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA29578 for <ietf-open-pgp@imc.org>; Wed, 11 Nov 1998 14:58:10 -0800 (PST)
Received: from [129.46.172.254] (jnoerenberg-mac.qualcomm.com [129.46.172.254]) by mage.qualcomm.com (8.8.5/1.4/8.7.2/1.14) with ESMTP id PAA03243 for <ietf-open-pgp@imc.org>; Wed, 11 Nov 1998 15:01:00 -0800 (PST)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Sender: jwn2@mage.qualcomm.com
Message-Id: <v04102e10b26fc5bc1b03@[129.46.172.254]>
X-Mailer: Eudora [Macintosh version 4.1b46-1.99]
X-PGP-RSA-Fingerprint: EA53 01A6 C076 F9C2  09E8 9480 645A 8857
X-PGP-DH-Fingerprint: 4F5E 56C9 BD4D 0227 331F 6AEE 9590 24F9 6FD7 04F8
Date: Wed, 11 Nov 1998 14:54:05 -0800
To: OpenPGP mailing list <ietf-open-pgp@imc.org>
From: "John  W. Noerenberg" <jwn2@qualcomm.com>
Subject: Fwd: RFC 2440 on OpenPGP Message Format
Sender: owner-ietf-open-pgp@imc.org
Precedence: bulk

> To: IETF-Announce: ;
> Subject: RFC 2440 on OpenPGP Message Format
> Mime-Version: 1.0
> Date: Wed, 11 Nov 1998 14:06:14 -0800
> From: RFC Editor <rfc-ed@isi.edu>
>
> A new Request for Comments is now available in online RFC libraries.
>
>
>         RFC 2440:

In case you missed it. <GRIN>

john noerenberg
jwn2@qualcomm.com
  ----------------------------------------------------------------------
  no matter what a waste one has made of one's life, it is ever
  possible to find some path to redemption
  -- Charles Frazier, "Cold Mountain", Vintage Books, 1997
  ----------------------------------------------------------------------

