From owner-ietf-smime@imc.org  Mon Feb  1 09:38:50 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id JAA21178
	for <smime-archive@odin.ietf.org>; Mon, 1 Feb 1999 09:38:49 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id FAA04754
	for ietf-smime-bks; Mon, 1 Feb 1999 05:22:59 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id FAA04750
	for <ietf-smime@imc.org>; Mon, 1 Feb 1999 05:22:56 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id IAA03126;
	Mon, 1 Feb 1999 08:25:44 -0500
Message-Id: <4.1.19990131160032.009c8160@209.172.119.123>
Message-Id: <4.1.19990131160032.009c8160@209.172.119.123>
Message-Id: <4.1.19990131160032.009c8160@209.172.119.123>
X-Sender: rhousley#mail.spyrus.com@209.172.119.123 (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Sun, 31 Jan 1999 18:17:38 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: A New Triple-DES Key Wrap Algorithm
Cc: burt@RSA.COM, djohnson@certicom.ca, schneier@counterpane.com,
        denny@tis.com, denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        mjmarkowitz@attmail.com, smatyas@vnet.ibm.com, paulv@entrust.com,
        merkle@parc.xerox.com, berson@anagram.com, desmedt@uwm.edu,
        rivest@theory.lcs.mit.edu, carlisle.adams@entrust.com, ams@terisa.com,
        ekr@rtfm.com, Blake.greenlee@greenlee.com, cme@ACM.ORG,
        bfox@microsoft.com, acc@tycho.ncsc.mil, bschanni@BayNetworks.com,
        jhs@tycho.ncsc.mil, jis@mit.edu, pcain@bbn.com, kent@bbn.com,
        BSnow@radium.ncsc.mil, cjwagne@missi.ncsc.mil, balenson@tis.com,
        balenson@tis.com, jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All:

S/MIME 3 requires a function to encrypt one Triple-DES key in another.
Last March, I proposed an algorithm to wrap a Triple-DES content-encryption
key in a Triple-DES key-encryption key.  With a few minor modifications,
that algorithm was incorporated into the Cryptographic Message Syntax (CMS)
Internet-Draft.  Burt Kaliski recently discovered a flaw in that algorithm.
 In this message I propose a new algorithm.

Here is a summary of how S/MIME v3 will use the function.  The S/MIME v3
originator locally generates a random content-encryption Triple-DES key.
As the name implies, this key will be used to encrypt the message content.
Then, Diffie-Hellman is used to generate a pairwise Triple-DES key with
each message recipient, and the content-encryption key is encrypted under
the pairwise key.

The wrap algorithm is also used to support mail lists.  As setup, a
key-encryption key is distributed to a group of recipients.  Then, the
originator locally generates a random content-encryption Triple-DES key,
and the content-encryption key is encrypted under the pairwise key.  The
key-encryption key could be used for many messages to the group.

Please review the revised algorithm.  Once a key wrap algorithm is
selected, the S/MIME v3 specifications will be ready for review by the
Internet Engineering Steering Group (IESG).  Please do not propose
improvements that are covered by any issued or pending patents.

Thanks for your assistance,
  Russ


- - - - - - - - - - 



The Triple-DES key wrap algorithm uses techniques similar to 
Bellare-Rogaway Optimal Asymmetric Encryption Padding [OAEP].

X.1  Key Checksum

   The Fletcher checksum algorithm [FLETCHER] is used to provide an
   integrity check value.  The algorithm is:

   1.  Initialize two 16 bit integers, SUM1 and SUM2, to zero.
   2.  Loop through the octets of the content-encryption key, most
       significant (first) octet to least significant (last) octet.
       2a.  Create a 16 bit integer, called TEMP, by concatenating
            eight zero bits and the key octet.
       2b.  SUM1 = SUM1 + TEMP.
       2c.  SUM2 = SUM2 + SUM1.
   3.  Use SUM2 as the 16-bit checksum value.

X.2  Triple-DES Key Wrap

   1.  Adjust the parity bits for each of the three DES keys comprising the
       Triple-DES content-encryption key, call the parity adjusted key CEK.
   2.  Compute an integrity check value on CEK, called ICV, as described above.
   3.  Let CEKICV = 0x18 || CEK || 0x00 || ICV.
   4.  Generate a 160-bit random value, called RAND.
   5.  Let H1 = SHA-1 ( RAND || 0x01 ).
   6.  Let H2 = SHA-1 ( RAND || 0x02 ).
   7.  Let MASK1 equal the most significant (first) 224 bits of H1 || H2.
   8.  Let MKEY = CEKICV XOR MASK1.
   9.  Let MASK2 = SHA-1 ( MKEY ).
  10.  Let MRAND = MASK2 XOR RAND.
  11.  Let MDATA = MRAND || MKEY.
  12.  Encrypt MDATA with the key-encryption key and CBC mode.  Use an IV
       with each octet equal to 0xA5.  The ciphertext is 384 bits long.

X.3  Triple-DES Key Unwrap

   The key unwrap algorithm is:

   1.  Decrypt the ciphertext using the key-encryption key and CBC mode.  Use
       an IV with each octet equal to 0xA5.
   2.  Decompose the plaintext result.  The most significant (first) 160 bits
       are MRAND, and the remaining 224 bits are MKEY.
   3.  Let MASK2 = SHA-1 ( MKEY ).
   4.  Let RAND = MASK2 XOR MRAND.
   5.  Let H1 = SHA-1 ( RAND || 0x01 ).
   6.  Let H2 = SHA-1 ( RAND || 0x02 ).
   7.  Let MASK1 equal the most significant (first) 224 bits of H1 || H2.
   8.  Let CEKICV = MASK1 XOR MKEY.
   9.  Decompose CEKICV.  The most significant (first) 8 bits are LENGTH, the
       following 192 bits are CEK, the following 8 bits are PAD, and the
       remaining 16 bits are ICV1.
  10.  If LENGTH is not 0x18, then error.
  11.  If PAD is not 0x00, then error.
  12.  Compute an integrity check value on CEK, called ICV2, as described
above.
  13.  If ICV1 and ICV2 are not equal, then error.
  14.  Check for odd parity of each octet in each DES key that makes up the
       Triple-DES content-encryption key.  If any parity bit is incorrect,
       then error.



REFERENCES

   FLETCHER   Fletcher, J.  "An Arithmetic Checksum for Serial
              Transmissions", IEEE Transactions on Communication,
              Vol. COM-30, No. 1, pp. 247-252, January 1982.

   OAEP       Bellare-Rogaway Optimal Asymmetric Encryption Padding
              { What is the best reference? }



From owner-ietf-smime@imc.org  Mon Feb  1 11:38:08 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA23482
	for <smime-archive@odin.ietf.org>; Mon, 1 Feb 1999 11:38:07 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA05690
	for ietf-smime-bks; Mon, 1 Feb 1999 07:34:36 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA05686
	for <ietf-smime@imc.org>; Mon, 1 Feb 1999 07:34:34 -0800 (PST)
Received: from domino2.certicom.com (domino2.certicom.com [10.0.1.25])
	by eng1.certicom.com (8.8.7/8.8.7) with SMTP id KAA21139;
	Mon, 1 Feb 1999 10:36:06 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.1  (569.2 2-6-1998))  id 8525670B.003A267F ; Mon, 1 Feb 1999 05:35:09 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: Russ Housley <housley@spyrus.com>
cc: ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
        schneier@counterpane.com, denny@tis.com,
        denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        mjmarkowitz@attmail.com, smatyas@vnet.ibm.com, paulv@entrust.com,
        merkle@parc.xerox.com, berson@anagram.com, desmedt@uwm.edu,
        rivest@theory.lcs.mit.edu, carlisle.adams@entrust.com, ams@terisa.com,
        ekr@rtfm.com, Blake.greenlee@greenlee.com, cme@ACM.ORG,
        bfox@microsoft.com, acc@tycho.ncsc.mil, bschanni@BayNetworks.com,
        jhs@tycho.ncsc.mil, jis@mit.edu, pcain@bbn.com, kent@bbn.com,
        BSnow@radium.ncsc.mil, cjwagne@missi.ncsc.mil, balenson@tis.com,
        jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov
Message-ID: <8525670B.005352A9.00@domino2.certicom.com>
Date: Mon, 1 Feb 1999 10:29:14 -0500
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

A few comments:
1. An integrity value of 16 bits is not enough to thwart a determined
attacker, especially if using a integrity verification oracle, that is,
toss values at it until success.
2. Given that TDES CBC is being done for messages, why not do two-pass TDES
CBC for the key wrapping (that is, do CBC over the key block and then do it
again)?  This avoids the need for code for a formatting method.  This forms
a block where every bit is dependent on every other bit.  A triple-DES key
is 168 bits of key; with parity bits, it is 192 bits.  Given a block of
384, this gives 192 bits for other stuff.  Put in some random bits, put in
a longer checksum, put in a length of the block,  put in other stuff,
depending on what attributes are desired.  The TDES blocksize being
64-bits, text attacks are not relevant as 2**32 blocks of key data will not
get encrypted under one set of TDES keys, and as it is random-appearing
data, is the best thing to encrypt anyway.

Don Johnson





Russ Housley <housley@spyrus.com> on 01/31/99 06:17:38 PM

To:   ietf-smime@imc.org
cc:   burt@RSA.COM, djohnson@certicom.ca, schneier@counterpane.com,
      denny@tis.com, denning@cs.cosc.georgetown.edu, omura@cylink.com,
      mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
      mjmarkowitz@attmail.com, smatyas@vnet.ibm.com, paulv@entrust.com,
      merkle@parc.xerox.com, berson@anagram.com, desmedt@uwm.edu,
      rivest@theory.lcs.mit.edu, carlisle.adams@entrust.com,
      ams@terisa.com, ekr@rtfm.com, Blake.greenlee@greenlee.com,
      cme@acm.org, bfox@microsoft.com, acc@tycho.ncsc.mil,
      bschanni@BayNetworks.com, jhs@tycho.ncsc.mil, jis@mit.edu,
      pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
      cjwagne@missi.ncsc.mil, balenson@tis.com, balenson@tis.com,
      jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov (bcc: Don
      Johnson/Certicom)
Subject:  A New Triple-DES Key Wrap Algorithm




All:

S/MIME 3 requires a function to encrypt one Triple-DES key in another.
Last March, I proposed an algorithm to wrap a Triple-DES content-encryption
key in a Triple-DES key-encryption key.  With a few minor modifications,
that algorithm was incorporated into the Cryptographic Message Syntax (CMS)
Internet-Draft.  Burt Kaliski recently discovered a flaw in that algorithm.
 In this message I propose a new algorithm.

Here is a summary of how S/MIME v3 will use the function.  The S/MIME v3
originator locally generates a random content-encryption Triple-DES key.
As the name implies, this key will be used to encrypt the message content.
Then, Diffie-Hellman is used to generate a pairwise Triple-DES key with
each message recipient, and the content-encryption key is encrypted under
the pairwise key.

The wrap algorithm is also used to support mail lists.  As setup, a
key-encryption key is distributed to a group of recipients.  Then, the
originator locally generates a random content-encryption Triple-DES key,
and the content-encryption key is encrypted under the pairwise key.  The
key-encryption key could be used for many messages to the group.

Please review the revised algorithm.  Once a key wrap algorithm is
selected, the S/MIME v3 specifications will be ready for review by the
Internet Engineering Steering Group (IESG).  Please do not propose
improvements that are covered by any issued or pending patents.

Thanks for your assistance,
  Russ


- - - - - - - - - -



The Triple-DES key wrap algorithm uses techniques similar to
Bellare-Rogaway Optimal Asymmetric Encryption Padding [OAEP].

X.1  Key Checksum

   The Fletcher checksum algorithm [FLETCHER] is used to provide an
   integrity check value.  The algorithm is:

   1.  Initialize two 16 bit integers, SUM1 and SUM2, to zero.
   2.  Loop through the octets of the content-encryption key, most
       significant (first) octet to least significant (last) octet.
       2a.  Create a 16 bit integer, called TEMP, by concatenating
            eight zero bits and the key octet.
       2b.  SUM1 = SUM1 + TEMP.
       2c.  SUM2 = SUM2 + SUM1.
   3.  Use SUM2 as the 16-bit checksum value.

X.2  Triple-DES Key Wrap

   1.  Adjust the parity bits for each of the three DES keys comprising the
       Triple-DES content-encryption key, call the parity adjusted key CEK.
   2.  Compute an integrity check value on CEK, called ICV, as described
above.
   3.  Let CEKICV = 0x18 || CEK || 0x00 || ICV.
   4.  Generate a 160-bit random value, called RAND.
   5.  Let H1 = SHA-1 ( RAND || 0x01 ).
   6.  Let H2 = SHA-1 ( RAND || 0x02 ).
   7.  Let MASK1 equal the most significant (first) 224 bits of H1 || H2.
   8.  Let MKEY = CEKICV XOR MASK1.
   9.  Let MASK2 = SHA-1 ( MKEY ).
  10.  Let MRAND = MASK2 XOR RAND.
  11.  Let MDATA = MRAND || MKEY.
  12.  Encrypt MDATA with the key-encryption key and CBC mode.  Use an IV
       with each octet equal to 0xA5.  The ciphertext is 384 bits long.

X.3  Triple-DES Key Unwrap

   The key unwrap algorithm is:

   1.  Decrypt the ciphertext using the key-encryption key and CBC mode.
Use
       an IV with each octet equal to 0xA5.
   2.  Decompose the plaintext result.  The most significant (first) 160
bits
       are MRAND, and the remaining 224 bits are MKEY.
   3.  Let MASK2 = SHA-1 ( MKEY ).
   4.  Let RAND = MASK2 XOR MRAND.
   5.  Let H1 = SHA-1 ( RAND || 0x01 ).
   6.  Let H2 = SHA-1 ( RAND || 0x02 ).
   7.  Let MASK1 equal the most significant (first) 224 bits of H1 || H2.
   8.  Let CEKICV = MASK1 XOR MKEY.
   9.  Decompose CEKICV.  The most significant (first) 8 bits are LENGTH,
the
       following 192 bits are CEK, the following 8 bits are PAD, and the
       remaining 16 bits are ICV1.
  10.  If LENGTH is not 0x18, then error.
  11.  If PAD is not 0x00, then error.
  12.  Compute an integrity check value on CEK, called ICV2, as described
above.
  13.  If ICV1 and ICV2 are not equal, then error.
  14.  Check for odd parity of each octet in each DES key that makes up the
       Triple-DES content-encryption key.  If any parity bit is incorrect,
       then error.



REFERENCES

   FLETCHER   Fletcher, J.  "An Arithmetic Checksum for Serial
              Transmissions", IEEE Transactions on Communication,
              Vol. COM-30, No. 1, pp. 247-252, January 1982.

   OAEP       Bellare-Rogaway Optimal Asymmetric Encryption Padding
              { What is the best reference? }







From owner-ietf-smime@imc.org  Mon Feb  1 12:49:01 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id MAA26432
	for <smime-archive@odin.ietf.org>; Mon, 1 Feb 1999 12:49:01 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA06245
	for ietf-smime-bks; Mon, 1 Feb 1999 08:52:03 -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 IAA06241
	for <ietf-smime@imc.org>; Mon, 1 Feb 1999 08:52:02 -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 LAA23946;
	Mon, 1 Feb 1999 11:54:26 -0500 (EST)
Message-Id: <199902011654.LAA23946@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-x942-05.txt
Date: Mon, 01 Feb 1999 11:54:25 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

Note: This revision reflects comments received during the last call period.

	Title		: Diffie-Hellman Key Agreement Method
	Author(s)	: E. Rescorla
	Filename	: draft-ietf-smime-x942-05.txt
	Pages		: 12
	Date		: 29-Jan-99
	
   This document standardizes one particular Diffie-Hellman variant,
   based on the ANSI X9.42 draft, developed by the ANSI X9F1 working
   group. Diffie-Hellman is a key agreement algorithm used by two par-
   ties to agree on a shared secret. An algorithm for converting the
   shared secret into an arbitrary amount of keying material is pro-
   vided. The resulting keying material is used as a symmetric encryp-
   tion key.  The D-H variant described requires the recipient to have a
   certificate, but the originator may have a static key pair (with the
   public key placed in a certificate) or an ephemeral key pair.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-x942-05.txt

Internet-Drafts are also 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-ietf-smime-x942-05.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-x942-05.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:	<19990129153421.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-x942-05.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-x942-05.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Mon Feb  1 15:35:56 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id PAA03057
	for <smime-archive@odin.ietf.org>; Mon, 1 Feb 1999 15:35:56 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA08163
	for ietf-smime-bks; Mon, 1 Feb 1999 11:47:21 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA08155
	for <ietf-smime@imc.org>; Mon, 1 Feb 1999 11:47:02 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id OAA19185;
	Mon, 1 Feb 1999 14:49:45 -0500
Message-Id: <4.1.19990201143717.009ea460@209.172.119.123>
X-Sender: rhousley#mail.spyrus.com@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 01 Feb 1999 14:48:01 -0500
To: "Don Johnson" <djohnson@certicom.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
        schneier@counterpane.com, denny@tis.com,
        denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        mjmarkowitz@attmail.com, smatyas@vnet.ibm.com, paulv@entrust.com,
        merkle@parc.xerox.com, berson@anagram.com, desmedt@uwm.edu,
        rivest@theory.lcs.mit.edu, carlisle.adams@entrust.com, ams@terisa.com,
        ekr@rtfm.com, Blake.greenlee@greenlee.com, cme@ACM.ORG,
        bfox@microsoft.com, acc@tycho.ncsc.mil, bschanni@BayNetworks.com,
        jhs@tycho.ncsc.mil, jis@mit.edu, pcain@bbn.com, kent@bbn.com,
        BSnow@radium.ncsc.mil, cjwagne@missi.ncsc.mil, balenson@tis.com,
        jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov
In-Reply-To: <8525670B.005352A9.00@domino2.certicom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Don:

>1. An integrity value of 16 bits is not enough to thwart a determined
>attacker, especially if using a integrity verification oracle, that is,
>toss values at it until success.

A slight restructuring could lead to 32 bits.  This would eliminate the
Length value and the Pad octet.  Any additional would lead to an additional
block.  This is already six blocks to protect three blocks of data.

>2. Given that TDES CBC is being done for messages, why not do two-pass TDES
>CBC for the key wrapping (that is, do CBC over the key block and then do it
>again)?  This avoids the need for code for a formatting method.  This forms
>a block where every bit is dependent on every other bit.  A triple-DES key
>is 168 bits of key; with parity bits, it is 192 bits.  Given a block of
>384, this gives 192 bits for other stuff.  Put in some random bits, put in
>a longer checksum, put in a length of the block,  put in other stuff,
>depending on what attributes are desired.  The TDES blocksize being
>64-bits, text attacks are not relevant as 2**32 blocks of key data will not
>get encrypted under one set of TDES keys, and as it is random-appearing
>data, is the best thing to encrypt anyway.

Are you saying that the original formatting with double encryption would be
a cheaper way to resolve the problems raised by Burt kaliski?  Would the IV
for the second encryption be the ciphertext of the last block from the
first encryption pass?  If so, it needs to be carried somewhere.  Is
disclosure an issue?  Alternatively, can a differnt constant IV be used for
the second pass?

Thanks for the speedy review,
   Russ



From owner-ietf-smime@imc.org  Mon Feb  1 16:05:55 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id QAA03484
	for <smime-archive@odin.ietf.org>; Mon, 1 Feb 1999 16:05:54 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA08678
	for ietf-smime-bks; Mon, 1 Feb 1999 12:21:14 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA08672
	for <ietf-smime@imc.org>; Mon, 1 Feb 1999 12:21:12 -0800 (PST)
Received: from domino2.certicom.com (domino2.certicom.com [10.0.1.25])
	by eng1.certicom.com (8.8.7/8.8.7) with SMTP id PAA13537;
	Mon, 1 Feb 1999 15:23:05 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.1  (569.2 2-6-1998))  id 8525670B.00546F0B ; Mon, 1 Feb 1999 10:22:14 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: Russ Housley <housley@spyrus.com>
cc: ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
        schneier@counterpane.com, denny@tis.com,
        denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        mjmarkowitz@attmail.com, smatyas@vnet.ibm.com, paulv@entrust.com,
        merkle@parc.xerox.com, berson@anagram.com, desmedt@uwm.edu,
        rivest@theory.lcs.mit.edu, carlisle.adams@entrust.com, ams@terisa.com,
        ekr@rtfm.com, Blake.greenlee@greenlee.com, cme@ACM.ORG,
        bfox@microsoft.com, acc@tycho.ncsc.mil, bschanni@BayNetworks.com,
        jhs@tycho.ncsc.mil, jis@mit.edu, pcain@bbn.com, kent@bbn.com,
        BSnow@radium.ncsc.mil, cjwagne@missi.ncsc.mil, balenson@tis.com,
        jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov
Message-ID: <8525670B.006F253A.00@domino2.certicom.com>
Date: Mon, 1 Feb 1999 15:22:54 -0500
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

My comments imbedded in your note and prefixed with an *.
Don J.





Russ Housley <housley@spyrus.com> on 02/01/99 02:48:01 PM

To:   Don Johnson/Certicom
cc:   ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
      schneier@counterpane.com, denny@tis.com,
      denning@cs.cosc.georgetown.edu, omura@cylink.com,
      mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
      mjmarkowitz@attmail.com, smatyas@vnet.ibm.com, paulv@entrust.com,
      merkle@parc.xerox.com, berson@anagram.com, desmedt@uwm.edu,
      rivest@theory.lcs.mit.edu, carlisle.adams@entrust.com,
      ams@terisa.com, ekr@rtfm.com, Blake.greenlee@greenlee.com,
      cme@acm.org, bfox@microsoft.com, acc@tycho.ncsc.mil,
      bschanni@BayNetworks.com, jhs@tycho.ncsc.mil, jis@mit.edu,
      pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
      cjwagne@missi.ncsc.mil, balenson@tis.com, jlinn@securitydynamics.com,
      smid@csmes.ncsl.nist.gov
Subject:  Re: A New Triple-DES Key Wrap Algorithm




Don:

>1. An integrity value of 16 bits is not enough to thwart a determined
>attacker, especially if using a integrity verification oracle, that is,
>toss values at it until success.

A slight restructuring could lead to 32 bits.  This would eliminate the
Length value and the Pad octet.  Any additional would lead to an additional
block.  This is already six blocks to protect three blocks of data.

* I like the length field, it allows for future flexibility if needed and
is a simple way to strengthen an integrity check.  It is best if the length
field is in a fixed location, that way there is no ambiguity, which as we
know is bad for security.

>2. Given that TDES CBC is being done for messages, why not do two-pass
TDES
>CBC for the key wrapping (that is, do CBC over the key block and then do
it
>again)?  This avoids the need for code for a formatting method.  This
forms
>a block where every bit is dependent on every other bit.  A triple-DES key
>is 168 bits of key; with parity bits, it is 192 bits.  Given a block of
>384, this gives 192 bits for other stuff.  Put in some random bits, put in
>a longer checksum, put in a length of the block,  put in other stuff,
>depending on what attributes are desired.  The TDES blocksize being
>64-bits, text attacks are not relevant as 2**32 blocks of key data will
not
>get encrypted under one set of TDES keys, and as it is random-appearing
>data, is the best thing to encrypt anyway.

Are you saying that the original formatting with double encryption would be
a cheaper way to resolve the problems raised by Burt kaliski?

* I think so or something like that.  I think it would be cheaper in code
size as TDES CBC already needs to exist in the code.

Would the IV
for the second encryption be the ciphertext of the last block from the
first encryption pass?

* Yes.

If so, it needs to be carried somewhere.

* No, it does not, if a 64-bit random number is put first in the block,
this is due to self syncronizing property of CBC mode. Alternately, the
first block could be seen at a random IV.

Is disclosure an issue?

* Not sure what you mean by this.  Please explain more.  Disclosure of the
IV?  Disclosure of the text or key?  What?

Alternatively, can a differnt constant IV be used for
the second pass?

* If you use an IV of 0, the first block is damaged, if you do not care as
it is random, then you do not care.

Thanks for the speedy review,
   Russ




From owner-ietf-smime@imc.org  Mon Feb  1 18:55:36 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id SAA05653
	for <smime-archive@odin.ietf.org>; Mon, 1 Feb 1999 18:55:36 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA10059
	for ietf-smime-bks; Mon, 1 Feb 1999 14:57:30 -0800 (PST)
Received: from aum (ip11.proper.com [165.227.249.11])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id OAA10030;
	Mon, 1 Feb 1999 14:53:36 -0800 (PST)
Message-Id: <4.1.19990201145019.00a9a8c0@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 01 Feb 1999 14:56:17 -0800
To: ietf-pkix@imc.org, ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: SecureConnect 2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Greetings again. A few of the companies attending SecureConnect 2 have
noted to me that I didn't send mail to the PKIX or S/MIME WG mailing lists.
I guess my non-spam traits got the better of me.

SecureConnect 2 is the interoperability event for S/MIME clients and CAs,
to be held February 23-24. Folks out in The Real World have been finding
that many (but not all) of the interoperability issues in deployed S/MIME
clients are in the certificate handling. Thus, it would be good to get all
of today's S/MIME client vendors and CA vendors together to do more
in-depth testing.

More information on SecureConnect 2 can be found at
<http://www.imc.org/imc-secureconnect/>.

--Paul Hoffman, Director
--Internet Mail Consortium


From owner-ietf-smime@imc.org  Tue Feb  2 12:34:55 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id MAA25210
	for <smime-archive@odin.ietf.org>; Tue, 2 Feb 1999 12:34:54 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA12782
	for ietf-smime-bks; Tue, 2 Feb 1999 08:31:17 -0800 (PST)
Received: from post.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA12778
	for <ietf-smime@imc.org>; Tue, 2 Feb 1999 08:31:15 -0800 (PST)
Received: from [194.222.225.69] (helo=jrwork)
	by post.mail.demon.net with smtp (Exim 2.11 #1)
	id 107imG-0003cw-00; Tue, 2 Feb 1999 16:34:16 +0000
Message-ID: <001c01be4f0c$7452d520$0400000a@jrwork>
From: "John Ross" <ross@jgross.demon.co.uk>
To: "EKR" <ekr@rtfm.com>, "Russ Housley" <housley@spyrus.com>
Cc: <pgut001@cs.aucKland.ac.nz>, <ietf-smime@imc.org>
Subject: Re: KEKRecpientInfo KEKIdentifier
Date: Tue, 2 Feb 1999 16:30:49 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I agree it could be optional in CMS.  But  it should be mandated either in
MSG, or it may be better mandated in ESS. For example, ESS could mandate
that the KEKIdentifier must be present when secure mailing lists are used.

Regards

John Ross
-----Original Message-----
From: Russ Housley <housley@spyrus.com>
To: EKR <ekr@rtfm.com>
Cc: pgut001@cs.aucKland.ac.nz <pgut001@cs.aucKland.ac.nz>;
ietf-smime@imc.org <ietf-smime@imc.org>
Date: Friday, January 29, 1999 2:36 PM
Subject: Re: KEKRecpientInfo KEKIdentifier


>What do others think?
>
>I am unwilling to make it optional without a change to MSG that mandates it
>for S/MIME.
>
>Russ
>
>
>At 08:58 AM 1/29/99 -0800, EKR wrote:
>>pgut001@cs.aucKland.ac.nz (Peter Gutmann) writes:
>>> almost never be used in the way you've described.  PGP has worked just
fine
>>> for 8 years without a KEKIdentifier, so I don't see why CMS needs to
>make it
>>> mandatory.  All you need to do is use "kekid [ 0 ] KEKIdentifier
OPTIONAL"
>>and
>>> you can let the users decide whether it really is essential or not - I'm
>not
>>> asking that it be removed, simply that it be made optional so you can
>>leave it
>>> out where there's nothing to put in a KEKIdentifier.
>>I've got to go with Peter here. While I think that for messaging,
>>the index is more useful, I don't see any harm in making it optional.
>>We can always make MSG require it.
>>
>>-Ekr
>>
>>
>>--
>>[Eric Rescorla                                   ekr@rtfm.com]
>



From owner-ietf-smime@imc.org  Tue Feb  2 17:52:33 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA07615
	for <smime-archive@odin.ietf.org>; Tue, 2 Feb 1999 17:52:32 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA16946
	for ietf-smime-bks; Tue, 2 Feb 1999 13:53:33 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id NAA16936
	for <ietf-smime@imc.org>; Tue, 2 Feb 1999 13:52:53 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Tue, 02 Feb 1999 14:55:25 -0700
Message-Id: <s6b711dd.046@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Tue, 02 Feb 1999 14:55:08 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <djohnson@certicom.com>, <housley@spyrus.com>
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <mjmarkowitz@attmail.com>,
        <bschanni@BayNetworks.com>, <kent@bbn.com>, <pcain@bbn.com>,
        <mhetzel@bell-labs.com>, <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <denning@cs.cosc.georgetown.edu>,
        <smid@csmes.ncsl.nist.gov>, <omura@cylink.com>,
        <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <ietf-smime@imc.org>,
        <benaloh@microsoft.com>, <bfox@microsoft.com>,
        <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        "Bob Jueneman" <BJUENEMAN.PRV-7.PROVO@novell.com>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <desmedt@uwm.edu>,
        <smatyas@vnet.ibm.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id NAA16937
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

For the benefit of those of us who weren't following the discussion all 
that closely, could you summarize your original submission (and the 
rationale behind it), and the attack which Burt Kalisky found against it?

BTW, that's an impressive cc-list -- almost a crypto who's who. I'd add 
Hugo Kwrazack and Yair Frankel, and certainly Don Coppersmith, 
but I don't have their current e-mail addresses.

Bob



Robert R. Jueneman
Security Architect
Network Security Development
Novell, Inc.
122 East 1700 South
Provo, UT 84606
bjueneman@novell.com
1-801-861-7387

>>> "Don Johnson" <djohnson@certicom.com> 02/01/99 01:22PM >>>
Russ,

My comments imbedded in your note and prefixed with an *.
Don J.

Russ Housley <housley@spyrus.com> on 02/01/99 02:48:01 PM

To:   Don Johnson/Certicom
cc:   ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
      schneier@counterpane.com, denny@tis.com,
      denning@cs.cosc.georgetown.edu, omura@cylink.com,
      mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
      mjmarkowitz@attmail.com, smatyas@vnet.ibm.com, paulv@entrust.com,
      merkle@parc.xerox.com, berson@anagram.com, desmedt@uwm.edu,
      rivest@theory.lcs.mit.edu, carlisle.adams@entrust.com,
      ams@terisa.com, ekr@rtfm.com, Blake.greenlee@greenlee.com,
      cme@acm.org, bfox@microsoft.com, acc@tycho.ncsc.mil,
      bschanni@BayNetworks.com, jhs@tycho.ncsc.mil, jis@mit.edu,
      pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
      cjwagne@missi.ncsc.mil, balenson@tis.com, jlinn@securitydynamics.com,
      smid@csmes.ncsl.nist.gov 
Subject:  Re: A New Triple-DES Key Wrap Algorithm




Don:

>1. An integrity value of 16 bits is not enough to thwart a determined
>attacker, especially if using a integrity verification oracle, that is,
>toss values at it until success.

A slight restructuring could lead to 32 bits.  This would eliminate the
Length value and the Pad octet.  Any additional would lead to an additional
block.  This is already six blocks to protect three blocks of data.

* I like the length field, it allows for future flexibility if needed and
is a simple way to strengthen an integrity check.  It is best if the length
field is in a fixed location, that way there is no ambiguity, which as we
know is bad for security.

>2. Given that TDES CBC is being done for messages, why not do two-pass
TDES
>CBC for the key wrapping (that is, do CBC over the key block and then do
it
>again)?  This avoids the need for code for a formatting method.  This
forms
>a block where every bit is dependent on every other bit.  A triple-DES key
>is 168 bits of key; with parity bits, it is 192 bits.  Given a block of
>384, this gives 192 bits for other stuff.  Put in some random bits, put in
>a longer checksum, put in a length of the block,  put in other stuff,
>depending on what attributes are desired.  The TDES blocksize being
>64-bits, text attacks are not relevant as 2**32 blocks of key data will
not
>get encrypted under one set of TDES keys, and as it is random-appearing
>data, is the best thing to encrypt anyway.

Are you saying that the original formatting with double encryption would be
a cheaper way to resolve the problems raised by Burt kaliski?

* I think so or something like that.  I think it would be cheaper in code
size as TDES CBC already needs to exist in the code.

Would the IV
for the second encryption be the ciphertext of the last block from the
first encryption pass?

* Yes.

If so, it needs to be carried somewhere.

* No, it does not, if a 64-bit random number is put first in the block,
this is due to self syncronizing property of CBC mode. Alternately, the
first block could be seen at a random IV.

Is disclosure an issue?

* Not sure what you mean by this.  Please explain more.  Disclosure of the
IV?  Disclosure of the text or key?  What?

Alternatively, can a differnt constant IV be used for
the second pass?

* If you use an IV of 0, the first block is damaged, if you do not care as
it is random, then you do not care.

Thanks for the speedy review,
   Russ




From owner-ietf-smime@imc.org  Tue Feb  2 17:59:17 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA07748
	for <smime-archive@odin.ietf.org>; Tue, 2 Feb 1999 17:59:17 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA17204
	for ietf-smime-bks; Tue, 2 Feb 1999 14:14:30 -0800 (PST)
Received: from baal.visi.com (root@baal.visi.com [209.98.98.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA17200
	for <ietf-smime@imc.org>; Tue, 2 Feb 1999 14:14:28 -0800 (PST)
Received: from newmicronpc (12-231.dynamic.visi.com [209.98.12.231]) by baal.visi.com (8.8.8/8.7.5) with SMTP id QAA26265; Tue, 2 Feb 1999 16:16:41 -0600 (CST)
Posted-Date: Tue, 2 Feb 1999 16:16:41 -0600 (CST)
Message-Id: <199902022216.QAA26265@baal.visi.com>
X-Sender: schneier@mail.visi.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0.2 
Date: Tue, 02 Feb 1999 16:11:56 -0600
To: "Bob Jueneman" <BJUENEMAN@novell.com>, <djohnson@certicom.com>,
        <housley@spyrus.com>
From: Bruce Schneier <schneier@counterpane.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <mjmarkowitz@attmail.com>,
        <bschanni@BayNetworks.com>, <kent@bbn.com>, <pcain@bbn.com>,
        <mhetzel@bell-labs.com>, <brickell@certco.com>, <djohnson@certicom.ca>,
        <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>,
        <omura@cylink.com>, <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <ietf-smime@imc.org>,
        <benaloh@microsoft.com>, <bfox@microsoft.com>,
        <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        "Bob Jueneman" <BJUENEMAN.PRV-7.PROVO@novell.com>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <desmedt@uwm.edu>,
        <smatyas@vnet.ibm.com>
In-Reply-To: <s6b711dc.040@prv-mail20.provo.novell.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 02:55 PM 2/2/99 -0700, Bob Jueneman wrote:
>Russ,
>
>For the benefit of those of us who weren't following the discussion all 
>that closely, could you summarize your original submission (and the 
>rationale behind it), and the attack which Burt Kalisky found against it?
>
>BTW, that's an impressive cc-list -- almost a crypto who's who. I'd add 
>Hugo Kwrazack and Yair Frankel, and certainly Don Coppersmith, 
>but I don't have their current e-mail addresses.
>
>Bob

It is an impressive list, but don't assume that just because someone is on
the 
list that they have analyzed the system.  Russ is looking for free
cryptanalysis,
and the best way to get that is to send email to everyone and hope that
someone
has nothing better to do that day.  It's a good way to have bad systems
broken,
but it is less effective at showing that good systems are actually good.

Bruce
**********************************************************************
Bruce Schneier, President, Counterpane Systems     Phone: 612-823-1098
101 E Minnehaha Parkway, Minneapolis, MN  55419      Fax: 612-823-1590
           Free crypto newsletter.  See:  http://www.counterpane.com



From owner-ietf-smime@imc.org  Tue Feb  2 18:09:04 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id SAA07969
	for <smime-archive@odin.ietf.org>; Tue, 2 Feb 1999 18:09:03 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA17357
	for ietf-smime-bks; Tue, 2 Feb 1999 14:26:31 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA17353
	for <ietf-smime@imc.org>; Tue, 2 Feb 1999 14:26:29 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id RAA12962;
	Tue, 2 Feb 1999 17:34:51 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id RAA21345; Tue, 2 Feb 1999 17:32:21 -0500
Date: Tue, 2 Feb 1999 17:32:21 -0500
Message-Id: <199902022232.RAA21345@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Russ Housley <housley@spyrus.com>, EKR <ekr@rtfm.com>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: KEKRecpientInfo KEKIdentifier
Cc: pgut001@cs.aucKland.ac.nz, ietf-smime@imc.org
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

I believe that the KEKRecpientInfo KEKIdentifier should not be optional.
The recipient always needs to have a means of identifying which KEK to use
to process the received message.  

- John Pawling


At 05:17 PM 1/29/99 -0500, Russ Housley wrote:
>What do others think?
>
>I am unwilling to make it optional without a change to MSG that mandates it
>for S/MIME.
>
>Russ
>
>
>At 08:58 AM 1/29/99 -0800, EKR wrote:
>>pgut001@cs.aucKland.ac.nz (Peter Gutmann) writes:
>>> almost never be used in the way you've described.  PGP has worked just fine 
>>> for 8 years without a KEKIdentifier, so I don't see why CMS needs to
>make it 
>>> mandatory.  All you need to do is use "kekid [ 0 ] KEKIdentifier OPTIONAL" 
>>and 
>>> you can let the users decide whether it really is essential or not - I'm
>not 
>>> asking that it be removed, simply that it be made optional so you can 
>>leave it 
>>> out where there's nothing to put in a KEKIdentifier.
>>I've got to go with Peter here. While I think that for messaging,
>>the index is more useful, I don't see any harm in making it optional.
>>We can always make MSG require it.
>>
>>-Ekr
>>
>>
>>-- 
>>[Eric Rescorla                                   ekr@rtfm.com]
>
>



From owner-ietf-smime@imc.org  Tue Feb  2 18:22:23 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id SAA08184
	for <smime-archive@odin.ietf.org>; Tue, 2 Feb 1999 18:22:22 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA17481
	for ietf-smime-bks; Tue, 2 Feb 1999 14:37:20 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA17476
	for <ietf-smime@imc.org>; Tue, 2 Feb 1999 14:37:15 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id RAA13451
	for <ietf-smime@imc.org>; Tue, 2 Feb 1999 17:45:38 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id RAA21569; Tue, 2 Feb 1999 17:43:15 -0500
Date: Tue, 2 Feb 1999 17:43:15 -0500
Message-Id: <199902022243.RAA21569@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: RE: Last Call Comments on CMS-10
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

I believe that a version 3 SignerInfo MUST cause the parent SignedData
version to be 3.  This strategy allows the receiving software to be able to
distinquish between an S/MIME v2 or v3 message by looking at the first field
in the signedData.

- John Pawling


At 02:12 PM 1/12/99 -0800, Jim Schaad (Exchange) wrote:
>Russ:
>
>> -----Original Message-----
>> From: Russ Housley [mailto:housley@spyrus.com]
>> Sent: Tuesday, January 12, 1999 11:36 AM
>> To: Jim Schaad (Exchange)
>> Cc: Ietf-Smime (E-mail)
>> Subject: Re: Last Call Comments on CMS-10

<snip>

>> >7.  Section 5.1: Text on version needs to be expanded to 
>> deal with SKI.
>> >Must be 3 if any SignerInfo version is 3.
>> 
>> Are you saying that a version 3 SignerInfo should cause 
>> parent SignedData
>> version to be 3?
>> 
>> Is there a reason to prohibit version 3 SignerInfo from being 
>> encapsulated in a
>> version 1 SignedData?
>
>This is the backwards compatability thing.  Everywhere else we have done --
>you get a new version all the way up (See EnvelopedData) if you do something
>new on an inner object.  This prevents you from starting something you may
>regret.  If we don't do this here, then I don't see why we should be doing
>it in EnvelopedData.  I don't care which of the two we correct, but make
>them consistant.




>
>> 
>> >10. Section 12.3.1, paragraph 3.  I would like to change the 
>> first sentence
>> >to "A CMS Implementation should support mixed key-encryption and
>> >content-encryption algorithms."
>> 
>> Disgree.  I am reluctant to change "may" to "should."  What 
>> do other people
>> think?
>> 
>> >11. Section 12.3.3 - Please insert the following paragraph 
>> in this section
>> >"   A CMS implementation should support mixed key-encryption 
>> and content-
>> >   encryption algorithms.  For example, a 128-bit RC2 
>> content-encryption
>> >   key may be wrapped with 168-bit Triple-DES key-encryption key.
>> >   Similarly, a 40-bit RC2 content-encryption key may be wrapped with
>> >   128-bit RC2 key-encryption key."
>> 
>> As with comment 10, I would like to hear what other people 
>> think before
>> changing "may" to "should."
>
>Can I at least get you to agree to put in the paragraph with the "may"
>syntax even if I get no support for "should"?
>
>> 
>> >12. Ditto 11 for section 12.6
>> 
>> Ditto.  As with comments 10 and 11, I would like to hear what 
>> other people
>> think before changing "may" to "should."
>> 
>
>> 
>> Russ
>> 
>
>jim
>



From owner-ietf-smime@imc.org  Tue Feb  2 19:00:05 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id TAA08925
	for <smime-archive@odin.ietf.org>; Tue, 2 Feb 1999 19:00:04 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA17639
	for ietf-smime-bks; Tue, 2 Feb 1999 14:50:51 -0800 (PST)
Received: from cane.deming.com (mail.deming.com [208.236.41.137])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id OAA17635
	for <ietf-smime@imc.org>; Tue, 2 Feb 1999 14:50:50 -0800 (PST)
Received: from 208.236.41.137 by cane.deming.com with ESMTP (WorldSecure
 Server SMTP Relay(WSS) v3.2 SR1); Tue, 02 Feb 99 14:53:24 -0800
X-Server-Uuid: 1a012586-24e9-11d1-adae-00a024bc53c5
Received: by mail.deming.com with Internet Mail Service (5.5.2232.9) id
 <DVNLYZ8S>; Tue, 2 Feb 1999 14:53:24 -0800
Message-ID: <01FF24001403D011AD7B00A024BC53C563DD8A@mail.deming.com>
From: "Blake Ramsdell" <BlakeR@deming.com>
To: "'jsp@jgvandyke.com'" <jsp@jgvandyke.com>,
        "Ietf-Smime (E-mail)"
 <ietf-smime@imc.org>
Subject: RE: Last Call Comments on CMS-10
Date: Tue, 2 Feb 1999 14:53:22 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
X-WSS-ID: 1AA95E6E46623-01-01
Content-Type: text/plain; 
 charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

> -----Original Message-----
> From: jsp@jgvandyke.com [mailto:jsp@jgvandyke.com]
> Sent: Tuesday, February 02, 1999 2:43 PM
> To: Ietf-Smime (E-mail)
> Subject: RE: Last Call Comments on CMS-10
> 
> I believe that a version 3 SignerInfo MUST cause the parent SignedData
> version to be 3.  This strategy allows the receiving software 
> to be able to
> distinquish between an S/MIME v2 or v3 message by looking at 
> the first field
> in the signedData.

I respectfully disagree -- it is possible to have multiple SignerInfos, some
of which are v2 and can be processed by a v2 agent.

If you reword this to be "if all of the SignerInfos are v3, then the parent
SignedData should be version 3" or equivalent verbiage, then I think I'd go
along with it.

Blake
--
Blake C. Ramsdell
Worldtalk Corporation
For current info, check http://www.deming.com/users/blaker
Voice +1 425 882 8861 x103  Fax +1 425 882 8060



From owner-ietf-smime@imc.org  Wed Feb  3 11:52:44 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA26005
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 11:52:43 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA22071
	for ietf-smime-bks; Wed, 3 Feb 1999 07:52:54 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA22067
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 07:52:53 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id LAA01710
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 11:01:20 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id KAA11766; Wed, 3 Feb 1999 10:58:58 -0500
Date: Wed, 3 Feb 1999 10:58:58 -0500
Message-Id: <199902031558.KAA11766@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: RE: Last Call Comments on CMS-10
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Blake and friends,

I initially objected to the concept of allowing v1 and v3 signerInfos to
exist in the same signedData because I believed that the beneift was not
worth the problems that they will probably cause in legacy S/MIME products.
I suspect that many legacy products don't check the version number of the
singerInfo before decoding it.  If they don't check it, then they will
encounter an ASN.1 decode error when processing a v3 signerInfo which could
cause unpredictable behavior in the software.  

Upon further reflection, I now agree with Blake.  Potential deficiencies in
legacy products should not drive the design of the v3 S/MIME specs.  An
S/MIME v3 user agent should be allowed to send a signedData that includes a
v1 signerInfo that can be processed by all S/MIME user agents and a v3
signerInfo that can only be processsed by v3 user agents.  I agree with
Blake that the version number of such a signedData should be v1.  If the
version number was v3, then the legacy software would reject the signedData
even though it includes a v1 signerInfo that it could verify.

This concept raises another issue.  ESS states: "If any of the SignerInfos
included in a SignedData object include an eSSSecurityLabel attribute, then
all of the SignerInfos in that SignedData object MUST include an
eSSSecurityLabel attribute and the value of each MUST be identical."  I
believe that this statement should be changed to: "If any of the SignerInfos
included in a SignedData object include an eSSSecurityLabel attribute, then
all of the SignerInfos (including those marked as v1) in that SignedData
object MUST include an eSSSecurityLabel attribute and the value of each MUST
be identical." 
  
- John Pawling


At 02:53 PM 2/2/99 -0800, Blake Ramsdell wrote:
>> -----Original Message-----
>> From: jsp@jgvandyke.com [mailto:jsp@jgvandyke.com]
>> Sent: Tuesday, February 02, 1999 2:43 PM
>> To: Ietf-Smime (E-mail)
>> Subject: RE: Last Call Comments on CMS-10
>> 
>> I believe that a version 3 SignerInfo MUST cause the parent SignedData
>> version to be 3.  This strategy allows the receiving software 
>> to be able to
>> distinquish between an S/MIME v2 or v3 message by looking at 
>> the first field
>> in the signedData.
>
>I respectfully disagree -- it is possible to have multiple SignerInfos, some
>of which are v2 and can be processed by a v2 agent.
>
>If you reword this to be "if all of the SignerInfos are v3, then the parent
>SignedData should be version 3" or equivalent verbiage, then I think I'd go
>along with it.
>
>Blake
>--
>Blake C. Ramsdell
>Worldtalk Corporation
>For current info, check http://www.deming.com/users/blaker
>Voice +1 425 882 8861 x103  Fax +1 425 882 8060
>
>



From owner-ietf-smime@imc.org  Wed Feb  3 11:53:52 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA26058
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 11:53:51 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA21971
	for ietf-smime-bks; Wed, 3 Feb 1999 07:43:01 -0800 (PST)
Received: from smtp3.ny.us.ibm.com (smtp3.ny.us.ibm.com [198.133.22.42])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA21966
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 07:42:58 -0800 (PST)
From: jaegert@us.ibm.com
Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com [9.117.200.22])
	by smtp3.ny.us.ibm.com (8.8.7/8.8.7) with ESMTP id KAA66070
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 10:22:09 -0500
Received: from D51MTA03.pok.ibm.com (d51mta03.pok.ibm.com [9.117.200.31])
	by northrelay02.pok.ibm.com (8.8.7m1/NCO v1.8) with SMTP id KAA124750
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 10:45:17 -0500
Received: by D51MTA03.pok.ibm.com(Lotus SMTP MTA Internal build v4.6.2  (651.2 6-10-1998))  id 8525670D.00568670 ; Wed, 3 Feb 1999 10:45:05 -0500
X-Lotus-FromDomain: IBMUS
Message-ID: <8525670D.00568270.0A@D51MTA03.pok.ibm.com>
Date: Wed, 3 Feb 1999 10:44:32 -0500
Subject: Call for Papers: Fourth ACM Workshop on Role-based Access Control
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

CALL FOR PAPERS
Fourth ACM WORKSHOP ON ROLE-BASED ACCESS CONTROL
Date: Oct. 28-29, 1999
Place: George Mason University
url: www.list.gmu.edu/rbac

Sponsored By: ACM Sigsac
Hosted By: George Mason University


The essence of Role-Based Access Control (RBAC) is that permissions
are assigned to roles rather than to individual users.  Users acquire
these permissions by virtue of being authorized to act in these roles.
The driving motivation for RBAC is to simplify security policy
administration while facilitating the definition of flexible,
customized policies.  Basic RBAC models have been successfully applied
since the mainframe era, but emerging systems, which have greater
numbers of users, roles, and systems, challenge the expressive power
of these traditional models.

Workshop Scope:

The ACM workshops on RBAC bring together researchers, developers, and
practitioners to discuss the application of RBAC to both traditional
and emerging systems and the development of new access control
paradigms for future applications.  The workshop invites participation from
the database, network, distributed systems, operating systems, security and
application communities.  Contributions reporting experiences with the
implementation and use of RBAC systems are strongly encouraged.
Attendance is limited to 40 participants to foster a workshop atmosphere.

Topics of interest include, but are not restricted to:

- Modeling and specification of RBAC systems
- Administration of RBAC systems
- RBAC in database security
- Specification and enforcement of security policy
- Delegation and inheritance of access rights in RBAC systems
- Task-based access control and RBAC in collaborative environments
- Application Areas e.g., health-care, WWW
- Support for RBAC in traditional access control systems
- RBAC and organizational control principles
- Experiences with RBAC-based systems; case studies
- Enabling technologies: Java, LDAP, intra-net environments
- Implementation, integration and scalability of RBAC
- End-user tools to support RBAC administration and engineering

Submissions:

Users, developers and researchers are invited to submit seven copies
of their papers (in English and limited to 6000 words) to the Program
Chair at the coordinates given below before the due date.  Submissions can
be either hard copy or electronic (postscript preferred). Papers must be
original and should not be under consideration for publication
elsewhere.  Copyrights for accepted papers must be transferable to ACM
(except for Government work).  Papers will be published by ACM in a
proceedings to be distributed at the workshop and mailed to all SIGSAC
members.  Outstanding papers will be considered for publication in ACM's
new Transactions on Information and Systems Security (TISSEC).

Proposals for panels and group discussions should be sent, preferably
by email, to the Panels Chair at dferraiolo@nist.gov.

Paper Submissions should be sent to:
Sylvia Osborn, Program Committee Chair,
Dept. of Computer Science,
The University of Western Ontario,
MC355,
London, Ontario, Canada, N6A 5B7
email: sylvia@csd.uwo.ca

SCHEDULE:
Papers and Panel Proposals Due: May 15, 1999
Notification of acceptance and advance program: June 30, 1999
Deadline for final version of papers: July 31, 1999
Workshop: October 28-29, 1999


CONFERENCE STEERING COMMITTEE:
Ed Coyne, Science Applications International Corporation
David Ferraiolo, National Institute of Standards and Technology
Trent Jaeger, IBM T.J. Watson Research Center
Sylvia Osborn, The University of Western Ontario
Ravi Sandhu, George Mason University
Charles Youman, Blue Cross Blue Shield

General Conference Chair: Charles Youman, Blue Cross Blue Shield
Local Arrangements: Srinivas Ganta, CygnaCom Solutions Inc.
Program Committee Chair: Sylvia Osborn, The University of Western Ontario
Panels Chair: David Ferraiolo, National Institute of Standards and
Technology
Proceedings Chair: Vijay Atluri, Rutgers University
Publicity Chair: Trent Jaeger, IBM T.J. Watson Research Center


PROGRAM COMMITTEE:

Vijay Atluri, Rutgers University
Dave Ferraiolo, National Institute of Standards and Technology
Luigi Giuri,  Fondazione Ugo Bordoni
Trent Jaeger, IBM T.J. Watson Research Center
Carl Landwehr, U.S. Naval Research Laboratory
Emil Lupu, Imperial College
Ravi Sandhu, George Mason University
Richard Simon
Roshan Thomas, TIS Labs at Network Associates
Dan Thomsen, Secure Computing Corp.
Dan Wallach, Rice University

REGISTRATION:
Information on registration and accommodations will be provided.
There will be a registration fee for all participants to cover meeting
costs.




From owner-ietf-smime@imc.org  Wed Feb  3 12:00:16 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id MAA26390
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 12:00:16 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA21949
	for ietf-smime-bks; Wed, 3 Feb 1999 07:41:50 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA21944
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 07:41:49 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id KAA28245;
	Wed, 3 Feb 1999 10:44:44 -0500
Message-Id: <4.1.19990203102112.009bc610@209.172.119.123>
X-Sender: rhousley#mail.spyrus.com@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 03 Feb 1999 10:23:24 -0500
To: jsp@jgvandyke.com (John Pawling)
From: Russ Housley <housley@spyrus.com>
Subject: RE: Last Call Comments on CMS-10
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
In-Reply-To: <199902022243.RAA21569@ajsn101.jgvandyke.com>
Mime-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

<html>
John:<br>
<br>
I agree.&nbsp; How about this for replacement text in section 5.1:<br>
<font face="Courier New, Courier">
<dl>
<dd>The fields of type SignedData have the following meanings:
<dl>
<dd>version is the syntax version number.&nbsp; If no attribute
certificates are present in the certificates field, the encapsulated
content type is id-data, and all elements of SignerInfos are version 1,
then the value of version shall be 1.&nbsp; Alternatively, if attribute
certificates are present, the encapsulated content type is other than
id-data, or any of the elements of SignerInfos are version 3, then the
value of version shall be 3.<br>
<br>
</font>
</dl>
</dl>Russ<br>
<br>
<br>
<br>
At 05:43 PM 2/2/99 -0500, John Pawling wrote:<br>
&gt;All,<br>
&gt;<br>
&gt;I believe that a version 3 SignerInfo MUST cause the parent
SignedData<br>
&gt;version to be 3.&nbsp; This strategy allows the receiving software to
be able to<br>
&gt;distinquish between an S/MIME v2 or v3 message by looking at the
first field<br>
&gt;in the signedData.<br>
&gt;<br>
&gt;- John Pawling<br>
&gt;<br>
&gt;<br>
&gt;At 02:12 PM 1/12/99 -0800, Jim Schaad (Exchange) wrote:<br>
&gt;&gt;Russ:<br>
&gt;&gt;<br>
&gt;&gt;&gt; -----Original Message-----<br>
&gt;&gt;&gt; From: Russ Housley
[<a href="mailto:housley@spyrus.com" eudora="autourl">mailto:housley@spyrus.com</a>]<br>
&gt;&gt;&gt; Sent: Tuesday, January 12, 1999 11:36 AM<br>
&gt;&gt;&gt; To: Jim Schaad (Exchange)<br>
&gt;&gt;&gt; Cc: Ietf-Smime (E-mail)<br>
&gt;&gt;&gt; Subject: Re: Last Call Comments on CMS-10<br>
&gt;<br>
&gt;&lt;snip&gt;<br>
&gt;<br>
&gt;&gt;&gt; &gt;7.&nbsp; Section 5.1: Text on version needs to be
expanded to <br>
&gt;&gt;&gt; deal with SKI.<br>
&gt;&gt;&gt; &gt;Must be 3 if any SignerInfo version is 3.<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Are you saying that a version 3 SignerInfo should cause
<br>
&gt;&gt;&gt; parent SignedData<br>
&gt;&gt;&gt; version to be 3?<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Is there a reason to prohibit version 3 SignerInfo from
being <br>
&gt;&gt;&gt; encapsulated in a<br>
&gt;&gt;&gt; version 1 SignedData?<br>
&gt;&gt;<br>
&gt;&gt;This is the backwards compatability thing.&nbsp; Everywhere else
we have done --<br>
&gt;&gt;you get a new version all the way up (See EnvelopedData) if you
do something<br>
&gt;&gt;new on an inner object.&nbsp; This prevents you from starting
something you may<br>
&gt;&gt;regret.&nbsp; If we don't do this here, then I don't see why we
should be doing<br>
&gt;&gt;it in EnvelopedData.&nbsp; I don't care which of the two we
correct, but make<br>
&gt;&gt;them consistant.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; &gt;10. Section 12.3.1, paragraph 3.&nbsp; I would like to
change the <br>
&gt;&gt;&gt; first sentence<br>
&gt;&gt;&gt; &gt;to &quot;A CMS Implementation should support mixed
key-encryption and<br>
&gt;&gt;&gt; &gt;content-encryption algorithms.&quot;<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Disgree.&nbsp; I am reluctant to change &quot;may&quot; to
&quot;should.&quot;&nbsp; What <br>
&gt;&gt;&gt; do other people<br>
&gt;&gt;&gt; think?<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; &gt;11. Section 12.3.3 - Please insert the following
paragraph <br>
&gt;&gt;&gt; in this section<br>
&gt;&gt;&gt; &gt;&quot;&nbsp;&nbsp; A CMS implementation should support
mixed key-encryption <br>
&gt;&gt;&gt; and content-<br>
&gt;&gt;&gt; &gt;&nbsp;&nbsp; encryption algorithms.&nbsp; For example, a
128-bit RC2 <br>
&gt;&gt;&gt; content-encryption<br>
&gt;&gt;&gt; &gt;&nbsp;&nbsp; key may be wrapped with 168-bit Triple-DES
key-encryption key.<br>
&gt;&gt;&gt; &gt;&nbsp;&nbsp; Similarly, a 40-bit RC2 content-encryption
key may be wrapped with<br>
&gt;&gt;&gt; &gt;&nbsp;&nbsp; 128-bit RC2 key-encryption key.&quot;<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; As with comment 10, I would like to hear what other people
<br>
&gt;&gt;&gt; think before<br>
&gt;&gt;&gt; changing &quot;may&quot; to &quot;should.&quot;<br>
&gt;&gt;<br>
&gt;&gt;Can I at least get you to agree to put in the paragraph with the
&quot;may&quot;<br>
&gt;&gt;syntax even if I get no support for &quot;should&quot;?<br>
&gt;&gt;<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; &gt;12. Ditto 11 for section 12.6<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Ditto.&nbsp; As with comments 10 and 11, I would like to
hear what <br>
&gt;&gt;&gt; other people<br>
&gt;&gt;&gt; think before changing &quot;may&quot; to
&quot;should.&quot;<br>
&gt;&gt;&gt; <br>
&gt;&gt;<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Russ<br>
&gt;&gt;&gt; <br>
&gt;&gt;<br>
&gt;&gt;jim<br>
&gt;&gt;<br>
&gt;<br>
</html>



From owner-ietf-smime@imc.org  Wed Feb  3 13:38:16 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id NAA02420
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 13:38:15 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA23418
	for ietf-smime-bks; Wed, 3 Feb 1999 09:45:29 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA23414
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 09:45:28 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id MAA01485;
	Wed, 3 Feb 1999 12:48:27 -0500
Message-Id: <4.1.19990203124715.009bf420@209.172.119.123>
X-Sender: rhousley#mail.spyrus.com@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 03 Feb 1999 12:49:17 -0500
To: jsp@jgvandyke.com
From: Russ Housley <housley@spyrus.com>
Subject: RE: Last Call Comments on CMS-10
Cc: ietf-smime@imc.org
In-Reply-To: <01FF24001403D011AD7B00A024BC53C563DD8A@mail.deming.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Please excuse my previous posting.  when I did a cut-and-paste from anothe
window, my mail user agent software decided to make it HTML.  Sorry.  Here
is the reply in plain text.

==========

John:

I agree.  How about this for replacement text in section 5.1:

	The fields of type SignedData have the following meanings: 

		version is the syntax version number.  If no attribute 
		certificates are present in the certificates field, the 
		encapsulated content type is id-data, and all elements of 
		SignerInfos are version 1, then the value of version shall 
		be 1.  Alternatively, if attribute certificates are 
		present, the encapsulated content type is other than 
		id-data, or any of the elements of SignerInfos are version 
		3, then the value of version shall be 3.

Russ




From owner-ietf-smime@imc.org  Wed Feb  3 15:49:28 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id PAA08109
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 15:49:27 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA25000
	for ietf-smime-bks; Wed, 3 Feb 1999 11:52:53 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA24996
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 11:52:51 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id OAA06898;
	Wed, 3 Feb 1999 14:55:57 -0500
Message-Id: <4.1.19990203141944.009b6330@209.172.119.123>
X-Sender: rhousley#mail.spyrus.com@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 03 Feb 1999 14:20:45 -0500
To: jsp@jgvandyke.com (John Pawling)
From: Russ Housley <housley@spyrus.com>
Subject: RE: Last Call Comments on CMS-10
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
In-Reply-To: <199902031558.KAA11766@ajsn101.jgvandyke.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Based on John's response, I propose the following text:

version is the syntax version number.  If no attribute certificates are
present in the certificates field, the encapsulated content type is
id-data, and any of the elements of SignerInfos are version 1, then the
value of version shall be 1.  Alternatively, if attribute certificates are
present, the encapsulated content type is other than id-data, or all of the
elements of SignerInfos are version 3, then the value of version shall be 3.

Russ

At 10:58 AM 2/3/99 -0500, John Pawling wrote:
>Blake and friends,
>
>I initially objected to the concept of allowing v1 and v3 signerInfos to
>exist in the same signedData because I believed that the beneift was not
>worth the problems that they will probably cause in legacy S/MIME products.
>I suspect that many legacy products don't check the version number of the
>singerInfo before decoding it.  If they don't check it, then they will
>encounter an ASN.1 decode error when processing a v3 signerInfo which could
>cause unpredictable behavior in the software.  
>
>Upon further reflection, I now agree with Blake.  Potential deficiencies in
>legacy products should not drive the design of the v3 S/MIME specs.  An
>S/MIME v3 user agent should be allowed to send a signedData that includes a
>v1 signerInfo that can be processed by all S/MIME user agents and a v3
>signerInfo that can only be processsed by v3 user agents.  I agree with
>Blake that the version number of such a signedData should be v1.  If the
>version number was v3, then the legacy software would reject the signedData
>even though it includes a v1 signerInfo that it could verify.
>
>This concept raises another issue.  ESS states: "If any of the SignerInfos
>included in a SignedData object include an eSSSecurityLabel attribute, then
>all of the SignerInfos in that SignedData object MUST include an
>eSSSecurityLabel attribute and the value of each MUST be identical."  I
>believe that this statement should be changed to: "If any of the SignerInfos
>included in a SignedData object include an eSSSecurityLabel attribute, then
>all of the SignerInfos (including those marked as v1) in that SignedData
>object MUST include an eSSSecurityLabel attribute and the value of each MUST
>be identical." 
>  
>- John Pawling
>
>
>At 02:53 PM 2/2/99 -0800, Blake Ramsdell wrote:
>>> -----Original Message-----
>>> From: jsp@jgvandyke.com [mailto:jsp@jgvandyke.com]
>>> Sent: Tuesday, February 02, 1999 2:43 PM
>>> To: Ietf-Smime (E-mail)
>>> Subject: RE: Last Call Comments on CMS-10
>>> 
>>> I believe that a version 3 SignerInfo MUST cause the parent SignedData
>>> version to be 3.  This strategy allows the receiving software 
>>> to be able to
>>> distinquish between an S/MIME v2 or v3 message by looking at 
>>> the first field
>>> in the signedData.
>>
>>I respectfully disagree -- it is possible to have multiple SignerInfos, some
>>of which are v2 and can be processed by a v2 agent.
>>
>>If you reword this to be "if all of the SignerInfos are v3, then the parent
>>SignedData should be version 3" or equivalent verbiage, then I think I'd go
>>along with it.
>>
>>Blake
>>--
>>Blake C. Ramsdell
>>Worldtalk Corporation
>>For current info, check http://www.deming.com/users/blaker
>>Voice +1 425 882 8861 x103  Fax +1 425 882 8060
>>
>>
>



From owner-ietf-smime@imc.org  Wed Feb  3 16:00:29 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id QAA08295
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 16:00:28 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA25284
	for ietf-smime-bks; Wed, 3 Feb 1999 12:10:59 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA25280
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 12:10:57 -0800 (PST)
Received: by dfssl.exchange.microsoft.com with Internet Mail Service (5.5.2232.9)
	id <CQY3FFDB>; Wed, 3 Feb 1999 12:13:42 -0800
Message-ID: <2FBF98FC7852CF11912A0000000000010ECB5C92@DINO>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'jsp@jgvandyke.com'" <jsp@jgvandyke.com>,
        "Ietf-Smime (E-mail)"
	 <ietf-smime@imc.org>
Subject: RE: Last Call Comments on CMS-10
Date: Wed, 3 Feb 1999 12:13:39 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain;
	charset="windows-1252"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John and Russ,

I completely disagree with this.  I don't think that it is any type of a
fair statement to say that down level clients should be able in any way,
shape or form to be able to parse one of these new messages.  This is why
the MUST occurs in the S/MIME documents.

I don't think it is a deficency of a down level client to be able to
completely fail if the ASN does not completely match to spec, I think this
is normal.  If a down-level client is not looking at version numbers then it
will deal with what it deals with, but I think that we need to give them
help not to kill them selfs.  

If you are going to go with this agruement then I want to take you arguement
to the logical extreme.  The text in section 6.1 should be changed so that
the version number there does not have anything to do with the version
numbers in RecipeientInfos.  The same aguements about down-level clients
appear just as valid here as with SignedData.  You should either get none of
the cake or the entire cake, not just the pieces you happen to like.

jim

-----Original Message-----
From: jsp@jgvandyke.com [mailto:jsp@jgvandyke.com]
Sent: Wednesday, February 03, 1999 7:59 AM
To: Ietf-Smime (E-mail)
Subject: RE: Last Call Comments on CMS-10


Blake and friends,

I initially objected to the concept of allowing v1 and v3 signerInfos to
exist in the same signedData because I believed that the beneift was not
worth the problems that they will probably cause in legacy S/MIME products.
I suspect that many legacy products don't check the version number of the
singerInfo before decoding it.  If they don't check it, then they will
encounter an ASN.1 decode error when processing a v3 signerInfo which could
cause unpredictable behavior in the software.  

Upon further reflection, I now agree with Blake.  Potential deficiencies in
legacy products should not drive the design of the v3 S/MIME specs.  An
S/MIME v3 user agent should be allowed to send a signedData that includes a
v1 signerInfo that can be processed by all S/MIME user agents and a v3
signerInfo that can only be processsed by v3 user agents.  I agree with
Blake that the version number of such a signedData should be v1.  If the
version number was v3, then the legacy software would reject the signedData
even though it includes a v1 signerInfo that it could verify.

This concept raises another issue.  ESS states: "If any of the SignerInfos
included in a SignedData object include an eSSSecurityLabel attribute, then
all of the SignerInfos in that SignedData object MUST include an
eSSSecurityLabel attribute and the value of each MUST be identical."  I
believe that this statement should be changed to: "If any of the SignerInfos
included in a SignedData object include an eSSSecurityLabel attribute, then
all of the SignerInfos (including those marked as v1) in that SignedData
object MUST include an eSSSecurityLabel attribute and the value of each MUST
be identical." 
  
- John Pawling


At 02:53 PM 2/2/99 -0800, Blake Ramsdell wrote:
>> -----Original Message-----
>> From: jsp@jgvandyke.com [mailto:jsp@jgvandyke.com]
>> Sent: Tuesday, February 02, 1999 2:43 PM
>> To: Ietf-Smime (E-mail)
>> Subject: RE: Last Call Comments on CMS-10
>> 
>> I believe that a version 3 SignerInfo MUST cause the parent SignedData
>> version to be 3.  This strategy allows the receiving software 
>> to be able to
>> distinquish between an S/MIME v2 or v3 message by looking at 
>> the first field
>> in the signedData.
>
>I respectfully disagree -- it is possible to have multiple SignerInfos,
some
>of which are v2 and can be processed by a v2 agent.
>
>If you reword this to be "if all of the SignerInfos are v3, then the parent
>SignedData should be version 3" or equivalent verbiage, then I think I'd go
>along with it.
>
>Blake
>--
>Blake C. Ramsdell
>Worldtalk Corporation
>For current info, check http://www.deming.com/users/blaker
>Voice +1 425 882 8861 x103  Fax +1 425 882 8060
>
>


From owner-ietf-smime@imc.org  Wed Feb  3 16:13:23 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id QAA08537
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 16:13:22 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA25454
	for ietf-smime-bks; Wed, 3 Feb 1999 12:25:13 -0800 (PST)
Received: from cane.deming.com (mail.deming.com [208.236.41.137])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id MAA25450
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 12:25:11 -0800 (PST)
Received: from 208.236.41.137 by cane.deming.com with ESMTP (WorldSecure
 Server SMTP Relay(WSS) v3.2 SR1); Wed, 03 Feb 99 12:27:49 -0800
X-Server-Uuid: 1a012586-24e9-11d1-adae-00a024bc53c5
Received: by mail.deming.com with Internet Mail Service (5.5.2232.9) id
 <DVNLY57D>; Wed, 3 Feb 1999 12:27:49 -0800
Message-ID: <01FF24001403D011AD7B00A024BC53C563DD99@mail.deming.com>
From: "Blake Ramsdell" <BlakeR@deming.com>
To: "'Russ Housley'" <housley@spyrus.com>, <jsp@jgvandyke.com>
cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: RE: Last Call Comments on CMS-10
Date: Wed, 3 Feb 1999 12:27:48 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
X-WSS-ID: 1AA66ECF53265-01-01
Content-Type: text/plain; 
 charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

> -----Original Message-----
> From: Russ Housley [mailto:housley@spyrus.com]
> Sent: Wednesday, February 03, 1999 11:21 AM
> To: jsp@jgvandyke.com
> Cc: Ietf-Smime (E-mail)
> Subject: RE: Last Call Comments on CMS-10
> 
> Based on John's response, I propose the following text:
> 
> version is the syntax version number.  If no attribute 
> certificates are
> present in the certificates field, the encapsulated content type is
> id-data, and any of the elements of SignerInfos are version 
> 1, then the
> value of version shall be 1.  Alternatively, if attribute 
> certificates are
> present, the encapsulated content type is other than id-data, 
> or all of the
> elements of SignerInfos are version 3, then the value of 
> version shall be 3.

Agree.

Blake
--
Blake C. Ramsdell
Worldtalk Corporation
For current info, check http://www.deming.com/users/blaker
Voice +1 425 882 8861 x103  Fax +1 425 882 8060



From owner-ietf-smime@imc.org  Wed Feb  3 16:30:11 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id QAA08769
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 16:30:11 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA25574
	for ietf-smime-bks; Wed, 3 Feb 1999 12:36:03 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA25570
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 12:36:02 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id PAA13582
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 15:44:32 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id PAA17892; Wed, 3 Feb 1999 15:42:10 -0500
Date: Wed, 3 Feb 1999 15:42:10 -0500
Message-Id: <199902032042.PAA17892@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: RE: Last Call Comments on CMS-10
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

I respectfully disagree with Jim.  An S/MIME v3 user agent should be allowed
to send a signedData that includes a v1 signerInfo that can be processed by
all S/MIME user agents and a v3 signerInfo that can only be processsed by v3
user agents.    This allows a single message to be sent to all recipients.
Otherwise, the user would need to send two messages:  the old S/MIME v2
message to legacy users and a new S/MIME v3 message to S/MIME v3 users.
This seems unworkable, because how does the originator know what flavor of
software will be used by each recipient. 

Furthermore, an S/MIME v3 user agent should be allowed to send an
envelopedData that includes a v0 RecipientInfo that can be processed by all
S/MIME user agents and a v3 RecipientInfo that can only be processsed by v3
user agents.  The version number of such an envelopedData should be v0.  If
the version number was v3, then the legacy software would reject the
envelopedData even though it includes a v1 ReceipientInfo that it could
process.  This allows a single message to be sent to all recipients.
Otherwise, the user would need to send two messages.  The old S/MIME v2
message to legacy users and a new S/MIME v3 message to S/MIME v3 users.  

I agree with Jim that the rules for setting the signedData and envelopedData
version number must be consistent.  Recommend that the Sec 6.1 text
regarding envelopedData version should be changed as follows:

"version is the syntax version number.  If originatorInfo is
present, then version shall be 2.  If all of the RecipientInfo
structures included have a version other than 0, then the version
shall be 2.  If unprotectedAttrs is present, then version shall be
2.  If originatorInfo is absent, any of the RecipientInfo
structures are version 0, and unprotectedAttrs is absent, then
version shall be 0."

- John Pawling


At 12:13 PM 2/3/99 -0800, Jim Schaad (Exchange) wrote:
>John and Russ,
>
>I completely disagree with this.  I don't think that it is any type of a
>fair statement to say that down level clients should be able in any way,
>shape or form to be able to parse one of these new messages.  This is why
>the MUST occurs in the S/MIME documents.
>
>I don't think it is a deficency of a down level client to be able to
>completely fail if the ASN does not completely match to spec, I think this
>is normal.  If a down-level client is not looking at version numbers then it
>will deal with what it deals with, but I think that we need to give them
>help not to kill them selfs.  
>
>If you are going to go with this agruement then I want to take you arguement
>to the logical extreme.  The text in section 6.1 should be changed so that
>the version number there does not have anything to do with the version
>numbers in RecipeientInfos.  The same aguements about down-level clients
>appear just as valid here as with SignedData.  You should either get none of
>the cake or the entire cake, not just the pieces you happen to like.
>
>jim
>
>-----Original Message-----
>From: jsp@jgvandyke.com [mailto:jsp@jgvandyke.com]
>Sent: Wednesday, February 03, 1999 7:59 AM
>To: Ietf-Smime (E-mail)
>Subject: RE: Last Call Comments on CMS-10
>
>
>Blake and friends,
>
>I initially objected to the concept of allowing v1 and v3 signerInfos to
>exist in the same signedData because I believed that the beneift was not
>worth the problems that they will probably cause in legacy S/MIME products.
>I suspect that many legacy products don't check the version number of the
>singerInfo before decoding it.  If they don't check it, then they will
>encounter an ASN.1 decode error when processing a v3 signerInfo which could
>cause unpredictable behavior in the software.  
>
>Upon further reflection, I now agree with Blake.  Potential deficiencies in
>legacy products should not drive the design of the v3 S/MIME specs.  An
>S/MIME v3 user agent should be allowed to send a signedData that includes a
>v1 signerInfo that can be processed by all S/MIME user agents and a v3
>signerInfo that can only be processsed by v3 user agents.  I agree with
>Blake that the version number of such a signedData should be v1.  If the
>version number was v3, then the legacy software would reject the signedData
>even though it includes a v1 signerInfo that it could verify.
>
>This concept raises another issue.  ESS states: "If any of the SignerInfos
>included in a SignedData object include an eSSSecurityLabel attribute, then
>all of the SignerInfos in that SignedData object MUST include an
>eSSSecurityLabel attribute and the value of each MUST be identical."  I
>believe that this statement should be changed to: "If any of the SignerInfos
>included in a SignedData object include an eSSSecurityLabel attribute, then
>all of the SignerInfos (including those marked as v1) in that SignedData
>object MUST include an eSSSecurityLabel attribute and the value of each MUST
>be identical." 
>  
>- John Pawling
>
>
>At 02:53 PM 2/2/99 -0800, Blake Ramsdell wrote:
>>> -----Original Message-----
>>> From: jsp@jgvandyke.com [mailto:jsp@jgvandyke.com]
>>> Sent: Tuesday, February 02, 1999 2:43 PM
>>> To: Ietf-Smime (E-mail)
>>> Subject: RE: Last Call Comments on CMS-10
>>> 
>>> I believe that a version 3 SignerInfo MUST cause the parent SignedData
>>> version to be 3.  This strategy allows the receiving software 
>>> to be able to
>>> distinquish between an S/MIME v2 or v3 message by looking at 
>>> the first field
>>> in the signedData.
>>
>>I respectfully disagree -- it is possible to have multiple SignerInfos,
>some
>>of which are v2 and can be processed by a v2 agent.
>>
>>If you reword this to be "if all of the SignerInfos are v3, then the parent
>>SignedData should be version 3" or equivalent verbiage, then I think I'd go
>>along with it.
>>
>>Blake
>>--
>>Blake C. Ramsdell
>>Worldtalk Corporation
>>For current info, check http://www.deming.com/users/blaker
>>Voice +1 425 882 8861 x103  Fax +1 425 882 8060
>>
>>
>



From owner-ietf-smime@imc.org  Wed Feb  3 17:40:22 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA10199
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 17:40:21 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA26537
	for ietf-smime-bks; Wed, 3 Feb 1999 13:46:25 -0800 (PST)
Received: from eagle.rsa.com (eagle.rsa.com [192.80.211.35])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id NAA26533
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 13:46:24 -0800 (PST)
Received: from [10.81.217.217] by eagle.rsa.com
          via smtpd (for imc.org [206.184.129.134]) with SMTP; 3 Feb 1999 22:07:48 UT
Received: by lobester.rsa.com with Internet Mail Service (5.5.2232.9)
	id <ZNLAQDH9>; Wed, 3 Feb 1999 13:53:36 -0800
Message-ID: <7DE9F929113DD11181C900805F85C1AA6FDD09@geoduck.rsa.com>
From: Burt Kaliski <burt@RSA.COM>
To: djohnson@certicom.com, housley@spyrus.com,
        "'Bob Jueneman'"
	 <BJUENEMAN@novell.com>
Cc: cme@ACM.ORG, berson@anagram.com, mjmarkowitz@attmail.com,
        bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
        mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
        schneier@counterpane.com, denning@cs.cosc.georgetown.edu,
        smid@csmes.ncsl.nist.gov, omura@cylink.com, carlisle.adams@entrust.com,
        paulv@entrust.com, Blake.greenlee@greenlee.com, ietf-smime@imc.org,
        benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil,
        jis@mit.edu, Bob Jueneman <BJUENEMAN.PRV-7.PROVO@novell.com>,
        Tolga Acar
	 <TACAR.PRV-7.PROVO@novell.com>, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, ekr@rtfm.com, jlinn@securitydynamics.com,
        ams@terisa.com, Ron Rivest <rivest@theory.lcs.mit.edu>,
        balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
        jhs@tycho.ncsc.mil, desmedt@uwm.edu, smatyas@vnet.ibm.com
Subject: RE: A New Triple-DES Key Wrap Algorithm
Date: Wed, 3 Feb 1999 13:48:55 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Dear Bob --

Let me address your question, and the general situation with triple-DES key
wrapping.

The high-level goal is to wrap an arbitrary length content encryption key
(CEK) with a symmetric key encryption key (KEK).

Wrapping single-block CEKs is straightforward and has an established
precedent, as in the wrapping of single-length DES keys by ECB mode
encryption. But there is no established precedent for wrapping
multiple-block CEKs, as far as I'm aware.

Russ proposed one method, which involved formatting the CEK into a package
of the form

  salt || CEK || ICV || pad

where salt is a random value, ICV is an integrity check on the CEK, and pad
one of a set of known padding values. The package is then encrypted with the
KEK in CBC mode.

My initial "attack" on this approach was based on the observation that since
the pad is known, there is known plaintext for the encryption with the KEK.
This leads to a potential vulnerability when many CEKs are wrapped with the
same KEK, due to the Birthday Paradox. After about 2^32 CEKs (for a 64-bit
block size) it is likely that a block of one wrapped CEK will match a block
of another CEK. If one of the blocks corresponds to the encryption of a
partially known value (e.g., a pad xored with some of the previous
ciphertext), then information about the other block will become known.

This is the same as the problem with 64-bit block ciphers in CBC mode for
message encryption -- after about 2^32 blocks, information about the
plaintext starts to leak.

A simple way to avoid the attack is to limit the number of keys that can be
wrapped with a given KEK. Indeed, S/MIME already limits the number in the
case of Diffie-Hellman-based KEKs, since each KEK is employed only once.
However, in the case of mailing lists, a KEK may be used many times.

But the essential issue is the precedent that S/MIME will set for wrapping
multiple-block CEKs in other systems. I'm concerned that we develop
something robust here, not something that works all right for S/MIME but is
hard to adapt to other systems.

Consider, for historical comparison, the password-based encryption methods
in PKCS #5 v1. They worked fine when DES and MD5 where the algorithms of
choice -- but there was no clear method for extending them to, say,
triple-DES and SHA1. PKCS #5 v2 is clearing up the situation, but in the
interim, there were quite a few alternate approaches, with varying degrees
of security and standarization.

My proposal to Russ was to consider the use of OAEP for processing CEKs
prior to encryption with a block cipher. Although OAEP was first developed
for asymmetric encryption, the construction is not limited to that purpose,
and indeed the security proofs should carry over nicely to wrapping with a
symmetric KEK. OAEP has a built-in integrity check and ensures that every
bit of output depends on every bit of input. It is also quite scalable, and
can accommodate CEKs of any length and arbitrary encryption algorithms.
Further, it builds on an exisiting primitive. One can view OAEP as a way of
preparing keys for wrapping with either symmetric or asymmetric techniques,
which simplifies implementation.

I'll suggest a few specific improvements Russ' OAEP proposal in a separate
message.

Don Johnson's proposal two-pass encryption with triple-DES-CBC is another
option. It has the advantage of not requiring a separate hash function, and,
implemented with appropriate settings, resists the birthday attacks on the
original method.

(BTW, I don't have any proprietary interest in promoting OAEP --- just like
to continue to deploy common primitives rather than defining new ones. HMAC
is another example of something that's gaining use because of its
robustness.)

-- Burt



> ----------
> From: 	Bob Jueneman[SMTP:BJUENEMAN@novell.com]
> Sent: 	Tuesday, February 02, 1999 4:55 PM
> To: 	djohnson@certicom.com; housley@spyrus.com
> Cc: 	cme@ACM.ORG; berson@anagram.com; mjmarkowitz@attmail.com;
> bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; denning@cs.cosc.georgetown.edu;
> smid@csmes.ncsl.nist.gov; omura@cylink.com; carlisle.adams@entrust.com;
> paulv@entrust.com; Blake.greenlee@greenlee.com; ietf-smime@imc.org;
> benaloh@microsoft.com; bfox@microsoft.com; cjwagne@missi.ncsc.mil;
> jis@mit.edu; Bob Jueneman; Tolga Acar; merkle@parc.xerox.com;
> BSnow@radium.ncsc.mil; Burt Kaliski; ekr@rtfm.com;
> jlinn@securitydynamics.com; ams@terisa.com; Ron Rivest; balenson@tis.com;
> denny@tis.com; acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil; desmedt@uwm.edu;
> smatyas@vnet.ibm.com
> Subject: 	Re: A New Triple-DES Key Wrap Algorithm
> 
> Russ,
> 
> For the benefit of those of us who weren't following the discussion all 
> that closely, could you summarize your original submission (and the 
> rationale behind it), and the attack which Burt Kalisky found against it?
> 
> BTW, that's an impressive cc-list -- almost a crypto who's who. I'd add 
> Hugo Kwrazack and Yair Frankel, and certainly Don Coppersmith, 
> but I don't have their current e-mail addresses.
> 
> Bob
> 
> 
> 
> Robert R. Jueneman
> Security Architect
> Network Security Development
> Novell, Inc.
> 122 East 1700 South
> Provo, UT 84606
> bjueneman@novell.com
> 1-801-861-7387
> 
> 
> 


From owner-ietf-smime@imc.org  Wed Feb  3 18:23:22 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id SAA11264
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 18:23:22 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA28245
	for ietf-smime-bks; Wed, 3 Feb 1999 14:30:50 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA28241
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 14:30:49 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id RAA18956
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 17:39:19 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id RAA19298; Wed, 3 Feb 1999 17:36:57 -0500
Date: Wed, 3 Feb 1999 17:36:57 -0500
Message-Id: <199902032236.RAA19298@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: CMS: Recips W/Different Params
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

I believe that the following clarifying text should be appended to CMS
section 12.3.1.1:  "When an EnvelopedData is constructed for sets of
recipients whose public keys have been generated using different D-H
parameters (i.e. p,q,g values), then a separate RecipientInfo
KeyAgreeRecipientInfo field must be constructed for each set of recipients
that possess common D-H parameters.  For example, if a user needs to send an
envelopedData to a set of recipients possessing D-H parameter "set 1" and
another set of recipients possessing D-H parameter "set 2", then the
envelopedData must include one RecipientInfo KeyAgreeRecipientInfo that
includes the recipientEncryptedKeys for the set of recipients possessing D-H
parameter "set 1" and a separate RecipientInfo KeyAgreeRecipientInfo that
includes the recipientEncryptedKeys for the set of recipients possessing D-H
parameter "set 2".  This is needed because the originatorKey will be
different for each of these sets of recipients because the originator uses
the recipient's D-H parameters as part of the process of generating the
originator's ephemeral private-public D-H key pair."

Please note that this is an editorial comment.  It does add to or change any
of the CMS concepts.

=========================================================
John Pawling, Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================



From owner-ietf-smime@imc.org  Wed Feb  3 18:25:42 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id SAA11311
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 18:25:42 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA28895
	for ietf-smime-bks; Wed, 3 Feb 1999 14:43:57 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA28891
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 14:43:56 -0800 (PST)
Received: by dfssl.exchange.microsoft.com with Internet Mail Service (5.5.2232.9)
	id <CQY3FGDA>; Wed, 3 Feb 1999 14:47:02 -0800
Message-ID: <2FBF98FC7852CF11912A0000000000010ECB5C9C@DINO>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'jsp@jgvandyke.com'" <jsp@jgvandyke.com>,
        "Ietf-Smime (E-mail)"
	 <ietf-smime@imc.org>
Subject: RE: Recips W/Different Params
Date: Wed, 3 Feb 1999 14:46:56 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain;
	charset="windows-1252"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I think this is a reasonable change to add.

jim


-----Original Message-----
From: jsp@jgvandyke.com [mailto:jsp@jgvandyke.com]
Sent: Wednesday, February 03, 1999 2:37 PM
To: Ietf-Smime (E-mail)
Subject: CMS: Recips W/Different Params


All,

I believe that the following clarifying text should be appended to CMS
section 12.3.1.1:  "When an EnvelopedData is constructed for sets of
recipients whose public keys have been generated using different D-H
parameters (i.e. p,q,g values), then a separate RecipientInfo
KeyAgreeRecipientInfo field must be constructed for each set of recipients
that possess common D-H parameters.  For example, if a user needs to send an
envelopedData to a set of recipients possessing D-H parameter "set 1" and
another set of recipients possessing D-H parameter "set 2", then the
envelopedData must include one RecipientInfo KeyAgreeRecipientInfo that
includes the recipientEncryptedKeys for the set of recipients possessing D-H
parameter "set 1" and a separate RecipientInfo KeyAgreeRecipientInfo that
includes the recipientEncryptedKeys for the set of recipients possessing D-H
parameter "set 2".  This is needed because the originatorKey will be
different for each of these sets of recipients because the originator uses
the recipient's D-H parameters as part of the process of generating the
originator's ephemeral private-public D-H key pair."

Please note that this is an editorial comment.  It does add to or change any
of the CMS concepts.

=========================================================
John Pawling, Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================


From owner-ietf-smime@imc.org  Wed Feb  3 19:21:25 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id TAA12259
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 19:21:25 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id PAA01093
	for ietf-smime-bks; Wed, 3 Feb 1999 15:31:11 -0800 (PST)
Received: from speedy.rtfm.com ([208.217.207.133])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id PAA01089
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 15:31:10 -0800 (PST)
Received: (ekr@localhost) by speedy.rtfm.com (8.9.1/8.6.4) id PAA19803; Wed, 3 Feb 1999 15:35:01 -0800 (PST)
To: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
Cc: "'jsp@jgvandyke.com'" <jsp@jgvandyke.com>,
        "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: Re: Last Call Comments on CMS-10
References: <2FBF98FC7852CF11912A0000000000010ECB5C92@DINO>
From: EKR <ekr@rtfm.com>
Date: 03 Feb 1999 15:35:01 -0800
In-Reply-To: "Jim Schaad's message of "Wed, 3 Feb 1999 12:13:39 -0800"
Message-ID: <kjk8xz2h96.fsf@speedy.rtfm.com>
Lines: 33
X-Mailer: Gnus v5.6.43/XEmacs 20.4 - "Emerald"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com> writes:
> John and Russ,
> 
> I completely disagree with this.  I don't think that it is any type of a
> fair statement to say that down level clients should be able in any way,
> shape or form to be able to parse one of these new messages.  This is why
> the MUST occurs in the S/MIME documents.
The problem is that these are combined new and old messages.

> I don't think it is a deficency of a down level client to be able to
> completely fail if the ASN does not completely match to spec, I think this
> is normal.  If a down-level client is not looking at version numbers then it
> will deal with what it deals with, but I think that we need to give them
> help not to kill them selfs.  
I don't believe that the version number matters here much. The
way I see it, a client that's smart enough to skip innapropriately
versioned Signer or RecipientInfos should be smart enough to
skip over a different CMS version number and see if it can
really read the message.

> If you are going to go with this agruement then I want to take you arguement
> to the logical extreme.  The text in section 6.1 should be changed so that
> the version number there does not have anything to do with the version
> numbers in RecipeientInfos.  The same aguements about down-level clients
> appear just as valid here as with SignedData.
I tend to agree here. OTOH, if OriginatorInfo is present, then
it seems that the version number must be increased. Else what
good is the version number in the first place?

-Ekr

-- 
[Eric Rescorla                                   ekr@rtfm.com]


From owner-ietf-smime@imc.org  Wed Feb  3 20:03:18 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id UAA12749
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 20:03:17 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA03790
	for ietf-smime-bks; Wed, 3 Feb 1999 16:23:43 -0800 (PST)
Received: from post.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA03786
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 16:23:42 -0800 (PST)
Received: from [193.237.150.98] (helo=drh-consultancy.demon.co.uk)
	by post.mail.demon.net with esmtp (Exim 2.11 #1)
	id 108Cd8-00048P-00
	for ietf-smime@imc.org; Thu, 4 Feb 1999 00:26:50 +0000
Message-ID: <36B8E8E8.AB7FA709@drh-consultancy.demon.co.uk>
Date: Thu, 04 Feb 1999 00:25:12 +0000
From: Dr Stephen Henson <shenson@drh-consultancy.demon.co.uk>
Organization: Dr S N Henson
X-Mailer: Mozilla 4.08 [en] (Win95; U)
MIME-Version: 1.0
To: "ietf-smime@imc.org" <ietf-smime@imc.org>
Subject: Re: A New Triple-DES Key Wrap Algorithm
References: <7DE9F929113DD11181C900805F85C1AA6FDD09@geoduck.rsa.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Apologies if I've missed the point here but...

Is there some specific need to use the same KEK for mailing lists
multiple times or could the same solution be used as in S-S DH? 

In other words make the use of a "salt" in the message compulsory and
use the mailing list key in place of the DH shared secret (ZZ). This
would then allow the same mailing list key to be used multiple times
because the KEK would be different with each salt.

Steve.
-- 
Dr Stephen N. Henson. UK based freelance Cryptographic Consultant. 
For info see homepage at http://www.drh-consultancy.demon.co.uk/
Email: shenson@drh-consultancy.demon.co.uk
NOTE NEW (13/12/98) PGP key: via homepage.



From owner-ietf-smime@imc.org  Wed Feb  3 20:04:24 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id UAA12761
	for <smime-archive@odin.ietf.org>; Wed, 3 Feb 1999 20:04:23 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA03317
	for ietf-smime-bks; Wed, 3 Feb 1999 16:10:22 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id QAA03307
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 16:10:18 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Wed, 03 Feb 1999 17:12:57 -0700
Message-Id: <s6b88399.070@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Wed, 03 Feb 1999 17:12:33 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <djohnson@certicom.com>, <burt@RSA.COM>, <housley@spyrus.com>
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <mjmarkowitz@attmail.com>,
        <bschanni@BayNetworks.com>, <kent@bbn.com>, <pcain@bbn.com>,
        <mhetzel@bell-labs.com>, <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <denning@cs.cosc.georgetown.edu>,
        <smid@csmes.ncsl.nist.gov>, <omura@cylink.com>,
        <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <ietf-smime@imc.org>,
        <benaloh@microsoft.com>, <bfox@microsoft.com>,
        <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <ekr@rtfm.com>, <jlinn@securitydynamics.com>,
        <ams@terisa.com>, <rivest@theory.lcs.mit.edu>, <balenson@tis.com>,
        <denny@tis.com>, <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>,
        <desmedt@uwm.edu>, <smatyas@vnet.ibm.com>
Subject: RE: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id QAA03308
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Dear Burt --

Very interesting!

Ages ago, I tried to analyze the possibility of a compromise of 
Output Feedback Mode of an extremely long message, but I'd never 
considered the Birthday Attack against a very long CBC encrypted 
message when there was partially known plaintext. So this was eye-opening.

In order to make sure that I understand, let me try to generalize the requirements
and play them back to you for comment.

Ideally, we would like to use a common key wrapping envelop approach
that would be resistant to a broad class of these kinds of attacks, regardless 
of the KEK algorithm type (stream, block, or asymmetric), block size, or key length;
or of the CEK algorithm type, block size, or key length; assuming that there 
may be at least some partially known plaintext in the CEK key itself, in the CEK 
wrapping, or in any padding required because of the structure of the KEK 
algorithm or the CEK itself.

So it shouldn't matter if I am using triple-DES with inner or outer CBC, or RC4 with
112 bits, etc.  It would certainly be dumb, but because of export controls it might 
even be the case that a 2048 RSA key, wrapped in an ASN.1 encoded 
structure, might have to be encrypted in a 40 bit RC2.

The partially known plaintext in the completely general case might come from the salt
(if that were a public or semi-public IV); from the key structure itself, such as the 
parity bits in DES,  the leading byte in RSA, or any ASN.1 wrapper; or from any padding 
that might be required because of the nature of the KEK algorithm.

The length of the key that is being wrapped should be immaterial -- it might even be a 
very long one-time pad, so birthday attacks within the key itself should be considered
in addition to the possibility of birthday attacks against common blocks when the same 
CEK is wrapped multiple times using multiple KEKs.

And the size of salt and/or padding should not be fixed, as it might be necessary to 
deal with KEK algorithms of arbitrary structure, ranging from some 1-bit stream 
cipher such as DES CFB to perhaps a 256 bit AES block.  I wouldn't necessarily 
even assume that the internal blocks were multiples of 8 bits.

Although you only described the possibility of leakage due to known padding values,
I would assume there is also a potential risk due to the structure of the CEK itself, in
particular if the CEK is a natural language password, or if there is internal structure
such as in the case of DES parity bits or an ASN.1 encoded key structure.  We have even encountered a possible requirement that the CEK itself be digitally signed by
the key generation facility in order to support possible key escrow schemes,
with the entire complex key structure presumably being encrypted as an opaque string
by the KEK.  (This is likely to be the case where the application never gets to see 
the key in the clear or know anything about its structure, but only gets a handle to
the key blob.)

My initial thought to address this possibility would be to use a secret salt as the basis
for some internal whitening of the CEK structure itself, extending the salt as necessary
to deal with the length of the CEK, and then to continue that whitening to cover the 
padding information.  This of course assumes that the salt itself is a purely random 
bit string with no internal structure or partially known content, for otherwise the problem becomes circular.

I'm going to have to think a bit more about the inclusion of a key integrity check, but 
I would tend to be opposed. At first glance, at least, this seems similar to the French 
stop-value requirement, and instead of providing any additional form of protection 
it might tend to significantly weaken the key encryption. I would at least whiten the 
key integrity check along with everything else.

Bob




Robert R. Jueneman
Security Architect
Network Security Development
Novell, Inc.
122 East 1700 South
Provo, UT 84606
bjueneman@novell.com
1-801-861-7387

>>> Burt Kaliski <burt@RSA.COM> 02/03/99 02:48PM >>>
Dear Bob --

Let me address your question, and the general situation with triple-DES key
wrapping.

The high-level goal is to wrap an arbitrary length content encryption key
(CEK) with a symmetric key encryption key (KEK).

Wrapping single-block CEKs is straightforward and has an established
precedent, as in the wrapping of single-length DES keys by ECB mode
encryption. But there is no established precedent for wrapping
multiple-block CEKs, as far as I'm aware.

Russ proposed one method, which involved formatting the CEK into a package
of the form

  salt || CEK || ICV || pad

where salt is a random value, ICV is an integrity check on the CEK, and pad
one of a set of known padding values. The package is then encrypted with the
KEK in CBC mode.

My initial "attack" on this approach was based on the observation that since
the pad is known, there is known plaintext for the encryption with the KEK.
This leads to a potential vulnerability when many CEKs are wrapped with the
same KEK, due to the Birthday Paradox. After about 2^32 CEKs (for a 64-bit
block size) it is likely that a block of one wrapped CEK will match a block
of another CEK. If one of the blocks corresponds to the encryption of a
partially known value (e.g., a pad xored with some of the previous
ciphertext), then information about the other block will become known.

This is the same as the problem with 64-bit block ciphers in CBC mode for
message encryption -- after about 2^32 blocks, information about the
plaintext starts to leak.

A simple way to avoid the attack is to limit the number of keys that can be
wrapped with a given KEK. Indeed, S/MIME already limits the number in the
case of Diffie-Hellman-based KEKs, since each KEK is employed only once.
However, in the case of mailing lists, a KEK may be used many times.

But the essential issue is the precedent that S/MIME will set for wrapping
multiple-block CEKs in other systems. I'm concerned that we develop
something robust here, not something that works all right for S/MIME but is
hard to adapt to other systems.

Consider, for historical comparison, the password-based encryption methods
in PKCS #5 v1. They worked fine when DES and MD5 where the algorithms of
choice -- but there was no clear method for extending them to, say,
triple-DES and SHA1. PKCS #5 v2 is clearing up the situation, but in the
interim, there were quite a few alternate approaches, with varying degrees
of security and standarization.

My proposal to Russ was to consider the use of OAEP for processing CEKs
prior to encryption with a block cipher. Although OAEP was first developed
for asymmetric encryption, the construction is not limited to that purpose,
and indeed the security proofs should carry over nicely to wrapping with a
symmetric KEK. OAEP has a built-in integrity check and ensures that every
bit of output depends on every bit of input. It is also quite scalable, and
can accommodate CEKs of any length and arbitrary encryption algorithms.
Further, it builds on an exisiting primitive. One can view OAEP as a way of
preparing keys for wrapping with either symmetric or asymmetric techniques,
which simplifies implementation.

I'll suggest a few specific improvements Russ' OAEP proposal in a separate
message.

Don Johnson's proposal two-pass encryption with triple-DES-CBC is another
option. It has the advantage of not requiring a separate hash function, and,
implemented with appropriate settings, resists the birthday attacks on the
original method.

(BTW, I don't have any proprietary interest in promoting OAEP --- just like
to continue to deploy common primitives rather than defining new ones. HMAC
is another example of something that's gaining use because of its
robustness.)

-- Burt



> ----------
> From: 	Bob Jueneman[SMTP:BJUENEMAN@novell.com] 
> Sent: 	Tuesday, February 02, 1999 4:55 PM
> To: 	djohnson@certicom.com; housley@spyrus.com 
> Cc: 	cme@ACM.ORG; berson@anagram.com; mjmarkowitz@attmail.com;
> bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; denning@cs.cosc.georgetown.edu;
> smid@csmes.ncsl.nist.gov; omura@cylink.com; carlisle.adams@entrust.com;
> paulv@entrust.com; Blake.greenlee@greenlee.com; ietf-smime@imc.org;
> benaloh@microsoft.com; bfox@microsoft.com; cjwagne@missi.ncsc.mil;
> jis@mit.edu; Bob Jueneman; Tolga Acar; merkle@parc.xerox.com;
> BSnow@radium.ncsc.mil; Burt Kaliski; ekr@rtfm.com;
> jlinn@securitydynamics.com; ams@terisa.com; Ron Rivest; balenson@tis.com;
> denny@tis.com; acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil; desmedt@uwm.edu;
> smatyas@vnet.ibm.com 
> Subject: 	Re: A New Triple-DES Key Wrap Algorithm
> 
> Russ,
> 
> For the benefit of those of us who weren't following the discussion all 
> that closely, could you summarize your original submission (and the 
> rationale behind it), and the attack which Burt Kalisky found against it?
> 
> BTW, that's an impressive cc-list -- almost a crypto who's who. I'd add 
> Hugo Kwrazack and Yair Frankel, and certainly Don Coppersmith, 
> but I don't have their current e-mail addresses.
> 
> Bob
> 
> 
> 
> Robert R. Jueneman
> Security Architect
> Network Security Development
> Novell, Inc.
> 122 East 1700 South
> Provo, UT 84606
> bjueneman@novell.com 
> 1-801-861-7387
> 
> 
> 


From owner-ietf-smime@imc.org  Thu Feb  4 01:33:16 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id BAA17532
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 01:33:15 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id VAA06747
	for ietf-smime-bks; Wed, 3 Feb 1999 21:36:23 -0800 (PST)
Received: from ridge.spiritone.com (ridge.spiritone.com [205.139.108.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id VAA06743
	for <ietf-smime@imc.org>; Wed, 3 Feb 1999 21:36:21 -0800 (PST)
Received: from cme (m6-227.spiritone.com [208.130.240.227])
	by ridge.spiritone.com (8.8.8/8.8.8) with SMTP id VAA02529;
	Wed, 3 Feb 1999 21:38:41 -0800 (PST)
Message-Id: <3.0.3.32.19990203213804.03802a10@spiritone.com>
X-Sender: cellison@spiritone.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32)
Date: Wed, 03 Feb 1999 21:38:04 -0800
To: Burt Kaliski <burt@RSA.COM>
From: Carl Ellison <cme@ACM.ORG>
Subject: RE: A New Triple-DES Key Wrap Algorithm
Cc: djohnson@certicom.com, housley@spyrus.com,
        "'Bob Jueneman'" <BJUENEMAN@novell.com>, cme@ACM.ORG,
        berson@anagram.com, mjmarkowitz@attmail.com, bschanni@BayNetworks.com,
        kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
        brickell@certco.com, djohnson@certicom.ca, schneier@counterpane.com,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, carlisle.adams@entrust.com, paulv@entrust.com,
        Blake.greenlee@greenlee.com, ietf-smime@imc.org, benaloh@microsoft.com,
        bfox@microsoft.com, cjwagne@missi.ncsc.mil, jis@mit.edu,
        Bob Jueneman <BJUENEMAN.PRV-7.PROVO@novell.com>,
        Tolga Acar <TACAR.PRV-7.PROVO@novell.com>, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, ekr@rtfm.com, jlinn@securitydynamics.com,
        ams@terisa.com, Ron Rivest <rivest@theory.lcs.mit.edu>,
        balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
        jhs@tycho.ncsc.mil, desmedt@uwm.edu, smatyas@vnet.ibm.com
In-Reply-To: <7DE9F929113DD11181C900805F85C1AA6FDD09@geoduck.rsa.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

-----BEGIN PGP SIGNED MESSAGE-----

At 01:48 PM 2/3/99 -0800, Burt Kaliski wrote:
>Don Johnson's proposal two-pass encryption with triple-DES-CBC is another
>option. It has the advantage of not requiring a separate hash function, and,
>implemented with appropriate settings, resists the birthday attacks on the
>original method.

Burt and Don,

	I'm not sure what Don intended, but I was reminded of one of Ron Rivest's 
papers (in Cryptologia) -- proposing bidirectional encryption when the 
system is easier to break in one direction than the other.

	In the case of CBC mode, one could encrypt a long block twice, as Don 
suggested, but index the blocks in reverse order the second time.  The IV 
could be 0 for both passes.

	I haven't tried analyzing this mode of operation yet, but it has a pleasant 
symmetry.

 - Carl

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.5.3

iQCVAwUBNrkyPBN3Wx8QwqUtAQGY3AP/SAQCC/k07vQeXI7VLSfgJbO3qRWU9rm4
KUwcyGXIa6gcg7pOaFzU9uPW7BTaGIyHGwxGlR4o5EJWIjar+LwK2aGVSMixCxwJ
bPjuzW7DKSvyBNaBtpuE0T6DlPJ6VBGsT0YH9lP3FaCzz+xckqzWP0G9UdXxa4qs
scblI9OFe8A=
=S+zU
-----END PGP SIGNATURE-----


+------------------------------------------------------------------+
|Carl M. Ellison         cme@acm.org     http://www.pobox.com/~cme |
|    PGP: 08FF BA05 599B 49D2  23C6 6FFD 36BA D342                 |
+--Officer, officer, arrest that man. He's whistling a dirty song.-+


From owner-ietf-smime@imc.org  Thu Feb  4 08:30:14 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id IAA26023
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 08:30:14 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id EAA24844
	for ietf-smime-bks; Thu, 4 Feb 1999 04:31:37 -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 EAA24840
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 04:31:35 -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 BAA11289; Fri, 5 Feb 1999 01:33:38 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <91813161821108>; Fri, 5 Feb 1999 01:33:38 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: jsp@jgvandyke.com
Subject: Re: KEKRecpientInfo KEKIdentifier
Cc: ietf-smime@imc.org
Reply-To: pgut001@cs.aucKland.ac.nz
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Fri, 5 Feb 1999 01:33:38 (NZDT)
Message-ID: <91813161821108@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

>I believe that the KEKRecpientInfo KEKIdentifier should not be optional. The
>recipient always needs to have a means of identifying which KEK to use to
>process the received message.
 
Well, that's a good point, and if you were right I'd agree with you.  You're 
assuming that the only thing CMS will ever be used for throughout its entire 
existence is handling S/MIME messages ("process the received message").  As I 
pointed out a few days ago, KEKIdentifier has no known (non-contrived) use for 
things like file encryption, which 8 years of experience with PGP indicate 
would be the most common use for KEKRecipientInfo.  As John Ross suggested, if 
it's needed for S/MIME then mandate it in MSG or ESS, but don't force anyone 
who uses CMS into using it just because S/MIME happens to need it.
 
Peter.
 



From owner-ietf-smime@imc.org  Thu Feb  4 09:43:07 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id JAA26617
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 09:43:07 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id FAA27935
	for ietf-smime-bks; Thu, 4 Feb 1999 05:43:36 -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 FAA27931
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 05:43:33 -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 CAA11600; Fri, 5 Feb 1999 02:46:22 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <91813598221655>; Fri, 5 Feb 1999 02:46:22 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: BJUENEMAN@novell.com, burt@RSA.COM, djohnson@certicom.com
Reply-To: pgut001@cs.aucKland.ac.nz
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Fri, 5 Feb 1999 02:46:22 (NZDT)
Message-ID: <91813598221655@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>


[Note: Recipient list trimmed to those who've shown an interest so far]
 
Instead of using OAEP-type padding (which is rather complex to implement and 
results in data expansion), why not just encrypt the wrapped key twice?  This 
way, the outer encryption layer depends on every bit in the inner encryption 
layer, and that depends on the plaintext and MEK, so you never get lots of 
identical messages encrypted with different keys.  This is trivial to 
implement, requires no extra algorithms beside than the cipher used for the 
wrapping, and results in no data expansion.  Here's how it works:
 
  Notation: 
 
  P[] = plaintext blocks
  C1[], C2[] = ciphertext blocks encrypted once/twice
 
  Encryption:
 
  Encrypt P[ 0 ]...P[ n ] using the initial IV
  Encrypt C1[ 0 ]...C1[ n ] using the existing IV from the previous pass 
        (ie C1[ n ])
 
  Decryption:
 
  Decrypt C2[ 1 ]...C2[ n ] using C2[ 0 ] as the IV
  Decrypt C2[ 0 ] using C1[ n ] as the IV
  Decrypt C1[ 0 ]...C1[ n ] using the initial IV

Peter.



From owner-ietf-smime@imc.org  Thu Feb  4 12:03:06 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id MAA01441
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 12:03:06 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA29710
	for ietf-smime-bks; Thu, 4 Feb 1999 08:02:24 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA29706
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 08:02:22 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id LAA02235
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 11:10:56 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id LAA28258; Thu, 4 Feb 1999 11:08:31 -0500
Date: Thu, 4 Feb 1999 11:08:31 -0500
Message-Id: <199902041608.LAA28258@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: Last Call Comments on CMS-10
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Eric,

You wrote:
>I don't believe that the version number matters here much. The
>way I see it, a client that's smart enough to skip innapropriately
>versioned Signer or RecipientInfos should be smart enough to
>skip over a different CMS version number and see if it can
>really read the message.

I disagree with this statement.  I believe that programmers will implement
one of the following:

a) examine the value of the version number and reject (or skip over, if
applicable) fields with unrecognized syntaxes; or 

b) ignore the version numbers and just try to decode the object.

I believe that we should write the specs so that vendors can develop code to
properly implement option a.


You wrote:
>I tend to agree here. OTOH, if OriginatorInfo is present, then
>it seems that the version number must be increased. Else what
>good is the version number in the first place?

CMS already states that the envelopedData version must be 3 if
originatorInfo is present.

- John Pawling



From owner-ietf-smime@imc.org  Thu Feb  4 12:34:49 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id MAA03564
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 12:34:49 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA00217
	for ietf-smime-bks; Thu, 4 Feb 1999 08:30:20 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA00213
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 08:30:18 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id LAA08627
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 11:33:31 -0500
Message-Id: <4.1.19990204112256.009da380@209.172.119.123>
X-Sender: rhousley#mail.spyrus.com@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Feb 1999 11:34:25 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Re: Last Call Comments on CMS-10
In-Reply-To: <199902041608.LAA28258@ajsn101.jgvandyke.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Calling all implementors...

The crux of this issue is what S/MIME v2 code will do if it encounters a
version 1 SignedData that contains a SignerInfo with a version other than
1.  Will your implmentation:

	a) fail to parse the ASN.1 and report an error

	b) check the version, skip it, and look for another SignerInfo

	c) die ungracefully
		(if you do not want to admit this publically, please send 
		 private e-mail or use an anonymous service)

Similarly, what will happen if the implementation encounters a version 0
EnvelopedData that contains a RecipientInfo with a version other than 0.
Same three choices.

Russ



From owner-ietf-smime@imc.org  Thu Feb  4 13:41:57 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id NAA07148
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 13:41:57 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA00933
	for ietf-smime-bks; Thu, 4 Feb 1999 09:39:08 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id JAA00929
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 09:39:06 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Thu, 04 Feb 1999 10:38:53 -0700
Message-Id: <s6b978bd.090@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Thu, 04 Feb 1999 10:38:44 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <shenson@drh-consultancy.demon.co.uk>, <ietf-smime@imc.org>
Cc: <djohnson@certicom.com>, "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id JAA00930
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Stephen,

>>> Dr Stephen Henson <shenson@drh-consultancy.demon.co.uk> 02/03/99 05:25PM >>>
Apologies if I've missed the point here but...

[RRJ] Me too, as I have not been following the S/MIME - CMS discussion in any
depth, but only seized on the issue of key wrapping as a general problem.
Within Novell's NICI architecture we do lots of key wrapping for purposes that
have nothing to do with S/MIME.  Once the discussion pointed out a potential
weakness in key wrapping generally (and this seems to be just one of a class
of problems that have been uncovered recently, including the SSL million-questions
attack.

Is there some specific need to use the same KEK for mailing lists
multiple times or could the same solution be used as in S-S DH? 

In other words make the use of a "salt" in the message compulsory and
use the mailing list key in place of the DH shared secret (ZZ). This
would then allow the same mailing list key to be used multiple times
because the KEK would be different with each salt.

[RRJ] Rules of thumb are inherently dangerous, but my own preference 
when a problem shows up is to reach for a bigger hammer and try to smash the
problem completely, rather than trying to finesse it. So I'd much rather have a 
generalized key wrapping scheme than one that is tied to S/MIME or even CMS
specifically.

Steve.
-- 
Dr Stephen N. Henson. UK based freelance Cryptographic Consultant. 
For info see homepage at http://www.drh-consultancy.demon.co.uk/ 
Email: shenson@drh-consultancy.demon.co.uk 
NOTE NEW (13/12/98) PGP key: via homepage.




From owner-ietf-smime@imc.org  Thu Feb  4 14:17:23 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id OAA09002
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 14:17:22 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA01412
	for ietf-smime-bks; Thu, 4 Feb 1999 10:23:57 -0800 (PST)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.52.1])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA01408
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 10:23:56 -0800 (PST)
Received: from stingray.missi.ncsc.mil (root@localhost)
	by stingray.missi.ncsc.mil with ESMTP id NAA11122
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 13:27:08 -0500 (EST)
Received: from missi.ncsc.mil (depot.missi.ncsc.mil [144.51.60.1])
	by stingray.missi.ncsc.mil with ESMTP id NAA11118
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 13:27:08 -0500 (EST)
Received: from ara.missi.ncsc.mil (ara.missi.ncsc.mil [144.51.56.12]) by missi.ncsc.mil (8.8.8/8.8.8) with ESMTP id NAA15660 for <ietf-smime@imc.org>; Thu, 4 Feb 1999 13:25:47 -0500 (EST)
Received: (from dpkemp@localhost)
	by ara.missi.ncsc.mil (8.9.1b+Sun/8.9.1) id NAA02651
	for ietf-smime@imc.org; Thu, 4 Feb 1999 13:26:11 -0500 (EST)
Date: Thu, 4 Feb 1999 13:26:11 -0500 (EST)
From: "David P. Kemp" <dpkemp@missi.ncsc.mil>
Message-Id: <199902041826.NAA02651@ara.missi.ncsc.mil>
To: ietf-smime@imc.org
Subject: Re: Last Call Comments on CMS-10
X-Sun-Charset: US-ASCII
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

> From: jsp@jgvandyke.com (John Pawling)
> 
> I believe that programmers will implement one of the following:
> 
> a) examine the value of the version number and reject (or skip over, if
> applicable) fields with unrecognized syntaxes; or 
> 
> b) ignore the version numbers and just try to decode the object.
> 
> I believe that we should write the specs so that vendors can develop code to
> properly implement option a.

I agree with John and Blake that a mixture of signerInfos should be
allowed in a v1 signedData.  However, I agree with Eric that there
is little practical difference between a) and b).  Decoding until
you come to an unsupported version number should have the identical
behavior as decoding until you come to some unrecognized syntax.


"Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com> writes:
> John and Russ,
> 
> I completely disagree with this.  I don't think that it is any type of a
> fair statement to say that down level clients should be able in any way,
> shape or form to be able to parse one of these new messages.

There are general rules for extensibility which will allow new
features to be incorporated into existing structures without breaking
old software.  X.509 extensions are an example - new extensions can
be defined, and old software either accept or reject certs containing
unrecognized extensions without choking on the ASN.1.  The Certificate
version number doesn't get incremented above v3 every time a new set
of extensions is defined.

IMO, a version number should be incremented only when necessary to
prevent incorrect interpretation of an object.  A version which tries
to capture every detail of the enclosed subfields is unnecessarily
complex and redundant.  It is penny wise and pound foolish, because the
time saved by allowing receivers to do shortcut message rejection on
the outer object is overwhelmed by the complex logic required for
senders to propogate inner contents outward in order to construct
conforming version numbers in the various enclosing objects.



> From: Russ Housley <housley@spyrus.com>
> 
> The crux of this issue is what S/MIME v2 code will do if it encounters a
> version 1 SignedData that contains a SignerInfo with a version other than
> 1.  Will your implmentation:
> 
> 	a) fail to parse the ASN.1 and report an error
> 
> 	b) check the version, skip it, and look for another SignerInfo
> 
> 	c) die ungracefully
> 		(if you do not want to admit this publically, please send 
> 		 private e-mail or use an anonymous service)


Similarly, what will S/MIME v2 code do if it encounters a version 3
SignedData.  If the answer to both questions is a) or c), then that
implementation is too flawed to affect our decision, and can justifiably
be ignored.


From owner-ietf-smime@imc.org  Thu Feb  4 15:02:21 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id PAA10991
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 15:02:21 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA01916
	for ietf-smime-bks; Thu, 4 Feb 1999 11:09:31 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA01899
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 11:09:17 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id OAA07782
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 14:17:52 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id OAA00889; Thu, 4 Feb 1999 14:15:28 -0500
Date: Thu, 4 Feb 1999 14:15:28 -0500
Message-Id: <199902041915.OAA00889@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: KEKRecpientInfo KEKIdentifier
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter,

If you have multiple KEK keys which could be used to decrypt the file, then
you need to know which one to use.  If there is only one possible KEK key
which could be used to decrypt the file, then I can see your point that the
KEKIdentifier would not be needed to identify which KEK to use.  In summary,
I agree that the KEKIdentifier could be made optional.  

- John


At 01:33 AM 2/5/99, pgut001@cs.auckland.ac.nz wrote:
>>I believe that the KEKRecpientInfo KEKIdentifier should not be optional. The
>>recipient always needs to have a means of identifying which KEK to use to
>>process the received message.
> 
>Well, that's a good point, and if you were right I'd agree with you.  You're 
>assuming that the only thing CMS will ever be used for throughout its entire 
>existence is handling S/MIME messages ("process the received message").  As I 
>pointed out a few days ago, KEKIdentifier has no known (non-contrived) use for 
>things like file encryption, which 8 years of experience with PGP indicate 
>would be the most common use for KEKRecipientInfo.  As John Ross suggested, if 
>it's needed for S/MIME then mandate it in MSG or ESS, but don't force anyone 
>who uses CMS into using it just because S/MIME happens to need it.
> 
>Peter.
> 
>
>



From owner-ietf-smime@imc.org  Thu Feb  4 15:17:11 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id PAA11605
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 15:17:10 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA02074
	for ietf-smime-bks; Thu, 4 Feb 1999 11:21:50 -0800 (PST)
Received: from doggate.exchange.microsoft.com (doggate.exchange.microsoft.com [131.107.88.55])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA02069;
	Thu, 4 Feb 1999 11:21:49 -0800 (PST)
Received: by doggate.exchange.microsoft.com with Internet Mail Service (5.5.2232.9)
	id <CQXPCCVJ>; Thu, 4 Feb 1999 11:24:44 -0800
Message-ID: <2FBF98FC7852CF11912A0000000000010ECB5CA9@DINO>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "Paul Hoffman (E-mail)" <phoffman@imc.org>,
        "Ietf-Smime (E-mail)"
	 <ietf-smime@imc.org>
Cc: "Russ Housley (E-mail)" <housley@spyrus.com>
Subject: Last Call Comment on ESS - Signing Certificate Attribute
Date: Thu, 4 Feb 1999 11:24:25 -0800 
X-Mailer: Internet Mail Service (5.5.2232.9)
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

In reviewing some requirements that are coming from external companies on
our product requirements and I found the following problem.

It turns out that not everybody is up to the point of using attribute
certificates for assigning authorizations.  This information is being
carried in normal authentication certificates and ususally in an encryption
certificate rather than the signing certificate.  This means that we need to
allow more than attribute certificates in the last portion of the list.



Replace Section 5.4 paragraph 4 with the following:

If more than one certificate is present in the sequence of ESSCertIDs, the
certificates after the first one limit the set of authorization certificates
that are used during signature validation. Authorization certificates can be
both attribute certificates and normal certificates. The issuerSerial SHOULD
be
present in these certificates, unless the client who is validating the
signature is expected to have easy access to all the certificates required
for validation. If only the signing certificate is present in the sequence.
there are no restrictions on the set of authorization certificates used in
validating the signature.

jim


From owner-ietf-smime@imc.org  Thu Feb  4 15:42:29 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id PAA12625
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 15:42:28 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA02467
	for ietf-smime-bks; Thu, 4 Feb 1999 11:52:43 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA02459
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 11:52:41 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id OAA17733;
	Thu, 4 Feb 1999 14:55:44 -0500
Message-Id: <4.1.19990204121902.009df100@209.172.119.123>
X-Sender: rhousley#mail.spyrus.com@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Feb 1999 12:36:29 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: KEKRecpientInfo KEKIdentifier
Cc: ietf-smime@imc.org
In-Reply-To: <91813161821108@cs26.cs.auckland.ac.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter:

Excuse my hasty word choice.  Let me try again.

I believe that the KEKRecpientInfo KEKIdentifier should not be optional.
The decryptor always needs to have a means of identifying which KEK was
used by the encryptor, even if the encryptor and decryptor are the same party.

If CMS is being used to support a file encryption application, I would
expect more that one file-encryption key to be used.  However, one could
imagine a case where files that are not intended to be shared would wrap
those file-encryption keys in the same key-encryption key (KEK).  But,
wait.  There are probably also files that will be shared.  These need a
different KEK.  So, some plaintext data is neede to distinguish these KEKs.
 I suggest that the KEKRecpientInfo KEKIdentifier is a good choice.

If the file encryption application does not support more than one KEK (for
example, no files are shared), then I still see a use for the
KEKRecpientInfo KEKIdentifier.  Two people using this application should
get a reasonable error if they try to dercypt each other's files.  In this
case, the KEKRecpientInfo KEKIdentifier could be the user name or the
application serial number.

Russ


At 01:33 AM 2/5/99 +0000, Peter Gutmann wrote:
>>I believe that the KEKRecpientInfo KEKIdentifier should not be optional. The
>>recipient always needs to have a means of identifying which KEK to use to
>>process the received message.
> 
>Well, that's a good point, and if you were right I'd agree with you.  You're 
>assuming that the only thing CMS will ever be used for throughout its entire 
>existence is handling S/MIME messages ("process the received message").  As I 
>pointed out a few days ago, KEKIdentifier has no known (non-contrived) use
for 
>things like file encryption, which 8 years of experience with PGP indicate 
>would be the most common use for KEKRecipientInfo.  As John Ross
suggested, if 
>it's needed for S/MIME then mandate it in MSG or ESS, but don't force anyone 
>who uses CMS into using it just because S/MIME happens to need it.
> 
>Peter.
> 
>



From owner-ietf-smime@imc.org  Thu Feb  4 15:45:05 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id PAA12751
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 15:45:04 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA02500
	for ietf-smime-bks; Thu, 4 Feb 1999 11:55:01 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id LAA02496
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 11:54:58 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Thu, 04 Feb 1999 12:57:37 -0700
Message-Id: <s6b99941.026@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Thu, 04 Feb 1999 12:57:30 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <pgut001@cs.aucKland.ac.nz>, <ietf-smime@imc.org>
Cc: <djohnson@certicom.com>, "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>,
        <burt@RSA.COM>, <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id LAA02497
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter,

The only [small] problem I have with your approach is performance,
as double encryption with triple-DES is relatively expensive, especially 
if you don't save and reuse the state after the three key expansions 
step in DES.  In addition, I would like to have a key wrapper format
that is completely independent of the KEK algorithm, soi that I can use
the same wrapper whether I use DES, RSA, elliptic curves, etc. And
I don't think you want to propose doing double encryption with an 
asymmetric cipher!

What I would suggest would be to replace your inner encryption 
with the equivalent of Output Feedback mode, but using SHA-1
as the encryption or whitening function, with a random nonce R serving 
as the starting seed for SHA-1.  

In other words, begin by computing SHA-1(R) of the random nonce, and 
call that W(1).  Then W(2) = SHA-1(W(1)), and W(n) = SHA-1(W(n-1)),
where n= length(keyblob + encryption block size)/160 rounded up to 
the next SHA-1 block boundary, so that any necessary padding is whitened
as well.

Then XOR the string of W(1)...W(n) with the keyblob KB(1)...KB(n) to 
produce the whitened plaintext of the keyblob, P(1)...P(n).

Finally, encrypt R || P(1)...P(n) using whatever KEK algorithm is desired.

Now the only question I have is whether the fact that the whitening 
does not involve the plaintext and is therefore known once the random
nonce has been decrypted can somehow be used to leak information,
given partially known plaintext in the keyblob. It would if the nonce weren't
secret, but in order to gain any information about the nonce would require
finding a ciphertext block that matches a specific block, corresponding to R, 
rather than merely finding any two matching blocks.

So I don't see an attack, regardless of the type of KEK encryption algorithm
used, including both symmetric and asymmetric algorithms. Does anyone else?

I do concede that this approach produces some data expansion -- at least 160 
bits for the random nonce, and perhaps some more for padding if the keyblob that
is being encrypted is not an exact multiple of the encryption block size.
Generally speaking, that is a tradeoff I would be willing to make.

Bob


>>> Peter Gutmann <pgut001@cs.auckland.ac.nz> 02/05/99 02:46AM >>>

[Note: Recipient list trimmed to those who've shown an interest so far]
 
Instead of using OAEP-type padding (which is rather complex to implement and 
results in data expansion), why not just encrypt the wrapped key twice?  This 
way, the outer encryption layer depends on every bit in the inner encryption 
layer, and that depends on the plaintext and MEK, so you never get lots of 
identical messages encrypted with different keys.  This is trivial to 
implement, requires no extra algorithms beside than the cipher used for the 
wrapping, and results in no data expansion.  Here's how it works:
 
  Notation: 
 
  P[] = plaintext blocks
  C1[], C2[] = ciphertext blocks encrypted once/twice
 
  Encryption:
 
  Encrypt P[ 0 ]...P[ n ] using the initial IV
  Encrypt C1[ 0 ]...C1[ n ] using the existing IV from the previous pass 
        (ie C1[ n ])
 
  Decryption:
 
  Decrypt C2[ 1 ]...C2[ n ] using C2[ 0 ] as the IV
  Decrypt C2[ 0 ] using C1[ n ] as the IV
  Decrypt C1[ 0 ]...C1[ n ] using the initial IV

Peter.




From owner-ietf-smime@imc.org  Thu Feb  4 16:03:12 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id QAA13719
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 16:03:11 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA02684
	for ietf-smime-bks; Thu, 4 Feb 1999 12:10:15 -0800 (PST)
Received: from doggate.exchange.microsoft.com (doggate.exchange.microsoft.com [131.107.88.55])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA02680
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 12:10:14 -0800 (PST)
Received: by doggate.exchange.microsoft.com with Internet Mail Service (5.5.2232.9)
	id <CQXPCDXY>; Thu, 4 Feb 1999 12:13:03 -0800
Message-ID: <2FBF98FC7852CF11912A0000000000010ECB5CAE@DINO>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'Russ Housley'" <housley@spyrus.com>, ietf-smime@imc.org
Subject: RE: Last Call Comments on CMS-10
Date: Thu, 4 Feb 1999 12:12:50 -0800 
X-Mailer: Internet Mail Service (5.5.2232.9)
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

OK -- I just consulted my developers.  We do a decode of the entire
SignedData or EnvelopedData object in one shot.  This means that we fail the
decode operation no matter if you put the version in or not.  We just get to
fail faster if you update the version.  Our product does not decode the
structure into pieces and attack the pieces individually.

jim


-----Original Message-----
From: Russ Housley [mailto:housley@spyrus.com]
Sent: Thursday, February 04, 1999 8:34 AM
To: ietf-smime@imc.org
Subject: Re: Last Call Comments on CMS-10


Calling all implementors...

The crux of this issue is what S/MIME v2 code will do if it encounters a
version 1 SignedData that contains a SignerInfo with a version other than
1.  Will your implmentation:

	a) fail to parse the ASN.1 and report an error

	b) check the version, skip it, and look for another SignerInfo

	c) die ungracefully
		(if you do not want to admit this publically, please send 
		 private e-mail or use an anonymous service)

Similarly, what will happen if the implementation encounters a version 0
EnvelopedData that contains a RecipientInfo with a version other than 0.
Same three choices.

Russ


From owner-ietf-smime@imc.org  Thu Feb  4 17:06:43 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA17322
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 17:06:43 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA03324
	for ietf-smime-bks; Thu, 4 Feb 1999 13:04:52 -0800 (PST)
Received: from tholian.securitydynamics.com (tholian.securid.com [204.167.112.129])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id NAA03320
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 13:04:50 -0800 (PST)
Received: from mail.securitydynamics.com by tholian.securitydynamics.com
          via smtpd (for imc.org [206.184.129.134]) with SMTP; 4 Feb 1999 21:07:49 UT
Received: by securitydynamics.com (8.7.6/8.7.3) with ESMTP id QAA21700 for <ietf-smime@imc.org>; Thu, 4 Feb 1999 16:16:23 -0500 (EST)
Received: by exna01.securitydynamics.com with Internet Mail Service (5.5.2232.9)
	id <DAKR9APB>; Thu, 4 Feb 1999 16:07:48 -0500
Message-ID: <D104150098E6D111B7830000F8D90AE845A48E@exna02.securitydynamics.com>
From: "Linn, John" <jlinn@securitydynamics.com>
To: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Subject: Comments on x942-05 draft
Date: Thu, 4 Feb 1999 16:11:19 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Here's a small set of comments on x942-05, following discussion re x942-04.

In sec. 2.1.2, description of "algorithm": suggest adding the following
sentence at end: "As an implication, it may be appropriate for algorithms
employing variable parameters other than key size to be represented with
different OIDs corresponding to different parameter combinations, if
parameter values cannot be unambiguously determined from usage context".  As
a related point, would it be acceptable to state that the structure of
suppPubInfo may be defined on a per-algorithm basis?   For the case of RC2
usage in S/MIME, where the key length is fixed to 128 bits, it seems to
offer more protective value to represent the variable effective key length
within suppPubInfo than to represent the fixed 128 bit length. 

In 2.1.2, last paragraph, suggest rewriting "the security of the data is
limited ... even if a string longer than ZZ is generated" as "even if a
string longer than ZZ is generated, the effective key space of the KEK is
limited by the size of ZZ, in addition to any security level considerations
imposed by the parameters p and q."

In 2.2, 2nd paragraph, suggest changing "...m MUST be >=160" -> "...m MUST
be >= 160 bits in length". Later in the paragraph, is 160 bits intended as
the appropriate minimum length for p?  (Note, by comparison, that X9.42
requires a multiple of 256 bits with a minimum of 512.)

In 2.3 and 2.4, suggest adding references to [LL97] for discussion of
additional means for generating keys which are not subject to small subgroup
attacks. 

In the last paragraph of security considerations, suggest rewriting in terms
of security levels provided, rather than key sizes required. This makes the
discussion more relevant to particular key sizes selected, rather than
imposing recommended key sizes. In particular, suggest:

The security level provided by these methods depends on several factors. It
depends on the length of the symmetric key (typically, a 2^l security level
if the length is l bits); the size of the prime q (a 2^{m/2} security
level); and the size of the prime p (where the security level grows as  a
subexponential function of the size in bits). A good design principle is to
have a balanced system, where all three security levels are approximately
the same. If many keys are derived from a given pair of primes p and q, it
may be prudent to have higher levels for the primes. In any case, the
overall security is limited by the lowest of the three levels.

Editorial:

In 2.1.1, the description of h says "... h(p-1)/q mod p ..."; should be "...
h^{(p-1)/q} mod p ...".

In 2.2, first paragraph, FIPS-186-1 is cited as [DSS], which doesn't appear
in the references. Given that FIPS-186-1 is currently in a review comment
period, it may be appropriate to shift this citation to point to the
finalized [FIPS-186], as included in the references section.   In the same
paragraph, there's an unmatched opening parenthesis. 

In 2.2, 2nd paragraph, "... consequently, q MUST each be ..." -> "...
consequently, q MUST be ...".

Sec. 2.4 and the security considerations section each have cross-references
as "S" rather than "Section". 

--jl


From owner-ietf-smime@imc.org  Thu Feb  4 17:23:06 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA18388
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 17:23:05 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA02795
	for ietf-smime-bks; Thu, 4 Feb 1999 12:20:36 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA02791
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 12:20:34 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id PAA10248
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 15:29:10 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id PAA01828; Thu, 4 Feb 1999 15:26:46 -0500
Date: Thu, 4 Feb 1999 15:26:46 -0500
Message-Id: <199902042026.PAA01828@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: Last Call Comment on ESS - Signing Certificate Attribute
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

I agree with Jim's proposed change. 

- John Pawling




From owner-ietf-smime@imc.org  Thu Feb  4 17:58:55 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA20626
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 17:58:54 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA03745
	for ietf-smime-bks; Thu, 4 Feb 1999 13:44:24 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA03741
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 13:44:23 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id QAA22659;
	Thu, 4 Feb 1999 16:47:18 -0500
Message-Id: <4.1.19990204160027.009ec830@209.172.119.123>
X-Sender: rhousley#mail.spyrus.com@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Feb 1999 16:18:03 -0500
To: "Bob Jueneman" <BJUENEMAN@novell.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: <pgut001@cs.aucKland.ac.nz>, <ietf-smime@imc.org>, <djohnson@certicom.com>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <burt@RSA.COM>
In-Reply-To: <s6b99941.028@prv-mail20.provo.novell.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Bob:

I do not mind if a group goes off and solves the most general problem, but
that is not the problem that I have.

In the S/MIME v3 environment and other environments that use the
Cryptographic Message Syntax (CMS), the KEK and CEK will always be
symmetric keys.  If we could come to closure on one symmetric key wrapping
another symmetric key, it would be very helpful to the S/MIME v3 effort.
In fact, wrapping one 3DES key in another 3DES key is the highest priority,
and wrapping one RC2 key in another RC2 128-bit key is the next highest
priority.

Russ


At 12:57 PM 2/4/99 -0700, Bob Jueneman wrote:
>Peter,
>
>The only [small] problem I have with your approach is performance,
>as double encryption with triple-DES is relatively expensive, especially 
>if you don't save and reuse the state after the three key expansions 
>step in DES.  In addition, I would like to have a key wrapper format
>that is completely independent of the KEK algorithm, soi that I can use
>the same wrapper whether I use DES, RSA, elliptic curves, etc. And
>I don't think you want to propose doing double encryption with an 
>asymmetric cipher!
>
>What I would suggest would be to replace your inner encryption 
>with the equivalent of Output Feedback mode, but using SHA-1
>as the encryption or whitening function, with a random nonce R serving 
>as the starting seed for SHA-1.  
>
>In other words, begin by computing SHA-1(R) of the random nonce, and 
>call that W(1).  Then W(2) = SHA-1(W(1)), and W(n) = SHA-1(W(n-1)),
>where n= length(keyblob + encryption block size)/160 rounded up to 
>the next SHA-1 block boundary, so that any necessary padding is whitened
>as well.
>
>Then XOR the string of W(1)...W(n) with the keyblob KB(1)...KB(n) to 
>produce the whitened plaintext of the keyblob, P(1)...P(n).
>
>Finally, encrypt R || P(1)...P(n) using whatever KEK algorithm is desired.
>
>Now the only question I have is whether the fact that the whitening 
>does not involve the plaintext and is therefore known once the random
>nonce has been decrypted can somehow be used to leak information,
>given partially known plaintext in the keyblob. It would if the nonce weren't
>secret, but in order to gain any information about the nonce would require
>finding a ciphertext block that matches a specific block, corresponding to R, 
>rather than merely finding any two matching blocks.
>
>So I don't see an attack, regardless of the type of KEK encryption algorithm
>used, including both symmetric and asymmetric algorithms. Does anyone else?
>
>I do concede that this approach produces some data expansion -- at least 160 
>bits for the random nonce, and perhaps some more for padding if the keyblob 
>that
>is being encrypted is not an exact multiple of the encryption block size.
>Generally speaking, that is a tradeoff I would be willing to make.
>
>Bob
>
>
>>>> Peter Gutmann <pgut001@cs.auckland.ac.nz> 02/05/99 02:46AM >>>
>
>[Note: Recipient list trimmed to those who've shown an interest so far]
> 
>Instead of using OAEP-type padding (which is rather complex to implement and 
>results in data expansion), why not just encrypt the wrapped key twice?  This 
>way, the outer encryption layer depends on every bit in the inner encryption 
>layer, and that depends on the plaintext and MEK, so you never get lots of 
>identical messages encrypted with different keys.  This is trivial to 
>implement, requires no extra algorithms beside than the cipher used for the 
>wrapping, and results in no data expansion.  Here's how it works:
> 
>  Notation: 
> 
>  P[] = plaintext blocks
>  C1[], C2[] = ciphertext blocks encrypted once/twice
> 
>  Encryption:
> 
>  Encrypt P[ 0 ]...P[ n ] using the initial IV
>  Encrypt C1[ 0 ]...C1[ n ] using the existing IV from the previous pass 
>        (ie C1[ n ])
> 
>  Decryption:
> 
>  Decrypt C2[ 1 ]...C2[ n ] using C2[ 0 ] as the IV
>  Decrypt C2[ 0 ] using C1[ n ] as the IV
>  Decrypt C1[ 0 ]...C1[ n ] using the initial IV
>
>Peter.
>
>



From owner-ietf-smime@imc.org  Thu Feb  4 20:39:04 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id UAA26790
	for <smime-archive@odin.ietf.org>; Thu, 4 Feb 1999 20:39:04 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA05700
	for ietf-smime-bks; Thu, 4 Feb 1999 16:09:49 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id QAA05696
	for <ietf-smime@imc.org>; Thu, 4 Feb 1999 16:09:48 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Thu, 04 Feb 1999 17:12:30 -0700
Message-Id: <s6b9d4fe.018@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Thu, 04 Feb 1999 17:12:23 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <housley@spyrus.com>
Cc: <djohnson@certicom.com>, <pgut001@cs.aucKland.ac.nz>, <ietf-smime@imc.org>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <burt@RSA.COM>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id QAA05697
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Fair enough, Russ.

The only problem is that I have never known a standard that didn't 
end up being picked up and used by another group, many times inappropriately,
because they didn't understand the context and limitations of the original effort.

Any comments on my proposed solution?

bob

>>> Russ Housley <housley@spyrus.com> 02/04/99 02:18PM >>>
Bob:

I do not mind if a group goes off and solves the most general problem, but
that is not the problem that I have.

In the S/MIME v3 environment and other environments that use the
Cryptographic Message Syntax (CMS), the KEK and CEK will always be
symmetric keys.  If we could come to closure on one symmetric key wrapping
another symmetric key, it would be very helpful to the S/MIME v3 effort.
In fact, wrapping one 3DES key in another 3DES key is the highest priority,
and wrapping one RC2 key in another RC2 128-bit key is the next highest
priority.

Russ


At 12:57 PM 2/4/99 -0700, Bob Jueneman wrote:
>Peter,
>
>The only [small] problem I have with your approach is performance,
>as double encryption with triple-DES is relatively expensive, especially 
>if you don't save and reuse the state after the three key expansions 
>step in DES.  In addition, I would like to have a key wrapper format
>that is completely independent of the KEK algorithm, soi that I can use
>the same wrapper whether I use DES, RSA, elliptic curves, etc. And
>I don't think you want to propose doing double encryption with an 
>asymmetric cipher!
>
>What I would suggest would be to replace your inner encryption 
>with the equivalent of Output Feedback mode, but using SHA-1
>as the encryption or whitening function, with a random nonce R serving 
>as the starting seed for SHA-1.  
>
>In other words, begin by computing SHA-1(R) of the random nonce, and 
>call that W(1).  Then W(2) = SHA-1(W(1)), and W(n) = SHA-1(W(n-1)),
>where n= length(keyblob + encryption block size)/160 rounded up to 
>the next SHA-1 block boundary, so that any necessary padding is whitened
>as well.
>
>Then XOR the string of W(1)...W(n) with the keyblob KB(1)...KB(n) to 
>produce the whitened plaintext of the keyblob, P(1)...P(n).
>
>Finally, encrypt R || P(1)...P(n) using whatever KEK algorithm is desired.
>
>Now the only question I have is whether the fact that the whitening 
>does not involve the plaintext and is therefore known once the random
>nonce has been decrypted can somehow be used to leak information,
>given partially known plaintext in the keyblob. It would if the nonce weren't
>secret, but in order to gain any information about the nonce would require
>finding a ciphertext block that matches a specific block, corresponding to R, 
>rather than merely finding any two matching blocks.
>
>So I don't see an attack, regardless of the type of KEK encryption algorithm
>used, including both symmetric and asymmetric algorithms. Does anyone else?
>
>I do concede that this approach produces some data expansion -- at least 160 
>bits for the random nonce, and perhaps some more for padding if the keyblob 
>that
>is being encrypted is not an exact multiple of the encryption block size.
>Generally speaking, that is a tradeoff I would be willing to make.
>
>Bob
>
>
>>>> Peter Gutmann <pgut001@cs.auckland.ac.nz> 02/05/99 02:46AM >>>
>
>[Note: Recipient list trimmed to those who've shown an interest so far]
> 
>Instead of using OAEP-type padding (which is rather complex to implement and 
>results in data expansion), why not just encrypt the wrapped key twice?  This 
>way, the outer encryption layer depends on every bit in the inner encryption 
>layer, and that depends on the plaintext and MEK, so you never get lots of 
>identical messages encrypted with different keys.  This is trivial to 
>implement, requires no extra algorithms beside than the cipher used for the 
>wrapping, and results in no data expansion.  Here's how it works:
> 
>  Notation: 
> 
>  P[] = plaintext blocks
>  C1[], C2[] = ciphertext blocks encrypted once/twice
> 
>  Encryption:
> 
>  Encrypt P[ 0 ]...P[ n ] using the initial IV
>  Encrypt C1[ 0 ]...C1[ n ] using the existing IV from the previous pass 
>        (ie C1[ n ])
> 
>  Decryption:
> 
>  Decrypt C2[ 1 ]...C2[ n ] using C2[ 0 ] as the IV
>  Decrypt C2[ 0 ] using C1[ n ] as the IV
>  Decrypt C1[ 0 ]...C1[ n ] using the initial IV
>
>Peter.
>
>



From owner-ietf-smime@imc.org  Fri Feb  5 09:25:03 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id JAA28304
	for <smime-archive@odin.ietf.org>; Fri, 5 Feb 1999 09:25:03 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id FAA07108
	for ietf-smime-bks; Fri, 5 Feb 1999 05:16:05 -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 FAA07104
	for <ietf-smime@imc.org>; Fri, 5 Feb 1999 05:16:03 -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 CAA30608; Sat, 6 Feb 1999 02:18:19 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <91822069926689>; Sat, 6 Feb 1999 02:18:19 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: BJUENEMAN@novell.com, ietf-smime@imc.org
Subject: Re: A New Triple-DES Key Wrap Algorithm
Reply-To: pgut001@cs.aucKland.ac.nz
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Sat, 6 Feb 1999 02:18:19 (NZDT)
Message-ID: <91822069926689@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

djohnson@certicom.com, TACAR.PRV-7.PROVO@novell.com, burt@RSA.COM, housley@spyrus.com

>The only [small] problem I have with your approach is performance, as double 
>encryption with triple-DES is relatively expensive, especially if you don't 
>save and reuse the state after the three key expansions step in DES.  In 
>addition, I would like to have a key wrapper format that is completely 
>independent of the KEK algorithm, soi that I can use the same wrapper whether 
>I use DES, RSA, elliptic curves, etc. And I don't think you want to propose 
>doing double encryption with an asymmetric cipher!
 
I chose it because two passes of whatever cipher was being used seemed the 
simplest way to do it.  There are many alternative to this, my immediate 
reaction when I saw the original analysis was to use the cipher to generate a 
pseudorandom stream, hash 128-bit chunks of it with SHA-1, and then XOR the 
20-byte blocks into the data to be encrypted, but it's a bit of an ad hoc 
approach and requires many applications of SHA-1 which are probably less 
efficient than the block cipher.  In any case I doubt that a handful of extra 
en/decryption operations for the two-pass crypt are going to add much 
overhead.  This is the same scheme suggested by Don Johnson, I wasn't sure 
initially whether we were talking about the same thing.                    
 
Historical note: I first used something like this for a sector-level 
encrypting disk device driver where there wasn't any room for storing the IV, 
so the encryption made two passes, the first to generate the IV and the second 
to perform the encryption.  The first pass used:
 
    P[ i ] ^= P[ i-K1 ] ^ P[ i-K2 ]
 
(K1 and K2 are appropriate constants), the second pass used the output as the 
IV.  This is a nice lightweight function (it's extremely efficient on a RISC 
CPU), the design was by Colin Plumb and was inspired by the (then brand-new) 
SHA.  In the KEK case you don't need this since the data is so short that two 
applications of the block cipher will carry virtually no overhead.
 
Peter.



From owner-ietf-smime@imc.org  Fri Feb  5 11:08:21 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA02952
	for <smime-archive@odin.ietf.org>; Fri, 5 Feb 1999 11:08:20 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA07740
	for ietf-smime-bks; Fri, 5 Feb 1999 06:59:00 -0800 (PST)
Received: from egate2.citicorp.com (egate2.citicorp.com [192.193.196.194])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id GAA07736
	for <ietf-smime@imc.org>; Fri, 5 Feb 1999 06:58:57 -0800 (PST)
From: bartley.o'malley@citicorp.com
Received: by egate2.citicorp.com id KAA20392
  (InterLock SMTP Gateway 3.0 for ietf-smime@imc.org);
  Fri, 5 Feb 1999 10:03:03 -0500
Message-Id: <199902051503.KAA20392@egate2.citicorp.com>
Received: by egate2.citicorp.com (Protected-side Proxy Mail Agent-3);
  Fri, 5 Feb 1999 10:03:03 -0500
Received: by egate2.citicorp.com (Protected-side Proxy Mail Agent-2);
  Fri, 5 Feb 1999 10:03:03 -0500
Received: by egate2.citicorp.com (Protected-side Proxy Mail Agent-1);
  Fri, 5 Feb 1999 10:03:03 -0500
Date: Fri, 5 Feb 1999 15:01:42 +0000
Subject: RE: Re: A New Triple-DES Key Wrap Algorithm
To: ietf-smime@imc.org
X-Mailer: Worldtalk (4.1.1-p14)/STREAM
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I don't think we should be overly concerned about performance or code size. 

We are primarily talking about user orientated clients where another x hundred 
milliseconds is not going to be a significant problem and Microsoft seem to be 
doing their best to ensure that we have oodles of RAM available if needed.

When one considers the ever increasing speed of processors, what is not 
lightning fast now probably will be tomorrow and, perhaps more importantly, the 
processors used to attack the messages encrypted today definitely will be much, 
much faster in the future.

Our primary goal should be security, with ease of implementation next.


Bartley O'Malley
Citibank NA
Lewisham House
25 Molesworth Street
London
SE13 7EX
England

Tel +44-171-500-6473
Fax +44-171-500-8880

----Original Message-----
From: owner-ietf-smime(a)imc.org 
Sent: Saturday, February 06, 1999 7:18 AM
To: BJUENEMAN(a)novell.com; ietf-smime(a)imc.org
Cc: pgut001(a)cs.aucKland.ac.nz
Subject: Re: A New Triple-DES Key Wrap Algorithm

djohnson@certicom.com, TACAR.PRV-7.PROVO@novell.com, burt@RSA.COM, 
housley@spyrus.com

>The only [small] problem I have with your approach is performance, as double 
>encryption with triple-DES is relatively expensive, especially if you don't 
>save and reuse the state after the three key expansions step in DES.  In 
>addition, I would like to have a key wrapper format that is completely 
>independent of the KEK algorithm, soi that I can use the same wrapper whether 
>I use DES, RSA, elliptic curves, etc. And I don't think you want to propose 
>doing double encryption with an asymmetric cipher!
 
I chose it because two passes of whatever cipher was being used seemed the 
simplest way to do it.  There are many alternative to this, my immediate 
reaction when I saw the original analysis was to use the cipher to generate a 
pseudorandom stream, hash 128-bit chunks of it with SHA-1, and then XOR the 
20-byte blocks into the data to be encrypted, but it's a bit of an ad hoc 
approach and requires many applications of SHA-1 which are probably less 
efficient than the block cipher.  In any case I doubt that a handful of extra 
en/decryption operations for the two-pass crypt are going to add much 
overhead.  This is the same scheme suggested by Don Johnson, I wasn't sure 
initially whether we were talking about the same thing.                    
 
Historical note: I first used something like this for a sector-level 
encrypting disk device driver where there wasn't any room for storing the IV, 
so the encryption made two passes, the first to generate the IV and the second 
to perform the encryption.  The first pass used:
 
    P[ i ] ^= P[ i-K1 ] ^ P[ i-K2 ]
 
(K1 and K2 are appropriate constants), the second pass used the output as the 
IV.  This is a nice lightweight function (it's extremely efficient on a RISC 
CPU), the design was by Colin Plumb and was inspired by the (then brand-new) 
SHA.  In the KEK case you don't need this since the data is so short that two 
applications of the block cipher will carry virtually no overhead.
 
Peter.

 << File: UnXhrds.txt >> 


From owner-ietf-smime@imc.org  Fri Feb  5 12:34:42 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id MAA05608
	for <smime-archive@odin.ietf.org>; Fri, 5 Feb 1999 12:34:41 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA08350
	for ietf-smime-bks; Fri, 5 Feb 1999 08:14:41 -0800 (PST)
Received: from dylithium.adga.ca (dylithium.adga.ca [207.112.67.34])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA08345;
	Fri, 5 Feb 1999 08:14:38 -0800 (PST)
Received: from xfile ([207.112.70.165])
	by dylithium.adga.ca (980427.SGI.8.8.8/8.8.8-ajr) with SMTP id LAA29039;
	Fri, 5 Feb 1999 11:16:17 -0500 (EST)
Message-Id: <3.0.1.32.19990205111806.009e62a0@adga.ca>
X-Sender: frousseau@adga.ca
X-Mailer: Windows Eudora Pro Version 3.0.1 (32)
Date: Fri, 05 Feb 1999 11:18:06 -0500
To: jimsch@EXCHANGE.MICROSOFT.com
From: Francois Rousseau <f.rousseau@adga.ca>
Subject: Re: Last Call Comment on ESS - Signing Certificate Attribute
Cc: phoffman@imc.org, ietf-smime@imc.org
In-Reply-To: <2FBF98FC7852CF11912A0000000000010ECB5CA9@DINO>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Jim,

I agree with you that authorization/access control information can also be
distributed through the "subject directory attributes" extension of a
public key certificate (e.g. US DoD Partition Rule Based Access Control
(PRBAC) scheme) instead of or in addition to attribute certificates (e.g.
US DoD Local Rule Based Access Control (LRBAC) scheme) as it has also been
recognized in the latest Proposed Draft Amendment (PDAM) to X.509(97).

This authorization/access control information can be included with the
signature verification public key certificate, the encryption public key
certificate or both public key certificates, and there was currently no
mean to bind it to the encryption public key certificate.

However in addition to changing only paragraph 4 of Section 5.4 as you have
proposed, I would suggest that the following paragraphs may also have to be
changed:

a.  May be the new wording about signing certificates (Section 5) in the
introduction in Section 1 will have to be changed.

b.  Section 5, paragraph 3,

Attribute certificates and other public key certificates can be used as
part of a signature verification process. There is no way in CMS to include
the list of other certificates to be used in the verification process. The
signer needs to have the ability to restrict the set of certificates used
in the signature verification process. This information needs to be encoded
in a manner that is covered by the signature on the SignedData object. The
methods in this section allows for the set of certificates to be listed as
part of the signing certificate attribute.

c.  Section 5.3,

Some applications require that additional information be used as part of
the signature validation process. In particular, attribute certificates,
other public key certificates and policy identifiers provide additional
information about the abilities and intent of the signer. The signing
certificate attribute described in Section 5.4 provides the ability to bind
this context information as part of the signature.

d.  Section 5.3.1,

5.3.1 Other Certificates

Some applications require that attribute certificates and/or other public
key certificates be validated. This validation requires that the
application be able to find the correct certificates to perform the
verification process; however there is no list of other certificates to
used in a SignerInfo object. The sender has the ability to include a set of
attribute certificates and public key certificates in a SignedData object.
The receiver has the ability to retrieve attribute certificates and public
key certificates from a directory service. There are some circumstances
where the signer may wish to limit the set of certificates that may be used
in verifying a signature. It is useful to be able to list the set of
certificates the signer wants the recipient to use in validating the
signature.

e.  Section 5.4, paragraph 1,

The signing certificate attribute is designed to prevent the simple
substitution and re-issue attacks, and to allow for a restricted set of
certificates to be used in verifying a signature.

f.  Section 5.4.1, paragraph 2,

Attribute certificates and additional public key certificates do not have
an issuer/serial number pair represented anywhere in a SignerInfo object.
When an attribute certificate or an additional public key certificate is
not included in the SignedData object, it becomes much more difficult to
get the correct set of certificates based only on a hash of the
certificate. For this reason, attribute certificates or additional public
key certificates are identified by the IssuerSerial object.

Any Comments?

Francois Rousseau
AEPOS Technologies

>In reviewing some requirements that are coming from external companies on
>our product requirements and I found the following problem.
>
>It turns out that not everybody is up to the point of using attribute
>certificates for assigning authorizations.  This information is being
>carried in normal authentication certificates and ususally in an encryption
>certificate rather than the signing certificate.  This means that we need to
>allow more than attribute certificates in the last portion of the list.
>
>
>
>Replace Section 5.4 paragraph 4 with the following:
>
>If more than one certificate is present in the sequence of ESSCertIDs, the
>certificates after the first one limit the set of authorization certificates
>that are used during signature validation. Authorization certificates can be
>both attribute certificates and normal certificates. The issuerSerial SHOULD
>be
>present in these certificates, unless the client who is validating the
>signature is expected to have easy access to all the certificates required
>for validation. If only the signing certificate is present in the sequence.
>there are no restrictions on the set of authorization certificates used in
>validating the signature.
>
>jim
>
>


From owner-ietf-smime@imc.org  Fri Feb  5 15:52:56 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id PAA09218
	for <smime-archive@odin.ietf.org>; Fri, 5 Feb 1999 15:52:56 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA10881
	for ietf-smime-bks; Fri, 5 Feb 1999 12:03:42 -0800 (PST)
Received: from nj.net (1Cust95.tnt2.louisville.ky.da.uu.net [208.252.207.95])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id MAA10877
	for <ietf-smime@imc.org>; Fri, 5 Feb 1999 12:03:40 -0800 (PST)
From: billc@DCemail.com
To: ietf-smime@imc.org
Subject: ADV: Is This You ?
Date: Fri, 5 Feb 1999 15:07:11
Message-Id: <401.191333.701691@nj.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>


Are You Paying More Than You Have To...
For Long Distance & Phone Services ???

Most People Are Over-Paying - And Getting Less...

Are You Getting A Deal Like This From YOUR Carrier ?

*8.9 Cents/Min (24 Hours/Day) (Lower Rates Below)
*Receive 30 Minutes Of F-R-E-E Calling For Signing Up 
*6 Second Billing (Saves 20% More)
*NO Sign-Up Fees
*NO Monthly Billing Fees
*NO Minimum Usage
*No Gimmicks

Toll-Free Numbers Are Also Only 8.9 Cents/Min
With 6 Second Billing & No Set-Up/Transfer Fee

Callings Cards - Just 14.9 Cents/Min 
6 Second Billing - NO " Bong " Charges 

P-L-U-S 

Get 30 Minutes Of FREE Calling For EACH Person That You
Refer Who Signs Up For Service - Refer 3 People Who Sign
Up & YOUR Rate Lowers To 7.9 CENTS/MIN - PERMANENTLY ! 

A-N-D

EVERYONE That You Refer, Who Signs Up For Service, ALSO 
Gets 30 Minutes Of FREE Calling !

Get Your Final Cost Per Minute Down To 5 Cents/Min,
3 Cents/Min, Even Down To ZERO - With Our Referral
Program - It's Totally FREE To You & The People That
You Refer !

When We Get A Lower Rate - YOUR Rate Goes DOWN
A-U-T-O-M-A-T-I-C-A-L-L-Y. Unlike Other Carriers, Our
Prices Have NEVER Gone Up - Only Down - And They
Continue To Do So !

Call Us Today For More Info - Or To Sign Up !

1-888-333-4943

(TOLL-FREE)

Monday-Friday
10 AM - 10 PM
Eastern



P. S. 

We Receive Hundreds Of Calls Per Day. If Lines 
Are Busy - Keep Trying. This Is An Information
And Sign-Up Line.If You Sign-Up For The Service,
You Will Have The Direct Toll-Free Numbers For 
Our Customer Service & Billing Departments.


From owner-ietf-smime@imc.org  Fri Feb  5 18:37:11 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id SAA13127
	for <smime-archive@odin.ietf.org>; Fri, 5 Feb 1999 18:37:11 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA12042
	for ietf-smime-bks; Fri, 5 Feb 1999 14:47:06 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA12038
	for <ietf-smime@imc.org>; Fri, 5 Feb 1999 14:47:01 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id RAA02355
	for <ietf-smime@imc.org>; Fri, 5 Feb 1999 17:55:40 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id RAA17597; Fri, 5 Feb 1999 17:53:15 -0500
Date: Fri, 5 Feb 1999 17:53:15 -0500
Message-Id: <199902052253.RAA17597@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: Last Call Comment on ESS - Signing Certificate Attribute
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

I agree with all of Francois Rousseau's comments to Jim's proposal to expand
the use of the signingCertificate attribute.

=========================================================
John Pawling, Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================






From owner-ietf-smime@imc.org  Fri Feb  5 21:40:58 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id VAA15386
	for <smime-archive@odin.ietf.org>; Fri, 5 Feb 1999 21:40:57 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA13365
	for ietf-smime-bks; Fri, 5 Feb 1999 17:46:26 -0800 (PST)
Received: from firewall.chttl.com.tw (gate.chttl.com.tw [202.39.157.254])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA13361
	for <ietf-smime@imc.org>; Fri, 5 Feb 1999 17:46:23 -0800 (PST)
Received: from ms.chttl.com.tw (ms.tl.gov.tw. [10.144.2.104])
	by firewall.chttl.com.tw (8.9.1/8.9.1) with ESMTP id JAA21492;
	Sat, 6 Feb 1999 09:49:37 +0800 (CST)
Received: from src_nt ([10.144.133.147] (may be forged))
	by ms.chttl.com.tw (8.8.6/8.8.6) with SMTP id JAA14497;
	Sat, 6 Feb 1999 09:46:58 +0800 (CST)
Date: Sat, 6 Feb 1999 09:46:58 +0800 (CST)
Message-Id: <1.5.4.32.19990206095417.015c9564@ms.chttl.com.tw>
X-Sender: src@ms.chttl.com.tw
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
To: billc@DCemail.com
From: Richard Jui-Ching Shyur <src@ms.chttl.com.tw>
Subject: Re: ADV: Is This You ?
Cc: ietf-smime@imc.org
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id RAA13362
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

So ietf-smime@imc.org is also suffering from spamming...

At 03:07 PM 1999/2/5, you wrote:
>
>Are You Paying More Than You Have To...
>For Long Distance & Phone Services ???
>
>Most People Are Over-Paying - And Getting Less...
>
>Are You Getting A Deal Like This From YOUR Carrier ?
>
>*8.9 Cents/Min (24 Hours/Day) (Lower Rates Below)
>*Receive 30 Minutes Of F-R-E-E Calling For Signing Up 
>*6 Second Billing (Saves 20% More)
>*NO Sign-Up Fees
>*NO Monthly Billing Fees
>*NO Minimum Usage
>*No Gimmicks
>
>Toll-Free Numbers Are Also Only 8.9 Cents/Min
>With 6 Second Billing & No Set-Up/Transfer Fee
>
>Callings Cards - Just 14.9 Cents/Min 
>6 Second Billing - NO " Bong " Charges 
>
>P-L-U-S 
>
>Get 30 Minutes Of FREE Calling For EACH Person That You
>Refer Who Signs Up For Service - Refer 3 People Who Sign
>Up & YOUR Rate Lowers To 7.9 CENTS/MIN - PERMANENTLY ! 
>
>A-N-D
>
>EVERYONE That You Refer, Who Signs Up For Service, ALSO 
>Gets 30 Minutes Of FREE Calling !
>
>Get Your Final Cost Per Minute Down To 5 Cents/Min,
>3 Cents/Min, Even Down To ZERO - With Our Referral
>Program - It's Totally FREE To You & The People That
>You Refer !
>
>When We Get A Lower Rate - YOUR Rate Goes DOWN
>A-U-T-O-M-A-T-I-C-A-L-L-Y. Unlike Other Carriers, Our
>Prices Have NEVER Gone Up - Only Down - And They
>Continue To Do So !
>
>Call Us Today For More Info - Or To Sign Up !
>
>1-888-333-4943
>
>(TOLL-FREE)
>
>Monday-Friday
>10 AM - 10 PM
>Eastern
>
>
>
>P. S. 
>
>We Receive Hundreds Of Calls Per Day. If Lines 
>Are Busy - Keep Trying. This Is An Information
>And Sign-Up Line.If You Sign-Up For The Service,
>You Will Have The Direct Toll-Free Numbers For 
>Our Customer Service & Billing Departments.
>
+-----------------------------------------------+
| Chunghwa Telecom, Tele Labs	  886-3-4244110 |
| 			      fax:886-3-4244167 |
|            Dr. Richard Jui-Ching Shyur ®}·ç­ë |
+-----------------------------------------------+



From owner-ietf-smime@imc.org  Sun Feb  7 19:16:35 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id TAA04590
	for <smime-archive@odin.ietf.org>; Sun, 7 Feb 1999 19:16:34 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id PAA09224
	for ietf-smime-bks; Sun, 7 Feb 1999 15:16:50 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id PAA09220
	for <ietf-smime@imc.org>; Sun, 7 Feb 1999 15:16:48 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (dial02.spyrus.com [207.212.34.122]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id PAA17137; Sun, 7 Feb 1999 15:18:14 -0800 (PST)
Message-Id: <4.1.19990207151649.009c52e0@209.172.119.123>
Message-Id: <4.1.19990207151649.009c52e0@209.172.119.123>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Sun, 07 Feb 1999 16:07:18 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: burt@RSA.COM, djohnson@certicom.ca, schneier@counterpane.com,
        denny@tis.com, denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
        berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
        carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
        Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
        acc@tycho.ncsc.mil, bschanni@BayNetworks.com, jhs@tycho.ncsc.mil,
        jis@mit.edu, pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
        cjwagne@missi.ncsc.mil, balenson@tis.com, balenson@tis.com,
        jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov,
        daw@cs.berkeley.edu
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All:

After a fair amount of open and public debate, I see three approahces to
Triple-DES key wrapping.  In this note, I list all three.  To keep this note a
resonable lenght, I have omitted the unwrap algorithm description.  The
alternative algorithms are listed in my oreder of preference.  The rationale
for my ordering is complexity.  The simplest is first, and the most complex is
last.  If the simple wrap algorithm meets the requirements, then what value
does the complexity add?

The S/MIME v3 specifications will include the selected Triple-DES key wrap
algorithm as well as a variant for wrapping RC2 keys (40-128 bit keys).

Please review the algorithms.  Please do not propose improvements that are
covered by any issued or pending patents.

Thanks for your assistance,
  Russ


= = = = = = = = = = 


WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION

A.1  Key Checksum

The CMS Checksum Algorithm is used to provide an content-encryption key
integrity check value.  The algorithm is:

1.  Compute a 20 octet SHA-1 message digest on the 
    content-encryption key.
2.  Use the most significant (first) eight octets of the 
    message digest value as the checksum value.

A.2  Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising 
    the content-encryption key.
2.  Compute a 8 octet key checksum value on the content-encryption
    key as described above.
3.  Concatenate the key checksum value and the content-encryption key.
    The result is four 8 octet blocks: B1, B2, B3, and B4.
4.  Encrypt in CBC mode the four blocks using the key-encryption key.
    Use an IV of all zeros.
5.  Reverse the order of the four ciphertext blocks.  The resulting
    order is B4, B3, B2, and B1.
6.  Encrypt the four blocks a second time.  Encrypt in CBC mode 
    using the key-encryption key.  Use an IV of all zeros.


WRAP ALOGRITHM #2:  MASK AND ENCRYPT

B.1  Key Checksum

The CMS Checksum Algorithm is used to provide an content-encryption key
integrity check value.  The algorithm is:

1.  Compute a 20 octet SHA-1 message digest on the 
    content-encryption key.
2.  Use the most significant (first) eight octets of the 
    message digest value as the checksum value.

B.2  Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising 
    the content-encryption key.
2.  Compute a 8 octet key checksum value on the content-encryption
    key as described above.
3.  Generate an 8 octet random number: RAND.
4.  Let H1 = SHA-1 ( RAND ).
5.  Let H2 = SHA-1 ( H1 ).
6.  Let MASK equal the most significant (first) 32 octets of H1 || H2.
7.  Let KEYICV equal the content-encryption key concatenated with
    the key checksum value.
8.  Let PLAIN = RAND || ( KEYICV XOR MASK ).
9.  Encrypt PLAIN in CBC mode using the key-encryption key.
    Use an IV of all zeros.


WRAP ALOGRITHM #3:  OAEP AND ENCRYPT

C.1  Key Checksum

No explicit ckecksum algoritm is needed.  The OAEP processing provides 
the necessary integrity.

C.2  Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising 
    the content-encryption key, called CEK.
2.  Let CEKPAD = 0x18 || CEK || 0x0000000000000000000000.
3.  Generate a 160-bit random value, called RAND.
4.  Let H1 = SHA-1 ( RAND || 0x01 ).
5.  Let H2 = SHA-1 ( RAND || 0x02 ).
6.  Let MASK1 equal the most significant (first) 36 octets of H1 || H2.
7.  Let MKEY = CEKPAD XOR MASK1.
8.  Let MASK2 = SHA-1 ( MKEY ).
9.  Let MRAND = MASK2 XOR RAND.
10. Let MDATA = MRAND || MKEY.
11. Encrypt MDATA with the key-encryption key and CBC mode.  Use an IV
    with each octet equal to 0xA5.  The ciphertext is 56 octets long.



From owner-ietf-smime@imc.org  Mon Feb  8 11:14:28 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA20516
	for <smime-archive@odin.ietf.org>; Mon, 8 Feb 1999 11:14:27 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA29109
	for ietf-smime-bks; Mon, 8 Feb 1999 07:04:30 -0800 (PST)
Received: from puma.baltimore.ie (root@pc215-8.indigo.ie [194.125.215.8])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA29104
	for <ietf-smime@imc.org>; Mon, 8 Feb 1999 07:04:20 -0800 (PST)
Received: from knuckle (knuckle.baltimore.ie [194.125.215.103])
	by puma.baltimore.ie (8.8.5/8.8.5) with SMTP id PAA10829;
	Mon, 8 Feb 1999 15:07:34 GMT
Received: by localhost with Microsoft MAPI; Mon, 8 Feb 1999 15:07:27 -0000
Message-ID: <01BE5374.BD6D9620.wwhyte@baltimore.ie>
From: William Whyte <wwhyte@baltimore.ie>
To: "'EKR'" <ekr@rtfm.com>
Cc: "'IETF SMIME list'" <ietf-smime@imc.org>
Subject: Counter format in x942-05
Date: Mon, 8 Feb 1999 15:07:26 -0000
Organization: Baltimore Technologies
X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

In my draft of X9.42 (October 2nd, 1998), the counter is an INTEGER, not an OCTET STRING. Is my draft out of date?

Cheers,

William


From owner-ietf-smime@imc.org  Mon Feb  8 11:16:28 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA20588
	for <smime-archive@odin.ietf.org>; Mon, 8 Feb 1999 11:16:27 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA29162
	for ietf-smime-bks; Mon, 8 Feb 1999 07:09:54 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA29158
	for <ietf-smime@imc.org>; Mon, 8 Feb 1999 07:09:53 -0800 (PST)
Received: from domino2.certicom.com (domino2.certicom.com [10.0.1.25])
	by eng1.certicom.com (8.8.7/8.8.7) with SMTP id KAA00285;
	Mon, 8 Feb 1999 10:15:11 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.1  (569.2 2-6-1998))  id 85256712.0037F4E2 ; Mon, 8 Feb 1999 05:11:11 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: Russ Housley <housley@spyrus.com>
cc: ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
        schneier@counterpane.com, denny@tis.com,
        denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
        berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
        carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
        Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
        acc@tycho.ncsc.mil, bschanni@BayNetworks.com, jhs@tycho.ncsc.mil,
        jis@mit.edu, pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
        cjwagne@missi.ncsc.mil, balenson@tis.com, jlinn@securitydynamics.com,
        smid@csmes.ncsl.nist.gov, daw@cs.berkeley.edu
Message-ID: <85256712.005334F0.00@domino2.certicom.com>
Date: Mon, 8 Feb 1999 10:10:07 -0500
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

To be fair, you should explicitly state the security attributes required by
the process, that is, if this attribute is not achieved, it should be
considered an attack and if a attribute is not mentioned, it is not
considered an attack if it is not achieved.  For example, confidentiality
so that no bit of the key can be guessed with substantially better than 50%
probability, detection of alteration with 1/x probability, plaintext
awareness, etc.

Don Johnson





Russ Housley <housley@spyrus.com> on 02/07/99 04:07:18 PM

To:   ietf-smime@imc.org
cc:   burt@RSA.COM, djohnson@certicom.ca, schneier@counterpane.com,
      denny@tis.com, denning@cs.cosc.georgetown.edu, omura@cylink.com,
      mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
      smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
      berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
      carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
      Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
      acc@tycho.ncsc.mil, bschanni@BayNetworks.com, jhs@tycho.ncsc.mil,
      jis@mit.edu, pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
      cjwagne@missi.ncsc.mil, balenson@tis.com, balenson@tis.com,
      jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov,
      daw@cs.berkeley.edu (bcc: Don Johnson/Certicom)
Subject:  Re: A New Triple-DES Key Wrap Algorithm




All:

After a fair amount of open and public debate, I see three approahces to
Triple-DES key wrapping.  In this note, I list all three.  To keep this
note a
resonable lenght, I have omitted the unwrap algorithm description.  The
alternative algorithms are listed in my oreder of preference.  The
rationale
for my ordering is complexity.  The simplest is first, and the most complex
is
last.  If the simple wrap algorithm meets the requirements, then what value
does the complexity add?

The S/MIME v3 specifications will include the selected Triple-DES key wrap
algorithm as well as a variant for wrapping RC2 keys (40-128 bit keys).

Please review the algorithms.  Please do not propose improvements that are
covered by any issued or pending patents.

Thanks for your assistance,
  Russ


= = = = = = = = = =


WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION

A.1  Key Checksum

The CMS Checksum Algorithm is used to provide an content-encryption key
integrity check value.  The algorithm is:

1.  Compute a 20 octet SHA-1 message digest on the
    content-encryption key.
2.  Use the most significant (first) eight octets of the
    message digest value as the checksum value.

A.2  Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising
    the content-encryption key.
2.  Compute a 8 octet key checksum value on the content-encryption
    key as described above.
3.  Concatenate the key checksum value and the content-encryption key.
    The result is four 8 octet blocks: B1, B2, B3, and B4.
4.  Encrypt in CBC mode the four blocks using the key-encryption key.
    Use an IV of all zeros.
5.  Reverse the order of the four ciphertext blocks.  The resulting
    order is B4, B3, B2, and B1.
6.  Encrypt the four blocks a second time.  Encrypt in CBC mode
    using the key-encryption key.  Use an IV of all zeros.


WRAP ALOGRITHM #2:  MASK AND ENCRYPT

B.1  Key Checksum

The CMS Checksum Algorithm is used to provide an content-encryption key
integrity check value.  The algorithm is:

1.  Compute a 20 octet SHA-1 message digest on the
    content-encryption key.
2.  Use the most significant (first) eight octets of the
    message digest value as the checksum value.

B.2  Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising
    the content-encryption key.
2.  Compute a 8 octet key checksum value on the content-encryption
    key as described above.
3.  Generate an 8 octet random number: RAND.
4.  Let H1 = SHA-1 ( RAND ).
5.  Let H2 = SHA-1 ( H1 ).
6.  Let MASK equal the most significant (first) 32 octets of H1 || H2.
7.  Let KEYICV equal the content-encryption key concatenated with
    the key checksum value.
8.  Let PLAIN = RAND || ( KEYICV XOR MASK ).
9.  Encrypt PLAIN in CBC mode using the key-encryption key.
    Use an IV of all zeros.


WRAP ALOGRITHM #3:  OAEP AND ENCRYPT

C.1  Key Checksum

No explicit ckecksum algoritm is needed.  The OAEP processing provides
the necessary integrity.

C.2  Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising
    the content-encryption key, called CEK.
2.  Let CEKPAD = 0x18 || CEK || 0x0000000000000000000000.
3.  Generate a 160-bit random value, called RAND.
4.  Let H1 = SHA-1 ( RAND || 0x01 ).
5.  Let H2 = SHA-1 ( RAND || 0x02 ).
6.  Let MASK1 equal the most significant (first) 36 octets of H1 || H2.
7.  Let MKEY = CEKPAD XOR MASK1.
8.  Let MASK2 = SHA-1 ( MKEY ).
9.  Let MRAND = MASK2 XOR RAND.
10. Let MDATA = MRAND || MKEY.
11. Encrypt MDATA with the key-encryption key and CBC mode.  Use an IV
    with each octet equal to 0xA5.  The ciphertext is 56 octets long.







From owner-ietf-smime@imc.org  Mon Feb  8 15:14:35 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id PAA28772
	for <smime-archive@odin.ietf.org>; Mon, 8 Feb 1999 15:14:34 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA03773
	for ietf-smime-bks; Mon, 8 Feb 1999 11:13:43 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA03769
	for <ietf-smime@imc.org>; Mon, 8 Feb 1999 11:13:41 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id LAA26551; Mon, 8 Feb 1999 11:15:32 -0800 (PST)
Message-Id: <4.1.19990208141445.009a2100@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 08 Feb 1999 14:16:14 -0500
To: "Don Johnson" <djohnson@certicom.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
        schneier@counterpane.com, denny@tis.com,
        denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
        berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
        carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
        Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
        acc@tycho.ncsc.mil, bschanni@BayNetworks.com, jhs@tycho.ncsc.mil,
        jis@mit.edu, pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
        cjwagne@missi.ncsc.mil, balenson@tis.com, jlinn@securitydynamics.com,
        smid@csmes.ncsl.nist.gov, daw@cs.berkeley.edu
In-Reply-To: <85256712.005334F0.00@domino2.certicom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Don:

I thought about writing a list of criteria, but I did not want to start a
debate about the criteria.  Rather, I want to focus on the algorithms.  For
the most part, the folks on this list undertsand the requirements
associated with key wrapping.

Russ


At 10:10 AM 2/8/99 -0500, Don Johnson wrote:
>Russ,
>
>To be fair, you should explicitly state the security attributes required by
>the process, that is, if this attribute is not achieved, it should be
>considered an attack and if a attribute is not mentioned, it is not
>considered an attack if it is not achieved.  For example, confidentiality
>so that no bit of the key can be guessed with substantially better than 50%
>probability, detection of alteration with 1/x probability, plaintext
>awareness, etc.
>
>Don Johnson
>
>
>
>
>
>Russ Housley <housley@spyrus.com> on 02/07/99 04:07:18 PM
>
>To:   ietf-smime@imc.org
>cc:   burt@RSA.COM, djohnson@certicom.ca, schneier@counterpane.com,
>      denny@tis.com, denning@cs.cosc.georgetown.edu, omura@cylink.com,
>      mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
>      smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
>      berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
>      carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
>      Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
>      acc@tycho.ncsc.mil, bschanni@BayNetworks.com, jhs@tycho.ncsc.mil,
>      jis@mit.edu, pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
>      cjwagne@missi.ncsc.mil, balenson@tis.com, balenson@tis.com,
>      jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov,
>      daw@cs.berkeley.edu (bcc: Don Johnson/Certicom)
>Subject:  Re: A New Triple-DES Key Wrap Algorithm
>
>
>
>
>All:
>
>After a fair amount of open and public debate, I see three approahces to
>Triple-DES key wrapping.  In this note, I list all three.  To keep this
>note a
>resonable lenght, I have omitted the unwrap algorithm description.  The
>alternative algorithms are listed in my oreder of preference.  The
>rationale
>for my ordering is complexity.  The simplest is first, and the most complex
>is
>last.  If the simple wrap algorithm meets the requirements, then what value
>does the complexity add?
>
>The S/MIME v3 specifications will include the selected Triple-DES key wrap
>algorithm as well as a variant for wrapping RC2 keys (40-128 bit keys).
>
>Please review the algorithms.  Please do not propose improvements that are
>covered by any issued or pending patents.
>
>Thanks for your assistance,
>  Russ
>
>
>= = = = = = = = = =
>
>
>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>
>A.1  Key Checksum
>
>The CMS Checksum Algorithm is used to provide an content-encryption key
>integrity check value.  The algorithm is:
>
>1.  Compute a 20 octet SHA-1 message digest on the
>    content-encryption key.
>2.  Use the most significant (first) eight octets of the
>    message digest value as the checksum value.
>
>A.2  Triple-DES Key Wrap
>
>1.  Set odd parity for each of the DES key octets comprising
>    the content-encryption key.
>2.  Compute a 8 octet key checksum value on the content-encryption
>    key as described above.
>3.  Concatenate the key checksum value and the content-encryption key.
>    The result is four 8 octet blocks: B1, B2, B3, and B4.
>4.  Encrypt in CBC mode the four blocks using the key-encryption key.
>    Use an IV of all zeros.
>5.  Reverse the order of the four ciphertext blocks.  The resulting
>    order is B4, B3, B2, and B1.
>6.  Encrypt the four blocks a second time.  Encrypt in CBC mode
>    using the key-encryption key.  Use an IV of all zeros.
>
>
>WRAP ALOGRITHM #2:  MASK AND ENCRYPT
>
>B.1  Key Checksum
>
>The CMS Checksum Algorithm is used to provide an content-encryption key
>integrity check value.  The algorithm is:
>
>1.  Compute a 20 octet SHA-1 message digest on the
>    content-encryption key.
>2.  Use the most significant (first) eight octets of the
>    message digest value as the checksum value.
>
>B.2  Triple-DES Key Wrap
>
>1.  Set odd parity for each of the DES key octets comprising
>    the content-encryption key.
>2.  Compute a 8 octet key checksum value on the content-encryption
>    key as described above.
>3.  Generate an 8 octet random number: RAND.
>4.  Let H1 = SHA-1 ( RAND ).
>5.  Let H2 = SHA-1 ( H1 ).
>6.  Let MASK equal the most significant (first) 32 octets of H1 || H2.
>7.  Let KEYICV equal the content-encryption key concatenated with
>    the key checksum value.
>8.  Let PLAIN = RAND || ( KEYICV XOR MASK ).
>9.  Encrypt PLAIN in CBC mode using the key-encryption key.
>    Use an IV of all zeros.
>
>
>WRAP ALOGRITHM #3:  OAEP AND ENCRYPT
>
>C.1  Key Checksum
>
>No explicit ckecksum algoritm is needed.  The OAEP processing provides
>the necessary integrity.
>
>C.2  Triple-DES Key Wrap
>
>1.  Set odd parity for each of the DES key octets comprising
>    the content-encryption key, called CEK.
>2.  Let CEKPAD = 0x18 || CEK || 0x0000000000000000000000.
>3.  Generate a 160-bit random value, called RAND.
>4.  Let H1 = SHA-1 ( RAND || 0x01 ).
>5.  Let H2 = SHA-1 ( RAND || 0x02 ).
>6.  Let MASK1 equal the most significant (first) 36 octets of H1 || H2.
>7.  Let MKEY = CEKPAD XOR MASK1.
>8.  Let MASK2 = SHA-1 ( MKEY ).
>9.  Let MRAND = MASK2 XOR RAND.
>10. Let MDATA = MRAND || MKEY.
>11. Encrypt MDATA with the key-encryption key and CBC mode.  Use an IV
>    with each octet equal to 0xA5.  The ciphertext is 56 octets long.
>
>
>
>
>



From owner-ietf-smime@imc.org  Mon Feb  8 17:10:55 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA04016
	for <smime-archive@odin.ietf.org>; Mon, 8 Feb 1999 17:10:55 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA05097
	for ietf-smime-bks; Mon, 8 Feb 1999 13:25:16 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA05093
	for <ietf-smime@imc.org>; Mon, 8 Feb 1999 13:25:15 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id NAA29806; Mon, 8 Feb 1999 13:27:20 -0800 (PST)
Message-Id: <4.1.19990208162616.009885d0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 08 Feb 1999 16:28:05 -0500
To: William Whyte <wwhyte@baltimore.ie>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Counter format in x942-05
Cc: "'EKR'" <ekr@rtfm.com>, "'IETF SMIME list'" <ietf-smime@imc.org>
In-Reply-To: <01BE5374.BD6D9620.wwhyte@baltimore.ie>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Yes, your document is out of date.  The counter is OCTET STRING (SIZE
4..4).  I confiremed this at the X9F1 meeting in January.  If you notice,
the text and the ASN.1 are not in sync in the version you have.

Russ

At 03:07 PM 2/8/99 +0000, William Whyte wrote:
>In my draft of X9.42 (October 2nd, 1998), the counter is an INTEGER, not an 
>OCTET STRING. Is my draft out of date?
>
>Cheers,
>
>William



From owner-ietf-smime@imc.org  Mon Feb  8 18:32:37 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id SAA05664
	for <smime-archive@odin.ietf.org>; Mon, 8 Feb 1999 18:32:36 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA05616
	for ietf-smime-bks; Mon, 8 Feb 1999 14:35:19 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id OAA05612
	for <ietf-smime@imc.org>; Mon, 8 Feb 1999 14:35:16 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Mon, 08 Feb 1999 15:38:17 -0700
Message-Id: <s6bf04e9.029@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Mon, 08 Feb 1999 15:38:01 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <ietf-smime@imc.org>, <housley@spyrus.com>
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <bschanni@BayNetworks.com>,
        <kent@bbn.com>, <pcain@bbn.com>, <mhetzel@bell-labs.com>,
        <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <daw@cs.berkeley.edu>,
        <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>,
        <omura@cylink.com>, <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <benaloh@microsoft.com>,
        <bfox@microsoft.com>, <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        "Bob Jueneman" <BJUENEMAN.PRV-7.PROVO@novell.com>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>,
        <desmedt@uwm.edu>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id OAA05613
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ, nice job of synthesizing various inputs into a standard format.

However, I continue to think we have two problems that have to 
be addressed. One is cryptographic, and one is architectural.

The cryptographic problem is one of not wanting to leak any
information in the case of many, many wrappings of the same CEK,
or in the case of a single KEK being used to wrap many, many CEKs;
where an observation of two matching ciphertexts might reveal information
about the plaintext if the cipher text includes any form of stereotyped of
constant information, e.g., parity bits or padding.

The architectural problem is to try to avoid the forthcoming problem of 
needing N-squared algorithm IDs in order to handle the various combinations
of key encryption keys and content encryption keys of different types that
are likely to be developed over the coming years.  

Although S/MIME may only be interested in some small number of algorithm
types today, there are lots of places where wrapped keys may be required 
in addition to S/MIME, and as a security architect I don't want to have 
to keep reinventing (and recoding) key wrapping techniques.

For this reason, I will offer my comments inline on the algorithms that you have 
proposed, and then propose a new Generalized Key Wrapping Algorithm
that attempts to take the best features of each of the three approaches you 
have described, and apply them in a more generalized way.

In addition, I've tried to explicitly state the security criteria, as I agree with 
Don Johnson.  Reasonable men can still differ, but if they don't have a common 
understanding and agreement as to the requirements, differences are almost
guaranteed.

= = = = = = = = = = 


WRAP ALGORITHM #1:  DOUBLE ENCRYPTION

A.1  Key Checksum

The CMS Checksum Algorithm is used to provide an content-encryption key
integrity check value.  The algorithm is:

1.  Compute a 20 octet SHA-1 message digest on the 
    content-encryption key.
2.  Use the most significant (first) eight octets of the 
    message digest value as the checksum value.

[RRJ]  I'm really not convinced of the necessity for a key checksum, although
I certainly have not followed all of the previous discussion.  If someone were 
trying to attack the key distribution mechanism, then the key checksum
could act as an oracle. I would _much_ prefer to checksum the entire result,
i.e., the final encrypted  key, than to checksum the CEK itself.  Is there some 
strong justification for this that I've missed, such as the French stop-code
requirement?


A.2  Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising 
    the content-encryption key.
2.  Compute a 8 octet key checksum value on the content-encryption
    key as described above.
3.  Concatenate the key checksum value and the content-encryption key.
    The result is four 8 octet blocks: B1, B2, B3, and B4.
4.  Encrypt in CBC mode the four blocks using the key-encryption key.
    Use an IV of all zeros.
5.  Reverse the order of the four ciphertext blocks.  The resulting
    order is B4, B3, B2, and B1.

[RRJ] Rather than merely interchange the order of the four blocks, I believe 
that the entire string should be reversed, byte for byte. (I'd really like
to do it bit by bit, but the code would be a little awkward.) Preserving the
original block boundaries might possibly allow some clever attacks. I also
don't see the need for the final reversal.  

6.  Encrypt the four blocks a second time.  Encrypt in CBC mode 
    using the key-encryption key.  Use an IV of all zeros.

[RRJ]  I would prefer to use something other than 0 for the IV.
Ideally, the IV should be variable for each KEK, in order to make
a chosen plaintext attack that much more difficult. If a varying IV is
too difficult from a protocol standpoint, then at least avoid any kind of 
repeating structure -- use pi, or the square root of 2, or something
random.  And use two different IVs for the different steps.
Tom Berson is absolutely right -- avoid structure and 
symmetry at all cost!

[RRJ]  But my primary objection to this approach is the expense incurred by the 
second encryption pass. Even though a triple-DES operation may be quite
fast compared to say an RSA encryption, cycles are cycles, and
deliberately causing additional key management overhead that could be
avoided is unacceptable.

WRAP ALGORITHM #2:  MASK AND ENCRYPT

B.1  Key Checksum

The CMS Checksum Algorithm is used to provide an content-encryption key
integrity check value.  The algorithm is:

1.  Compute a 20 octet SHA-1 message digest on the 
    content-encryption key.
2.  Use the most significant (first) eight octets of the 
    message digest value as the checksum value.

B.2  Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising 
    the content-encryption key.
2.  Compute a 8 octet key checksum value on the content-encryption
    key as described above.
3.  Generate an 8 octet random number: RAND.
4.  Let H1 = SHA-1 ( RAND ).
5.  Let H2 = SHA-1 ( H1 ).
6.  Let MASK equal the most significant (first) 32 octets of H1 || H2.

[RRJ] H2 is in some sense "more random" than H1, since it includes 
the mixing effect of the previous SHA-1.  If RAND were less than perfectly
random, i.e., subject to some kind of bias, H1 might remove most, but perhaps
not all of the bias, but if SHA-1 is any good at all, H2 should be much
less likely to leak information. For that reason, and since CBC introduces 
error propagation in the forward direction, MASK should equal the most 
significant (first) 32 octets of H2 || H1.

7.  Let KEYICV equal the content-encryption key concatenated with
    the key checksum value.

[RRJ] For the reason given above, forward error propagation, the KEYICV should
be formed by taking the key checksum concatenated with (followed by)
the CEK.  But I would greatly prefer not to have a key checksum at all, 
in which case MASK would only be 24 octets long, assuming a "naked" 
triple-DES CEK.

8.  Let PLAIN = RAND || ( KEYICV XOR MASK ).

[RRJ] The disadvantage of this approach, as compared to approach 3
(OAEP), is that the RAND is not whitened. Therefore, if there is any weakness
in RAND, it may be possible to derive some information from any block that has a
matching ciphertext.

9.  Encrypt PLAIN in CBC mode using the key-encryption key.
    Use an IV of all zeros.


WRAP ALGORITHM #3:  OAEP AND ENCRYPT

C.1  Key Checksum

No explicit checksum algorism is needed.  The OAEP processing provides 
the necessary integrity.

C.2  Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising 
    the content-encryption key, called CEK.
2.  Let CEKPAD = 0x18 || CEK || 0x0000000000000000000000.
3.  Generate a 160-bit random value, called RAND.
4.  Let H1 = SHA-1 ( RAND || 0x01 ).
5.  Let H2 = SHA-1 ( RAND || 0x02 ).
6.  Let MASK1 equal the most significant (first) 36 octets of H1 || H2.

[RRJ]  I would prefer that a stronger function than this be used.
As it stands, the input to the two SHA-1 routines differ by only
two bits.  Use the approach of scheme 2 as modified above, i.e.,
Let H1 = SHA-1 ( RAND ),  H2 = SHA-1 ( H1 ) , 
MASK1 equal the most significant (first) 36 octets of H2 || H1.

7.  Let MKEY = CEKPAD XOR MASK1.
8.  Let MASK2 = SHA-1 ( MKEY ).
9.  Let MRAND = MASK2 XOR RAND.
10. Let MDATA = MRAND || MKEY.
11. Encrypt MDATA with the key-encryption key and CBC mode.  Use an IV
    with each octet equal to 0xA5.  The ciphertext is 56 octets long.

[RRJ]  Again, there is absolutely no reason to deliberately introduce
structure and symmetry in the IV.  If possible, use a real IV that varies 
for each KEK, in order to make a chosen plaintext attack that much 
more difficult.  At a minimum, use a pseudo-random constant with no 
apparent structure.

[RRJ]  If these problems were fixed, I believe that Approach 3 would be my 
favorite of those above, because it seems to be the most secure 
without introducing an unnecessary second encryption step.

However, I believe we can do better yet. Here is my recommended approach, 
one that tries to take advantage of all of the tweaks included above.

======================



GENERALIZED KEY WRAPPING ALGORITHM (Version 1)

Criteria:

1.	Explicitly define the type of Content Encryption Key and 
algorithm to be used in a manner that is independent of the KEK 
algorithm type, for example by a ASN.1 structure and designated 
algorithm ID, to avoid the N-squared proliferation of algorithm IDs 
for various combinations of KEK and CEK types.

2.	The Key Wrapping algorithm must be secure against 
a number of recently discovered attacks or threats; in particular it 
should be possible to securely encrypt a huge (>2^32) number of 
CEKs in a single KEK, and vice versa to encrypt a single CEK in a 
huge number of KEKs, without any significant possibility of information 
leakage that might be caused by a birthday attack, i.e., two pieces of 
matching cipher text revealing something about the plaintext. 
 
3.	In particular, the key wrapping format should not contain 
any stereotyped or common information in the plaintext, whether in 
the form of key parity bits, encryption padding bits, or other constant 
information. Instead, some form of encryption or whitening should be 
used to hide or mask such common information. The whitening must 
be unique for each wrapped key. 

4.	The key wrapping technique should be secure according 
to these criteria, regardless of whether the algorithm is a symmetric 
or an asymmetric one.  In particular, the key wrapping should be as 
good as OAEP when used with an asymmetric key.  (Since I don't 
consider myself to be very strong in this area, I'll leave it up to the 
crypto-mathematicians to tell me whether I have achieved this goal.)

TO ENCRYPT:

1.	Generate a random Content Encryption Key of an appropriate 
key length.  Fix up parity bits and/or any other constraints imposed by 
the CEK algorithm.  

2.	Wrap the key plus any other required parameters in a descriptive 
ASN.1 structure which includes the CEK algorithm ID, with the resulting 
string called CEKWRAP.  The ASN.1 structure and the various algorithm 
IDs are TBD.

3.	Add encryption padding bits (zeroes), if and as required by the 
algorithm by computing  CEKPAD = CEKWRAP || paddingBits

4.	Let LCEK = the length of CEKWRAP in bytes, a 16 bit unsigned integer

5.	Compute the maximum length of CEKWRAP plus padding:
                    LCEKPAD = LCEK + maximumAlgorithmPadding

6.	Compute the length of CEKPAD in SHA-1 blocks: 
                    LCEKSHA= floor(LCEKPAD/20) + 1

7.	Generate a 160-bit random nonce, RAND 

8.	Generate a sequence of LCEKSHA SHA-1 blocks: 
                    R(0) = RAND, 
                    R(1)=SHA-1(R(0)), ..., R(LCEKSHA)=SHA-1(R(LCEKSHA-1))

9.	Generate MASK1 = R(1) || R(2) ||...||R(LCEKSHA)

10.	Generate the whitened CEK plus padding by computing 
                    CEKWH = MASK1 XOR (CEKPAD)

11.	Whiten the RAND:     MRAND = SHA-1(CEKWH) XOR RAND 

12.	Whiten the length:      MLCEK = LCEK XOR MRAND, using the most 
significant 16 bits of MRAND            

13.	Generate the string to be encrypted, including the length of the 
whitened key:    MDATA = MRAND || MLCEK || CEKPAD

14.	Encrypt MDATA using the chosen Key Encryption Key KEK 
and the key encryption algorithm. If the algorithm requires an IV, use the 
first n bits (as specified by the algorithm) of SHA-1 of the UTF-8 encoding of  
"Generalized Key Wrapping Algorithm, version 1", repeated as necessary 
if n>160 bits (as it might be for AES).


TO DECRYPT:

1.	Decrypt MDATA using the KEK and appropriate algorithm

2.	Extract MRAND (20 bytes)

3.	Extract MLCEK (2 bytes)

4.	Compute LCEK = MRAND XOR MLCEK (most significant 16 bits)

5.	Extract CEKPAD

6.	Extract CEKWH from CEKPAD by taking the first LCEK bytes

7.	Compute  RAND = MRAND XOR SHA-1(CEKWH)

8.	Regenerate MASK1 as before, based on the extracted RAND.

9.	Extract CEKWRAP by taking the first LCEK from CEKWH XOR MASK1

10.	Unwrap the CEKWRAP ASN.1 structure if and as required, 
extracting the CEK and algorithm type, plus any other required parameters.

Regards,

Bob



Robert R. Jueneman
Security Architect
Network Security Development
Novell, Inc.
122 East 1700 South
Provo, UT 84606
bjueneman@novell.com
1-801-861-7387


From owner-ietf-smime@imc.org  Mon Feb  8 21:31:18 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id VAA06955
	for <smime-archive@odin.ietf.org>; Mon, 8 Feb 1999 21:31:18 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA07209
	for ietf-smime-bks; Mon, 8 Feb 1999 17:27:35 -0800 (PST)
Received: from abraham.cs.berkeley.edu (abraham.CS.Berkeley.EDU [128.32.37.121])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA07205
	for <ietf-smime@imc.org>; Mon, 8 Feb 1999 17:27:34 -0800 (PST)
Received: from joseph.cs.berkeley.edu (joseph.CS.Berkeley.EDU [128.32.37.122])
	by abraham.cs.berkeley.edu (8.8.6/8.8.6) with ESMTP id RAA16888;
	Mon, 8 Feb 1999 17:28:56 -0800
Received: (from daw@localhost) by joseph.cs.berkeley.edu (8.8.5/local) id RAA20171; Mon, 8 Feb 1999 17:27:07 -0800
From: David Wagner <daw@cs.berkeley.edu>
Message-Id: <199902090127.RAA20171@joseph.cs.berkeley.edu>
Subject: Re: A New Triple-DES Key Wrap Algorithm
To: housley@spyrus.com
Date: Mon, 8 Feb 1999 17:26:59 -0800 (PST)
Cc: ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
        schneier@counterpane.com, denny@tis.com,
        denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
        berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
        carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
        Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
        acc@tycho.ncsc.mil, bschanni@BayNetworks.com, jhs@tycho.ncsc.mil,
        jis@mit.edu, pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
        cjwagne@missi.ncsc.mil, balenson@tis.com, jlinn@securitydynamics.com,
        smid@csmes.ncsl.nist.gov, daw@cs.berkeley.edu
In-Reply-To: <4.1.19990207151649.009c52e0@209.172.119.123> from "Russ Housley" at Feb 7, 99 04:07:18 pm
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I don't want to step on any toes, but frankly, I think all three of these
are much too complicated for S/MIME.  I believe in fighting complexity and
cryptographic bloat; complexity greatly introduces the potential for
subtle bugs.

S/MIME doesn't need to worry about encrypting 2^32 CEKs with the same KEK;
this threat is just off the map, as far as I can tell.  (I've never sent
2^32 emails in my life, let alone to the same party.  And prudent
cryptographic practice says you should change your KEK far more often than
this, anyway...)

I propose a much simpler algorithm.  In fact, it's so simple that it is
_provably secure_.  (Oooh...)  To me, both of these features seem to greatly
reduce the risk of surprising weaknesses.

Basic idea:  You already have some shared keying material (KEK).  So just
MAC the CEK using some shared key material, then encrypt the result using
more of the shared key material.

For the MAC, you can use SHA1-HMAC.  Secure if SHA1 satisfies some relatively
plausible cryptographic properties.  See [1].
(Or usse Triple-DES-CBC-MAC.  Provably secure if Triple-DES is, good for up
to ~ 2^30 blocks or so.  See [2].)

For encryption, you can use e.g. Triple-DES-CBC.  Provably secure if
Triple-DES is, good for up to ~ 2^32 blocks or so.  See [3].

You can also prove that the whole scheme (i.e. the composition of the MAC
and the encryption) is secure (if both components are), if you use independent
keys.  (Using the same key for the MAC and the encryption is a Bad Idea.)
In practice, true independent keys are hard to arrive at.  But you can
just derive as much keying material as you need from your KEK, and get
keys which are computationally-indistinguishable from random.

Thus, I suggest e.g. expanding the KEK with Triple-DES counter mode as far
as needed to get a MAC key + an encryption key.  This is also provably secure,
if Triple-DES is.

Result: a whole scheme which is provably secure if Triple-DES (and maybe
SHA1) are.  Seems like a potentially useful property to me...

Of course, you have to ask what exactly is "proven" by the provable security
results.  I claim that as far as I know, the proven security results will
provide everything you need for S/MIME key wrapping.
(But since you haven't specified the requirements precisely, or even at all,
there are no guarantees.  Nonetheless I think the provable security indicates
strongly that the basic approach is sound and plausible.)

Of course, I'm also coming at this as an outsider, who's only recently started
tracking the S/MIME stuff, so it's possible I've missed some requirement of
the application.  But there are enough really sharp people reading this that
if I made important oversights, I believe someone will call me on it...

Regards,
-- David


[1]  Bellare, Rogaway, Krawczyk, ``Keying hash functions for message
     authentication'', CRYPTO '96.
[2]  Bellare, Kilian, Rogaway, ``The security of cipher block chaining'',
     CRYPTO '94.
[3]  Bellare, Desai, Jokipii, Rogaway, ``A concrete security treatment
     of symmetric encryption: analysis of the DES modes of operation,''
     38th FOCS (1997).




> 
> All:
> 
> After a fair amount of open and public debate, I see three approahces to
> Triple-DES key wrapping.  In this note, I list all three.  To keep this note a
> resonable lenght, I have omitted the unwrap algorithm description.  The
> alternative algorithms are listed in my oreder of preference.  The rationale
> for my ordering is complexity.  The simplest is first, and the most complex is
> last.  If the simple wrap algorithm meets the requirements, then what value
> does the complexity add?
> 
> The S/MIME v3 specifications will include the selected Triple-DES key wrap
> algorithm as well as a variant for wrapping RC2 keys (40-128 bit keys).
> 
> Please review the algorithms.  Please do not propose improvements that are
> covered by any issued or pending patents.
> 
> Thanks for your assistance,
>   Russ
> 
> 
> = = = = = = = = = = 
> 
> 
> WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
> 
> A.1  Key Checksum
> 
> The CMS Checksum Algorithm is used to provide an content-encryption key
> integrity check value.  The algorithm is:
> 
> 1.  Compute a 20 octet SHA-1 message digest on the 
>     content-encryption key.
> 2.  Use the most significant (first) eight octets of the 
>     message digest value as the checksum value.
> 
> A.2  Triple-DES Key Wrap
> 
> 1.  Set odd parity for each of the DES key octets comprising 
>     the content-encryption key.
> 2.  Compute a 8 octet key checksum value on the content-encryption
>     key as described above.
> 3.  Concatenate the key checksum value and the content-encryption key.
>     The result is four 8 octet blocks: B1, B2, B3, and B4.
> 4.  Encrypt in CBC mode the four blocks using the key-encryption key.
>     Use an IV of all zeros.
> 5.  Reverse the order of the four ciphertext blocks.  The resulting
>     order is B4, B3, B2, and B1.
> 6.  Encrypt the four blocks a second time.  Encrypt in CBC mode 
>     using the key-encryption key.  Use an IV of all zeros.
> 
> 
> WRAP ALOGRITHM #2:  MASK AND ENCRYPT
> 
> B.1  Key Checksum
> 
> The CMS Checksum Algorithm is used to provide an content-encryption key
> integrity check value.  The algorithm is:
> 
> 1.  Compute a 20 octet SHA-1 message digest on the 
>     content-encryption key.
> 2.  Use the most significant (first) eight octets of the 
>     message digest value as the checksum value.
> 
> B.2  Triple-DES Key Wrap
> 
> 1.  Set odd parity for each of the DES key octets comprising 
>     the content-encryption key.
> 2.  Compute a 8 octet key checksum value on the content-encryption
>     key as described above.
> 3.  Generate an 8 octet random number: RAND.
> 4.  Let H1 = SHA-1 ( RAND ).
> 5.  Let H2 = SHA-1 ( H1 ).
> 6.  Let MASK equal the most significant (first) 32 octets of H1 || H2.
> 7.  Let KEYICV equal the content-encryption key concatenated with
>     the key checksum value.
> 8.  Let PLAIN = RAND || ( KEYICV XOR MASK ).
> 9.  Encrypt PLAIN in CBC mode using the key-encryption key.
>     Use an IV of all zeros.
> 
> 
> WRAP ALOGRITHM #3:  OAEP AND ENCRYPT
> 
> C.1  Key Checksum
> 
> No explicit ckecksum algoritm is needed.  The OAEP processing provides 
> the necessary integrity.
> 
> C.2  Triple-DES Key Wrap
> 
> 1.  Set odd parity for each of the DES key octets comprising 
>     the content-encryption key, called CEK.
> 2.  Let CEKPAD = 0x18 || CEK || 0x0000000000000000000000.
> 3.  Generate a 160-bit random value, called RAND.
> 4.  Let H1 = SHA-1 ( RAND || 0x01 ).
> 5.  Let H2 = SHA-1 ( RAND || 0x02 ).
> 6.  Let MASK1 equal the most significant (first) 36 octets of H1 || H2.
> 7.  Let MKEY = CEKPAD XOR MASK1.
> 8.  Let MASK2 = SHA-1 ( MKEY ).
> 9.  Let MRAND = MASK2 XOR RAND.
> 10. Let MDATA = MRAND || MKEY.
> 11. Encrypt MDATA with the key-encryption key and CBC mode.  Use an IV
>     with each octet equal to 0xA5.  The ciphertext is 56 octets long.
> 



From owner-ietf-smime@imc.org  Tue Feb  9 13:33:35 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id NAA25713
	for <smime-archive@odin.ietf.org>; Tue, 9 Feb 1999 13:33:35 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA08101
	for ietf-smime-bks; Tue, 9 Feb 1999 09:19:22 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA08097
	for <ietf-smime@imc.org>; Tue, 9 Feb 1999 09:19:20 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id JAA19558; Tue, 9 Feb 1999 09:20:38 -0800 (PST)
Message-Id: <4.1.19990209115143.009926f0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Tue, 09 Feb 1999 12:02:16 -0500
To: David Wagner <daw@cs.berkeley.edu>
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
        schneier@counterpane.com, denny@tis.com,
        denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
        berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
        carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
        Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
        acc@tycho.ncsc.mil, bschanni@BayNetworks.com, jhs@tycho.ncsc.mil,
        jis@mit.edu, pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
        dickie@EMPIRE.eclipse.ncsc.mil, cjwagne@missi.ncsc.mil,
        balenson@tis.com, jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov
In-Reply-To: <199902090127.RAA20171@joseph.cs.berkeley.edu>
References: <4.1.19990207151649.009c52e0@209.172.119.123>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

David:

I had the same reaction to the 4 billion wrapped keys; however, there are
two reasons why we should address this issue.  First, when mail list keys
are used, the same KEK is used to encrypt CEKs for every message sent to
the mail list.  Depending on the activity on the mail list ad the
cryptoperiod of the KEK, the 4 billion wrapped keys might actually happen,
especially if severs ever communicated with each other using this facility.
 Second, given more time a cryptanalyst might find a better attack.  I do
not like to start a standard's life with known flaws.

I hope that others on this list will respond to your proposal.

Russ

At 05:26 PM 2/8/99 -0800, David Wagner wrote:
>I don't want to step on any toes, but frankly, I think all three of these
>are much too complicated for S/MIME.  I believe in fighting complexity and
>cryptographic bloat; complexity greatly introduces the potential for
>subtle bugs.
>
>S/MIME doesn't need to worry about encrypting 2^32 CEKs with the same KEK;
>this threat is just off the map, as far as I can tell.  (I've never sent
>2^32 emails in my life, let alone to the same party.  And prudent
>cryptographic practice says you should change your KEK far more often than
>this, anyway...)
>
>I propose a much simpler algorithm.  In fact, it's so simple that it is
>_provably secure_.  (Oooh...)  To me, both of these features seem to greatly
>reduce the risk of surprising weaknesses.
>
>Basic idea:  You already have some shared keying material (KEK).  So just
>MAC the CEK using some shared key material, then encrypt the result using
>more of the shared key material.
>
>For the MAC, you can use SHA1-HMAC.  Secure if SHA1 satisfies some relatively
>plausible cryptographic properties.  See [1].
>(Or usse Triple-DES-CBC-MAC.  Provably secure if Triple-DES is, good for up
>to ~ 2^30 blocks or so.  See [2].)
>
>For encryption, you can use e.g. Triple-DES-CBC.  Provably secure if
>Triple-DES is, good for up to ~ 2^32 blocks or so.  See [3].
>
>You can also prove that the whole scheme (i.e. the composition of the MAC
>and the encryption) is secure (if both components are), if you use independent
>keys.  (Using the same key for the MAC and the encryption is a Bad Idea.)
>In practice, true independent keys are hard to arrive at.  But you can
>just derive as much keying material as you need from your KEK, and get
>keys which are computationally-indistinguishable from random.
>
>Thus, I suggest e.g. expanding the KEK with Triple-DES counter mode as far
>as needed to get a MAC key + an encryption key.  This is also provably secure,
>if Triple-DES is.
>
>Result: a whole scheme which is provably secure if Triple-DES (and maybe
>SHA1) are.  Seems like a potentially useful property to me...
>
>Of course, you have to ask what exactly is "proven" by the provable security
>results.  I claim that as far as I know, the proven security results will
>provide everything you need for S/MIME key wrapping.
>(But since you haven't specified the requirements precisely, or even at all,
>there are no guarantees.  Nonetheless I think the provable security indicates
>strongly that the basic approach is sound and plausible.)
>
>Of course, I'm also coming at this as an outsider, who's only recently started
>tracking the S/MIME stuff, so it's possible I've missed some requirement of
>the application.  But there are enough really sharp people reading this that
>if I made important oversights, I believe someone will call me on it...
>
>Regards,
>-- David
>
>
>[1]  Bellare, Rogaway, Krawczyk, ``Keying hash functions for message
>     authentication'', CRYPTO '96.
>[2]  Bellare, Kilian, Rogaway, ``The security of cipher block chaining'',
>     CRYPTO '94.
>[3]  Bellare, Desai, Jokipii, Rogaway, ``A concrete security treatment
>     of symmetric encryption: analysis of the DES modes of operation,''
>     38th FOCS (1997).
>



From owner-ietf-smime@imc.org  Tue Feb  9 13:33:37 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id NAA25729
	for <smime-archive@odin.ietf.org>; Tue, 9 Feb 1999 13:33:36 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA07667
	for ietf-smime-bks; Tue, 9 Feb 1999 08:35:21 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA07658
	for <ietf-smime@imc.org>; Tue, 9 Feb 1999 08:34:58 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id IAA17243; Tue, 9 Feb 1999 08:35:50 -0800 (PST)
Message-Id: <4.1.19990209100333.00985d80@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Tue, 09 Feb 1999 11:31:55 -0500
To: "Bob Jueneman" <BJUENEMAN@novell.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: <ietf-smime@imc.org>, <cme@ACM.ORG>, <berson@anagram.com>,
        <bschanni@BayNetworks.com>, <kent@bbn.com>, <pcain@bbn.com>,
        <mhetzel@bell-labs.com>, <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <daw@cs.berkeley.edu>,
        <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>,
        <omura@cylink.com>, <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <benaloh@microsoft.com>,
        <bfox@microsoft.com>, <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>,
        <dickie@EMPIRE.eclipse.ncsc.mil>, <smatyas@us.ibm.com>,
        <desmedt@uwm.edu>
In-Reply-To: <s6bf04e1.099@prv-mail25.provo.novell.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Bob Jueneman wrote:
>Russ, nice job of synthesizing various inputs into a standard format.
[RH] Thanks.

>However, I continue to think we have two problems that have to 
>be addressed. One is cryptographic, and one is architectural.
>
>The cryptographic problem is one of not wanting to leak any
>information in the case of many, many wrappings of the same CEK,
>or in the case of a single KEK being used to wrap many, many CEKs;
>where an observation of two matching ciphertexts might reveal information
>about the plaintext if the cipher text includes any form of stereotyped of
>constant information, e.g., parity bits or padding.
[RH] Bob, this a a good summary of the high-level objectives.

>The architectural problem is to try to avoid the forthcoming problem of 
>needing N-squared algorithm IDs in order to handle the various combinations
>of key encryption keys and content encryption keys of different types that
>are likely to be developed over the coming years.  
[RH] Algorithm identifiers are cheap.  The security is much more important
than conserving identifiers.  However, I understand the desire for a
general solution.

>Although S/MIME may only be interested in some small number of algorithm
>types today, there are lots of places where wrapped keys may be required 
>in addition to S/MIME, and as a security architect I don't want to have 
>to keep reinventing (and recoding) key wrapping techniques.
>
>For this reason, I will offer my comments inline on the algorithms that
you have 
>proposed, and then propose a new Generalized Key Wrapping Algorithm
>that attempts to take the best features of each of the three approaches you 
>have described, and apply them in a more generalized way.
>
>In addition, I've tried to explicitly state the security criteria, as I
agree with 
>Don Johnson.  Reasonable men can still differ, but if they don't have a
common 
>understanding and agreement as to the requirements, differences are almost
>guaranteed.
>
>= = = = = = = = = = 
>
>
>WRAP ALGORITHM #1:  DOUBLE ENCRYPTION
>
>A.1  Key Checksum
>
>The CMS Checksum Algorithm is used to provide an content-encryption key
>integrity check value.  The algorithm is:
>
>1.  Compute a 20 octet SHA-1 message digest on the 
>    content-encryption key.
>2.  Use the most significant (first) eight octets of the 
>    message digest value as the checksum value.
>
>[RRJ]  I'm really not convinced of the necessity for a key checksum, although
>I certainly have not followed all of the previous discussion.  If someone
were 
>trying to attack the key distribution mechanism, then the key checksum
>could act as an oracle. I would _much_ prefer to checksum the entire result,
>i.e., the final encrypted  key, than to checksum the CEK itself.  Is there
some 
>strong justification for this that I've missed, such as the French stop-code
>requirement?
[RH] My reason is quite straightforward.  Once the key is unwrapped, it
will be used to decrypt the content.  In many cases, the content will be
rather large.  If an attacker alters the wrapped key, the resulting
upwrapped key will not be the correct CEK.  If there is not an integrity
check on the CEK, then the entire content must be processed.  The resulting
content will be junk, and a fair amount of processing was doen to get that
junk.  I simply want to detect the modification as early in the processing
as possible.

>A.2  Triple-DES Key Wrap
>
>1.  Set odd parity for each of the DES key octets comprising 
>    the content-encryption key.
>2.  Compute a 8 octet key checksum value on the content-encryption
>    key as described above.
>3.  Concatenate the key checksum value and the content-encryption key.
>    The result is four 8 octet blocks: B1, B2, B3, and B4.
>4.  Encrypt in CBC mode the four blocks using the key-encryption key.
>    Use an IV of all zeros.
>5.  Reverse the order of the four ciphertext blocks.  The resulting
>    order is B4, B3, B2, and B1.
>
>[RRJ] Rather than merely interchange the order of the four blocks, I believe 
>that the entire string should be reversed, byte for byte. (I'd really like
>to do it bit by bit, but the code would be a little awkward.) Preserving the
>original block boundaries might possibly allow some clever attacks. I also
>don't see the need for the final reversal.  
[RH] I only see one reversal.  Also, Reordering the blocks, bytes or bits
all preserve the block boundaries.  The same ciphertext bits (in different
orders) will comprise the inputs to the second encryption in each case.
>
>6.  Encrypt the four blocks a second time.  Encrypt in CBC mode 
>    using the key-encryption key.  Use an IV of all zeros.
>
>[RRJ]  I would prefer to use something other than 0 for the IV.
>Ideally, the IV should be variable for each KEK, in order to make
>a chosen plaintext attack that much more difficult. If a varying IV is
>too difficult from a protocol standpoint, then at least avoid any kind of 
>repeating structure -- use pi, or the square root of 2, or something
>random.  And use two different IVs for the different steps.
>Tom Berson is absolutely right -- avoid structure and 
>symmetry at all cost!
[RH] Two different IVs is easy.  The zero IVs were suggested by Carl Ellison. 

>[RRJ]  But my primary objection to this approach is the expense incurred
by the 
>second encryption pass. Even though a triple-DES operation may be quite
>fast compared to say an RSA encryption, cycles are cycles, and
>deliberately causing additional key management overhead that could be
>avoided is unacceptable.
[RH] This double encryption operation has the property that every output
bit depends on every input bit.  This is highly desirable.


>WRAP ALGORITHM #2:  MASK AND ENCRYPT
>
>B.1  Key Checksum
>
>The CMS Checksum Algorithm is used to provide an content-encryption key
>integrity check value.  The algorithm is:
>
>1.  Compute a 20 octet SHA-1 message digest on the 
>    content-encryption key.
>2.  Use the most significant (first) eight octets of the 
>    message digest value as the checksum value.
>
>B.2  Triple-DES Key Wrap
>
>1.  Set odd parity for each of the DES key octets comprising 
>    the content-encryption key.
>2.  Compute a 8 octet key checksum value on the content-encryption
>    key as described above.
>3.  Generate an 8 octet random number: RAND.
>4.  Let H1 = SHA-1 ( RAND ).
>5.  Let H2 = SHA-1 ( H1 ).
>6.  Let MASK equal the most significant (first) 32 octets of H1 || H2.
>
>[RRJ] H2 is in some sense "more random" than H1, since it includes 
>the mixing effect of the previous SHA-1.  If RAND were less than perfectly
>random, i.e., subject to some kind of bias, H1 might remove most, but perhaps
>not all of the bias, but if SHA-1 is any good at all, H2 should be much
>less likely to leak information. For that reason, and since CBC introduces 
>error propagation in the forward direction, MASK should equal the most 
>significant (first) 32 octets of H2 || H1.
[RH] Fine.

>7.  Let KEYICV equal the content-encryption key concatenated with
>    the key checksum value.
>
>[RRJ] For the reason given above, forward error propagation, the KEYICV should
>be formed by taking the key checksum concatenated with (followed by)
>the CEK.  But I would greatly prefer not to have a key checksum at all, 
>in which case MASK would only be 24 octets long, assuming a "naked" 
>triple-DES CEK.
[RH] Okay.  Let KEYICV equal the key checksum value concatenated with the
content-encryption key.

>8.  Let PLAIN = RAND || ( KEYICV XOR MASK ).
>
>[RRJ] The disadvantage of this approach, as compared to approach 3
>(OAEP), is that the RAND is not whitened. Therefore, if there is any weakness
>in RAND, it may be possible to derive some information from any block that 
>has a matching ciphertext.
[RH] In your posting on 4 Feb 1999, I did not see any whitening of RAND.
This alternative builds on your proposal....

>9.  Encrypt PLAIN in CBC mode using the key-encryption key.
>    Use an IV of all zeros.
>
>
>WRAP ALGORITHM #3:  OAEP AND ENCRYPT
>
>C.1  Key Checksum
>
>No explicit checksum algorism is needed.  The OAEP processing provides 
>the necessary integrity.
>
>C.2  Triple-DES Key Wrap
>
>1.  Set odd parity for each of the DES key octets comprising 
>    the content-encryption key, called CEK.
>2.  Let CEKPAD = 0x18 || CEK || 0x0000000000000000000000.
>3.  Generate a 160-bit random value, called RAND.
>4.  Let H1 = SHA-1 ( RAND || 0x01 ).
>5.  Let H2 = SHA-1 ( RAND || 0x02 ).
>6.  Let MASK1 equal the most significant (first) 36 octets of H1 || H2.
>
>[RRJ]  I would prefer that a stronger function than this be used.
>As it stands, the input to the two SHA-1 routines differ by only
>two bits.  Use the approach of scheme 2 as modified above, i.e.,
>Let H1 = SHA-1 ( RAND ),  H2 = SHA-1 ( H1 ) , 
>MASK1 equal the most significant (first) 36 octets of H2 || H1.
[RH] I took this approach from SET.  I have not problem with your suggestion.

>7.  Let MKEY = CEKPAD XOR MASK1.
>8.  Let MASK2 = SHA-1 ( MKEY ).
>9.  Let MRAND = MASK2 XOR RAND.
>10. Let MDATA = MRAND || MKEY.
>11. Encrypt MDATA with the key-encryption key and CBC mode.  Use an IV
>    with each octet equal to 0xA5.  The ciphertext is 56 octets long.
>
>[RRJ]  Again, there is absolutely no reason to deliberately introduce
>structure and symmetry in the IV.  If possible, use a real IV that varies 
>for each KEK, in order to make a chosen plaintext attack that much 
>more difficult.  At a minimum, use a pseudo-random constant with no 
>apparent structure.
[RH] A random IV is fine.  I was trying to avoid an extra block.  We could
accept the extra block or generate a random value and use it as a constant.

>[RRJ]  If these problems were fixed, I believe that Approach 3 would be my 
>favorite of those above, because it seems to be the most secure 
>without introducing an unnecessary second encryption step.
[RH] You seem to agree with Burt Kaliski that OAEP is the correct foundation.
>
>However, I believe we can do better yet. Here is my recommended approach, 
>one that tries to take advantage of all of the tweaks included above.
>
>======================
>
>
>
>GENERALIZED KEY WRAPPING ALGORITHM (Version 1)
>
>Criteria:
>
>1.	Explicitly define the type of Content Encryption Key and 
>algorithm to be used in a manner that is independent of the KEK 
>algorithm type, for example by a ASN.1 structure and designated 
>algorithm ID, to avoid the N-squared proliferation of algorithm IDs 
>for various combinations of KEK and CEK types.
>
>2.	The Key Wrapping algorithm must be secure against 
>a number of recently discovered attacks or threats; in particular it 
>should be possible to securely encrypt a huge (>2^32) number of 
>CEKs in a single KEK, and vice versa to encrypt a single CEK in a 
>huge number of KEKs, without any significant possibility of information 
>leakage that might be caused by a birthday attack, i.e., two pieces of 
>matching cipher text revealing something about the plaintext. 
> 
>3.	In particular, the key wrapping format should not contain 
>any stereotyped or common information in the plaintext, whether in 
>the form of key parity bits, encryption padding bits, or other constant 
>information. Instead, some form of encryption or whitening should be 
>used to hide or mask such common information. The whitening must 
>be unique for each wrapped key. 
>
>4.	The key wrapping technique should be secure according 
>to these criteria, regardless of whether the algorithm is a symmetric 
>or an asymmetric one.  In particular, the key wrapping should be as 
>good as OAEP when used with an asymmetric key.  (Since I don't 
>consider myself to be very strong in this area, I'll leave it up to the 
>crypto-mathematicians to tell me whether I have achieved this goal.)
>
>TO ENCRYPT:
>
>1.	Generate a random Content Encryption Key of an appropriate 
>key length.  Fix up parity bits and/or any other constraints imposed by 
>the CEK algorithm.  
>
>2.	Wrap the key plus any other required parameters in a descriptive 
>ASN.1 structure which includes the CEK algorithm ID, with the resulting 
>string called CEKWRAP.  The ASN.1 structure and the various algorithm 
>IDs are TBD.
>
>3.	Add encryption padding bits (zeroes), if and as required by the 
>algorithm by computing  CEKPAD = CEKWRAP || paddingBits
>
>4.	Let LCEK = the length of CEKWRAP in bytes, a 16 bit unsigned integer
>
>5.	Compute the maximum length of CEKWRAP plus padding:
>                    LCEKPAD = LCEK + maximumAlgorithmPadding
>
>6.	Compute the length of CEKPAD in SHA-1 blocks: 
>                    LCEKSHA= floor(LCEKPAD/20) + 1
>
>7.	Generate a 160-bit random nonce, RAND 
>
>8.	Generate a sequence of LCEKSHA SHA-1 blocks: 
>                    R(0) = RAND, 
>                    R(1)=SHA-1(R(0)), ..., R(LCEKSHA)=SHA-1(R(LCEKSHA-1))
>
>9.	Generate MASK1 = R(1) || R(2) ||...||R(LCEKSHA)
>
>10.	Generate the whitened CEK plus padding by computing 
>                    CEKWH = MASK1 XOR (CEKPAD)
>
>11.	Whiten the RAND:     MRAND = SHA-1(CEKWH) XOR RAND 
>
>12.	Whiten the length:      MLCEK = LCEK XOR MRAND, using the most 
>significant 16 bits of MRAND            
>
>13.	Generate the string to be encrypted, including the length of the 
>whitened key:    MDATA = MRAND || MLCEK || CEKPAD
>
>14.	Encrypt MDATA using the chosen Key Encryption Key KEK 
>and the key encryption algorithm. If the algorithm requires an IV, use the 
>first n bits (as specified by the algorithm) of SHA-1 of the UTF-8 encoding 
>of  
>"Generalized Key Wrapping Algorithm, version 1", repeated as necessary 
>if n>160 bits (as it might be for AES).
>
>
>TO DECRYPT:
>
>1.	Decrypt MDATA using the KEK and appropriate algorithm
>
>2.	Extract MRAND (20 bytes)
>
>3.	Extract MLCEK (2 bytes)
>
>4.	Compute LCEK = MRAND XOR MLCEK (most significant 16 bits)
>
>5.	Extract CEKPAD
>
>6.	Extract CEKWH from CEKPAD by taking the first LCEK bytes
>
>7.	Compute  RAND = MRAND XOR SHA-1(CEKWH)
>
>8.	Regenerate MASK1 as before, based on the extracted RAND.
>
>9.	Extract CEKWRAP by taking the first LCEK from CEKWH XOR MASK1
>
>10.	Unwrap the CEKWRAP ASN.1 structure if and as required, 
>extracting the CEK and algorithm type, plus any other required parameters.
>
>Regards,
>
>Bob
>
>
>
>Robert R. Jueneman
>Security Architect
>Network Security Development
>Novell, Inc.
>122 East 1700 South
>Provo, UT 84606
>bjueneman@novell.com
>1-801-861-7387



From owner-ietf-smime@imc.org  Tue Feb  9 14:13:42 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id OAA26955
	for <smime-archive@odin.ietf.org>; Tue, 9 Feb 1999 14:13:41 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA09275
	for ietf-smime-bks; Tue, 9 Feb 1999 10:07:22 -0800 (PST)
Received: from puma.baltimore.ie (root@pc215-8.indigo.ie [194.125.215.8])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA09270;
	Tue, 9 Feb 1999 10:07:19 -0800 (PST)
Received: from knuckle (knuckle.baltimore.ie [194.125.215.103])
	by puma.baltimore.ie (8.8.5/8.8.5) with SMTP id SAA20548;
	Tue, 9 Feb 1999 18:10:33 GMT
Received: by localhost with Microsoft MAPI; Tue, 9 Feb 1999 18:10:20 -0000
Message-ID: <01BE5457.745D6BC0.wwhyte@baltimore.ie>
From: William Whyte <wwhyte@baltimore.ie>
To: "'Russ Housley'" <housley@spyrus.com>, EKR <ekr@rtfm.com>
Cc: Paul Hoffman / IMC <phoffman@imc.org>,
        "Linn, John"
	 <jlinn@securitydynamics.com>,
        "'IETF SMIME list'"
	 <ietf-smime@imc.org>
Subject: RE: Crypto-oriented comments on x942-04
Date: Tue, 9 Feb 1999 18:10:19 -0000
Organization: Baltimore Technologies
X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ, Eric,

[snip...]
> >This is incorrect. By fiat, when used for key encryption, RC2 ALWAYS
> >uses a 128 bit key. The 40 bits refers only to the effective key length.
> >It may be possible to go from the 40 bit key to having some information
> >about the 128 bit key, but it's certainly not as simple as simply
> >knowing the first 40 bits.
> 
> You are correct. We did deal with this case.  However, I think is is a good
> idea to use the algorithm in such a way that future users of CMS cannot
> make a simple mistake and be susceptable to the partion attack.
> 
> >>And, the fix is
> >> very simple.  We need to simply include the key length in the hash input. 
> >I'm prepared to do it, but I'm not sure that just shoving it in the 
> >pubInfo is the right choice. I'll think about this and try to write 
> >up a proposal by monday.
> 
> If you are going to the RSA Confernce, I will gladly have a hallway chat
> regarding the best way forward.

How did the chat end up? I notice that x942-05 ended up "shoving it in 
the pubInfo"; but I also notice that it still specifies that the keylength
is 128 bits for RC2, regardless of what the effective keylength is chosen
to be. This means that regardless of the effective keylength, we produce
the same material for input to the RC2 key expansion function. Have we 
decided that this isn't a weakness? Or should we be using different 
material to produce keys with different effective lengths?

Cheers,

William



From owner-ietf-smime@imc.org  Tue Feb  9 20:13:29 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id UAA02301
	for <smime-archive@odin.ietf.org>; Tue, 9 Feb 1999 20:13:28 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA14052
	for ietf-smime-bks; Tue, 9 Feb 1999 16:03:03 -0800 (PST)
Received: from mat012103.student.utwente.nl (mat012103.student.utwente.nl [130.89.223.63])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA14048
	for <ietf-smime@imc.org>; Tue, 9 Feb 1999 16:03:01 -0800 (PST)
Received: from student.utwente.nl (localhost [127.0.0.1])
	by mat012103.student.utwente.nl (8.8.7/8.8.7) with ESMTP id BAA00826
	for <ietf-smime@imc.org>; Wed, 10 Feb 1999 01:06:29 +0100
Message-ID: <36C0CD82.B55F63E5@student.utwente.nl>
Date: Wed, 10 Feb 1999 01:06:26 +0100
From: Rogier van Wanroij <R.H.vanWanroij@student.utwente.nl>
X-Mailer: Mozilla 4.5 [en] (X11; U; Linux 2.0.36 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: ietf-smime@imc.org
Subject: Implementing S/MIME v3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Hello,

Is there a S/MIME v3 (source-code) implementation available outside the US?
And if not would it be (very?) difficult to create a (partly) implementation
of S/MIME v3 from scratch, or by transforming a S/MIME v2 implementation (if
available) to S/MIME v3?
	What tools/libraries are available or would you recommend to use if I wanted
to create a (partly) S/MIME v3 implementation (except for the SNACC ASN.1 +
DER Compiler). Or maybe (hopefully) some parts are all ready written and
available? I very much would appreciate any pointers you might have.

BTW, I am located outside the US (the Netherlands).

Greetings and thank you,

Rogier van Wanroij
(R.H.vanWanroij@student.utwente.nl)

PS.

Excuse me for my bad(?) english, it is not my native tongue


From owner-ietf-smime@imc.org  Wed Feb 10 03:20:17 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id DAA13573
	for <smime-archive@odin.ietf.org>; Wed, 10 Feb 1999 03:20:14 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id XAA04517
	for ietf-smime-bks; Tue, 9 Feb 1999 23:25:08 -0800 (PST)
Received: from ridge.spiritone.com (ridge.spiritone.com [205.139.108.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id XAA04513
	for <ietf-smime@imc.org>; Tue, 9 Feb 1999 23:25:05 -0800 (PST)
Received: from cme (m6-199.spiritone.com [208.130.240.199])
	by ridge.spiritone.com (8.8.8/8.8.8) with SMTP id XAA16220;
	Tue, 9 Feb 1999 23:28:06 -0800 (PST)
Message-Id: <3.0.3.32.19990209232652.03973eb8@spiritone.com>
X-Sender: cellison@spiritone.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32)
Date: Tue, 09 Feb 1999 23:26:52 -0800
To: Russ Housley <housley@spyrus.com>
From: Carl Ellison <cme@ACM.ORG>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: "Bob Jueneman" <BJUENEMAN@novell.com>, <ietf-smime@imc.org>, <cme@ACM.ORG>,
        <berson@anagram.com>, <bschanni@BayNetworks.com>, <kent@bbn.com>,
        <pcain@bbn.com>, <mhetzel@bell-labs.com>, <brickell@certco.com>,
        <djohnson@certicom.ca>, <schneier@counterpane.com>,
        <daw@cs.berkeley.edu>, <denning@cs.cosc.georgetown.edu>,
        <smid@csmes.ncsl.nist.gov>, <omura@cylink.com>,
        <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <benaloh@microsoft.com>,
        <bfox@microsoft.com>, <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>,
        <dickie@EMPIRE.eclipse.ncsc.mil>, <smatyas@us.ibm.com>,
        <desmedt@uwm.edu>
In-Reply-To: <4.1.19990209100333.00985d80@mail.spyrus.com>
References: <s6bf04e1.099@prv-mail25.provo.novell.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

-----BEGIN PGP SIGNED MESSAGE-----

At 11:31 AM 2/9/99 -0500, Russ Housley wrote:
>[RH] Two different IVs is easy.  The zero IVs were suggested by Carl Ellison. 

That's because one constant IV is as good as another, IMHO, and zero is a 
lot easier to get right in a standard.


-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.5.3

iQCVAwUBNsE0uxN3Wx8QwqUtAQG+oQP8D8foR8OQ/R7/ryV1rXfsKindHItavGlN
p18kDFpgsrS2yl9HrGdGSwf+t3vEvfLVNGGHEYg96F6QgsBSoo83ZgEDm5na25hk
fJfp8xipoApdPTKw8czwigoOAcujhx73T34JzgRIllWeLbH1mK77HgAiFH6oy4K0
Cn1u9Yc7Tmc=
=7Mu2
-----END PGP SIGNATURE-----


+------------------------------------------------------------------+
|Carl M. Ellison         cme@acm.org     http://www.pobox.com/~cme |
|    PGP: 08FF BA05 599B 49D2  23C6 6FFD 36BA D342                 |
+--Officer, officer, arrest that man. He's whistling a dirty song.-+


From owner-ietf-smime@imc.org  Wed Feb 10 12:37:48 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id MAA19030
	for <smime-archive@odin.ietf.org>; Wed, 10 Feb 1999 12:37:47 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA20578
	for ietf-smime-bks; Wed, 10 Feb 1999 08:18:07 -0800 (PST)
Received: from joshua.radium.ncsc.mil (joshua.radium.ncsc.mil [144.51.111.1])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA20571
	for <ietf-smime@imc.org>; Wed, 10 Feb 1999 08:18:01 -0800 (PST)
Received: from mfil.terminal (mfil@localhost)
	by joshua.radium.ncsc.mil with SMTP id KAA18308
	for <ietf-smime@imc.org>; Wed, 10 Feb 1999 10:57:27 -0500 (EST)
Received: from eden.radium.ncsc.mil (eden.radium.ncsc.mil [144.51.81.2])
	by joshua.radium.ncsc.mil with ESMTP id KAA18138
	for <ietf-smime@imc.org>; Wed, 10 Feb 1999 10:56:34 -0500 (EST)
Received: from mailman.radium.ncsc.mil (mailman.radium.ncsc.mil [144.51.82.2]) by radium.ncsc.mil (8.7.5/8.7.2) with SMTP id KAA14970; Wed, 10 Feb 1999 10:56:45 -0500 (EST)
Received: by mailman.radium.ncsc.mil with Microsoft Mail
	id <36C1D625@mailman.radium.ncsc.mil>; Wed, 10 Feb 99 10:55:33 PST
From: "Snow, Brian D." <bsnow@radium.ncsc.mil>
To: Carl Ellison <cme@ACM.ORG>, Russ Housley <housley@spyrus.com>
Cc: acc <acc@tycho.ncsc.mil>, ams <ams@terisa.com>,
        balenson <balenson@tis.com>, benaloh <benaloh@microsoft.com>,
        berson <berson@anagram.com>, bfox <bfox@microsoft.com>,
        Bob Jueneman <BJUENEMAN@novell.com>,
        "Blake.greenlee" <Blake.greenlee@greenlee.com>,
        brickell <brickell@certco.com>, bschanni <bschanni@BayNetworks.com>,
        burt <burt@RSA.COM>
Cc: "carlisle.adams" <carlisle.adams@entrust.com>,
        cjwagne <cjwagne@missi.ncsc.mil>, daw <daw@cs.berkeley.edu>,
        denning <denning@cs.cosc.georgetown.edu>, denny <denny@tis.com>,
        desmedt <desmedt@uwm.edu>, dickie <dickie@EMPIRE.eclipse.ncsc.mil>,
        djohnson <djohnson@certicom.ca>, ekr <ekr@rtfm.com>,
        ietf-smime <ietf-smime@imc.org>, jhs <jhs@tycho.ncsc.mil>
Cc: jis <jis@mit.edu>, jlinn <jlinn@securitydynamics.com>, kent <kent@bbn.com>,
        merkle <merkle@parc.xerox.com>, mhetzel <mhetzel@bell-labs.com>,
        omura <omura@cylink.com>, paulv <paulv@entrust.com>,
        pcain <pcain@bbn.com>, rivest <rivest@theory.lcs.mit.edu>,
        schneier <schneier@counterpane.com>, smatyas <smatyas@us.ibm.com>,
        smid <smid@csmes.ncsl.nist.gov>
Cc: "TACAR.PRV-7.PROVO" <TACAR.PRV-7.PROVO@novell.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Date: Wed, 10 Feb 99 10:54:00 PST
Message-ID: <36C1D625@mailman.radium.ncsc.mil>
X-Mailer: Microsoft Mail V3.0
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>


Gents,

     Just a minor side observation;
     
     Yes, zero is easy to get right in a standard; but not as easy
 to TEST if an implementation is correct during debug stage...
a fixed non-symmetric pattern detects early-on big-endian vrs little-endian
problems and other such problems encountered by developers.
However, other tests nail that down as well, so no big deal.

This is not a request for a change, just a side-observation.

Brian Snow

 ----------
From: Carl Ellison
To: Russ Housley
Cc: Bob Jueneman; ietf-smime; cme; berson; bschanni; kent; pcain; mhetzel; 
brickell; djohnson; schneier; daw; denning; smid; omura; carlisle.adams; 
paulv; Blake.greenlee; benaloh; bfox; cjwagne; jis; TACAR.PRV-7.PROVO; 
merkle; BSnow; burt; ekr; jlinn; ams; rivest; balenson; denny; acc; jhs; 
dickie; smatyas; desmedt
Subject: Re: A New Triple-DES Key Wrap Algorithm
Date: Tuesday, February 09, 1999 11:26PM

 -----BEGIN PGP SIGNED MESSAGE-----

At 11:31 AM 2/9/99 -0500, Russ Housley wrote:
>[RH] Two different IVs is easy.  The zero IVs were suggested by Carl
Ellison.

That's because one constant IV is as good as another, IMHO, and zero is a
lot easier to get right in a standard.


 -----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.5.3

iQCVAwUBNsE0uxN3Wx8QwqUtAQG+oQP8D8foR8OQ/R7/ryV1rXfsKindHItavGlN
p18kDFpgsrS2yl9HrGdGSwf+t3vEvfLVNGGHEYg96F6QgsBSoo83ZgEDm5na25hk
fJfp8xipoApdPTKw8czwigoOAcujhx73T34JzgRIllWeLbH1mK77HgAiFH6oy4K0
Cn1u9Yc7Tmc=
=7Mu2
 -----END PGP SIGNATURE-----


+------------------------------------------------------------------+
|Carl M. Ellison         cme@acm.org     http://www.pobox.com/~cme |
|    PGP: 08FF BA05 599B 49D2  23C6 6FFD 36BA D342                 |
+--Officer, officer, arrest that man. He's whistling a dirty song.-+


From owner-ietf-smime@imc.org  Fri Feb 12 12:49:43 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id MAA12630
	for <smime-archive@odin.ietf.org>; Fri, 12 Feb 1999 12:49:42 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA12817
	for ietf-smime-bks; Fri, 12 Feb 1999 08:20:16 -0800 (PST)
Received: from www2.jcp.co.uk ([194.201.70.194])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id IAA12811
	for <ietf-smime@imc.org>; Fri, 12 Feb 1999 08:20:14 -0800 (PST)
Received: from jcp.co.uk (unverified [194.201.70.226]) by www2.jcp.co.uk
 (EMWAC SMTPRS 0.83) with SMTP id <B0000450864@www2.jcp.co.uk>;
 Fri, 12 Feb 1999 16:19:02 +0000
Message-ID: <36C45454.B652EF5D@jcp.co.uk>
Date: Fri, 12 Feb 1999 16:18:28 +0000
From: Hilton Day <hilton@jcp.co.uk>
Organization: JCP Computer Services
X-Mailer: Mozilla 4.5 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: ietf-smime@imc.org
Subject: [Q] Key-Agreement?
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms63E3498BA058893F8D97457C"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a cryptographically signed message in MIME format.

--------------ms63E3498BA058893F8D97457C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi all,

I've been following the S/MIME 3 spec. since late in CMS-09, and am curious
about the Key Agreement Key Management Algorithm, and it's purpose within the
specification...

What purpose does using Key Agreement serve, rather than just using basic the
Key Transport mechanism?

I've had a look through the CMS (10), and it isn't clear what are the merit's
(or not) of using KA vs. KT.

Thanks in advance,

Hilton.

[PS - replies to either me directly, or ietf-smime mailing list (depending on
how useful you think the reply is to others) - I subscribe, so either way I'll
get the response]

--
JCP Computer Services           Tel:    +44 (0) 171 689 6890
16 St Johns Lane,               Fax:    +44 (0) 171 689 0438
London,                         E-Mail: hilton@jcp.co.uk
EC1M 4BS                        WWW:    http://www.jcp.co.uk
United Kingdom


--------------ms63E3498BA058893F8D97457C
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIIIWwYJKoZIhvcNAQcCoIIITDCCCEgCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
BggwggLHMIICMKADAgECAgJL0zANBgkqhkiG9w0BAQQFADCBuTELMAkGA1UEBhMCWkExFTAT
BgNVBAgTDFdlc3Rlcm4gQ2FwZTEUMBIGA1UEBxMLRHVyYmFudmlsbGUxGjAYBgNVBAoTEVRo
YXd0ZSBDb25zdWx0aW5nMSkwJwYDVQQLEyBUaGF3dGUgUEYgUlNBIElLIDE5OTguOS4xNiAx
Nzo1NTE2MDQGA1UEAxMtVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIFJTQSBJc3N1ZXIgMTk5
OC45LjE2MB4XDTk4MTExMDE3NTc0OVoXDTk5MTExMDE3NTc0OVowQjEfMB0GA1UEAxMWVGhh
d3RlIEZyZWVtYWlsIE1lbWJlcjEfMB0GCSqGSIb3DQEJARYQaGlsdG9uQGpjcC5jby51azCB
nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA3sKv15eVfGO3p2pe/cUPTcCeWjDYJuxjAUM6
OrHS0woWw2XkaalXS0FihirMT+iM6ZJHI3ZXAdMbmddXvInCsDZ4h1zPVO76DFnTz8H7v4rM
u7D8niCpsjd+7+eDJjMzFZDBZJE/mddwVL31K0Xq4If4XFwktl46XbKUZFmnvYsCAwEAAaNU
MFIwEQYJYIZIAYb4QgEBBAQDAgWgMA4GA1UdDwEB/wQEAwIFoDAMBgNVHRMBAf8EAjAAMB8G
A1UdIwQYMBaAFP4+YJxrjA+w2DPGysYeWLBxOLXgMA0GCSqGSIb3DQEBBAUAA4GBAKKtrXdg
q+NI6w1tTnwBQf4sMcxaq5UgHlMf3vRCTaPw2hYuexW4hS1y7IU036njfqawd34XcBDw3bEY
Ek6bzmfIGC3nx2WYuoH5t7nhDbzBBOLwmCpHwirxlMt7piZEF/ZyRYUKlm9kSYBAhhXNic8I
YRNmGi9/HtbnfJU9B6DqMIIDOTCCAqKgAwIBAgIBCjANBgkqhkiG9w0BAQQFADCB0TELMAkG
A1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMRow
GAYDVQQKExFUaGF3dGUgQ29uc3VsdGluZzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2
aWNlcyBEaXZpc2lvbjEkMCIGA1UEAxMbVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIENBMSsw
KQYJKoZIhvcNAQkBFhxwZXJzb25hbC1mcmVlbWFpbEB0aGF3dGUuY29tMB4XDTk4MDkxNjE3
NTUzNFoXDTAwMDkxNTE3NTUzNFowgbkxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJu
IENhcGUxFDASBgNVBAcTC0R1cmJhbnZpbGxlMRowGAYDVQQKExFUaGF3dGUgQ29uc3VsdGlu
ZzEpMCcGA1UECxMgVGhhd3RlIFBGIFJTQSBJSyAxOTk4LjkuMTYgMTc6NTUxNjA0BgNVBAMT
LVRoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBSU0EgSXNzdWVyIDE5OTguOS4xNjCBnzANBgkq
hkiG9w0BAQEFAAOBjQAwgYkCgYEAxKXl1NTQXwgC7gchfSS/q2uOHusgBwIVhGuP0JMkHxud
7miyuSxP6ZNnFxAXHqH5Q0EjuTCqdpe78+f9gcC1MYv2plAmVPKVKOsZpB6XHrDiuJvBBJoy
0DwJbE/kNU/wdr8AEwNPRQhg8/y00JABihLJnLp/UuoqkzU2PDzkNS8CAwEAAaM3MDUwEgYD
VR0TAQH/BAgwBgEB/wIBADAfBgNVHSMEGDAWgBRyScJzNMZV9At2coF+d/SH58ayDjANBgkq
hkiG9w0BAQQFAAOBgQAsx4IfAUM+B4/uaVypZIL4wJatkyvLm1DXQJqBwrqmdp08lUDcVcHh
VYJ5qwopptUM4VcoPo/5u9XfDZNYqlsti48z5N1YFTV2chUpvUL0WpILd1+dJ9uaLU4bggaO
0o1Wu5Xe2wxlBd6VngLdUxe+vvxrwxoiehQrYb3Cn156WjGCAhswggIXAgEBMIHAMIG5MQsw
CQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRQwEgYDVQQHEwtEdXJiYW52aWxs
ZTEaMBgGA1UEChMRVGhhd3RlIENvbnN1bHRpbmcxKTAnBgNVBAsTIFRoYXd0ZSBQRiBSU0Eg
SUsgMTk5OC45LjE2IDE3OjU1MTYwNAYDVQQDEy1UaGF3dGUgUGVyc29uYWwgRnJlZW1haWwg
UlNBIElzc3VlciAxOTk4LjkuMTYCAkvTMAkGBSsOAwIaBQCggbEwGAYJKoZIhvcNAQkDMQsG
CSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNOTkwMjEyMTYxODI4WjAjBgkqhkiG9w0BCQQx
FgQUeBW3pZ26Pf4UXaHVs04sPE5cd+EwUgYJKoZIhvcNAQkPMUUwQzAKBggqhkiG9w0DBzAO
BggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgw
DQYJKoZIhvcNAQEBBQAEgYDGaF6LoXfvKRulsLw9CvT/Tk7CKoCAPVt9nvAHlkau7XH66sOW
TqLLkTCU4QCAT7lp6rcm3YtwPDb8w4dRjw1gWktLWu5B1Z/k0Kd0J7gIz7AYnMcwRRbP8DeS
AyrWWoEnk6JF/2CNBqZjD1FRdsLT+A3C5eUMTstn+RWgwmpddg==
--------------ms63E3498BA058893F8D97457C--



From owner-ietf-smime@imc.org  Fri Feb 12 14:12:07 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id OAA13589
	for <smime-archive@odin.ietf.org>; Fri, 12 Feb 1999 14:12:06 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA13822
	for ietf-smime-bks; Fri, 12 Feb 1999 09:56:47 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA13818
	for <ietf-smime@imc.org>; Fri, 12 Feb 1999 09:56:46 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id KAA09249; Fri, 12 Feb 1999 10:00:04 -0800 (PST)
Message-Id: <4.1.19990212125242.009a95d0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Fri, 12 Feb 1999 13:00:10 -0500
To: Hilton Day <hilton@jcp.co.uk>
From: Russ Housley <housley@spyrus.com>
Subject: Re: [Q] Key-Agreement?
Cc: ietf-smime@imc.org
In-Reply-To: <36C45454.B652EF5D@jcp.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Hilton:

RSA is a key transport algorithm, and Diffie-Hellman is a key agreement
algorithm.

With RSA, the originator needs the recipient's public key (from the
recipient's certificate).  The CEK is encrypted in the recipient's public
key.  The recipient does not a certificate or public key from the
originator to decrypt the CEK -- the originator only needs his own private key.

With Diffie-Hellman.the originator uses the recipient's public key and his
own private key to create a KEK.  The CEK is then encrypted in the KEK.
For the recipient to form the same KEK, the originator's public key and the
recipient's private key are used.  So, the CMS RecipientInfo structure
permits the originator to send the one-time public key in the message.

I hope this is the level of information you were seeking.

Russ


At 04:18 PM 2/12/99 +0000, Hilton Day wrote:
>Hi all,
>
>I've been following the S/MIME 3 spec. since late in CMS-09, and am curious
>about the Key Agreement Key Management Algorithm, and it's purpose within the
>specification...
>
>What purpose does using Key Agreement serve, rather than just using basic the
>Key Transport mechanism?
>
>I've had a look through the CMS (10), and it isn't clear what are the merit's
>(or not) of using KA vs. KT.
>
>Thanks in advance,
>
>Hilton.
>
>[PS - replies to either me directly, or ietf-smime mailing list (depending on
>how useful you think the reply is to others) - I subscribe, so either way I'll
>get the response]
>
>--
>JCP Computer Services           Tel:    +44 (0) 171 689 6890
>16 St Johns Lane,               Fax:    +44 (0) 171 689 0438
>London,                         E-Mail: hilton@jcp.co.uk
>EC1M 4BS                        WWW:    http://www.jcp.co.uk
>United Kingdom
>
>



From owner-ietf-smime@imc.org  Sun Feb 14 11:16:31 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA02558
	for <smime-archive@odin.ietf.org>; Sun, 14 Feb 1999 11:16:27 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA23391
	for ietf-smime-bks; Sun, 14 Feb 1999 07:11:17 -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 HAA23387
	for <ietf-smime@imc.org>; Sun, 14 Feb 1999 07:11:14 -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 EAA23913 for <ietf-smime@imc.org>; Mon, 15 Feb 1999 04:14:01 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <91900524124564>; Mon, 15 Feb 1999 04:14:01 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: A New Triple-DES Key Wrap Algorithm
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Mon, 15 Feb 1999 04:14:01 (NZDT)
Message-ID: <91900524124564@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ Housley <housley@spyrus.com> writes:
 
>5.  Reverse the order of the four ciphertext blocks.
 
Wouldn't it be better to reverse the bytes rather than the blocks?  This makes 
the result independant of the block size of the algorithm (so it'll work with 
CFB mode as well), and it's rather easier to code than shuffling chunks of 
memory around.
 
Peter.



From owner-ietf-smime@imc.org  Mon Feb 15 10:20:26 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id KAA19102
	for <smime-archive@odin.ietf.org>; Mon, 15 Feb 1999 10:20:26 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA15221
	for ietf-smime-bks; Mon, 15 Feb 1999 06:03:35 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA15217
	for <ietf-smime@imc.org>; Mon, 15 Feb 1999 06:03:32 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id GAA05306; Mon, 15 Feb 1999 06:02:22 -0800 (PST)
Message-Id: <4.1.19990214204613.0098d710@mail.spyrus.com>
Message-Id: <4.1.19990214204613.0098d710@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 15 Feb 1999 09:03:17 -0500
To: Burt Kaliski <burt@RSA.COM>
From: Russ Housley <housley@spyrus.com>
Subject: RE: A New Triple-DES Key Wrap Algorithm
Cc: BJUENEMAN@novell.com, cme@ACM.ORG, berson@anagram.com,
        bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
        mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
        schneier@counterpane.com, denning@cs.cosc.georgetown.edu,
        smid@csmes.ncsl.nist.gov, omura@cylink.com, carlisle.adams@entrust.com,
        paulv@entrust.com, Blake.Greenlee@greenlee.com, ietf-smime@imc.org,
        cjwagne@missi.ncsc.mil, jis@mit.edu, BJueneman@novell.com,
        merkle@parc.xerox.com, BSnow@radium.ncsc.mil, ekr@rtfm.com,
        jlinn@securitydynamics.com, ams@terisa.com, rivest@theory.lcs.mit.edu,
        balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
        jhs@tycho.ncsc.mil, dickie@EMPIRE.eclipse.ncsc.mil, desmedt@uwm.edu,
        smatyas@us.ibm.com, daw@cs.berkeley.edu
In-Reply-To: <7DE9F929113DD11181C900805F85C1AA6FDD96@geoduck.rsa.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Burt:

Thanks for the pointer.  I found the article very interesting.  I did not
try to comprehend the proofs, but I found the AONT discussion very useful.

Has the double-encryption approach that we are considering been analyzed as
an AONT?  If so, how does it stack up when compared to OAEP?

Russ


At 10:52 AM 2/12/99 -0800, Burt Kaliski wrote:
>FYI, Victor Boyko has just posted his research results showing how OAEP
>enhances the security of symmetric encryption. See
>http://theory.lcs.mit.edu/~boyko/aont-oaep.html.
>
>-- Burt



From owner-ietf-smime@imc.org  Mon Feb 15 11:05:30 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA20873
	for <smime-archive@odin.ietf.org>; Mon, 15 Feb 1999 11:05:29 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA15694
	for ietf-smime-bks; Mon, 15 Feb 1999 06:54:00 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA15690
	for <ietf-smime@imc.org>; Mon, 15 Feb 1999 06:53:59 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id GAA05866; Mon, 15 Feb 1999 06:57:27 -0800 (PST)
Message-Id: <4.1.19990215095623.0099eda0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 15 Feb 1999 09:57:32 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: ietf-smime@imc.org
In-Reply-To: <91900524124564@cs26.cs.auckland.ac.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Swapping the bytes and swapping the blocks would have the same impact as
far as I can tell.  Swapping bytes is probably easier to code, so I accpt
this improvement.

Russ

/15/99 +0000, Peter Gutmann wrote:
>Russ Housley <housley@spyrus.com> writes:
> 
>>5.  Reverse the order of the four ciphertext blocks.
> 
>Wouldn't it be better to reverse the bytes rather than the blocks?  This
makes 
>the result independant of the block size of the algorithm (so it'll work with 
>CFB mode as well), and it's rather easier to code than shuffling chunks of 
>memory around.
> 
>Peter.
>



From owner-ietf-smime@imc.org  Mon Feb 15 18:48:32 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id SAA11716
	for <smime-archive@odin.ietf.org>; Mon, 15 Feb 1999 18:48:31 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA20411
	for ietf-smime-bks; Mon, 15 Feb 1999 14:45:45 -0800 (PST)
Received: from abraham.cs.berkeley.edu (abraham.CS.Berkeley.EDU [128.32.37.121])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA20407
	for <ietf-smime@imc.org>; Mon, 15 Feb 1999 14:45:44 -0800 (PST)
Received: from joseph.cs.berkeley.edu (joseph.CS.Berkeley.EDU [128.32.37.122])
	by abraham.cs.berkeley.edu (8.8.6/8.8.6) with ESMTP id OAA31449;
	Mon, 15 Feb 1999 14:44:04 -0800
Received: (from daw@localhost) by joseph.cs.berkeley.edu (8.8.5/local) id OAA03421; Mon, 15 Feb 1999 14:42:08 -0800
From: David Wagner <daw@cs.berkeley.edu>
Message-Id: <199902152242.OAA03421@joseph.cs.berkeley.edu>
Subject: Re: A New Triple-DES Key Wrap Algorithm
To: housley@spyrus.com
Date: Mon, 15 Feb 1999 14:42:01 -0800 (PST)
Cc: burt@RSA.COM, BJUENEMAN@novell.com, cme@ACM.ORG, berson@anagram.com,
        bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
        mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
        schneier@counterpane.com, denning@cs.cosc.georgetown.edu,
        smid@csmes.ncsl.nist.gov, omura@cylink.com, carlisle.adams@entrust.com,
        paulv@entrust.com, Blake.Greenlee@greenlee.com, ietf-smime@imc.org,
        cjwagne@missi.ncsc.mil, jis@mit.edu, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, ekr@rtfm.com, jlinn@securitydynamics.com,
        ams@terisa.com, rivest@theory.lcs.mit.edu, balenson@tis.com,
        denny@tis.com, acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
        dickie@EMPIRE.eclipse.ncsc.mil, desmedt@uwm.edu, smatyas@us.ibm.com,
        daw@cs.berkeley.edu
In-Reply-To: <4.1.19990214204613.0098d710@mail.spyrus.com> from "Russ Housley" at Feb 15, 99 09:03:17 am
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

> David:
> 
> I had the same reaction to the 4 billion wrapped keys; however, there are
> two reasons why we should address this issue.  First, when mail list keys
> are used, the same KEK is used to encrypt CEKs for every message sent to
> the mail list.  Depending on the activity on the mail list ad the
> cryptoperiod of the KEK, the 4 billion wrapped keys might actually happen,
> especially if severs ever communicated with each other using this facility.

Ok.  I certainly support a conservative approach!

But I must say, my feeling is that if you ever encrypt 2^32 session keys
under the same KEK, "birthday"-style weaknesses will be in the noise:
you'll be in far-deeper trouble, because that KEK will start to look like
an awfully fat target.
In this scenario, I don't think the adversary is going to bother attacking
the crypto (especially when this only divulges partial information about
two session keys).
Instead, he'll go after your KEK by other means (bribe your cleaning service
to Trojan your computer, suck signal off the power lines, send a TEMPEST
van in your direction, break in to your computer, social engineer his way
into your secure facility, take a job at your company as a janitor, etc.)

The right defense is to refresh your KEK's more frequently.  (For instance,
IPSEC expires keys based not just on time but also on # of blocks encrypted.)
I'd argue that this is just prudent cryptographic hygiene.  And once you do
this, the cryptanalytic attacks go away.


Taking this up a level, my initial reaction is that ietf-smime is optimizing
for the wrong quantity.

Maximizing the number of session keys you can encrypt under the same KEK
is a second-order concern.  It seems much more important to try really hard
to reduce the risk that someone finds a subtle bug in your protocol.

(And, if what I've heard is correct, subtle protocol properties are exactly
the reason ietf-smime is devoting so much effort to key wrapping techniques.)

If you accept this, then the complicated constructions proposed earlier
may be exactly the wrong way to go; simplicity is arguably the most crucial
quantity to optimize for.
(And some provable security results can't hurt, either.)


(Of course, simplicity is only a heuristic.  For instance, Boyko's recent
results on all-or-nothing transforms look very promising, and deserve more
investigation.  Even though the construction is not quite as simple as e.g.
encrypt-and-MAC, provable security results are a great way to reduce the
risk of subtle protocol failures.
[One warning is that the proofs depend on the "random oracle" model and
thus do not necessarily transfer to real-world scenarios -- but they are
still very useful as validation that the basic approach is likely to be
sound.])

>  Second, given more time a cryptanalyst might find a better attack.  I do
> not like to start a standard's life with known flaws.

Yes.  This is a very good point, and normally this would be a very telling
criticism.  There's a saying: "attacks always get better".

However, I feel that this case is different.  Remember, Kaliski's attack
(did I get the author right?) meets the proven lower bounds on security
very closely.  I would argue that in fact the existence of the attack
should reassure us that the proofs of security were on the right track,
rather than raising concerns that better attacks might be "out there".

> I hope that others on this list will respond to your proposal.

Me too...  As a newbie to ietf-smime, I would definitely welcome feedback
(and/or criticism: even "you have no clue, go away!")...


From owner-ietf-smime@imc.org  Tue Feb 16 06:33:13 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id GAA25134
	for <smime-archive@odin.ietf.org>; Tue, 16 Feb 1999 06:33:12 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id CAA17317
	for ietf-smime-bks; Tue, 16 Feb 1999 02:22:21 -0800 (PST)
Received: from clbull.frcl.bull.fr (clbull.frcl.bull.fr [129.182.1.20])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id CAA17312
	for <ietf-smime@imc.org>; Tue, 16 Feb 1999 02:22:16 -0800 (PST)
Received: from k2.frcl.bull.fr (k2.frcl.bull.fr [129.182.100.2])
	by clbull.frcl.bull.fr (8.9.1a/8.9.1) with ESMTP id LAA43160;
	Tue, 16 Feb 1999 11:21:05 +0100
Received: from bull.net (frcls6118.frcl.bull.fr [129.182.109.213]) by k2.frcl.bull.fr (AIX4.2/UCB 8.7/8.7) with ESMTP id LAA25424; Tue, 16 Feb 1999 11:24:08 +0100 (NFT)
Message-ID: <36C946B3.25166C9B@bull.net>
Date: Tue, 16 Feb 1999 11:21:39 +0100
From: Denis Pinkas <Denis.Pinkas@bull.net>
Organization: Bull
X-Mailer: Mozilla 4.06 [fr] (Win95; I)
MIME-Version: 1.0
To: S-MIME / IETF <ietf-smime@imc.org>
CC: Hans Nilsson <Hans.Nilsson@iD2tech.com>
Subject: Validation of Electronic Signatures
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>


The validation of Electronic Signatures poses several difficult and
interesting problems, in particular when it is necessary to validate
an Electronic signature for example 20 years later, when the signer
key has been compromised and revoked, the CA keys have been
compromised, the crypto algorithm or key length used at the
signature time is no longer secure, and the hash function
used at at the signature time now exhibits message collisions.

The validation problem changes over the different time frames:
- near term, when all involved certificates are still valid and
  generally available,
- long term, when one or more of the involved certificates have expired,
- archival, when the initial cryptography used is no longer secure.

Another interesting point to consider is how it is possible to know and
trust the signing time as indicated by the signer.

A "white paper" dealing with these kinds of situations has been written and
demonstrates the use of time-stamping.

This paper can serve as a tutorial to this difficult subject, but also as
input for the discussion of a common validation model for electronic
signatures. The paper can be found at the following addresses:

http://www.openmaster.com/whitepapers/es_validation.pdf
http://www.id2tech.com/news/pdf/ES_validation.pdf

Denis Pinkas



From owner-ietf-smime@imc.org  Tue Feb 16 17:24:16 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA12815
	for <smime-archive@odin.ietf.org>; Tue, 16 Feb 1999 17:24:15 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA25503
	for ietf-smime-bks; Tue, 16 Feb 1999 13:37:26 -0800 (PST)
Received: from po1.bbn.com (PO1.BBN.COM [192.1.50.38])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA25474
	for <ietf-smime@imc.org>; Tue, 16 Feb 1999 13:36:05 -0800 (PST)
Received: from [128.33.238.107] (TC107.BBN.COM [128.33.238.107])
	by po1.bbn.com (8.8.6/8.8.6) with ESMTP id QAA20396;
	Tue, 16 Feb 1999 16:35:15 -0500 (EST)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: kent@po1.bbn.com (Unverified)
Message-Id: <v04011701b2ef7ba313d9@[128.89.0.111]>
In-Reply-To: <199902152242.OAA03421@joseph.cs.berkeley.edu>
References: <4.1.19990214204613.0098d710@mail.spyrus.com> from "Russ
 Housley" at Feb 15, 99 09:03:17 am
Date: Tue, 16 Feb 1999 14:49:34 -0500
To: David Wagner <daw@cs.berkeley.edu>
From: Stephen Kent <kent@bbn.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: housley@spyrus.com, burt@RSA.COM, BJUENEMAN@novell.com, cme@ACM.ORG,
        berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com,
        pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com,
        djohnson@certicom.ca, schneier@counterpane.com,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, carlisle.adams@entrust.com, paulv@entrust.com,
        Blake.Greenlee@greenlee.com, ietf-smime@imc.org,
        cjwagne@missi.ncsc.mil, jis@mit.edu, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, ekr@rtfm.com, jlinn@securitydynamics.com,
        ams@terisa.com, rivest@theory.lcs.mit.edu, balenson@tis.com,
        denny@tis.com, acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
        dickie@EMPIRE.eclipse.ncsc.mil, desmedt@uwm.edu, smatyas@us.ibm.com,
        daw@cs.berkeley.edu
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

David,

The particular heavy use of the KEK that Russ cited is a side effect of the
mailing list key management approach adopted by MSP, and later by S/MIME.
It is driven by a strong desire to NOT distribute KEKs more frequently, or
on a piecemeal basis, because of the costs of doing so.  So, in this case,
I think we just have to live with this as a problem constraint for the
S/MIME environment.  However, I agree that there may be lots of better ways
to go after the KEK in these instances, givens its widespread distribution.

steve


From owner-ietf-smime@imc.org  Tue Feb 16 20:58:14 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id UAA17608
	for <smime-archive@odin.ietf.org>; Tue, 16 Feb 1999 20:58:14 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA27745
	for ietf-smime-bks; Tue, 16 Feb 1999 17:16:21 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id RAA27741
	for <ietf-smime@imc.org>; Tue, 16 Feb 1999 17:16:20 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Tue, 16 Feb 1999 18:20:03 -0700
Message-Id: <s6c9b6d3.072@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Tue, 16 Feb 1999 18:19:54 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <pgut001@cs.aucKland.ac.nz>, <housley@spyrus.com>
Cc: <ietf-smime@imc.org>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id RAA27742
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Good enough, although I think there are potential cryptographic 
advantages to reversing the byte order as well.

Bob

>>> Russ Housley <housley@spyrus.com> 02/15/99 07:57AM >>>
Swapping the bytes and swapping the blocks would have the same impact as
far as I can tell.  Swapping bytes is probably easier to code, so I accpt
this improvement.

Russ

/15/99 +0000, Peter Gutmann wrote:
>Russ Housley <housley@spyrus.com> writes:
> 
>>5.  Reverse the order of the four ciphertext blocks.
> 
>Wouldn't it be better to reverse the bytes rather than the blocks?  This
makes 
>the result independant of the block size of the algorithm (so it'll work with 
>CFB mode as well), and it's rather easier to code than shuffling chunks of 
>memory around.
> 
>Peter.
>




From owner-ietf-smime@imc.org  Tue Feb 16 22:07:53 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id WAA18120
	for <smime-archive@odin.ietf.org>; Tue, 16 Feb 1999 22:07:53 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA27949
	for ietf-smime-bks; Tue, 16 Feb 1999 17:54:17 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id RAA27930
	for <ietf-smime@imc.org>; Tue, 16 Feb 1999 17:50:15 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Tue, 16 Feb 1999 18:53:58 -0700
Message-Id: <s6c9bec6.065@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Tue, 16 Feb 1999 18:53:37 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <daw@cs.berkeley.edu>, <housley@spyrus.com>
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <bschanni@BayNetworks.com>,
        <kent@bbn.com>, <pcain@bbn.com>, <mhetzel@bell-labs.com>,
        <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <denning@cs.cosc.georgetown.edu>,
        <smid@csmes.ncsl.nist.gov>, <omura@cylink.com>,
        <dickie@EMPIRE.eclipse.ncsc.mil>, <carlisle.adams@entrust.com>,
        <paulv@entrust.com>, <Blake.Greenlee@greenlee.com>,
        <ietf-smime@imc.org>, <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        <merkle@parc.xerox.com>, <BSnow@radium.ncsc.mil>, <burt@RSA.COM>,
        <ekr@rtfm.com>, <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>,
        <desmedt@uwm.edu>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id RAA27931
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

David,

The reason why I got interested in this subject at all was that I realized that within
Novell's cryptographic architecture we wrap all sorts of keys, and when a possible 
attack was pointed out I became concerned.

I understand Russ Housley's point about wanting to solve this problem for S/MIME --
that is his charter, and he wants to deliver a product.  Admirable dedication.  And I 
certainly agree with you that there are other, probably more effective ways to 
compromise S/MIME. than by mailing a billion keys around!

But as a vendor, I don't want to have to solve the key wrapping problem one way 
for S/MIME, plus N other ways for the next N protocols to come along.

Believe me, it is very tough to get the attention of the real experts in this area,
and so once the problem was raised, I think we should solve it as best we can, 
once and for all. The S/MIME spec will then make a convenient point of reference
for something that was done right.

For that reason, then, I would tend to dismiss any and all arguments about whether
some particular attack might or might not be feasible in an S/MIME context -- that type of
subtlety is exceedingly hard to get right, and besides I want a more general purpose 
solution.

Although Steve Kent's argument about the cost of changing keys often is quite valid,
your argument about wanting to refresh your KEKs more often is NOT necessarily 
the way to improve security. It depends upon the threat.

Most approaches to brute force attacks try to speed up the number of key search 
operations that can be done simultaneously or in parallel, e.g., the recent success 
at the RSA conference of the EFF's Deep Crack engine in combination with lots of 
distributed computers, all working on the same challenge cipher.

But there is another approach, which I call the vacuum cleaner technique, where you 
don't target any specific key, but rather you suck up million or billions of keys and 
process all of them simultaneously. With this approach, for every new key that is 
tried, either singly or in parallel, the attacker looks at billions of ciphertexts to see 
if the result of encrypting a chosen plaintext with a given key matches any one of the 
ciphertexts that have been collected. (This assumes a chosen plaintext attack is 
feasible, which is the usual conservative assumption.)  In other words, don't look for 
a needle in a haystack -- take the entire haystack.

After all, if I am trying to steal credit card numbers, I don't care much whose credit card it is --
I'm not trying to target Bill Gates or Donald Trump specifically -- I'll settle for yours or 
almost anybody else's.

In this scenario, increasing the number of KEKs that are used actually _increases_ 
my chances of success, for it gives me that many more ciphertext examples to look at,
assuming that success is measured in terms of how many keys are cracked in a
given amount of time, rather than how long it takes to crack a specific key.

Bob



>>> David Wagner <daw@cs.berkeley.edu> 02/15/99 03:42PM >>>
> David:
> 
> I had the same reaction to the 4 billion wrapped keys; however, there are
> two reasons why we should address this issue.  First, when mail list keys
> are used, the same KEK is used to encrypt CEKs for every message sent to
> the mail list.  Depending on the activity on the mail list ad the
> cryptoperiod of the KEK, the 4 billion wrapped keys might actually happen,
> especially if severs ever communicated with each other using this facility.

Ok.  I certainly support a conservative approach!

But I must say, my feeling is that if you ever encrypt 2^32 session keys
under the same KEK, "birthday"-style weaknesses will be in the noise:
you'll be in far-deeper trouble, because that KEK will start to look like
an awfully fat target.
In this scenario, I don't think the adversary is going to bother attacking
the crypto (especially when this only divulges partial information about
two session keys).
Instead, he'll go after your KEK by other means (bribe your cleaning service
to Trojan your computer, suck signal off the power lines, send a TEMPEST
van in your direction, break in to your computer, social engineer his way
into your secure facility, take a job at your company as a janitor, etc.)

The right defense is to refresh your KEK's more frequently.  (For instance,
IPSEC expires keys based not just on time but also on # of blocks encrypted.)
I'd argue that this is just prudent cryptographic hygiene.  And once you do
this, the cryptanalytic attacks go away.


Taking this up a level, my initial reaction is that ietf-smime is optimizing
for the wrong quantity.

Maximizing the number of session keys you can encrypt under the same KEK
is a second-order concern.  It seems much more important to try really hard
to reduce the risk that someone finds a subtle bug in your protocol.

(And, if what I've heard is correct, subtle protocol properties are exactly
the reason ietf-smime is devoting so much effort to key wrapping techniques.)

If you accept this, then the complicated constructions proposed earlier
may be exactly the wrong way to go; simplicity is arguably the most crucial
quantity to optimize for.
(And some provable security results can't hurt, either.)


(Of course, simplicity is only a heuristic.  For instance, Boyko's recent
results on all-or-nothing transforms look very promising, and deserve more
investigation.  Even though the construction is not quite as simple as e.g.
encrypt-and-MAC, provable security results are a great way to reduce the
risk of subtle protocol failures.
[One warning is that the proofs depend on the "random oracle" model and
thus do not necessarily transfer to real-world scenarios -- but they are
still very useful as validation that the basic approach is likely to be
sound.])

>  Second, given more time a cryptanalyst might find a better attack.  I do
> not like to start a standard's life with known flaws.

Yes.  This is a very good point, and normally this would be a very telling
criticism.  There's a saying: "attacks always get better".

However, I feel that this case is different.  Remember, Kaliski's attack
(did I get the author right?) meets the proven lower bounds on security
very closely.  I would argue that in fact the existence of the attack
should reassure us that the proofs of security were on the right track,
rather than raising concerns that better attacks might be "out there".

> I hope that others on this list will respond to your proposal.

Me too...  As a newbie to ietf-smime, I would definitely welcome feedback
(and/or criticism: even "you have no clue, go away!")...


From owner-ietf-smime@imc.org  Tue Feb 16 23:09:28 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id XAA20567
	for <smime-archive@odin.ietf.org>; Tue, 16 Feb 1999 23:09:27 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id SAA28288
	for ietf-smime-bks; Tue, 16 Feb 1999 18:50:45 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA28255
	for <ietf-smime@imc.org>; Tue, 16 Feb 1999 18:46:43 -0800 (PST)
Received: from domino2.certicom.com (domino2.certicom.com [10.0.1.25])
	by eng1.certicom.com (8.8.7/8.8.7) with SMTP id VAA17137;
	Tue, 16 Feb 1999 21:47:47 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.1  (569.2 2-6-1998))  id 8525671B.000F367F ; Tue, 16 Feb 1999 21:46:09 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: "Bob Jueneman" <BJUENEMAN@novell.com>
cc: daw@cs.berkeley.edu, housley@spyrus.com, cme@ACM.ORG, berson@anagram.com,
        bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
        mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
        schneier@counterpane.com, denning@cs.cosc.georgetown.edu,
        smid@csmes.ncsl.nist.gov, omura@cylink.com,
        dickie@EMPIRE.eclipse.ncsc.mil, carlisle.adams@entrust.com,
        paulv@entrust.com, Blake.Greenlee@greenlee.com, ietf-smime@imc.org,
        cjwagne@missi.ncsc.mil, jis@mit.edu, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, burt@RSA.COM, ekr@rtfm.com,
        jlinn@securitydynamics.com, ams@terisa.com, rivest@theory.lcs.mit.edu,
        balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
        jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu
Message-ID: <8525671B.000E633E.00@domino2.certicom.com>
Date: Tue, 16 Feb 1999 21:37:09 -0500
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Just for the record, text attacks such as Burt mentioned were discussed by
Coppersmith, Johnson and Matyas in their paper on CBCM mode of Triple DES
as a justification for considering it in ANSI X9.  They might have been
known before that, but the ref in the HAC is to that paper, so I know of no
earlier ref.

Don J.





"Bob Jueneman" <BJUENEMAN@novell.com> on 02/16/99 08:53:37 PM

To:   daw@cs.berkeley.edu, housley@spyrus.com
cc:   cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com,
      kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
      brickell@certco.com, djohnson@certicom.ca, schneier@counterpane.com,
      denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
      omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
      carlisle.adams@entrust.com, paulv@entrust.com,
      Blake.Greenlee@greenlee.com, ietf-smime@imc.org,
      cjwagne@missi.ncsc.mil, jis@mit.edu, merkle@parc.xerox.com,
      BSnow@radium.ncsc.mil, burt@rsa.com, ekr@rtfm.com,
      jlinn@securitydynamics.com, ams@terisa.com,
      rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com,
      acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com,
      desmedt@uwm.edu (bcc: Don Johnson/Certicom)
Subject:  Re: A New Triple-DES Key Wrap Algorithm




David,

The reason why I got interested in this subject at all was that I realized
that within
Novell's cryptographic architecture we wrap all sorts of keys, and when a
possible
attack was pointed out I became concerned.

I understand Russ Housley's point about wanting to solve this problem for
S/MIME --
that is his charter, and he wants to deliver a product.  Admirable
dedication.  And I
certainly agree with you that there are other, probably more effective ways
to
compromise S/MIME. than by mailing a billion keys around!

But as a vendor, I don't want to have to solve the key wrapping problem one
way
for S/MIME, plus N other ways for the next N protocols to come along.

Believe me, it is very tough to get the attention of the real experts in
this area,
and so once the problem was raised, I think we should solve it as best we
can,
once and for all. The S/MIME spec will then make a convenient point of
reference
for something that was done right.

For that reason, then, I would tend to dismiss any and all arguments about
whether
some particular attack might or might not be feasible in an S/MIME context
-- that type of
subtlety is exceedingly hard to get right, and besides I want a more
general purpose
solution.

Although Steve Kent's argument about the cost of changing keys often is
quite valid,
your argument about wanting to refresh your KEKs more often is NOT
necessarily
the way to improve security. It depends upon the threat.

Most approaches to brute force attacks try to speed up the number of key
search
operations that can be done simultaneously or in parallel, e.g., the recent
success
at the RSA conference of the EFF's Deep Crack engine in combination with
lots of
distributed computers, all working on the same challenge cipher.

But there is another approach, which I call the vacuum cleaner technique,
where you
don't target any specific key, but rather you suck up million or billions
of keys and
process all of them simultaneously. With this approach, for every new key
that is
tried, either singly or in parallel, the attacker looks at billions of
ciphertexts to see
if the result of encrypting a chosen plaintext with a given key matches any
one of the
ciphertexts that have been collected. (This assumes a chosen plaintext
attack is
feasible, which is the usual conservative assumption.)  In other words,
don't look for
a needle in a haystack -- take the entire haystack.

After all, if I am trying to steal credit card numbers, I don't care much
whose credit card it is --
I'm not trying to target Bill Gates or Donald Trump specifically -- I'll
settle for yours or
almost anybody else's.

In this scenario, increasing the number of KEKs that are used actually
_increases_
my chances of success, for it gives me that many more ciphertext examples
to look at,
assuming that success is measured in terms of how many keys are cracked in
a
given amount of time, rather than how long it takes to crack a specific
key.

Bob



>>> David Wagner <daw@cs.berkeley.edu> 02/15/99 03:42PM >>>
> David:
>
> I had the same reaction to the 4 billion wrapped keys; however, there are
> two reasons why we should address this issue.  First, when mail list keys
> are used, the same KEK is used to encrypt CEKs for every message sent to
> the mail list.  Depending on the activity on the mail list ad the
> cryptoperiod of the KEK, the 4 billion wrapped keys might actually
happen,
> especially if severs ever communicated with each other using this
facility.

Ok.  I certainly support a conservative approach!

But I must say, my feeling is that if you ever encrypt 2^32 session keys
under the same KEK, "birthday"-style weaknesses will be in the noise:
you'll be in far-deeper trouble, because that KEK will start to look like
an awfully fat target.
In this scenario, I don't think the adversary is going to bother attacking
the crypto (especially when this only divulges partial information about
two session keys).
Instead, he'll go after your KEK by other means (bribe your cleaning
service
to Trojan your computer, suck signal off the power lines, send a TEMPEST
van in your direction, break in to your computer, social engineer his way
into your secure facility, take a job at your company as a janitor, etc.)

The right defense is to refresh your KEK's more frequently.  (For instance,
IPSEC expires keys based not just on time but also on # of blocks
encrypted.)
I'd argue that this is just prudent cryptographic hygiene.  And once you do
this, the cryptanalytic attacks go away.


Taking this up a level, my initial reaction is that ietf-smime is
optimizing
for the wrong quantity.

Maximizing the number of session keys you can encrypt under the same KEK
is a second-order concern.  It seems much more important to try really hard
to reduce the risk that someone finds a subtle bug in your protocol.

(And, if what I've heard is correct, subtle protocol properties are exactly
the reason ietf-smime is devoting so much effort to key wrapping
techniques.)

If you accept this, then the complicated constructions proposed earlier
may be exactly the wrong way to go; simplicity is arguably the most crucial
quantity to optimize for.
(And some provable security results can't hurt, either.)


(Of course, simplicity is only a heuristic.  For instance, Boyko's recent
results on all-or-nothing transforms look very promising, and deserve more
investigation.  Even though the construction is not quite as simple as e.g.
encrypt-and-MAC, provable security results are a great way to reduce the
risk of subtle protocol failures.
[One warning is that the proofs depend on the "random oracle" model and
thus do not necessarily transfer to real-world scenarios -- but they are
still very useful as validation that the basic approach is likely to be
sound.])

>  Second, given more time a cryptanalyst might find a better attack.  I do
> not like to start a standard's life with known flaws.

Yes.  This is a very good point, and normally this would be a very telling
criticism.  There's a saying: "attacks always get better".

However, I feel that this case is different.  Remember, Kaliski's attack
(did I get the author right?) meets the proven lower bounds on security
very closely.  I would argue that in fact the existence of the attack
should reassure us that the proofs of security were on the right track,
rather than raising concerns that better attacks might be "out there".

> I hope that others on this list will respond to your proposal.

Me too...  As a newbie to ietf-smime, I would definitely welcome feedback
(and/or criticism: even "you have no clue, go away!")...






From owner-ietf-smime@imc.org  Wed Feb 17 09:42:14 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id JAA03359
	for <smime-archive@odin.ietf.org>; Wed, 17 Feb 1999 09:42:14 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id FAA26137
	for ietf-smime-bks; Wed, 17 Feb 1999 05:36:27 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id FAA26130
	for <ietf-smime@imc.org>; Wed, 17 Feb 1999 05:36:25 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id IAA24193;
	Wed, 17 Feb 1999 08:40:29 -0500
Message-Id: <4.1.19990216102627.00998e10@mail.spyrus.com>
Message-Id: <4.1.19990216102627.00998e10@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Tue, 16 Feb 1999 11:24:56 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: burt@RSA.COM, djohnson@certicom.ca, schneier@counterpane.com,
        denny@tis.com, denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
        berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
        carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
        Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
        acc@tycho.ncsc.mil, bschanni@BayNetworks.com, jhs@tycho.ncsc.mil,
        jis@mit.edu, pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
        cjwagne@missi.ncsc.mil, balenson@tis.com, balenson@tis.com,
        jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov,
        daw@cs.berkeley.edu
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All:

As the open and public debate continues, I see no one supporting the second
approach described in my 7 Feb 1999 message.  I think we can abandon that
approach, leaving two approaches to Triple-DES key wrapping.  Changes
(hopefully they are improvements) have been suggested for both remaining
approaches.  In this note, I list two updated approaches that are still being
considered.  To keep this note short, I have omitted the unwrap algorithm
description.  The double encryption approach has a shorter result, but the
OAEP-based approach has the all-or-nothing-transform (AONT) property that seems
quite useful.

A MAC-and-Encrypt alternative was suggested.  I am not willing to pursue this
approach due a potential patent issue.  For people who are interested, see
Patent Number 5,673,319.

The S/MIME v3 specifications will include the selected Triple-DES key wrap
algorithm as well as a variant for wrapping RC2 keys (40-128 bit keys).

Please review the algorithms.  Please do not propose improvements that are
covered by any issued or pending patents.

I would like to hear from anyone who has a preference regarding these two
alternatives.

Thanks for your assistance,
  Russ


= = = = = = = = = = 


WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION

Key Checksum

The CMS Checksum Algorithm is used to provide an content-encryption key
integrity check value.  The algorithm is:

1.  Compute a 20 octet SHA-1 message digest on the 
    content-encryption key.
2.  Use the most significant (first) eight octets of the 
    message digest value as the checksum value.

Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising 
    the content-encryption key, call the result CEK.
2.  Compute a 8 octet key checksum value on CEK as described above,
    call the result ICV.
3.  Let CEKICV = CEK || ICV.
4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
    an IV of 0xc302e3c1ad8bb738.
5.  Reverse the order of the ciphertext octets.  That is, the most
    significant (first) octet is swapped with the least significant
    (last) octet, and so on.  Call the result TEMP.
6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use 
    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.



WRAP ALOGRITHM #2:  MASK AND ENCRYPT

This algorithm is no longer being considered.



WRAP ALOGRITHM #3:  OAEP AND ENCRYPT

Triple-DES Key Wrap

1.  Set odd parity for each of the DES key octets comprising 
    the content-encryption key, call the result CEK.
2.  Let CEKPAD = 0x18 || CEK || 0x0000000000000000000000.
3.  Generate a 160-bit random value, called RAND.
4.  Let H1 = SHA-1 ( RAND ).
5.  Let H2 = SHA-1 ( H1 ).
6.  Let MASK1 equal the most significant (first) 36 octets of H2 || H1.
7.  Let MKEY = CEKPAD XOR MASK1.
8.  Let MASK2 = SHA-1 ( MKEY ).
9.  Let MRAND = MASK2 XOR RAND.
10. Let MDATA = MRAND || MKEY.
11. Encrypt MDATA in CBC mode using the key-encryption key.  Use 
    an IV of 0x61a197e5b132e196.  The ciphertext is 56 octets long.




From owner-ietf-smime@imc.org  Wed Feb 17 14:59:37 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id OAA09618
	for <smime-archive@odin.ietf.org>; Wed, 17 Feb 1999 14:59:36 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA01979
	for ietf-smime-bks; Wed, 17 Feb 1999 11:04:28 -0800 (PST)
Received: from speedy.rtfm.com ([208.217.207.85])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA01975
	for <ietf-smime@imc.org>; Wed, 17 Feb 1999 11:04:26 -0800 (PST)
Received: (ekr@localhost) by speedy.rtfm.com (8.9.1/8.6.4) id LAA28152; Wed, 17 Feb 1999 11:09:51 -0800 (PST)
To: "Linn, John" <jlinn@securitydynamics.com>
Cc: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Subject: Re: Comments on x942-05 draft
References: <D104150098E6D111B7830000F8D90AE845A48E@exna02.securitydynamics.com>
From: EKR <ekr@rtfm.com>
Date: 17 Feb 1999 11:09:50 -0800
In-Reply-To: "Linn, John"'s message of "Thu, 4 Feb 1999 16:11:19 -0500"
Message-ID: <kjpv78deyp.fsf@speedy.rtfm.com>
Lines: 80
X-Mailer: Gnus v5.6.43/XEmacs 20.4 - "Emerald"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"Linn, John" <jlinn@securitydynamics.com> writes:
> In sec. 2.1.2, description of "algorithm": suggest adding the following
> sentence at end: "As an implication, it may be appropriate for algorithms
> employing variable parameters other than key size to be represented with
> different OIDs corresponding to different parameter combinations, if
> parameter values cannot be unambiguously determined from usage context".  As
> a related point, would it be acceptable to state that the structure of
> suppPubInfo may be defined on a per-algorithm basis?   For the case of RC2
> usage in S/MIME, where the key length is fixed to 128 bits, it seems to
> offer more protective value to represent the variable effective key length
> within suppPubInfo than to represent the fixed 128 bit length. 
Is this necessary? The simple partition attack obviously doesn't work.
Given knowledge about the 40-bit "effective key" generated by a given
128 bit key, do you get information about the 128-bit "effective key"
that would be generated?

> In 2.1.2, last paragraph, suggest rewriting "the security of the data is
> limited ... even if a string longer than ZZ is generated" as "even if a
> string longer than ZZ is generated, the effective key space of the KEK is
> limited by the size of ZZ, in addition to any security level considerations
> imposed by the parameters p and q."
I have no problem with this.

> In 2.2, 2nd paragraph, suggest changing "...m MUST be >=160" -> "...m MUST
> be >= 160 bits in length". Later in the paragraph, is 160 bits intended as
> the appropriate minimum length for p?  (Note, by comparison, that X9.42
> requires a multiple of 256 bits with a minimum of 512.)
I'd prefer 160. 512 seems like overkill, and has unpleasant performance
tradeoffs.

> In 2.3 and 2.4, suggest adding references to [LL97] for discussion of
> additional means for generating keys which are not subject to small subgroup
> attacks. 
I have no problem with this.

> In the last paragraph of security considerations, suggest rewriting in terms
> of security levels provided, rather than key sizes required. This makes the
> discussion more relevant to particular key sizes selected, rather than
> imposing recommended key sizes. In particular, suggest:
> 
> The security level provided by these methods depends on several factors. It
> depends on the length of the symmetric key (typically, a 2^l security level
> if the length is l bits); the size of the prime q (a 2^{m/2} security
> level); and the size of the prime p (where the security level grows as  a
> subexponential function of the size in bits). A good design principle is to
> have a balanced system, where all three security levels are approximately
> the same. If many keys are derived from a given pair of primes p and q, it
> may be prudent to have higher levels for the primes. In any case, the
> overall security is limited by the lowest of the three levels.
All right.

> Editorial:
> 
> In 2.1.1, the description of h says "... h(p-1)/q mod p ..."; should be "...
> h^{(p-1)/q} mod p ...".
Fine.

> In 2.2, first paragraph, FIPS-186-1 is cited as [DSS], which doesn't appear
> in the references. Given that FIPS-186-1 is currently in a review comment
> period, it may be appropriate to shift this citation to point to the
> finalized [FIPS-186], as included in the references section. 
Agreed.

>  In the same
> paragraph, there's an unmatched opening parenthesis. 
I'll fix it.

> In 2.2, 2nd paragraph, "... consequently, q MUST each be ..." -> "...
> consequently, q MUST be ...".
I'll fix it.

> Sec. 2.4 and the security considerations section each have cross-references
> as "S" rather than "Section". 
Agreed.

-Ekr


-- 
[Eric Rescorla                                   ekr@rtfm.com]


From owner-ietf-smime@imc.org  Wed Feb 17 17:56:18 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA12742
	for <smime-archive@odin.ietf.org>; Wed, 17 Feb 1999 17:56:17 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA04533
	for ietf-smime-bks; Wed, 17 Feb 1999 14:13:49 -0800 (PST)
Received: from speedy.rtfm.com ([208.217.207.85])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA04528
	for <ietf-smime@imc.org>; Wed, 17 Feb 1999 14:13:48 -0800 (PST)
Received: (ekr@localhost) by speedy.rtfm.com (8.9.1/8.6.4) id OAA29881; Wed, 17 Feb 1999 14:19:11 -0800 (PST)
To: Russ Housley <housley@spyrus.com>
Cc: jlinn@securitydynamics.com, ietf-smime@imc.org
Subject: Re: Comments on x942-05 draft
References: <"Linn, John"'s message of "Thu, 4 Feb 1999 16:11:19 -0500"> <D104150098E6D111B7830000F8D90AE845A48E@exna02.securitydynamics.com> <4.1.19990217171236.009a44f0@mail.spyrus.com>
From: EKR <ekr@rtfm.com>
Date: 17 Feb 1999 14:19:10 -0800
In-Reply-To: Russ Housley's message of "Wed, 17 Feb 1999 17:16:51 -0500"
Message-ID: <kjn22cd675.fsf@speedy.rtfm.com>
Lines: 29
X-Mailer: Gnus v5.6.43/XEmacs 20.4 - "Emerald"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ Housley <housley@spyrus.com> writes:

> John said:
> >> In 2.2, 2nd paragraph, suggest changing "...m MUST be >=160" -> "...m MUST
> >> be >= 160 bits in length". Later in the paragraph, is 160 bits intended as
> >> the appropriate minimum length for p?  (Note, by comparison, that X9.42
> >> requires a multiple of 256 bits with a minimum of 512.)
> 
> Then Eric replied:
> >I'd prefer 160. 512 seems like overkill, and has unpleasant performance
> >tradeoffs.
> 
> I do not have a problem allowing people to have 512-bit private keys.  The
> performance impact is imposed on themselves.  I also think that we should
> permit 160-bit private keys for those people that belive 80-bit security is
> useful.
> 
> In summary, I think that we should allow private keys to be between 160 and
> 512 bits.
That's no problem, but John indicates that X9.42 has a MINIMUM of 512,
which I consider unacceptable.

As far as I'm concerned people should be allowed to go up to |p|

-Ekr


-- 
[Eric Rescorla                                   ekr@rtfm.com]


From owner-ietf-smime@imc.org  Wed Feb 17 17:56:19 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id RAA12753
	for <smime-archive@odin.ietf.org>; Wed, 17 Feb 1999 17:56:19 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA04454
	for ietf-smime-bks; Wed, 17 Feb 1999 14:12:14 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA04440
	for <ietf-smime@imc.org>; Wed, 17 Feb 1999 14:12:09 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id RAA15561;
	Wed, 17 Feb 1999 17:16:04 -0500
Message-Id: <4.1.19990217171236.009a44f0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 17 Feb 1999 17:16:51 -0500
To: EKR <ekr@rtfm.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Comments on x942-05 draft
Cc: jlinn@securitydynamics.com, ietf-smime@imc.org
In-Reply-To: <kjpv78deyp.fsf@speedy.rtfm.com>
References: <"Linn, John"'s message of "Thu, 4 Feb 1999 16:11:19 -0500">
 <D104150098E6D111B7830000F8D90AE845A48E@exna02.securitydynamics.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>


John said:
>> In 2.2, 2nd paragraph, suggest changing "...m MUST be >=160" -> "...m MUST
>> be >= 160 bits in length". Later in the paragraph, is 160 bits intended as
>> the appropriate minimum length for p?  (Note, by comparison, that X9.42
>> requires a multiple of 256 bits with a minimum of 512.)

Then Eric replied:
>I'd prefer 160. 512 seems like overkill, and has unpleasant performance
>tradeoffs.

I do not have a problem allowing people to have 512-bit private keys.  The
performance impact is imposed on themselves.  I also think that we should
permit 160-bit private keys for those people that belive 80-bit security is
useful.

In summary, I think that we should allow private keys to be between 160 and
512 bits.

Russ


From owner-ietf-smime@imc.org  Thu Feb 18 11:26:17 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA00906
	for <smime-archive@odin.ietf.org>; Thu, 18 Feb 1999 11:26:16 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA06976
	for ietf-smime-bks; Thu, 18 Feb 1999 07:04:33 -0800 (PST)
Received: from www2.jcp.co.uk ([194.201.70.194])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id HAA06971
	for <ietf-smime@imc.org>; Thu, 18 Feb 1999 07:04:21 -0800 (PST)
Received: from jcp.co.uk (unverified [194.201.70.226]) by www2.jcp.co.uk
 (EMWAC SMTPRS 0.83) with SMTP id <B0000455720@www2.jcp.co.uk>;
 Thu, 18 Feb 1999 15:08:47 +0000
Message-ID: <36CC2CD8.E35B4E7B@jcp.co.uk>
Date: Thu, 18 Feb 1999 15:08:08 +0000
From: Hilton Day <hilton@jcp.co.uk>
Organization: JCP Computer Services
X-Mailer: Mozilla 4.5 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: ietf-smime@imc.org
Subject: Selecting key-management algorithm...
References: <36C45454.B652EF5D@jcp.co.uk>
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------msAB6144F410EE787C0E198603"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a cryptographically signed message in MIME format.

--------------msAB6144F410EE787C0E198603
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi all,

What (if anything) denotes whether a CMS message should use KA or KT as the
key-management algorithm?

I've looked through the spec, and can't see anything which mandates a method for
doing this, so I can only assume it is an implementation-specific choice (i.e.
User-input, or the programmers decide when writing the mail client, based on
security policy).

This leaves me wondering why KA is a "must" for the CMS - it is conveivable that
KA would never be used within the context of S/MIME, as mail clients could simply
use KT to wrap their CEK's.

Ok - I realise that in the interests of interoperability, KA should be implemented
in order that a recipient can read a mail sent with a shared-secret-based key, but
in the same way as Symmetric Key-Encryption Key algorithms are a "may", surely
this is something for the implementor to decide?

I realise that, as I've only been following the spec. since CMS-09, I've probably
already missed conversations along these lines, in which case, apologies to all
those who've hashed over this - but I'd appreciate an explanation.. :-)

Thanks,

Hilton.

--
JCP Computer Services           Tel:    +44 (0) 171 689 6890
16 St Johns Lane,               Fax:    +44 (0) 171 689 0438
London,                         E-Mail: hilton@jcp.co.uk
EC1M 4BS                        WWW:    http://www.jcp.co.uk
United Kingdom


--------------msAB6144F410EE787C0E198603
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIIIWwYJKoZIhvcNAQcCoIIITDCCCEgCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
BggwggLHMIICMKADAgECAgJL0zANBgkqhkiG9w0BAQQFADCBuTELMAkGA1UEBhMCWkExFTAT
BgNVBAgTDFdlc3Rlcm4gQ2FwZTEUMBIGA1UEBxMLRHVyYmFudmlsbGUxGjAYBgNVBAoTEVRo
YXd0ZSBDb25zdWx0aW5nMSkwJwYDVQQLEyBUaGF3dGUgUEYgUlNBIElLIDE5OTguOS4xNiAx
Nzo1NTE2MDQGA1UEAxMtVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIFJTQSBJc3N1ZXIgMTk5
OC45LjE2MB4XDTk4MTExMDE3NTc0OVoXDTk5MTExMDE3NTc0OVowQjEfMB0GA1UEAxMWVGhh
d3RlIEZyZWVtYWlsIE1lbWJlcjEfMB0GCSqGSIb3DQEJARYQaGlsdG9uQGpjcC5jby51azCB
nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA3sKv15eVfGO3p2pe/cUPTcCeWjDYJuxjAUM6
OrHS0woWw2XkaalXS0FihirMT+iM6ZJHI3ZXAdMbmddXvInCsDZ4h1zPVO76DFnTz8H7v4rM
u7D8niCpsjd+7+eDJjMzFZDBZJE/mddwVL31K0Xq4If4XFwktl46XbKUZFmnvYsCAwEAAaNU
MFIwEQYJYIZIAYb4QgEBBAQDAgWgMA4GA1UdDwEB/wQEAwIFoDAMBgNVHRMBAf8EAjAAMB8G
A1UdIwQYMBaAFP4+YJxrjA+w2DPGysYeWLBxOLXgMA0GCSqGSIb3DQEBBAUAA4GBAKKtrXdg
q+NI6w1tTnwBQf4sMcxaq5UgHlMf3vRCTaPw2hYuexW4hS1y7IU036njfqawd34XcBDw3bEY
Ek6bzmfIGC3nx2WYuoH5t7nhDbzBBOLwmCpHwirxlMt7piZEF/ZyRYUKlm9kSYBAhhXNic8I
YRNmGi9/HtbnfJU9B6DqMIIDOTCCAqKgAwIBAgIBCjANBgkqhkiG9w0BAQQFADCB0TELMAkG
A1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMRow
GAYDVQQKExFUaGF3dGUgQ29uc3VsdGluZzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2
aWNlcyBEaXZpc2lvbjEkMCIGA1UEAxMbVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIENBMSsw
KQYJKoZIhvcNAQkBFhxwZXJzb25hbC1mcmVlbWFpbEB0aGF3dGUuY29tMB4XDTk4MDkxNjE3
NTUzNFoXDTAwMDkxNTE3NTUzNFowgbkxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJu
IENhcGUxFDASBgNVBAcTC0R1cmJhbnZpbGxlMRowGAYDVQQKExFUaGF3dGUgQ29uc3VsdGlu
ZzEpMCcGA1UECxMgVGhhd3RlIFBGIFJTQSBJSyAxOTk4LjkuMTYgMTc6NTUxNjA0BgNVBAMT
LVRoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBSU0EgSXNzdWVyIDE5OTguOS4xNjCBnzANBgkq
hkiG9w0BAQEFAAOBjQAwgYkCgYEAxKXl1NTQXwgC7gchfSS/q2uOHusgBwIVhGuP0JMkHxud
7miyuSxP6ZNnFxAXHqH5Q0EjuTCqdpe78+f9gcC1MYv2plAmVPKVKOsZpB6XHrDiuJvBBJoy
0DwJbE/kNU/wdr8AEwNPRQhg8/y00JABihLJnLp/UuoqkzU2PDzkNS8CAwEAAaM3MDUwEgYD
VR0TAQH/BAgwBgEB/wIBADAfBgNVHSMEGDAWgBRyScJzNMZV9At2coF+d/SH58ayDjANBgkq
hkiG9w0BAQQFAAOBgQAsx4IfAUM+B4/uaVypZIL4wJatkyvLm1DXQJqBwrqmdp08lUDcVcHh
VYJ5qwopptUM4VcoPo/5u9XfDZNYqlsti48z5N1YFTV2chUpvUL0WpILd1+dJ9uaLU4bggaO
0o1Wu5Xe2wxlBd6VngLdUxe+vvxrwxoiehQrYb3Cn156WjGCAhswggIXAgEBMIHAMIG5MQsw
CQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRQwEgYDVQQHEwtEdXJiYW52aWxs
ZTEaMBgGA1UEChMRVGhhd3RlIENvbnN1bHRpbmcxKTAnBgNVBAsTIFRoYXd0ZSBQRiBSU0Eg
SUsgMTk5OC45LjE2IDE3OjU1MTYwNAYDVQQDEy1UaGF3dGUgUGVyc29uYWwgRnJlZW1haWwg
UlNBIElzc3VlciAxOTk4LjkuMTYCAkvTMAkGBSsOAwIaBQCggbEwGAYJKoZIhvcNAQkDMQsG
CSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNOTkwMjE4MTUwODA4WjAjBgkqhkiG9w0BCQQx
FgQUTGIbFDVFOBpQgC8n+0BVZBrwgb4wUgYJKoZIhvcNAQkPMUUwQzAKBggqhkiG9w0DBzAO
BggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgw
DQYJKoZIhvcNAQEBBQAEgYDD8U7NeOMmCkfLha+aO698oSm/v8UsR+Wb3L9ILE+zVd58nnRv
tuILiyJpqjHgxNt9Mi7VJCE3Or+/4Yx9ZNq+D/F+QkZU7KI1SDm66odvtmY51zuJIPCxDORy
KCRxv5iJnfuNA0EFLVpdeILjvnK+9f0Yx6KjXObwfQO4zRPNFw==
--------------msAB6144F410EE787C0E198603--



From owner-ietf-smime@imc.org  Thu Feb 18 11:35:50 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA01059
	for <smime-archive@odin.ietf.org>; Thu, 18 Feb 1999 11:35:49 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA07245
	for ietf-smime-bks; Thu, 18 Feb 1999 07:30:36 -0800 (PST)
Received: from eagle.rsa.com (eagle.rsa.com [192.80.211.35])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id HAA07241
	for <ietf-smime@imc.org>; Thu, 18 Feb 1999 07:30:35 -0800 (PST)
Received: from [10.81.217.217] by eagle.rsa.com
          via smtpd (for imc.org [206.184.129.134]) with SMTP; 18 Feb 1999 15:53:57 UT
Received: by lobester.rsa.com with Internet Mail Service (5.5.2232.9)
	id <ZNLAQYM1>; Thu, 18 Feb 1999 07:39:13 -0800
Message-ID: <7DE9F929113DD11181C900805F85C1AA6FDDE0@geoduck.rsa.com>
From: Burt Kaliski <burt@RSA.COM>
To: "'Russ Housley'" <housley@spyrus.com>
Cc: BJUENEMAN@novell.com, cme@ACM.ORG, berson@anagram.com,
        bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
        mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
        schneier@counterpane.com, denning@cs.cosc.georgetown.edu,
        smid@csmes.ncsl.nist.gov, omura@cylink.com, carlisle.adams@entrust.com,
        paulv@entrust.com, Blake.Greenlee@greenlee.com, ietf-smime@imc.org,
        cjwagne@missi.ncsc.mil, jis@mit.edu, BJueneman@novell.com,
        merkle@parc.xerox.com, BSnow@radium.ncsc.mil, ekr@rtfm.com,
        jlinn@securitydynamics.com, ams@terisa.com,
        Ron Rivest
	 <rivest@theory.lcs.mit.edu>, balenson@tis.com,
        denny@tis.com, acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
        dickie@EMPIRE.eclipse.ncsc.mil, desmedt@uwm.edu, smatyas@us.ibm.com,
        daw@cs.berkeley.edu
Subject: RE: A New Triple-DES Key Wrap Algorithm
Date: Thu, 18 Feb 1999 07:34:00 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Regarding Russ's question:

> Has the double-encryption approach that we are considering been analyzed
> as
> an AONT?  If so, how does it stack up when compared to OAEP?
> 
I'm not aware of any similar analysis on double-encryption, though it would
be an interesting (and not necessarily easy) research exercise. I've asked
Victor Boyko if he's interested in taking a look.

Responding to Bob Jueneman's earlier suggestion:

	Is there some specific need to use the same KEK for mailing lists
	multiple times or could the same solution be used as in S-S DH? 

	In other words make the use of a "salt" in the message compulsory
and
	use the mailing list key in place of the DH shared secret (ZZ). This
	would then allow the same mailing list key to be used multiple times
	because the KEK would be different with each salt.

I think this is architecturally a nice approach, since with static-static
Diffie-Hellman, ZZ is a shared key between two users, and KEKs are derived
from it. The goal is to use a KEK only once in either setting.

-- Burt



From owner-ietf-smime@imc.org  Thu Feb 18 11:55:03 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id LAA01417
	for <smime-archive@odin.ietf.org>; Thu, 18 Feb 1999 11:55:02 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA07141
	for ietf-smime-bks; Thu, 18 Feb 1999 07:23:48 -0800 (PST)
Received: from eagle.rsa.com (eagle.rsa.com [192.80.211.35])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id HAA07124
	for <ietf-smime@imc.org>; Thu, 18 Feb 1999 07:21:48 -0800 (PST)
Received: from [10.81.217.217] by eagle.rsa.com
          via smtpd (for imc.org [206.184.129.134]) with SMTP; 18 Feb 1999 15:45:10 UT
Received: by lobester.rsa.com with Internet Mail Service (5.5.2232.9)
	id <ZNLAQYL0>; Thu, 18 Feb 1999 07:30:23 -0800
Message-ID: <7DE9F929113DD11181C900805F85C1AA6FDDDE@geoduck.rsa.com>
From: Burt Kaliski <burt@RSA.COM>
To: Bob Jueneman <BJUENEMAN@novell.com>,
        "'Don Johnson'"
	 <djohnson@certicom.com>
Cc: daw@cs.berkeley.edu, housley@spyrus.com, cme@ACM.ORG, berson@anagram.com,
        bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
        mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
        schneier@counterpane.com, denning@cs.cosc.georgetown.edu,
        smid@csmes.ncsl.nist.gov, omura@cylink.com,
        dickie@EMPIRE.eclipse.ncsc.mil, carlisle.adams@entrust.com,
        paulv@entrust.com, Blake.Greenlee@greenlee.com, ietf-smime@imc.org,
        cjwagne@missi.ncsc.mil, jis@mit.edu, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, ekr@rtfm.com, jlinn@securitydynamics.com,
        ams@terisa.com, Ron Rivest <rivest@theory.lcs.mit.edu>,
        balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
        jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu
Subject: RE: A New Triple-DES Key Wrap Algorithm
Date: Thu, 18 Feb 1999 07:25:12 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Right, the 2^32 limitation for a 64-bit block cipher in CBC mode is not a
new result, though I'm not sure how far back it goes. I've merely made the
observation that due to those limitations, it may not be appropriate to
encrypt a message containing a key and fixed padding in CBC mode. Encrypting
an appropriate function of the message (e.g. OAEP) or encrypting twice is
better.

-- Burt


> ----------
> From: 	Don Johnson[SMTP:djohnson@certicom.com]
> Sent: 	Tuesday, February 16, 1999 9:37 PM
> To: 	Bob Jueneman
> Cc: 	daw@cs.berkeley.edu; housley@spyrus.com; cme@ACM.ORG;
> berson@anagram.com; bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; denning@cs.cosc.georgetown.edu;
> smid@csmes.ncsl.nist.gov; omura@cylink.com;
> dickie@EMPIRE.eclipse.ncsc.mil; carlisle.adams@entrust.com;
> paulv@entrust.com; Blake.Greenlee@greenlee.com; ietf-smime@imc.org;
> cjwagne@missi.ncsc.mil; jis@mit.edu; merkle@parc.xerox.com;
> BSnow@radium.ncsc.mil; Burt Kaliski; ekr@rtfm.com;
> jlinn@securitydynamics.com; ams@terisa.com; Ron Rivest; balenson@tis.com;
> denny@tis.com; acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil; smatyas@us.ibm.com;
> desmedt@uwm.edu
> Subject: 	Re: A New Triple-DES Key Wrap Algorithm
> 
> Just for the record, text attacks such as Burt mentioned were discussed by
> Coppersmith, Johnson and Matyas in their paper on CBCM mode of Triple DES
> as a justification for considering it in ANSI X9.  They might have been
> known before that, but the ref in the HAC is to that paper, so I know of
> no
> earlier ref.
> 
> Don J.
> 
> 
> 
> 
> 
> "Bob Jueneman" <BJUENEMAN@novell.com> on 02/16/99 08:53:37 PM
> 
> To:   daw@cs.berkeley.edu, housley@spyrus.com
> cc:   cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com,
>       kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
>       brickell@certco.com, djohnson@certicom.ca, schneier@counterpane.com,
>       denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
>       omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
>       carlisle.adams@entrust.com, paulv@entrust.com,
>       Blake.Greenlee@greenlee.com, ietf-smime@imc.org,
>       cjwagne@missi.ncsc.mil, jis@mit.edu, merkle@parc.xerox.com,
>       BSnow@radium.ncsc.mil, burt@rsa.com, ekr@rtfm.com,
>       jlinn@securitydynamics.com, ams@terisa.com,
>       rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com,
>       acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com,
>       desmedt@uwm.edu (bcc: Don Johnson/Certicom)
> Subject:  Re: A New Triple-DES Key Wrap Algorithm
> 
> 
> 
> 
> David,
> 
> The reason why I got interested in this subject at all was that I realized
> that within
> Novell's cryptographic architecture we wrap all sorts of keys, and when a
> possible
> attack was pointed out I became concerned.
> 
> I understand Russ Housley's point about wanting to solve this problem for
> S/MIME --
> that is his charter, and he wants to deliver a product.  Admirable
> dedication.  And I
> certainly agree with you that there are other, probably more effective
> ways
> to
> compromise S/MIME. than by mailing a billion keys around!
> 
> But as a vendor, I don't want to have to solve the key wrapping problem
> one
> way
> for S/MIME, plus N other ways for the next N protocols to come along.
> 
> Believe me, it is very tough to get the attention of the real experts in
> this area,
> and so once the problem was raised, I think we should solve it as best we
> can,
> once and for all. The S/MIME spec will then make a convenient point of
> reference
> for something that was done right.
> 
> For that reason, then, I would tend to dismiss any and all arguments about
> whether
> some particular attack might or might not be feasible in an S/MIME context
> -- that type of
> subtlety is exceedingly hard to get right, and besides I want a more
> general purpose
> solution.
> 
> Although Steve Kent's argument about the cost of changing keys often is
> quite valid,
> your argument about wanting to refresh your KEKs more often is NOT
> necessarily
> the way to improve security. It depends upon the threat.
> 
> Most approaches to brute force attacks try to speed up the number of key
> search
> operations that can be done simultaneously or in parallel, e.g., the
> recent
> success
> at the RSA conference of the EFF's Deep Crack engine in combination with
> lots of
> distributed computers, all working on the same challenge cipher.
> 
> But there is another approach, which I call the vacuum cleaner technique,
> where you
> don't target any specific key, but rather you suck up million or billions
> of keys and
> process all of them simultaneously. With this approach, for every new key
> that is
> tried, either singly or in parallel, the attacker looks at billions of
> ciphertexts to see
> if the result of encrypting a chosen plaintext with a given key matches
> any
> one of the
> ciphertexts that have been collected. (This assumes a chosen plaintext
> attack is
> feasible, which is the usual conservative assumption.)  In other words,
> don't look for
> a needle in a haystack -- take the entire haystack.
> 
> After all, if I am trying to steal credit card numbers, I don't care much
> whose credit card it is --
> I'm not trying to target Bill Gates or Donald Trump specifically -- I'll
> settle for yours or
> almost anybody else's.
> 
> In this scenario, increasing the number of KEKs that are used actually
> _increases_
> my chances of success, for it gives me that many more ciphertext examples
> to look at,
> assuming that success is measured in terms of how many keys are cracked in
> a
> given amount of time, rather than how long it takes to crack a specific
> key.
> 
> Bob
> 
> 
> 
> >>> David Wagner <daw@cs.berkeley.edu> 02/15/99 03:42PM >>>
> > David:
> >
> > I had the same reaction to the 4 billion wrapped keys; however, there
> are
> > two reasons why we should address this issue.  First, when mail list
> keys
> > are used, the same KEK is used to encrypt CEKs for every message sent to
> > the mail list.  Depending on the activity on the mail list ad the
> > cryptoperiod of the KEK, the 4 billion wrapped keys might actually
> happen,
> > especially if severs ever communicated with each other using this
> facility.
> 
> Ok.  I certainly support a conservative approach!
> 
> But I must say, my feeling is that if you ever encrypt 2^32 session keys
> under the same KEK, "birthday"-style weaknesses will be in the noise:
> you'll be in far-deeper trouble, because that KEK will start to look like
> an awfully fat target.
> In this scenario, I don't think the adversary is going to bother attacking
> the crypto (especially when this only divulges partial information about
> two session keys).
> Instead, he'll go after your KEK by other means (bribe your cleaning
> service
> to Trojan your computer, suck signal off the power lines, send a TEMPEST
> van in your direction, break in to your computer, social engineer his way
> into your secure facility, take a job at your company as a janitor, etc.)
> 
> The right defense is to refresh your KEK's more frequently.  (For
> instance,
> IPSEC expires keys based not just on time but also on # of blocks
> encrypted.)
> I'd argue that this is just prudent cryptographic hygiene.  And once you
> do
> this, the cryptanalytic attacks go away.
> 
> 
> Taking this up a level, my initial reaction is that ietf-smime is
> optimizing
> for the wrong quantity.
> 
> Maximizing the number of session keys you can encrypt under the same KEK
> is a second-order concern.  It seems much more important to try really
> hard
> to reduce the risk that someone finds a subtle bug in your protocol.
> 
> (And, if what I've heard is correct, subtle protocol properties are
> exactly
> the reason ietf-smime is devoting so much effort to key wrapping
> techniques.)
> 
> If you accept this, then the complicated constructions proposed earlier
> may be exactly the wrong way to go; simplicity is arguably the most
> crucial
> quantity to optimize for.
> (And some provable security results can't hurt, either.)
> 
> 
> (Of course, simplicity is only a heuristic.  For instance, Boyko's recent
> results on all-or-nothing transforms look very promising, and deserve more
> investigation.  Even though the construction is not quite as simple as
> e.g.
> encrypt-and-MAC, provable security results are a great way to reduce the
> risk of subtle protocol failures.
> [One warning is that the proofs depend on the "random oracle" model and
> thus do not necessarily transfer to real-world scenarios -- but they are
> still very useful as validation that the basic approach is likely to be
> sound.])
> 
> >  Second, given more time a cryptanalyst might find a better attack.  I
> do
> > not like to start a standard's life with known flaws.
> 
> Yes.  This is a very good point, and normally this would be a very telling
> criticism.  There's a saying: "attacks always get better".
> 
> However, I feel that this case is different.  Remember, Kaliski's attack
> (did I get the author right?) meets the proven lower bounds on security
> very closely.  I would argue that in fact the existence of the attack
> should reassure us that the proofs of security were on the right track,
> rather than raising concerns that better attacks might be "out there".
> 
> > I hope that others on this list will respond to your proposal.
> 
> Me too...  As a newbie to ietf-smime, I would definitely welcome feedback
> (and/or criticism: even "you have no clue, go away!")...
> 
> 
> 
> 


From owner-ietf-smime@imc.org  Thu Feb 18 18:38:56 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id SAA27745
	for <smime-archive@odin.ietf.org>; Thu, 18 Feb 1999 18:38:56 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA11478
	for ietf-smime-bks; Thu, 18 Feb 1999 14:44:59 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA11474
	for <ietf-smime@imc.org>; Thu, 18 Feb 1999 14:44:58 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id RAA13400;
	Thu, 18 Feb 1999 17:54:54 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id RAA03832; Thu, 18 Feb 1999 17:52:24 -0500
Date: Thu, 18 Feb 1999 17:52:24 -0500
Message-Id: <199902182252.RAA03832@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Hilton Day <hilton@jcp.co.uk>, ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: Selecting key-management algorithm...
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Hilton,

The KeyTransRecipientInfo syntax does not include a field to carry or
identify the originator's key management public key.  This is required for
key agreement algorithms such as D-H.

The recipient's cert indicates which flavor must be used.  If it is a key
transfer algorithm such as RSA, then the KeyTransRecipientInfo syntax is
used.  If it is a key agreement algorithm such as D-H, then the
KeyAgreeRecipientInfo syntax is used.  

=========================================================
John Pawling, Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
jsp@jgvandyke.com
=========================================================





From owner-ietf-smime@imc.org  Fri Feb 19 09:32:11 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id JAA17050
	for <smime-archive@odin.ietf.org>; Fri, 19 Feb 1999 09:32:11 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id FAA01142
	for ietf-smime-bks; Fri, 19 Feb 1999 05:19:44 -0800 (PST)
Received: from tholian.securitydynamics.com (tholian.securid.com [204.167.112.129])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id FAA01138
	for <ietf-smime@imc.org>; Fri, 19 Feb 1999 05:19:43 -0800 (PST)
Received: from mail.securitydynamics.com by tholian.securitydynamics.com
          via smtpd (for imc.org [206.184.129.134]) with SMTP; 19 Feb 1999 13:23:37 UT
Received: by securitydynamics.com (8.7.6/8.7.3) with ESMTP id IAA17704; Fri, 19 Feb 1999 08:32:37 -0500 (EST)
Received: by exna01.securitydynamics.com with Internet Mail Service (5.5.2232.9)
	id <FF81JVYH>; Fri, 19 Feb 1999 08:23:46 -0500
Message-ID: <D104150098E6D111B7830000F8D90AE845A4B3@exna02.securitydynamics.com>
From: "Linn, John" <jlinn@securitydynamics.com>
To: Russ Housley <housley@spyrus.com>, "'EKR'" <ekr@rtfm.com>
Cc: "Linn, John" <jlinn@securitydynamics.com>, ietf-smime@imc.org
Subject: RE: Comments on x942-05 draft
Date: Fri, 19 Feb 1999 08:27:32 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I'm trying to mind p's and q's here ;-).  I was questioning the last
sentence in 2.2's 2nd paragraph, which states "p must be a minimum of 160
bits long", recognizing X9.42's recommendation for a significantly larger p.
Earlier in the same paragraph, there's a separate statement about q being at
least 160 bits; I wasn't asking about that or private key sizes, just
specifically about p. 

--jl

> ----------
> From: 	EKR[SMTP:ekr@rtfm.com]
> Sent: 	Wednesday, February 17, 1999 5:19 PM
> To: 	Russ Housley
> Cc: 	jlinn@securitydynamics.com; ietf-smime@imc.org
> Subject: 	Re: Comments on x942-05 draft
> 
> Russ Housley <housley@spyrus.com> writes:
> 
> > John said:
> > >> In 2.2, 2nd paragraph, suggest changing "...m MUST be >=160" -> "...m
> MUST
> > >> be >= 160 bits in length". Later in the paragraph, is 160 bits
> intended as
> > >> the appropriate minimum length for p?  (Note, by comparison, that
> X9.42
> > >> requires a multiple of 256 bits with a minimum of 512.)
> > 
> > Then Eric replied:
> > >I'd prefer 160. 512 seems like overkill, and has unpleasant performance
> > >tradeoffs.
> > 
> > I do not have a problem allowing people to have 512-bit private keys.
> The
> > performance impact is imposed on themselves.  I also think that we
> should
> > permit 160-bit private keys for those people that belive 80-bit security
> is
> > useful.
> > 
> > In summary, I think that we should allow private keys to be between 160
> and
> > 512 bits.
> That's no problem, but John indicates that X9.42 has a MINIMUM of 512,
> which I consider unacceptable.
> 
> As far as I'm concerned people should be allowed to go up to |p|
> 
> -Ekr
> 
> 
> -- 
> [Eric Rescorla                                   ekr@rtfm.com]
> 


From owner-ietf-smime@imc.org  Fri Feb 19 09:54:27 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.8.5/8.8.7a) with ESMTP id JAA17880
	for <smime-archive@odin.ietf.org>; Fri, 19 Feb 1999 09:54:26 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id FAA01269
	for ietf-smime-bks; Fri, 19 Feb 1999 05:42:34 -0800 (PST)
Received: from tholian.securitydynamics.com (tholian.securid.com [204.167.112.129])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id FAA01265
	for <ietf-smime@imc.org>; Fri, 19 Feb 1999 05:42:33 -0800 (PST)
Received: from mail.securitydynamics.com by tholian.securitydynamics.com
          via smtpd (for imc.org [206.184.129.134]) with SMTP; 19 Feb 1999 13:46:27 UT
Received: by securitydynamics.com (8.7.6/8.7.3) with ESMTP id IAA18211; Fri, 19 Feb 1999 08:55:32 -0500 (EST)
Received: by exna01.securitydynamics.com with Internet Mail Service (5.5.2232.9)
	id <FF81JV6P>; Fri, 19 Feb 1999 08:46:41 -0500
Message-ID: <D104150098E6D111B7830000F8D90AE845A4B4@exna02.securitydynamics.com>
From: "Linn, John" <jlinn@securitydynamics.com>
To: "Linn, John" <jlinn@securitydynamics.com>, "'EKR'" <ekr@rtfm.com>
Cc: "'ietf-smime@imc.org'" <ietf-smime@imc.org>,
        "Kaliski, Burt"
	 <bkaliski@securitydynamics.com>
Subject: RE: Comments on x942-05 draft
Date: Fri, 19 Feb 1999 08:50:30 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Here's some analysis on the RC2 effective key issue, thanks to Burt Kaliski.


> ----------
> From: 	EKR[SMTP:ekr@rtfm.com]
> Sent: 	Wednesday, February 17, 1999 2:09 PM
> To: 	Linn, John
> Cc: 	'ietf-smime@imc.org'
> Subject: 	Re: Comments on x942-05 draft
> 
> "Linn, John" <jlinn@securitydynamics.com> writes:
> > In sec. 2.1.2, description of "algorithm": suggest adding the following
> > sentence at end: "As an implication, it may be appropriate for
> algorithms
> > employing variable parameters other than key size to be represented with
> > different OIDs corresponding to different parameter combinations, if
> > parameter values cannot be unambiguously determined from usage context".
> As
> > a related point, would it be acceptable to state that the structure of
> > suppPubInfo may be defined on a per-algorithm basis?   For the case of
> RC2
> > usage in S/MIME, where the key length is fixed to 128 bits, it seems to
> > offer more protective value to represent the variable effective key
> length
> > within suppPubInfo than to represent the fixed 128 bit length. 
> Is this necessary? The simple partition attack obviously doesn't work.
> Given knowledge about the 40-bit "effective key" generated by a given
> 128 bit key, do you get information about the 128-bit "effective key"
> that would be generated?
> 
An RC2 key has actual length t (fixed to 128 for S/MIME purposes) and
effective length k.  RC2 key setup has two phases: (1) map t-bit actual key
into t-bit state, then (2) map last k bits of state into 128-byte table.
Partitioning can therefore take place in the state space.  If an actual key
is used for both k=40 and k=128, an opponent can solve for the last 40 bits
of the state by a 2^40 exhaustive search against data encrypted with k=40.

--jl



From owner-ietf-smime@imc.org  Fri Feb 19 15:52:51 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA00969
	for <smime-archive@odin.ietf.org>; Fri, 19 Feb 1999 15:52:50 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA04261
	for ietf-smime-bks; Fri, 19 Feb 1999 11:48:32 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA04257
	for <ietf-smime@imc.org>; Fri, 19 Feb 1999 11:48:28 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id OAA19943;
	Fri, 19 Feb 1999 14:52:52 -0500
Message-Id: <4.1.19990219142058.009ce290@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Fri, 19 Feb 1999 14:32:21 -0500
To: Hilton Day <hilton@jcp.co.uk>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Selecting key-management algorithm...
Cc: ietf-smime@imc.org
In-Reply-To: <36CC2CD8.E35B4E7B@jcp.co.uk>
References: <36C45454.B652EF5D@jcp.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Ephemeral-Static Diffie-Hellman is the mandatory to implement algorithm to
ensure interoperability.  Since Ephemeral-Static Diffie-Hellman is a key
agreement algorithm, that is the mandatory to implement portion of the
protocol.

Russ


At 03:08 PM 2/18/99 +0000, Hilton Day wrote:
>Hi all,
>
>What (if anything) denotes whether a CMS message should use KA or KT as the
>key-management algorithm?
>
>I've looked through the spec, and can't see anything which mandates a method 
>for
>doing this, so I can only assume it is an implementation-specific choice (i.e.
>User-input, or the programmers decide when writing the mail client, based on
>security policy).
>
>This leaves me wondering why KA is a "must" for the CMS - it is conveivable 
>that
>KA would never be used within the context of S/MIME, as mail clients could 
>simply
>use KT to wrap their CEK's.
>
>Ok - I realise that in the interests of interoperability, KA should be 
>implemented
>in order that a recipient can read a mail sent with a shared-secret-based 
>key, but
>in the same way as Symmetric Key-Encryption Key algorithms are a "may", surely
>this is something for the implementor to decide?
>
>I realise that, as I've only been following the spec. since CMS-09, I've 
>probably
>already missed conversations along these lines, in which case, apologies
to all
>those who've hashed over this - but I'd appreciate an explanation.. :-)
>
>Thanks,
>
>Hilton.
>
>--
>JCP Computer Services           Tel:    +44 (0) 171 689 6890
>16 St Johns Lane,               Fax:    +44 (0) 171 689 0438
>London,                         E-Mail: hilton@jcp.co.uk
>EC1M 4BS                        WWW:    http://www.jcp.co.uk
>United Kingdom
>
>



From owner-ietf-smime@imc.org  Fri Feb 19 16:58:52 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA02303
	for <smime-archive@odin.ietf.org>; Fri, 19 Feb 1999 16:58:52 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA04988
	for ietf-smime-bks; Fri, 19 Feb 1999 13:09:42 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA04984
	for <ietf-smime@imc.org>; Fri, 19 Feb 1999 13:09:40 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id QAA23340;
	Fri, 19 Feb 1999 16:13:50 -0500
Message-Id: <4.1.19990219153937.009a3b30@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Fri, 19 Feb 1999 15:46:15 -0500
To: "Linn, John" <jlinn@securitydynamics.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: Comments on x942-05 draft
Cc: "'EKR'" <ekr@rtfm.com>, ietf-smime@imc.org
In-Reply-To: <D104150098E6D111B7830000F8D90AE845A4B3@exna02.securitydyna
 mics.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John:

You are correct.  There seems to be a typo.  p needs to be bigger than q and x.

Russ


At 08:27 AM 2/19/99 -0500, Linn, John wrote:
>I'm trying to mind p's and q's here ;-).  I was questioning the last
>sentence in 2.2's 2nd paragraph, which states "p must be a minimum of 160
>bits long", recognizing X9.42's recommendation for a significantly larger p.
>Earlier in the same paragraph, there's a separate statement about q being at
>least 160 bits; I wasn't asking about that or private key sizes, just
>specifically about p. 
>
>--jl
>
>> ----------
>> From: 	EKR[SMTP:ekr@rtfm.com]
>> Sent: 	Wednesday, February 17, 1999 5:19 PM
>> To: 	Russ Housley
>> Cc: 	jlinn@securitydynamics.com; ietf-smime@imc.org
>> Subject: 	Re: Comments on x942-05 draft
>> 
>> Russ Housley <housley@spyrus.com> writes:
>> 
>> > John said:
>> > >> In 2.2, 2nd paragraph, suggest changing "...m MUST be >=160" -> "...m
>> MUST
>> > >> be >= 160 bits in length". Later in the paragraph, is 160 bits
>> intended as
>> > >> the appropriate minimum length for p?  (Note, by comparison, that
>> X9.42
>> > >> requires a multiple of 256 bits with a minimum of 512.)
>> > 
>> > Then Eric replied:
>> > >I'd prefer 160. 512 seems like overkill, and has unpleasant performance
>> > >tradeoffs.
>> > 
>> > I do not have a problem allowing people to have 512-bit private keys.
>> The
>> > performance impact is imposed on themselves.  I also think that we
>> should
>> > permit 160-bit private keys for those people that belive 80-bit security
>> is
>> > useful.
>> > 
>> > In summary, I think that we should allow private keys to be between 160
>> and
>> > 512 bits.
>> That's no problem, but John indicates that X9.42 has a MINIMUM of 512,
>> which I consider unacceptable.
>> 
>> As far as I'm concerned people should be allowed to go up to |p|
>> 
>> -Ekr
>> 
>> 
>> -- 
>> [Eric Rescorla                                   ekr@rtfm.com]
>> 



From owner-ietf-smime@imc.org  Fri Feb 19 23:22:44 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA09114
	for <smime-archive@odin.ietf.org>; Fri, 19 Feb 1999 23:22:44 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id TAA14543
	for ietf-smime-bks; Fri, 19 Feb 1999 19:40:26 -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 TAA14538
	for <ietf-smime@imc.org>; Fri, 19 Feb 1999 19:40:23 -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 QAA07140 for <ietf-smime@imc.org>; Sat, 20 Feb 1999 16:44:49 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <91948228925317>; Sat, 20 Feb 1999 16:44:49 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: A New Triple-DES Key Wrap Algorithm
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Sat, 20 Feb 1999 16:44:49 (NZDT)
Message-ID: <91948228925317@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ Housley <housley@spyrus.com> wrote:
 
>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>    an IV of 0xc302e3c1ad8bb738.
 
>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use
>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.
 
Could you provide a source for the values used for the IV's in the text?  
Cryptographers get somewhat nervous about seeing magic numbers by themselves
in specs.
 
Peter.



From owner-ietf-smime@imc.org  Sat Feb 20 11:03:58 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA19852
	for <smime-archive@odin.ietf.org>; Sat, 20 Feb 1999 11:03:57 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA07065
	for ietf-smime-bks; Sat, 20 Feb 1999 07:14:53 -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 HAA07059
	for <ietf-smime@imc.org>; Sat, 20 Feb 1999 07:14:50 -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 EAA10426 for <ietf-smime@imc.org>; Sun, 21 Feb 1999 04:19:18 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <91952395831984>; Sun, 21 Feb 1999 04:19:18 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: More on KEKIdentifiers, and a suggested addition to CMS
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Sun, 21 Feb 1999 04:19:18 (NZDT)
Message-ID: <91952395831984@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I don't know what the final resolution on optional vs mandatory KEKIdentifiers 
was, but I note that PKCS #15, which AFAIK is the first non-S/MIME use of CMS 
KEK encryption, already has to explicitly state that KEKIdentifiers are null 
strings wherever they occur because they're not useful for anything (actually 
there's a "not recommended" special-case use for them, see below).  I think 
this proves my earlier point that there's going to be very little use for a 
KEKIdentifier outside S/MIME, so that making it optional would be a good idea.
 
Looking at the way KEKRecipientInfo is being used in PKCS #15, there's a 
rather obvious recipient type missing from CMS: Password-based encryption.  
PKCS #15 has a hack for this which puts the key derivation information into 
the KEKIdentifier (this being the special-case use mentioned above), but I'm 
sure this isn't what it was intended for because it isn't a key identifier at 
all but contains the AlgorithmIdentifier for the password processing.  What's 
really needed is a new recipient type, PasswordRecipientInfo.  Included below 
is a suggestion for this which could drop directly into the CMS draft.
 
Peter.
 
-- Snip --
 
6.2.4  PasswordRecipientInfo Type
 
   Recipient information using a user-supplied password is represented in the
   type PasswordRecipientInfo.  Each instance of PasswordRecipientInfo will
   transfer the content-encryption key to one or more recipients who have the
   previously agreed-upon password.
 
      PasswordRecipientInfo ::= SEQUENCE {
        version CMSVersion,  -- always set to 0
        keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
        keyEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
        encryptedKey EncryptedKey }
 
   The fields of type PasswordRecipientInfo have the following meanings:
 
      version is the syntax version number.  It shall always be 0.
 
      keyDerivationAlgorithm identifies the key-derivation algorithm, and any
      associated parameters, used to derive the key-encryption key from the
      user-supplied password.
 
      keyEncryptionAlgorithm identifies the content-encryption algorithm, and
      any associated parameters, used to encrypt the content-encryption key
      with the password-derived key-encryption key.
 
      encryptedKey is the result of encrypting the content-encryption key with
      the password-derived key-encryption key.
 
   The key derivation algorithms are:
 
      KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
        { IDENTIFIED BY id-PBKDF2 },
        ...
        }
 
    For key derivation, CMS implementations must include PBKDF2 [PKCS5v2].
                        
    For content (= key) encryption, CMS implementations must include Triple-DES 
    in CBC mode, should include RC2 in CBC mode, and may include other 
    algorithms (CAST-128, RC5, IDEA, Skipjack) and modes as required.  CMS 
    implementations should not include any KSG ciphers such as RC4.
 
-- Snip --
 
Comments:
 
The ContentEncryptionAlgorithmIdentifier is something like:
 
      ContentEncryptionAlgorithmIdentifier ::= {
        { IDENTIFIED BY des-ede3-cbc },
        { IDENTIFIED BY rc2CBC },
        { IDENTIFIED BY cast5CBC },
        { IDENTIFIED BY rc5CBC },
        { IDENTIFIED BY ideaCBC },
        { IDENTIFIED BY desCBC },
        ... -- ... and anything else you can think of, eg Skipjack
        }
 
but enumerating every possible one is superfluous as they're specified 
elsewhere.
 
The content is encrypted is as per the KEK algorithm, but using the IV given 
in the ContentEncryptionAlgorithmIdentifier instead of a fixed IV - this is 
just standard CMS content encryption.  The advantage of using standard OIDs is 
that it doesn't require defining a completely new set of OIDs which parallel 
all of the existing ones just to show that you're encrypting a key.  Another 
way to handle this is as EncryptedContentInfo (which just adds an extra 
SEQUENCE around the existing ContentEncryptionAlgorithmIdentifier + 
EncryptedContent (=EncryptedKey)), but this is probably going overboard.
 
(I'm prepared to accept a 'kekid [0] KEKIdentifier OPTIONAL' after the version 
 number if that's what's required to get people's grunt of approval for the 
 thing).
 
(Before people complain that you can't change the key wrap algorithm, if it 
 ever does become necessary to change it (and I thought the point of the 
 current key wrap design process was to build a solution once and for all), 
 all you need to do is increment the RecipientInfo version number and add 
 whatever you feel like).
 
Peter.
 



From owner-ietf-smime@imc.org  Sat Feb 20 17:06:22 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA22096
	for <smime-archive@odin.ietf.org>; Sat, 20 Feb 1999 17:06:21 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA08878
	for ietf-smime-bks; Sat, 20 Feb 1999 13:17:58 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA08873
	for <ietf-smime@imc.org>; Sat, 20 Feb 1999 13:17:56 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (dial01.spyrus.com [207.212.34.121]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id NAA20809; Sat, 20 Feb 1999 13:21:03 -0800 (PST)
Message-Id: <4.1.19990220160303.009a4290@mail.spyrus.com>
Message-Id: <4.1.19990220160303.009a4290@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Sat, 20 Feb 1999 16:17:39 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: burt@RSA.COM, djohnson@certicom.ca, schneier@counterpane.com,
        denny@tis.com, denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
        berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
        carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
        Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
        acc@tycho.ncsc.mil, bschanni@BayNetworks.com,
        dickie@EMPIRE.eclipse.ncsc.mil, jhs@tycho.ncsc.mil, jis@mit.edu,
        pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
        cjwagne@missi.ncsc.mil, balenson@tis.com, balenson@tis.com,
        jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov,
        daw@cs.berkeley.edu
In-Reply-To: <4.1.19990216102627.00998e10@mail.spyrus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All:

Right now, I am leaning toward the double encryption wrap algorithm.  I
think it will be easy to implement, and it yeilds a shorter result that the
OAEP method.  To convince myself that it was easy to implement, I did an
implementation.  It took me about two hours while watching an old Jimmy
Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
routines.  S/MIME v3 will require these algorithms for other capabilities
besides key wrapping.

If someone else is willing to do an implementation, I would like to compare
results.  This will allow a test vector to be included with the algorithm
description.

Does anyone have any strong objections to the double encryption wrap
algorithm being selected?

Russ


>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>
>Key Checksum
>
>The CMS Checksum Algorithm is used to provide an content-encryption key
>integrity check value.  The algorithm is:
>
>1.  Compute a 20 octet SHA-1 message digest on the 
>    content-encryption key.
>2.  Use the most significant (first) eight octets of the 
>    message digest value as the checksum value.
>
>Triple-DES Key Wrap
>
>1.  Set odd parity for each of the DES key octets comprising 
>    the content-encryption key, call the result CEK.
>2.  Compute a 8 octet key checksum value on CEK as described above,
>    call the result ICV.
>3.  Let CEKICV = CEK || ICV.
>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>    an IV of 0xc302e3c1ad8bb738.
>5.  Reverse the order of the ciphertext octets.  That is, the most
>    significant (first) octet is swapped with the least significant
>    (last) octet, and so on.  Call the result TEMP.
>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use 
>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.


From owner-ietf-smime@imc.org  Mon Feb 22 09:04:45 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA17725
	for <smime-archive@odin.ietf.org>; Mon, 22 Feb 1999 09:04:45 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id EAA18056
	for ietf-smime-bks; Mon, 22 Feb 1999 04:55:38 -0800 (PST)
Received: from ns0.eris.dera.gov.uk (ns0.eris.dera.gov.uk [128.98.1.1])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id EAA18052
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 04:55:36 -0800 (PST)
Received: (qmail 17514 invoked from network); 22 Feb 1999 13:00:07 -0000
Received: from unknown (HELO mail-relay.eris.dera.gov.uk) (128.98.2.7)
  by ns0.eris.dera.gov.uk with SMTP; 22 Feb 1999 13:00:07 -0000
Received: (qmail 23165 invoked from network); 22 Feb 1999 13:00:07 -0000
Received: from wottoway.eris.dera.gov.uk (HELO wottaway.eris.dera.gov.uk) (128.98.10.17)
  by mail-relay.eris.dera.gov.uk with SMTP; 22 Feb 1999 13:00:07 -0000
Received: by localhost with Microsoft MAPI; Mon, 22 Feb 1999 13:00:22 -0000
Message-ID: <01BE5E63.4E934480.w.ottaway@eris.dera.gov.uk>
From: William Ottaway <w.ottaway@eris.dera.gov.uk>
To: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Subject: Correct definition of ContentInfo in CMS-10
Date: Mon, 22 Feb 1999 13:00:21 -0000
X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Within the body of CMS 10 ContentInfo is defined as : -

ContentInfo ::= SEQUENCE {
        contentType ContentType,
        content [0] EXPLICIT ANY DEFINED BY contentType }

However, in the appendix ContentInfo is defined as : -

ContentInfo ::= SEQUENCE {
     contentType ContentType,
     content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }

I assume the one within the body (i.e. content not optional) is correct.

Bill.


"The Information contained in this E-Mail and any subsequent
correspondence is private and is intended solely for the intended
recipient(s).  For those other than the intended recipient any
disclosure, copying, distribution, or any action taken or omitted to
be taken in reliance on such information is prohibited and may be
unlawful."
____________________________________________________
William Ottaway BSc Hons CEng MBCS,
L323,                        Tel: +44 (0) 1684 894079
DERA Malvern,                Fax: +44 (0) 1684 896113
St. Andrews Road,            email: w.ottaway@eris.dera.gov.uk
Malvern,
Worcs,
WR14 3PS

All opinions are my own.



From owner-ietf-smime@imc.org  Mon Feb 22 09:50:50 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA18293
	for <smime-archive@odin.ietf.org>; Mon, 22 Feb 1999 09:50:49 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id FAA18577
	for ietf-smime-bks; Mon, 22 Feb 1999 05:53:25 -0800 (PST)
Received: from post.mail.demon.net (post-20.mail.demon.net [194.217.242.27])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id FAA18573
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 05:53:24 -0800 (PST)
Received: from [194.222.225.69] (helo=jrportable1)
	by post.mail.demon.net with smtp (Exim 2.10 #2)
	id 10Evs3-0005UZ-00; Mon, 22 Feb 1999 13:58:04 +0000
Message-ID: <000e01be5e69$90c35510$0a00000a@jrportable1>
From: "Ross demon" <ross@jgross.demon.co.uk>
To: "William Ottaway" <w.ottaway@eris.dera.gov.uk>, <ietf-smime@imc.org>
Subject: Re: Correct definition of ContentInfo in CMS-10
Date: Mon, 22 Feb 1999 13:45:08 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

I assume that content is not optional
-----Original Message-----
From: William Ottaway <w.ottaway@eris.dera.gov.uk>
To: 'ietf-smime@imc.org' <ietf-smime@imc.org>
Date: Monday, February 22, 1999 1:27 PM
Subject: Correct definition of ContentInfo in CMS-10


>Within the body of CMS 10 ContentInfo is defined as : -
>
>ContentInfo ::= SEQUENCE {
>        contentType ContentType,
>        content [0] EXPLICIT ANY DEFINED BY contentType }
>
>However, in the appendix ContentInfo is defined as : -
>
>ContentInfo ::= SEQUENCE {
>     contentType ContentType,
>     content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>
>I assume the one within the body (i.e. content not optional) is correct.
>
>Bill.
>
>
>"The Information contained in this E-Mail and any subsequent
>correspondence is private and is intended solely for the intended
>recipient(s).  For those other than the intended recipient any
>disclosure, copying, distribution, or any action taken or omitted to
>be taken in reliance on such information is prohibited and may be
>unlawful."
>____________________________________________________
>William Ottaway BSc Hons CEng MBCS,
>L323,                        Tel: +44 (0) 1684 894079
>DERA Malvern,                Fax: +44 (0) 1684 896113
>St. Andrews Road,            email: w.ottaway@eris.dera.gov.uk
>Malvern,
>Worcs,
>WR14 3PS
>
>All opinions are my own.
>



From owner-ietf-smime@imc.org  Mon Feb 22 10:20:12 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA18727
	for <smime-archive@odin.ietf.org>; Mon, 22 Feb 1999 10:20:11 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA18965
	for ietf-smime-bks; Mon, 22 Feb 1999 06:16:54 -0800 (PST)
Received: from post.mail.demon.net (finch-post-11.mail.demon.net [194.217.242.39])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA18961
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 06:16:53 -0800 (PST)
Received: from [194.222.225.69] (helo=jrwork)
	by post.mail.demon.net with smtp (Exim 2.12 #1)
	id 10EwEe-000380-00; Mon, 22 Feb 1999 14:21:24 +0000
Message-ID: <002001be5eb1$19538980$0400000a@jrwork>
From: "John Ross" <ross@jgross.demon.co.uk>
To: "William Ottaway" <w.ottaway@eris.dera.gov.uk>, <ietf-smime@imc.org>
Subject: Re: Correct definition of ContentInfo in CMS-10
Date: Mon, 22 Feb 1999 14:17:13 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

I assume that content is not optional
-----Original Message-----
From: William Ottaway <w.ottaway@eris.dera.gov.uk>
To: 'ietf-smime@imc.org' <ietf-smime@imc.org>
Date: Monday, February 22, 1999 5:27 AM
Subject: Correct definition of ContentInfo in CMS-10


>Within the body of CMS 10 ContentInfo is defined as : -
>
>ContentInfo ::= SEQUENCE {
>        contentType ContentType,
>        content [0] EXPLICIT ANY DEFINED BY contentType }
>
>However, in the appendix ContentInfo is defined as : -
>
>ContentInfo ::= SEQUENCE {
>     contentType ContentType,
>     content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>
>I assume the one within the body (i.e. content not optional) is correct.
>
>Bill.
>
>
>"The Information contained in this E-Mail and any subsequent
>correspondence is private and is intended solely for the intended
>recipient(s).  For those other than the intended recipient any
>disclosure, copying, distribution, or any action taken or omitted to
>be taken in reliance on such information is prohibited and may be
>unlawful."
>____________________________________________________
>William Ottaway BSc Hons CEng MBCS,
>L323,                        Tel: +44 (0) 1684 894079
>DERA Malvern,                Fax: +44 (0) 1684 896113
>St. Andrews Road,            email: w.ottaway@eris.dera.gov.uk
>Malvern,
>Worcs,
>WR14 3PS
>
>All opinions are my own.
>



From owner-ietf-smime@imc.org  Mon Feb 22 10:41:00 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA19005
	for <smime-archive@odin.ietf.org>; Mon, 22 Feb 1999 10:41:00 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA19300
	for ietf-smime-bks; Mon, 22 Feb 1999 06:42:31 -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 GAA19296
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 06:42:26 -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 DAA03283; Tue, 23 Feb 1999 03:46:29 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <91969478808191>; Tue, 23 Feb 1999 03:46:28 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org, ross@jgross.demon.co.uk
Subject: Re: Correct definition of ContentInfo in CMS-10
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Tue, 23 Feb 1999 03:46:28 (NZDT)
Message-ID: <91969478808191@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

>>Within the body of CMS 10 ContentInfo is defined as : -
>>
>>ContentInfo ::= SEQUENCE {
>>        contentType ContentType,
>>        content [0] EXPLICIT ANY DEFINED BY contentType }
>>
>>However, in the appendix ContentInfo is defined as : -
>>
>>ContentInfo ::= SEQUENCE {
>>     contentType ContentType,
>>     content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>>
>>I assume the one within the body (i.e. content not optional) is correct.
 
>I assume that content is not optional
 
The content is optional.  Think about how detached sigs work.
 
Peter.



From owner-ietf-smime@imc.org  Mon Feb 22 10:51:00 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA19067
	for <smime-archive@odin.ietf.org>; Mon, 22 Feb 1999 10:51:00 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA19244
	for ietf-smime-bks; Mon, 22 Feb 1999 06:37:41 -0800 (PST)
Received: from hq.vni.net (hq.vni.net [205.252.27.1])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA19240
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 06:37:40 -0800 (PST)
Received: from ieca.com (mva-aa-051.vni.net [207.226.159.51])
	by hq.vni.net (8.8.8/8.8.5) with ESMTP id JAA18093;
	Mon, 22 Feb 1999 09:42:15 -0500 (EST)
Message-ID: <36D16CC0.5B442494@ieca.com>
Date: Mon, 22 Feb 1999 09:42:09 -0500
From: "Bonatti, Chris" <bonattic@ieca.com>
Organization: IECA, Inc.
X-Mailer: Mozilla 4.04 [en] (Win95; U)
MIME-Version: 1.0
To: William Ottaway <w.ottaway@eris.dera.gov.uk>,
        "'ietf-smime@imc.org'" <ietf-smime@imc.org>,
        Russ Housley <housley@spyrus.com>
Subject: Re: Correct definition of ContentInfo in CMS-10
References: <01BE5E63.4E934480.w.ottaway@eris.dera.gov.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

    I would submit that the 'content' field in the General Syntax section is
correct.  The instance of OPTIONAL in the appendix must be a copy artifact
from the 'EncapsulatedContentInfo', in which the 'content' field is
correctly optional.  I can see no legitimate use of CMS in which you would
send only a 'contentType' OID.  Even if someone were sending a "detached
content" in a separate body part, either MIME or X.400 mail systems are
perfectly capable of attaching a content types for that information without
utilizing this structure.

Russ,

    Browsing through my historical archive of now "non-existent" I-Ds, I see
that the OPTIONAL tag seems to have fallen out of the General Syntax
starting in version 3 of CMS.  Do you remember the reasoning behind the
change?

Chris



 ---------------------------------------------------------------
 |  International Electronic Communication Analysts, Inc.      |
 |  Christopher D. Bonatti             15309 Turkey Foot Road  |
 |  Principal Engineer              Darnestown, Md 20878-3640  |
 |  bonattic@ieca.com   Tel: 301-208-2349   Fax: 301-208-2379  |
 ---------------------------------------------------------------



____________________

William Ottaway wrote:

> Within the body of CMS 10 ContentInfo is defined as : -
>
> ContentInfo ::= SEQUENCE {
>         contentType ContentType,
>         content [0] EXPLICIT ANY DEFINED BY contentType }
>
> However, in the appendix ContentInfo is defined as : -
>
> ContentInfo ::= SEQUENCE {
>      contentType ContentType,
>      content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>
> I assume the one within the body (i.e. content not optional) is correct.
>
> Bill.
>
> "The Information contained in this E-Mail and any subsequent
> correspondence is private and is intended solely for the intended
> recipient(s).  For those other than the intended recipient any
> disclosure, copying, distribution, or any action taken or omitted to
> be taken in reliance on such information is prohibited and may be
> unlawful."
> ____________________________________________________
> William Ottaway BSc Hons CEng MBCS,
> L323,                        Tel: +44 (0) 1684 894079
> DERA Malvern,                Fax: +44 (0) 1684 896113
> St. Andrews Road,            email: w.ottaway@eris.dera.gov.uk
> Malvern,
> Worcs,
> WR14 3PS
>
> All opinions are my own.





From owner-ietf-smime@imc.org  Mon Feb 22 11:42:12 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA19756
	for <smime-archive@odin.ietf.org>; Mon, 22 Feb 1999 11:42:11 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA19809
	for ietf-smime-bks; Mon, 22 Feb 1999 07:45:58 -0800 (PST)
Received: from post.mail.demon.net (post-20.mail.demon.net [194.217.242.27])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA19805
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 07:45:52 -0800 (PST)
Received: from [194.222.225.69] (helo=jrportable1)
	by post.mail.demon.net with smtp (Exim 2.10 #2)
	id 10Excq-0005Ff-00; Mon, 22 Feb 1999 15:50:28 +0000
Message-ID: <002901be5e79$4451d520$0a00000a@jrportable1>
From: "Ross demon" <ross@jgross.demon.co.uk>
To: <pgut001@cs.aucKland.ac.nz>, <ietf-smime@imc.org>
Subject: Re: Correct definition of ContentInfo in CMS-10
Date: Mon, 22 Feb 1999 15:37:26 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Peter,

When using detached signatures, I agree that the eContent is absent, but the
content is still required to convey the SignedData and hence the signature.
-----Original Message-----
From: Peter Gutmann <pgut001@cs.aucKland.ac.nz>
To: ietf-smime@imc.org <ietf-smime@imc.org>; ross@jgross.demon.co.uk
<ross@jgross.demon.co.uk>
Date: Monday, February 22, 1999 3:04 PM
Subject: Re: Correct definition of ContentInfo in CMS-10


>>>Within the body of CMS 10 ContentInfo is defined as : -
>>>
>>>ContentInfo ::= SEQUENCE {
>>>        contentType ContentType,
>>>        content [0] EXPLICIT ANY DEFINED BY contentType }
>>>
>>>However, in the appendix ContentInfo is defined as : -
>>>
>>>ContentInfo ::= SEQUENCE {
>>>     contentType ContentType,
>>>     content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>>>
>>>I assume the one within the body (i.e. content not optional) is correct.
>
>>I assume that content is not optional
>
>The content is optional.  Think about how detached sigs work.
>
>Peter.
>



From owner-ietf-smime@imc.org  Mon Feb 22 12:20:28 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA20068
	for <smime-archive@odin.ietf.org>; Mon, 22 Feb 1999 12:20:27 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA19992
	for ietf-smime-bks; Mon, 22 Feb 1999 08:06:41 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA19988
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 08:06:19 -0800 (PST)
Received: from domino2.certicom.com (domino2.certicom.com [10.0.1.25])
	by eng1.certicom.com (8.8.7/8.8.7) with SMTP id LAA00383;
	Mon, 22 Feb 1999 11:12:43 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.1  (569.2 2-6-1998))  id 85256720.0058E324 ; Mon, 22 Feb 1999 11:10:53 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: Russ Housley <housley@spyrus.com>
cc: ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
        schneier@counterpane.com, denny@tis.com,
        denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
        berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
        carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
        Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
        acc@tycho.ncsc.mil, bschanni@BayNetworks.com,
        dickie@EMPIRE.eclipse.ncsc.mil, jhs@tycho.ncsc.mil, jis@mit.edu,
        pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
        cjwagne@missi.ncsc.mil, balenson@tis.com, jlinn@securitydynamics.com,
        smid@csmes.ncsl.nist.gov, daw@cs.berkeley.edu
Message-ID: <85256720.0057DF83.00@domino2.certicom.com>
Date: Mon, 22 Feb 1999 11:07:32 -0500
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

Here are some thoughts.

1. Use of HMAC (using SHA-1) versus simple SHA-1 of the key may give
security properties that are easier to show and be more conforming to
existing stds. It can also grow easier, one never knows how these things
might grow.
2. You need to indicate if the parity bits are checked or not on recovery.
I suggest that they should be checked, since they are set.  This provides
some more integrity.
3. The use of fixed IV's means that the first block of each encryption is
less protected than the subsequent blocks.  This makes analysis more
difficult.  If I were going to attack this method, I would concentrate on
the less protected blocks, trying to find a match after less than 2**32
encryptions.  This is not a complete idea but may be a start.  That is, the
middle 2 blocks seem to collide in 2**32 encryptions, but the end blocks
might collide sooner.
4. I still think you should try to list some goals for this method.  For
example, 64 bits of integrity, every bit depends on every other bit,
confidentiality for key, etc.

Don Johnson




Russ Housley <housley@spyrus.com> on 02/20/99 04:17:39 PM

To:   ietf-smime@imc.org
cc:   burt@RSA.COM, djohnson@certicom.ca, schneier@counterpane.com,
      denny@tis.com, denning@cs.cosc.georgetown.edu, omura@cylink.com,
      mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
      smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
      berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
      carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
      Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
      acc@tycho.ncsc.mil, bschanni@BayNetworks.com,
      dickie@EMPIRE.eclipse.ncsc.mil, jhs@tycho.ncsc.mil, jis@mit.edu,
      pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
      cjwagne@missi.ncsc.mil, balenson@tis.com, balenson@tis.com,
      jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov,
      daw@cs.berkeley.edu (bcc: Don Johnson/Certicom)
Subject:  Re: A New Triple-DES Key Wrap Algorithm




All:

Right now, I am leaning toward the double encryption wrap algorithm.  I
think it will be easy to implement, and it yeilds a shorter result that the
OAEP method.  To convince myself that it was easy to implement, I did an
implementation.  It took me about two hours while watching an old Jimmy
Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
routines.  S/MIME v3 will require these algorithms for other capabilities
besides key wrapping.

If someone else is willing to do an implementation, I would like to compare
results.  This will allow a test vector to be included with the algorithm
description.

Does anyone have any strong objections to the double encryption wrap
algorithm being selected?

Russ


>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>
>Key Checksum
>
>The CMS Checksum Algorithm is used to provide an content-encryption key
>integrity check value.  The algorithm is:
>
>1.  Compute a 20 octet SHA-1 message digest on the
>    content-encryption key.
>2.  Use the most significant (first) eight octets of the
>    message digest value as the checksum value.
>
>Triple-DES Key Wrap
>
>1.  Set odd parity for each of the DES key octets comprising
>    the content-encryption key, call the result CEK.
>2.  Compute a 8 octet key checksum value on CEK as described above,
>    call the result ICV.
>3.  Let CEKICV = CEK || ICV.
>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>    an IV of 0xc302e3c1ad8bb738.
>5.  Reverse the order of the ciphertext octets.  That is, the most
>    significant (first) octet is swapped with the least significant
>    (last) octet, and so on.  Call the result TEMP.
>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use
>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.






From owner-ietf-smime@imc.org  Mon Feb 22 12:21:26 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA20080
	for <smime-archive@odin.ietf.org>; Mon, 22 Feb 1999 12:21:25 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA20153
	for ietf-smime-bks; Mon, 22 Feb 1999 08:21:12 -0800 (PST)
Received: from oe8.briank.com (oe8.briank.com [209.133.59.211])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA20149
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 08:21:08 -0800 (PST)
Received: from cs.stanford.edu (blatz.briank.com [209.133.59.212])
	by oe8.briank.com (8.8.8/8.8.8) with ESMTP id IAA12600;
	Mon, 22 Feb 1999 08:24:52 -0800 (PST)
	(envelope-from briank@cs.stanford.edu)
Message-ID: <36D184D1.EBA99DB4@cs.stanford.edu>
Date: Mon, 22 Feb 1999 08:24:50 -0800
From: Brian Korver <briank@cs.stanford.edu>
Reply-To: briank@cs.stanford.edu
X-Mailer: Mozilla 4.5 (Macintosh; I; PPC)
X-Accept-Language: en
MIME-Version: 1.0
To: William Ottaway <w.ottaway@eris.dera.gov.uk>
CC: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Subject: Re: Correct definition of ContentInfo in CMS-10
References: <01BE5E63.4E934480.w.ottaway@eris.dera.gov.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

William Ottaway wrote:
> 
> Within the body of CMS 10 ContentInfo is defined as : -
> 
> ContentInfo ::= SEQUENCE {
>         contentType ContentType,
>         content [0] EXPLICIT ANY DEFINED BY contentType }
> 
> However, in the appendix ContentInfo is defined as : -
> 
> ContentInfo ::= SEQUENCE {
>      contentType ContentType,
>      content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
> 
> I assume the one within the body (i.e. content not optional) is correct.
> 
> Bill.

In PKCS#7, content is OPTIONAL.  But now with EncapsulatedContentInfo, CMS
doesn't use ContentInfo anyplace but the outer wrapper.

I'd be inclined to leave it OPTIONAL (I mean, what does it hurt?).  S/MIME
might not need it, but someone else might....


From owner-ietf-smime@imc.org  Mon Feb 22 13:12:36 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA20625
	for <smime-archive@odin.ietf.org>; Mon, 22 Feb 1999 13:12:36 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA20589
	for ietf-smime-bks; Mon, 22 Feb 1999 09:08:53 -0800 (PST)
Received: from speedy.rtfm.com ([208.217.207.85])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA20585
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 09:08:52 -0800 (PST)
Received: from localhost (ekr@localhost) by speedy.rtfm.com (8.9.1/8.6.4) with SMTP id JAA26885; Mon, 22 Feb 1999 09:14:21 -0800 (PST)
Message-Id: <199902221714.JAA26885@speedy.rtfm.com>
To: "Linn, John" <jlinn@securitydynamics.com>
cc: "'ietf-smime@imc.org'" <ietf-smime@imc.org>,
        "Kaliski,
    Burt" <bkaliski@securitydynamics.com>
Subject: Re: Comments on x942-05 draft 
In-reply-to: Your message of "Fri, 19 Feb 1999 08:50:30 EST."
             <D104150098E6D111B7830000F8D90AE845A4B4@exna02.securitydynamics.com> 
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: Mon, 22 Feb 1999 09:14:20 -0800
From: Eric Rescorla <ekr@rtfm.com>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

> Here's some analysis on the RC2 effective key issue, thanks to Burt Kaliski.
[...]
Clearly we do have to defend against the partition attack on effective
key lengths. 

As John suggests, I propose that we place the RC2 effective key 
length into the the suppPubInfo. However, this leaves us with
an unfortunate inconsistency, in that for some algorithms it's
the length and some it's the effective length. One solution
to this would be to revert to what Stephen Henson has termed
the X/8 strategy. I.e. make the effective and real lengths
the same for RC2. This is slightly more tasteful than having
a bunch of special case language.

Comments? I'd like to get this settled quickly.

-Ekr
[Eric Rescorla                                   ekr@rtfm.com]



From owner-ietf-smime@imc.org  Mon Feb 22 14:16:50 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA21660
	for <smime-archive@odin.ietf.org>; Mon, 22 Feb 1999 14:16:50 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA21029
	for ietf-smime-bks; Mon, 22 Feb 1999 09:46:36 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id JAA21023
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 09:46:32 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Mon, 22 Feb 1999 10:50:29 -0700
Message-Id: <s6d13675.049@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Mon, 22 Feb 1999 10:50:12 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <ietf-smime@imc.org>, <housley@spyrus.com>
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <bschanni@BayNetworks.com>,
        <kent@bbn.com>, <pcain@bbn.com>, <mhetzel@bell-labs.com>,
        <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <daw@cs.berkeley.edu>,
        <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>,
        <omura@cylink.com>, <dickie@EMPIRE.eclipse.ncsc.mil>,
        <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <benaloh@microsoft.com>,
        <bfox@microsoft.com>, <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>,
        <desmedt@uwm.edu>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id JAA21025
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 8bit

Russ,

There is a possible attack on the double encryption wrap algorithm 
that is a result of the constant IV construction. For that reason, I would
strongly prefer the OAEP construction. Although it may look complicated
because there are more steps, the number of line of code is really of no 
consequence at all, but the execution time is important for performance.

Also, I continue to insist that we should not invent n-squared algorithm 
IDs for every possible combination of CEK algorithm and key length
plus KEK algorithm and key length. Instead, I would _greatly_ prefer to 
first wrap the CEK in a ASN.1 structure that defines the CEK algorithm 
and key length, then whiten that structure with OAEP, encrypt the resulting
string with the KEK algorithm, and then provide generic instructions as
to how to decode the result, either by wrapping the entire wrapped key 
blob in ASN.1 (preferably) or some other way.

Here's the attack on the double-encryption wrapping:

Although most exhaustive search engines divide up the search process
across multiple machines in order to find a single key as quickly as possible
(e.g., the series of RSA challenge ciphers), there is another approach
based on the use of an associative memory that I wrote up back
in the '70's but never published.  I call it my "vacuum-cleaner" attack.

Assume for the sake or argument that there are lots and lots of keys
that have been or will be used to encrypt a known plaintext or 
stereotyped message.  (This is a standard assumption in cryptanalysis.) 
Actually, the attack will succeed with a somewhat weaker condition --
it isn't necessary to actually know the plaintext -- it is sufficient that
the plaintext be unvarying.

Let's also assume that each key is used for some interesting purpose --
sufficiently interesting that it may not be necessary to crack each and every
key -- just a few would be useful.  For example, if I were trying to carry on 
a credit card attack, I don't have to find the key for Bill Gates' or 
Donald Trump's credit card -- just about anyone's will do, and the more 
the merrier.

So for every new key that I have the engine try, I contrive to compare 
the result of encrypting the known plaintext against millions of valid 
ciphertexts that have been intercepted, looking for a match.  Assuming 
an effectively inexhaustible supply of ciphertexts is available, this attack 
multiplies the effectiveness of the key search engine by an order of a million
or more, depending on the size of the associative memory that is available.

(The use of an associative memory isn't essential -- it was just a gedanken
experiment to speed up the comparison process without requiring sorting.)

Two things should be noted.  First, this attack is independent of the KEK 
encryption algorithm used, assuming a fixed block size.  In other words, 
this would apply to single-DES, triple-DES, umpty-DES, 2048-bit RSA,
or whatever, assuming a constant session key and constant padding.

Second, the attack is also independent of the length or type of session 
key that is used, except that the yield is a Birthday Problem function of the
length of the key.  But given a fixed input, i.e., no random whitening or 
changing IV, then two or more matching outputs must imply a matching
session key.  

This leads to a rather surprising result -- even if the KEK performs double 
encryption using triple-DES (or any other algorithm without whitening)
to wrap a 40 bit key, two matching session keys can be found with 
approximately 50% probability after only 2^20 or a million or so session 
keys have been generated.

Perhaps more surprisingly, at least to people who haven't been down this path,
changing session keys more rapidly may hurt more than it helps -- it just 
exposes that many more keys to attack. Changing the session key often 
in the middle of a session may help limit the ability of the attacker to 
access the entire message, and hence limits the attacker's "take," but it 
increases the chances that a potentially interesting fragment of text 
may be exposed.

I'm sure that someone would observe that sending even a million content 
encryption key encrypted in a constant KEK would be extremely unlikely
in an S/MIME context, but whether that would really be true would require
a more subtle, protocol-dependent analysis than I would care to make,
and in addition I very much want to standardize on one key wrapping 
algorithm that is protocol independent, and not just for S/MIME.

Obviously the above attack can be defeated by prepending some 
additional randomness or by changing the IV. But is also what the OAEP
approach does, and rather more elegantly.  By the time we have to add
either a changing IV or some additional randomness (how much would be
required would have to be decided) the length would probably be close
to that required for OAEP, which is a much more general solution.

In my mind, at least, some extra bytes in the wrapped key is no big deal,
but I would like the efficiency to be a good as possible. Triple-DES is 
expensive enough in terms of computational efficiency in software, 
especially in terms of the initial key expansion, and doing it twice 
would be worse yet.

Because the new export regulations permit the use of double the key length 
used for data encryption to be used for key encryption, we are going to be
using triple-DES in encrypt-decrypt-encrypt mode with only two keys (A-B-A) for
key wrapping of all export-grade CEK keys.

This can be optimized by saving the key expansion of the first encryption, and 
then reusing it for the final encryption.  This technique could potentially be 
extended to the double encryption wrapping algorithm, by saving the key  
expansion used for all three steps, but in order to do that the "double-triple-DES"
algorithm would probably have to be a single algorithm that is invoked --
it would be quite difficult to securely save state across two separate encryption
operations.

So my preference, as I said earlier, would be to wrap the CEK in ASN.1, 
whiten with OAEP, and then encrypt using whatever KEK algorithm and 
key length is required, so we don't have to keep re-analyzing this problem 
for every new CEK or KEK algorithm or key length.

If we can define appropriate algorithm IDs, I'm willing and eager to adopt such
a standard for  _all_ wrapped keys generated and used within our Novell 
International Cryptographic Infrastructure (NICI), even before S/MIME v3 
progresses to a full standard.  I'd be willing to assign an algorithm OID from the 
Novell tree, or we could probably get one from PKCS if there would be any 
problem getting one assigned by the IANA.

Regards,

Bob


> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
All:

Right now, I am leaning toward the double encryption wrap algorithm.  I
think it will be easy to implement, and it yeilds a shorter result that the
OAEP method.  To convince myself that it was easy to implement, I did an
implementation.  It took me about two hours while watching an old Jimmy
Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
routines.  S/MIME v3 will require these algorithms for other capabilities
besides key wrapping.

If someone else is willing to do an implementation, I would like to compare
results.  This will allow a test vector to be included with the algorithm
description.

Does anyone have any strong objections to the double encryption wrap
algorithm being selected?

Russ


>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>
>Key Checksum
>
>The CMS Checksum Algorithm is used to provide an content-encryption key
>integrity check value.  The algorithm is:
>
>1.  Compute a 20 octet SHA-1 message digest on the 
>    content-encryption key.
>2.  Use the most significant (first) eight octets of the 
>    message digest value as the checksum value.
>
>Triple-DES Key Wrap
>
>1.  Set odd parity for each of the DES key octets comprising 
>    the content-encryption key, call the result CEK.
>2.  Compute a 8 octet key checksum value on CEK as described above,
>    call the result ICV.
>3.  Let CEKICV = CEK || ICV.
>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>    an IV of 0xc302e3c1ad8bb738.
>5.  Reverse the order of the ciphertext octets.  That is, the most
>    significant (first) octet is swapped with the least significant
>    (last) octet, and so on.  Call the result TEMP.
>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use 
>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.

Robert R. Jueneman
Security Architect
Network Security Development
Novell, Inc.
122 East 1700 South
Provo, UT 84606
bjueneman@novell.com
1-801-861-7387


From owner-ietf-smime@imc.org  Tue Feb 23 00:07:04 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA29444
	for <smime-archive@odin.ietf.org>; Tue, 23 Feb 1999 00:07:03 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id UAA06279
	for ietf-smime-bks; Mon, 22 Feb 1999 20:05:27 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA06252
	for <ietf-smime@imc.org>; Mon, 22 Feb 1999 20:05:22 -0800 (PST)
Received: by dfssl.exchange.microsoft.com with Internet Mail Service (5.5.2448.0)
	id <FPK0GMG8>; Mon, 22 Feb 1999 19:45:46 -0800
Message-ID: <2FBF98FC7852CF11912A0000000000010ECB5D20@DINO>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'Russ Housley'" <housley@spyrus.com>, ietf-smime@imc.org
Cc: burt@RSA.COM, djohnson@certicom.ca, schneier@counterpane.com,
        denny@tis.com, denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, Josh Benaloh <benaloh@microsoft.com>,
        brickell@certco.com, smatyas@us.ibm.com, paulv@entrust.com,
        merkle@parc.xerox.com, berson@anagram.com, desmedt@uwm.edu,
        rivest@theory.lcs.mit.edu, carlisle.adams@entrust.com, ams@terisa.com,
        ekr@rtfm.com, Blake.greenlee@greenlee.com, cme@ACM.ORG,
        "Barb Fox (Exchange)" <bfox@EXCHANGE.MICROSOFT.com>,
        acc@tycho.ncsc.mil, bschanni@BayNetworks.com,
        dickie@EMPIRE.eclipse.ncsc.mil, jhs@tycho.ncsc.mil, jis@mit.edu,
        pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
        cjwagne@missi.ncsc.mil, balenson@tis.com, balenson@tis.com,
        jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov,
        daw@cs.berkeley.edu
Subject: RE: A New Triple-DES Key Wrap Algorithm
Date: Sat, 20 Feb 1999 18:26:11 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
	charset="windows-1252"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I agree with the amount of time that it takes to implement with a good
library.  It took me about 1.5 hours, but I was listing to A Prairie Home
Companion rather than watching a Jimmy Stewart movie.

The most difficult part of the process was convencing my decode routines
that PKCS#1 padding was not required to exist on the object.

Before you start producing test vectors, I want to see the expansion of the
algorithm to deal with the problems of encryption key material which does
not pad out to 8 byte boundries. What are you planning to do with lengths or
known padding for doing 40-bit RC2 keys.

jim


-----Original Message-----
From: Russ Housley [mailto:housley@spyrus.com]
Sent: Saturday, February 20, 1999 1:18 PM
To: ietf-smime@imc.org

All:

Right now, I am leaning toward the double encryption wrap algorithm.  I
think it will be easy to implement, and it yeilds a shorter result that the
OAEP method.  To convince myself that it was easy to implement, I did an
implementation.  It took me about two hours while watching an old Jimmy
Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
routines.  S/MIME v3 will require these algorithms for other capabilities
besides key wrapping.

If someone else is willing to do an implementation, I would like to compare
results.  This will allow a test vector to be included with the algorithm
description.

Does anyone have any strong objections to the double encryption wrap
algorithm being selected?

Russ


>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>
>Key Checksum
>
>The CMS Checksum Algorithm is used to provide an content-encryption key
>integrity check value.  The algorithm is:
>
>1.  Compute a 20 octet SHA-1 message digest on the 
>    content-encryption key.
>2.  Use the most significant (first) eight octets of the 
>    message digest value as the checksum value.
>
>Triple-DES Key Wrap
>
>1.  Set odd parity for each of the DES key octets comprising 
>    the content-encryption key, call the result CEK.
>2.  Compute a 8 octet key checksum value on CEK as described above,
>    call the result ICV.
>3.  Let CEKICV = CEK || ICV.
>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>    an IV of 0xc302e3c1ad8bb738.
>5.  Reverse the order of the ciphertext octets.  That is, the most
>    significant (first) octet is swapped with the least significant
>    (last) octet, and so on.  Call the result TEMP.
>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use 
>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.


From owner-ietf-smime@imc.org  Tue Feb 23 05:05:17 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA07634
	for <smime-archive@odin.ietf.org>; Tue, 23 Feb 1999 05:05:16 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id BAA22321
	for ietf-smime-bks; Tue, 23 Feb 1999 01:04:53 -0800 (PST)
Received: from hinge.mistral.co.uk (hinge.mistral.co.uk [195.184.228.15])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA22317
	for <ietf-smime@imc.org>; Tue, 23 Feb 1999 01:04:51 -0800 (PST)
Received: from d1-s40-72-telehouse.mistral.co.uk (d1-s40-72-telehouse.mistral.co.uk [195.184.228.72]) by hinge.mistral.co.uk (8.8.5/8.6.9) with SMTP id JAA18300; Tue, 23 Feb 1999 09:10:19 GMT
Received: by d1-s40-72-telehouse.mistral.co.uk with Microsoft Mail
	id <01BE5F0C.0F463C20@d1-s40-72-telehouse.mistral.co.uk>; Tue, 23 Feb 1999 09:08:21 -0000
Message-ID: <01BE5F0C.0F463C20@d1-s40-72-telehouse.mistral.co.uk>
From: Darren Harter <dharter@sapher.com>
To: "'pgut001@cs.auckland.ac.nz'" <pgut001@cs.aucKland.ac.nz>,
        "ietf-smime@imc.org" <ietf-smime@imc.org>,
        "ross@jgross.demon.co.uk" <ross@jgross.demon.co.uk>
Subject: RE: Correct definition of ContentInfo in CMS-10
Date: Tue, 23 Feb 1999 08:41:07 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id BAA22318
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 8bit

Peter,

You would be correct if we were talking about PKCS#7 where ContentInfo was used within SignedData to carry the content.  This would clearly have to be optional in the detached signature case.  But, in CMS we now only use ContentInfo for carrying SignedData, EnvelopedData etc., so even when detached signatures are being used the Content field of ContentInfo must be present to carry your SignedData.

I agree with John and other posters that the definition in the main body of the document is correct.  Content is not optional.

Regards,

Darren

--------------------------------------------------------------------------------
Darren Harter BSc (Hons) CEng MBCS
Entegrity Solutions
E-Mail:	dharter@sapher.com
Tel:	+44 (0) 1452 371 383, or +44 (0) 181 876 8666
Fax:	+44 (0) 1452 371 384, or +44 (0) 181 876 8660
Cell:	+44 (0) 7801 812 850


-----Original Message-----
From:	Peter Gutmann [SMTP:pgut001@cs.auckland.ac.nz]
Sent:	Tuesday, February 23, 1999 3:46 AM
To:	ietf-smime@imc.org; ross@jgross.demon.co.uk
Subject:	Re: Correct definition of ContentInfo in CMS-10
 
The content is optional.  Think about how detached sigs work.
 
Peter.




From owner-ietf-smime@imc.org  Tue Feb 23 10:12:12 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA09655
	for <smime-archive@odin.ietf.org>; Tue, 23 Feb 1999 10:12:11 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA00647
	for ietf-smime-bks; Tue, 23 Feb 1999 06:02:22 -0800 (PST)
Received: from post.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA00643
	for <ietf-smime@imc.org>; Tue, 23 Feb 1999 06:02:20 -0800 (PST)
Received: from [193.237.150.98] (helo=drh-consultancy.demon.co.uk)
	by post.mail.demon.net with esmtp (Exim 2.12 #1)
	id 10FIUA-0007FP-00
	for ietf-smime@imc.org; Tue, 23 Feb 1999 14:06:54 +0000
Message-ID: <36D2AC39.1990CF9C@drh-consultancy.demon.co.uk>
Date: Tue, 23 Feb 1999 13:25:13 +0000
From: Dr Stephen Henson <shenson@drh-consultancy.demon.co.uk>
Organization: Dr S N Henson
X-Mailer: Mozilla 4.08 [en] (Win95; U)
MIME-Version: 1.0
To: "ietf-smime@imc.org" <ietf-smime@imc.org>
Subject: Re: A New Triple-DES Key Wrap Algorithm
References: <2FBF98FC7852CF11912A0000000000010ECB5D20@DINO>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

I originally put this forward as a throw away comment but since Burt
Kaliski seemed to like the idea (it was me that made the initial
suggestion: I think the quoting got messed up somewhere) I'll suggest it
again a bit more formally as a possible alternative.

The idea is very simple. Treat the mailing list key (MLK) exactly as if
it was a S-S DH shared secret ZZ. In particular a salt is mandatory and
the KEK is derived using X9.42.

IMHO this has several things in its favour.

1. Any conformant CMS implementation will already have implemented the
key derivation algorithm and test vectors already exist: which have been
independently checked.

2. The problem of using the same KEK a large number of times is avoided
because the mandatory use of a salt ensures the KEK is different each
time for a given MLK (assuming the salts are different of course).

3. The same MLK can be used with algortihms with different key sizes.

4. If there is a weakness with this algortithm then I would suggest
there must also be a weakness in S-S DH in which case we shouldn't be
using either.

Steve.
-- 
Dr Stephen N. Henson. UK based freelance Cryptographic Consultant. 
For info see homepage at http://www.drh-consultancy.demon.co.uk/
Email: shenson@drh-consultancy.demon.co.uk
NOTE NEW (13/12/98) PGP key: via homepage.




From owner-ietf-smime@imc.org  Tue Feb 23 12:02:59 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA11576
	for <smime-archive@odin.ietf.org>; Tue, 23 Feb 1999 12:02:58 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA01654
	for ietf-smime-bks; Tue, 23 Feb 1999 07:58:33 -0800 (PST)
Received: from speedy.rtfm.com ([208.217.207.85])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA01650
	for <ietf-smime@imc.org>; Tue, 23 Feb 1999 07:58:32 -0800 (PST)
Received: (ekr@localhost) by speedy.rtfm.com (8.9.1/8.6.4) id IAA06763; Tue, 23 Feb 1999 08:04:23 -0800 (PST)
To: Dr Stephen Henson <shenson@drh-consultancy.demon.co.uk>
Cc: "ietf-smime@imc.org" <ietf-smime@imc.org>
Subject: Re: A New Triple-DES Key Wrap Algorithm
References: <2FBF98FC7852CF11912A0000000000010ECB5D20@DINO> <36D2AC39.1990CF9C@drh-consultancy.demon.co.uk>
From: EKR <ekr@rtfm.com>
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 23 Feb 1999 08:04:22 -0800
In-Reply-To: Dr Stephen Henson's message of "Tue, 23 Feb 1999 13:25:13 +0000"
Message-ID: <kjr9rhp0mx.fsf@speedy.rtfm.com>
Lines: 15
X-Mailer: Gnus v5.6.43/XEmacs 20.4 - "Emerald"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Dr Stephen Henson <shenson@drh-consultancy.demon.co.uk> writes:
> I originally put this forward as a throw away comment but since Burt
> Kaliski seemed to like the idea (it was me that made the initial
> suggestion: I think the quoting got messed up somewhere) I'll suggest it
> again a bit more formally as a possible alternative.
> 
> The idea is very simple. Treat the mailing list key (MLK) exactly as if
> it was a S-S DH shared secret ZZ. In particular a salt is mandatory and
> the KEK is derived using X9.42.
I think this is a good idea. I second it.

-Ekr

-- 
[Eric Rescorla                                   ekr@rtfm.com]


From owner-ietf-smime@imc.org  Wed Feb 24 08:26:17 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA16057
	for <smime-archive@odin.ietf.org>; Wed, 24 Feb 1999 08:26:16 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id EAA13923
	for ietf-smime-bks; Wed, 24 Feb 1999 04:03:50 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id EAA13919
	for <ietf-smime@imc.org>; Wed, 24 Feb 1999 04:03:49 -0800 (PST)
Received: from yuriy_nb.spyrus.com (dial01.spyrus.com [207.212.34.121]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id EAA09130; Wed, 24 Feb 1999 04:07:33 -0800 (PST)
From: "Russ Housley" <housley@spyrus.com>
To: "Bonatti, Chris" <bonattic@ieca.com>
Cc: "SMIME" <ietf-smime@imc.org>
Subject: RE: Correct definition of ContentInfo in CMS-10
Date: Wed, 24 Feb 1999 07:07:45 -0500
Message-ID: <000001be5fee$4a539780$066c42d1@yuriy_nb.spyrus.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
In-Reply-To: <36D16CC0.5B442494@ieca.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Chris:

In PKCS#7 v1.5, ContentInfo was used as the outer wrapper (around
SignedData, EnvelopedData, etc) as well as the wrapper around the content
being protected.  In CMS, two different ASN.1 types are used for the two
different wrappers.  ContentInfo remains the outer wrapper.  There is no
need for such a wrapper without a protecting content such as SignedData,
EnvelopedData, etc., therefore the ContentInfo content should not be
optional.  The EncapsulatedContentInfo is the wrapper for the content being
protected.  To support a SignedData for distribution of certificates and
CRLs without any content (this approach is used in many products for
certificate user enrollment), EncapsulatedContentInfo has an OPTIONAL
content.

Russ

-----Original Message-----
From:	owner-ietf-smime@imc.org [mailto:owner-ietf-smime@imc.org] On Behalf
Of Bonatti, Chris
Sent:	Monday, February 22, 1999 9:42 AM
To:	William Ottaway; 'ietf-smime@imc.org'; Russ Housley
Subject:	Re: Correct definition of ContentInfo in CMS-10

    I would submit that the 'content' field in the General Syntax section is
correct.  The instance of OPTIONAL in the appendix must be a copy artifact
from the 'EncapsulatedContentInfo', in which the 'content' field is
correctly optional.  I can see no legitimate use of CMS in which you would
send only a 'contentType' OID.  Even if someone were sending a "detached
content" in a separate body part, either MIME or X.400 mail systems are
perfectly capable of attaching a content types for that information without
utilizing this structure.

Russ,

    Browsing through my historical archive of now "non-existent" I-Ds, I see
that the OPTIONAL tag seems to have fallen out of the General Syntax
starting in version 3 of CMS.  Do you remember the reasoning behind the
change?

Chris



 ---------------------------------------------------------------
 |  International Electronic Communication Analysts, Inc.      |
 |  Christopher D. Bonatti             15309 Turkey Foot Road  |
 |  Principal Engineer              Darnestown, Md 20878-3640  |
 |  bonattic@ieca.com   Tel: 301-208-2349   Fax: 301-208-2379  |
 ---------------------------------------------------------------



____________________

William Ottaway wrote:

> Within the body of CMS 10 ContentInfo is defined as : -
>
> ContentInfo ::= SEQUENCE {
>         contentType ContentType,
>         content [0] EXPLICIT ANY DEFINED BY contentType }
>
> However, in the appendix ContentInfo is defined as : -
>
> ContentInfo ::= SEQUENCE {
>      contentType ContentType,
>      content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>
> I assume the one within the body (i.e. content not optional) is correct.
>
> Bill.
>
> "The Information contained in this E-Mail and any subsequent
> correspondence is private and is intended solely for the intended
> recipient(s).  For those other than the intended recipient any
> disclosure, copying, distribution, or any action taken or omitted to
> be taken in reliance on such information is prohibited and may be
> unlawful."
> ____________________________________________________
> William Ottaway BSc Hons CEng MBCS,
> L323,                        Tel: +44 (0) 1684 894079
> DERA Malvern,                Fax: +44 (0) 1684 896113
> St. Andrews Road,            email: w.ottaway@eris.dera.gov.uk
> Malvern,
> Worcs,
> WR14 3PS
>
> All opinions are my own.






From owner-ietf-smime@imc.org  Wed Feb 24 10:03:40 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA17575
	for <smime-archive@odin.ietf.org>; Wed, 24 Feb 1999 10:03:39 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA14940
	for ietf-smime-bks; Wed, 24 Feb 1999 06:03:33 -0800 (PST)
Received: from ns0.eris.dera.gov.uk (ns0.eris.dera.gov.uk [128.98.1.1])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id GAA14936
	for <ietf-smime@imc.org>; Wed, 24 Feb 1999 06:03:31 -0800 (PST)
Received: (qmail 19326 invoked from network); 24 Feb 1999 14:08:21 -0000
Received: from unknown (HELO mail-relay.eris.dera.gov.uk) (128.98.2.7)
  by ns0.eris.dera.gov.uk with SMTP; 24 Feb 1999 14:08:21 -0000
Received: (qmail 23891 invoked from network); 24 Feb 1999 14:08:21 -0000
Received: from wottoway.eris.dera.gov.uk (HELO wottaway.eris.dera.gov.uk) (128.98.10.17)
  by mail-relay.eris.dera.gov.uk with SMTP; 24 Feb 1999 14:08:21 -0000
Received: by localhost with Microsoft MAPI; Wed, 24 Feb 1999 14:08:38 -0000
Message-ID: <01BE5FFF.2C9F7720.w.ottaway@eris.dera.gov.uk>
From: William Ottaway <w.ottaway@eris.dera.gov.uk>
To: "'Russ Housley'" <housley@spyrus.com>
Cc: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Subject: RE: Correct definition of ContentInfo in CMS-10
Date: Wed, 24 Feb 1999 14:08:36 -0000
X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit


Russ:

To draw this thread to a close, the content within ContentInfo is not 
optional. Therefore, the ASN.1 in the appendix to CMS defining ContentInfo 
needs to have optional removed..

Bill.

-----Original Message-----
From:	Russ Housley [SMTP:housley@spyrus.com]
Sent:	Wednesday, February 24, 1999 12:08 PM
To:	Bonatti, Chris
Cc:	SMIME
Subject:	RE: Correct definition of ContentInfo in CMS-10

Chris:

In PKCS#7 v1.5, ContentInfo was used as the outer wrapper (around
SignedData, EnvelopedData, etc) as well as the wrapper around the content
being protected.  In CMS, two different ASN.1 types are used for the two
different wrappers.  ContentInfo remains the outer wrapper.  There is no
need for such a wrapper without a protecting content such as SignedData,
EnvelopedData, etc., therefore the ContentInfo content should not be
optional.  The EncapsulatedContentInfo is the wrapper for the content being
protected.  To support a SignedData for distribution of certificates and
CRLs without any content (this approach is used in many products for
certificate user enrollment), EncapsulatedContentInfo has an OPTIONAL
content.

Russ

-----Original Message-----
From:	owner-ietf-smime@imc.org [mailto:owner-ietf-smime@imc.org] On Behalf
Of Bonatti, Chris
Sent:	Monday, February 22, 1999 9:42 AM
To:	William Ottaway; 'ietf-smime@imc.org'; Russ Housley
Subject:	Re: Correct definition of ContentInfo in CMS-10

    I would submit that the 'content' field in the General Syntax section 
is
correct.  The instance of OPTIONAL in the appendix must be a copy artifact
from the 'EncapsulatedContentInfo', in which the 'content' field is
correctly optional.  I can see no legitimate use of CMS in which you would
send only a 'contentType' OID.  Even if someone were sending a "detached
content" in a separate body part, either MIME or X.400 mail systems are
perfectly capable of attaching a content types for that information without
utilizing this structure.

Russ,

    Browsing through my historical archive of now "non-existent" I-Ds, I 
see
that the OPTIONAL tag seems to have fallen out of the General Syntax
starting in version 3 of CMS.  Do you remember the reasoning behind the
change?

Chris



 ---------------------------------------------------------------
 |  International Electronic Communication Analysts, Inc.      |
 |  Christopher D. Bonatti             15309 Turkey Foot Road  |
 |  Principal Engineer              Darnestown, Md 20878-3640  |
 |  bonattic@ieca.com   Tel: 301-208-2349   Fax: 301-208-2379  |
 ---------------------------------------------------------------



____________________

William Ottaway wrote:

> Within the body of CMS 10 ContentInfo is defined as : -
>
> ContentInfo ::= SEQUENCE {
>         contentType ContentType,
>         content [0] EXPLICIT ANY DEFINED BY contentType }
>
> However, in the appendix ContentInfo is defined as : -
>
> ContentInfo ::= SEQUENCE {
>      contentType ContentType,
>      content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>
> I assume the one within the body (i.e. content not optional) is correct.
>
> Bill.
>
> "The Information contained in this E-Mail and any subsequent
> correspondence is private and is intended solely for the intended
> recipient(s).  For those other than the intended recipient any
> disclosure, copying, distribution, or any action taken or omitted to
> be taken in reliance on such information is prohibited and may be
> unlawful."
> ____________________________________________________
> William Ottaway BSc Hons CEng MBCS,
> L323,                        Tel: +44 (0) 1684 894079
> DERA Malvern,                Fax: +44 (0) 1684 896113
> St. Andrews Road,            email: w.ottaway@eris.dera.gov.uk
> Malvern,
> Worcs,
> WR14 3PS
>
> All opinions are my own.





From owner-ietf-smime@imc.org  Fri Feb 26 05:58:37 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA17273
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 05:58:36 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id BAA26420
	for ietf-smime-bks; Fri, 26 Feb 1999 01:36:39 -0800 (PST)
Received: from nucleus.nectec.or.th (nucleus.nectec.or.th [202.44.204.9])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA26402
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 01:36:30 -0800 (PST)
Received: from localhost (pok@localhost)
	by nucleus.nectec.or.th (8.8.8/8.8.8) with SMTP id QAA10638
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 16:41:17 +0700 (GMT+0700)
Date: Fri, 26 Feb 1999 16:41:12 +0700 (GMT+0700)
From: Taweesak Chairatanayut <pok@nectec.or.th>
To: ietf-smime@imc.org
Subject: Question about security of header.
Message-ID: <Pine.OSF.3.96.990226161840.11373B-100000@nucleus.nectec.or.th>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Dear all,
	According to rfc of S/MIME V.2.0, i have a question about header.
How can i be so sure that the header of e-mail didn't be changed because
from S/MIME V.2.0 i couldn't find that header can be authenticated or not
( i think no, right ?). Do you have any idea of header authentication ?
Please advise.

Regards,
Pok.


		Mr. Taweesak Chairatanayut     < E-mail:pok@nectec.or.th >
				      System Engineer             
		--------------------------------------------------------
		            Network Technology Laboratory, 
		National  Electronics  and  Computer  Technology  Center
		  Tel: (662) 642-7077 Ext. 5010,   Fax: (662) 642-7064
		--------------------------------------------------------
				    ____   ____   _  _
				   (  _ \ (    ) ( \( )
				   |  __/ | ++ | | + (
				   (__)   (____) (_)\_)                      
	     



From owner-ietf-smime@imc.org  Fri Feb 26 06:43:00 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA17535
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 06:42:59 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id CAA27654
	for ietf-smime-bks; Fri, 26 Feb 1999 02:29:58 -0800 (PST)
Received: from cane.deming.com (mail.deming.com [208.236.41.137])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id CAA27650
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 02:29:55 -0800 (PST)
Received: from 208.236.41.137 by cane.deming.com with ESMTP (WorldSecure
 Server SMTP Relay(WSS) v3.2 SR1); Fri, 26 Feb 99 02:34:25 -0800
X-Server-Uuid: 1a012586-24e9-11d1-adae-00a024bc53c5
Received: by mail.deming.com with Internet Mail Service (5.5.2232.9) id
 <1826BJDA>; Fri, 26 Feb 1999 02:34:25 -0800
Message-ID: <01FF24001403D011AD7B00A024BC53C563DF04@mail.deming.com>
From: "Blake Ramsdell" <BlakeR@deming.com>
To: "'Taweesak Chairatanayut'" <pok@nectec.or.th>, <ietf-smime@imc.org>
Subject: RE: Question about security of header.
Date: Fri, 26 Feb 1999 02:34:23 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
X-WSS-ID: 1AC8A73B50193-01-01
Content-Type: text/plain; 
 charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

> -----Original Message-----
> From: Taweesak Chairatanayut [mailto:pok@nectec.or.th]
> Sent: Friday, February 26, 1999 1:41 AM
> To: ietf-smime@imc.org
> Subject: Question about security of header.
> 
> 	According to rfc of S/MIME V.2.0, i have a question 
> about header.
> How can i be so sure that the header of e-mail didn't be 
> changed because
> from S/MIME V.2.0 i couldn't find that header can be 
> authenticated or not
> ( i think no, right ?). Do you have any idea of header 
> authentication ?
> Please advise.

The outer RFC822 headers (Received, To, From, Subject, etc.) are not
protected by the S/MIME v2 or v3 profile.

A way to do header authentication is to wrap an entire message/rfc822 in
SignedData.

Blake
--
Blake C. Ramsdell
Worldtalk Corporation
For current info, check http://www.deming.com/users/blaker
Voice +1 425 882 8861 x103  Fax +1 425 882 8060



From owner-ietf-smime@imc.org  Fri Feb 26 06:51:50 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA17565
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 06:51:50 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id CAA27920
	for ietf-smime-bks; Fri, 26 Feb 1999 02:53:23 -0800 (PST)
Received: from nucleus.nectec.or.th (nucleus.nectec.or.th [202.44.204.9])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id CAA27916
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 02:53:21 -0800 (PST)
Received: from localhost (pok@localhost)
	by nucleus.nectec.or.th (8.8.8/8.8.8) with SMTP id RAA11945;
	Fri, 26 Feb 1999 17:58:09 +0700 (GMT+0700)
Date: Fri, 26 Feb 1999 17:58:08 +0700 (GMT+0700)
From: Taweesak Chairatanayut <pok@nectec.or.th>
To: Blake Ramsdell <BlakeR@deming.com>
cc: ietf-smime@imc.org
Subject: RE: Question about security of header.
In-Reply-To: <01FF24001403D011AD7B00A024BC53C563DF04@mail.deming.com>
Message-ID: <Pine.OSF.3.96.990226174251.11373E-100000@nucleus.nectec.or.th>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

On Fri, 26 Feb 1999, Blake Ramsdell wrote:
> 
> The outer RFC822 headers (Received, To, From, Subject, etc.) are not
> protected by the S/MIME v2 or v3 profile.
> 
> A way to do header authentication is to wrap an entire message/rfc822 in
> SignedData.

	As i know rfc822 header don't be signed in S/MIME, so how to wrap
an entire rfc822 header in SignedData ? 

Thank a lot for your help,
Pok.

		Mr. Taweesak Chairatanayut     < E-mail:pok@nectec.or.th >
				      System Engineer             
		--------------------------------------------------------
		            Network Technology Laboratory, 
		National  Electronics  and  Computer  Technology  Center
		  Tel: (662) 642-7077 Ext. 5010,   Fax: (662) 642-7064
		--------------------------------------------------------
				    ____   ____   _  _
				   (  _ \ (    ) ( \( )
				   |  __/ | ++ | | + (
				   (__)   (____) (_)\_)                      
	     



From owner-ietf-smime@imc.org  Fri Feb 26 13:57:12 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA24418
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 13:57:12 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA03471
	for ietf-smime-bks; Fri, 26 Feb 1999 09:47:21 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA03467
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 09:47:07 -0800 (PST)
Received: from rhousley.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id MAA00501;
	Fri, 26 Feb 1999 12:51:53 -0500
Message-Id: <4.1.19990226122207.009b3f00@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Fri, 26 Feb 1999 12:51:44 -0500
To: "Bob Jueneman" <BJUENEMAN@novell.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: <ietf-smime@imc.org>, <cme@ACM.ORG>, <berson@anagram.com>,
        <bschanni@BayNetworks.com>, <kent@bbn.com>, <pcain@bbn.com>,
        <mhetzel@bell-labs.com>, <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <daw@cs.berkeley.edu>,
        <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>,
        <omura@cylink.com>, <dickie@EMPIRE.eclipse.ncsc.mil>,
        <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <benaloh@microsoft.com>,
        <bfox@microsoft.com>, <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>,
        <desmedt@uwm.edu>
In-Reply-To: <s6d13675.049@prv-mail20.provo.novell.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Bob:

You raise an interesting point, but I think it can be easily solved by a
random IV for the first encryption. Of course, this makes the result one
block longer.  And, we would need a different IV for each wrapping.

Russ


At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
>Russ,
>
>There is a possible attack on the double encryption wrap algorithm 
>that is a result of the constant IV construction. For that reason, I would
>strongly prefer the OAEP construction. Although it may look complicated
>because there are more steps, the number of line of code is really of no 
>consequence at all, but the execution time is important for performance.
>
>Also, I continue to insist that we should not invent n-squared algorithm 
>IDs for every possible combination of CEK algorithm and key length
>plus KEK algorithm and key length. Instead, I would _greatly_ prefer to 
>first wrap the CEK in a ASN.1 structure that defines the CEK algorithm 
>and key length, then whiten that structure with OAEP, encrypt the resulting
>string with the KEK algorithm, and then provide generic instructions as
>to how to decode the result, either by wrapping the entire wrapped key 
>blob in ASN.1 (preferably) or some other way.
>
>Here's the attack on the double-encryption wrapping:
>
>Although most exhaustive search engines divide up the search process
>across multiple machines in order to find a single key as quickly as possible
>(e.g., the series of RSA challenge ciphers), there is another approach
>based on the use of an associative memory that I wrote up back
>in the '70's but never published.  I call it my "vacuum-cleaner" attack.
>
>Assume for the sake or argument that there are lots and lots of keys
>that have been or will be used to encrypt a known plaintext or 
>stereotyped message.  (This is a standard assumption in cryptanalysis.) 
>Actually, the attack will succeed with a somewhat weaker condition --
>it isn't necessary to actually know the plaintext -- it is sufficient that
>the plaintext be unvarying.
>
>Let's also assume that each key is used for some interesting purpose --
>sufficiently interesting that it may not be necessary to crack each and every
>key -- just a few would be useful.  For example, if I were trying to carry on 
>a credit card attack, I don't have to find the key for Bill Gates' or 
>Donald Trump's credit card -- just about anyone's will do, and the more 
>the merrier.
>
>So for every new key that I have the engine try, I contrive to compare 
>the result of encrypting the known plaintext against millions of valid 
>ciphertexts that have been intercepted, looking for a match.  Assuming 
>an effectively inexhaustible supply of ciphertexts is available, this attack 
>multiplies the effectiveness of the key search engine by an order of a million
>or more, depending on the size of the associative memory that is available.
>
>(The use of an associative memory isn't essential -- it was just a gedanken
>experiment to speed up the comparison process without requiring sorting.)
>
>Two things should be noted.  First, this attack is independent of the KEK 
>encryption algorithm used, assuming a fixed block size.  In other words, 
>this would apply to single-DES, triple-DES, umpty-DES, 2048-bit RSA,
>or whatever, assuming a constant session key and constant padding.
>
>Second, the attack is also independent of the length or type of session 
>key that is used, except that the yield is a Birthday Problem function of the
>length of the key.  But given a fixed input, i.e., no random whitening or 
>changing IV, then two or more matching outputs must imply a matching
>session key.  
>
>This leads to a rather surprising result -- even if the KEK performs double 
>encryption using triple-DES (or any other algorithm without whitening)
>to wrap a 40 bit key, two matching session keys can be found with 
>approximately 50% probability after only 2^20 or a million or so session 
>keys have been generated.
>
>Perhaps more surprisingly, at least to people who haven't been down this path,
>changing session keys more rapidly may hurt more than it helps -- it just 
>exposes that many more keys to attack. Changing the session key often 
>in the middle of a session may help limit the ability of the attacker to 
>access the entire message, and hence limits the attacker's "take," but it 
>increases the chances that a potentially interesting fragment of text 
>may be exposed.
>
>I'm sure that someone would observe that sending even a million content 
>encryption key encrypted in a constant KEK would be extremely unlikely
>in an S/MIME context, but whether that would really be true would require
>a more subtle, protocol-dependent analysis than I would care to make,
>and in addition I very much want to standardize on one key wrapping 
>algorithm that is protocol independent, and not just for S/MIME.
>
>Obviously the above attack can be defeated by prepending some 
>additional randomness or by changing the IV. But is also what the OAEP
>approach does, and rather more elegantly.  By the time we have to add
>either a changing IV or some additional randomness (how much would be
>required would have to be decided) the length would probably be close
>to that required for OAEP, which is a much more general solution.
>
>In my mind, at least, some extra bytes in the wrapped key is no big deal,
>but I would like the efficiency to be a good as possible. Triple-DES is 
>expensive enough in terms of computational efficiency in software, 
>especially in terms of the initial key expansion, and doing it twice 
>would be worse yet.
>
>Because the new export regulations permit the use of double the key length 
>used for data encryption to be used for key encryption, we are going to be
>using triple-DES in encrypt-decrypt-encrypt mode with only two keys
(A-B-A) for
>key wrapping of all export-grade CEK keys.
>
>This can be optimized by saving the key expansion of the first encryption,
and 
>then reusing it for the final encryption.  This technique could
potentially be 
>extended to the double encryption wrapping algorithm, by saving the key  
>expansion used for all three steps, but in order to do that the 
>"double-triple-DES"
>algorithm would probably have to be a single algorithm that is invoked --
>it would be quite difficult to securely save state across two separate 
>encryption
>operations.
>
>So my preference, as I said earlier, would be to wrap the CEK in ASN.1, 
>whiten with OAEP, and then encrypt using whatever KEK algorithm and 
>key length is required, so we don't have to keep re-analyzing this problem 
>for every new CEK or KEK algorithm or key length.
>
>If we can define appropriate algorithm IDs, I'm willing and eager to adopt
such
>a standard for  _all_ wrapped keys generated and used within our Novell 
>International Cryptographic Infrastructure (NICI), even before S/MIME v3 
>progresses to a full standard.  I'd be willing to assign an algorithm OID 
>from the 
>Novell tree, or we could probably get one from PKCS if there would be any 
>problem getting one assigned by the IANA.
>
>Regards,
>
>Bob
>
>
>> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
>All:
>
>Right now, I am leaning toward the double encryption wrap algorithm.  I
>think it will be easy to implement, and it yeilds a shorter result that the
>OAEP method.  To convince myself that it was easy to implement, I did an
>implementation.  It took me about two hours while watching an old Jimmy
>Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
>routines.  S/MIME v3 will require these algorithms for other capabilities
>besides key wrapping.
>
>If someone else is willing to do an implementation, I would like to compare
>results.  This will allow a test vector to be included with the algorithm
>description.
>
>Does anyone have any strong objections to the double encryption wrap
>algorithm being selected?
>
>Russ
>
>
>>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>>
>>Key Checksum
>>
>>The CMS Checksum Algorithm is used to provide an content-encryption key
>>integrity check value.  The algorithm is:
>>
>>1.  Compute a 20 octet SHA-1 message digest on the 
>>    content-encryption key.
>>2.  Use the most significant (first) eight octets of the 
>>    message digest value as the checksum value.
>>
>>Triple-DES Key Wrap
>>
>>1.  Set odd parity for each of the DES key octets comprising 
>>    the content-encryption key, call the result CEK.
>>2.  Compute a 8 octet key checksum value on CEK as described above,
>>    call the result ICV.
>>3.  Let CEKICV = CEK || ICV.
>>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>>    an IV of 0xc302e3c1ad8bb738.
>>5.  Reverse the order of the ciphertext octets.  That is, the most
>>    significant (first) octet is swapped with the least significant
>>    (last) octet, and so on.  Call the result TEMP.
>>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use 
>>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.
>
>Robert R. Jueneman
>Security Architect
>Network Security Development
>Novell, Inc.
>122 East 1700 South
>Provo, UT 84606
>bjueneman@novell.com
>1-801-861-7387



From owner-ietf-smime@imc.org  Fri Feb 26 14:03:55 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA24554
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 14:03:54 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA03698
	for ietf-smime-bks; Fri, 26 Feb 1999 10:02:09 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA03694
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 10:02:08 -0800 (PST)
Received: from rhousley.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id NAA01172;
	Fri, 26 Feb 1999 13:07:04 -0500
Message-Id: <4.1.19990226130258.009d8b00@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Fri, 26 Feb 1999 13:07:02 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: ietf-smime@imc.org
In-Reply-To: <91948228925317@cs26.cs.auckland.ac.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter:

I have a pseudo-random number generator that I am working on for a
different project.  I put a 0x484848...484848 seed into it and generated
the IVs.  Since no one has ever looked at that design I will get some new
ones from a better source.

We have hardware device that includes a random number generator.  I will
ask that device for some random numbers.

Russ

At 04:44 PM 2/20/99 +0000, Peter Gutmann wrote:
>Russ Housley <housley@spyrus.com> wrote:
> 
>>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>>    an IV of 0xc302e3c1ad8bb738.
> 
>>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use
>>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.
> 
>Could you provide a source for the values used for the IV's in the text?  
>Cryptographers get somewhat nervous about seeing magic numbers by themselves
>in specs.
> 
>Peter.
>



From owner-ietf-smime@imc.org  Fri Feb 26 14:48:03 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA25534
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 14:48:03 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA04210
	for ietf-smime-bks; Fri, 26 Feb 1999 10:46:38 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id KAA04206
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 10:46:35 -0800 (PST)
Received: 	id NAA20654; Fri, 26 Feb 1999 13:46:09 -0500
Received: by gateway id <FR0ZTGT3>; Fri, 26 Feb 1999 13:48:18 -0500
Message-ID: <91AE69321799D211AEC500105A9C4696894D36@sothmxs05.entrust.com>
From: Paul Van Oorschot <paul.vanoorschot@entrust.com>
To: housley@spyrus.com
Cc: cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com,
        pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com,
        djohnson@certicom.ca, schneier@counterpane.com, daw@cs.berkeley.edu,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, "'Bob Jueneman'" <BJUENEMAN@novell.com>,
        dickie@EMPIRE.eclipse.ncsc.mil, carlisle.adams@entrust.com,
        paulv@entrust.com, Blake.greenlee@greenlee.com, ietf-smime@imc.org,
        benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil,
        jis@mit.edu, Tolga Acar <TACAR.PRV-7.PROVO@novell.com>,
        merkle@parc.xerox.com, BSnow@radium.ncsc.mil, burt@RSA.COM,
        ekr@rtfm.com, jlinn@securitydynamics.com, ams@terisa.com,
        rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com,
        acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com,
        desmedt@uwm.edu
Subject: RE: A New Triple-DES Key Wrap Algorithm
Date: Fri, 26 Feb 1999 13:43:43 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.1960.3)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ - if at all possible, please use a standard technique (e.g. OAEP per
one of the emerging standards) rather than inventing a new customized
scheme.  

Paul.

> ----------
> From: 	Bob Jueneman[SMTP:BJUENEMAN@novell.com]
> Sent: 	Friday, February 26, 1999 1:38 PM
> To: 	housley@spyrus.com
> Cc: 	cme@ACM.ORG; berson@anagram.com; bschanni@BayNetworks.com;
> kent@bbn.com; pcain@bbn.com; mhetzel@bell-labs.com; brickell@certco.com;
> djohnson@certicom.ca; schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com; dickie@EMPIRE.eclipse.ncsc.mil;
> carlisle.adams@entrust.com; paulv@entrust.com;
> Blake.greenlee@greenlee.com; ietf-smime@imc.org; benaloh@microsoft.com;
> bfox@microsoft.com; cjwagne@missi.ncsc.mil; jis@mit.edu; Tolga Acar;
> merkle@parc.xerox.com; BSnow@radium.ncsc.mil; burt@RSA.COM; ekr@rtfm.com;
> jlinn@securitydynamics.com; ams@terisa.com; rivest@theory.lcs.mit.edu;
> balenson@tis.com; denny@tis.com; acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil;
> smatyas@us.ibm.com; desmedt@uwm.edu
> Subject: 	Re: A New Triple-DES Key Wrap Algorithm
> 
> Russ:
> 
> You are correct, of course.  The question, then, is whether
> we should just go to the OAEP-type wrapping and not have
> to worry about changing IV's and how to convey them.
> That would be my recommendation.
> 
> On a slightly different issue, several times I have strongly urged
> that in order to avoid the problem of having N-squared algorithm
> IDs for all of the various combinations of CEK and KEK algorithms,
> key lengths, and other miscellaneous data, that we first wrap
> the CEK in a descriptive ASN.1 structure that describes the 
> the CEK algorithm/key, and then do the wrapping operation.
> 
> However, although I've raised this issue several times and indicated
> our strong desire to solve the key wrapping issue once and for all,
> you have neither incorporated the idea or argued against it,
> so I don't know where you stand.
> 
> Obviously anyone who is processing certificates is going to have to 
> have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures 
> me that the performance implications would be negligible compared to
> almost any encryption operation.
> 
> Assuming that is the case, the only reason I could see for not doing 
> it would be concern about the increase in wrapped key size,
> or some lingering not-invented-here bias against ISO/ITU/X.500
> mechanisms.  I certainly hope it isn't the later.
> 
> Is there anything in the existing protocol that is rigidly sensitive to 
> the size of the wrapped key?  If so, then that is a problem that 
> probably ought to be addressed.
> 
> If not, then I believe the architectural benefits would far outweigh
> any increase in the size of the wrapped key.
> 
> Bob
> 
> >>> Russ Housley <housley@spyrus.com> 02/26/99 10:51AM >>>
> Bob:
> 
> You raise an interesting point, but I think it can be easily solved by a
> random IV for the first encryption. Of course, this makes the result one
> block longer.  And, we would need a different IV for each wrapping.
> 
> Russ
> 
> 
> At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
> >Russ,
> >
> >There is a possible attack on the double encryption wrap algorithm 
> >that is a result of the constant IV construction. For that reason, I
> would
> >strongly prefer the OAEP construction. Although it may look complicated
> >because there are more steps, the number of line of code is really of no 
> >consequence at all, but the execution time is important for performance.
> >
> >Also, I continue to insist that we should not invent n-squared algorithm 
> >IDs for every possible combination of CEK algorithm and key length
> >plus KEK algorithm and key length. Instead, I would _greatly_ prefer to 
> >first wrap the CEK in a ASN.1 structure that defines the CEK algorithm 
> >and key length, then whiten that structure with OAEP, encrypt the
> resulting
> >string with the KEK algorithm, and then provide generic instructions as
> >to how to decode the result, either by wrapping the entire wrapped key 
> >blob in ASN.1 (preferably) or some other way.
> >
> >Here's the attack on the double-encryption wrapping:
> >
> >Although most exhaustive search engines divide up the search process
> >across multiple machines in order to find a single key as quickly as
> possible
> >(e.g., the series of RSA challenge ciphers), there is another approach
> >based on the use of an associative memory that I wrote up back
> >in the '70's but never published.  I call it my "vacuum-cleaner" attack.
> >
> >Assume for the sake or argument that there are lots and lots of keys
> >that have been or will be used to encrypt a known plaintext or 
> >stereotyped message.  (This is a standard assumption in cryptanalysis.) 
> >Actually, the attack will succeed with a somewhat weaker condition --
> >it isn't necessary to actually know the plaintext -- it is sufficient
> that
> >the plaintext be unvarying.
> >
> >Let's also assume that each key is used for some interesting purpose --
> >sufficiently interesting that it may not be necessary to crack each and
> every
> >key -- just a few would be useful.  For example, if I were trying to
> carry on 
> >a credit card attack, I don't have to find the key for Bill Gates' or 
> >Donald Trump's credit card -- just about anyone's will do, and the more 
> >the merrier.
> >
> >So for every new key that I have the engine try, I contrive to compare 
> >the result of encrypting the known plaintext against millions of valid 
> >ciphertexts that have been intercepted, looking for a match.  Assuming 
> >an effectively inexhaustible supply of ciphertexts is available, this
> attack 
> >multiplies the effectiveness of the key search engine by an order of a
> million
> >or more, depending on the size of the associative memory that is
> available.
> >
> >(The use of an associative memory isn't essential -- it was just a
> gedanken
> >experiment to speed up the comparison process without requiring sorting.)
> >
> >Two things should be noted.  First, this attack is independent of the KEK
> 
> >encryption algorithm used, assuming a fixed block size.  In other words, 
> >this would apply to single-DES, triple-DES, umpty-DES, 2048-bit RSA,
> >or whatever, assuming a constant session key and constant padding.
> >
> >Second, the attack is also independent of the length or type of session 
> >key that is used, except that the yield is a Birthday Problem function of
> the
> >length of the key.  But given a fixed input, i.e., no random whitening or
> 
> >changing IV, then two or more matching outputs must imply a matching
> >session key.  
> >
> >This leads to a rather surprising result -- even if the KEK performs
> double 
> >encryption using triple-DES (or any other algorithm without whitening)
> >to wrap a 40 bit key, two matching session keys can be found with 
> >approximately 50% probability after only 2^20 or a million or so session 
> >keys have been generated.
> >
> >Perhaps more surprisingly, at least to people who haven't been down this
> path,
> >changing session keys more rapidly may hurt more than it helps -- it just
> 
> >exposes that many more keys to attack. Changing the session key often 
> >in the middle of a session may help limit the ability of the attacker to 
> >access the entire message, and hence limits the attacker's "take," but it
> 
> >increases the chances that a potentially interesting fragment of text 
> >may be exposed.
> >
> >I'm sure that someone would observe that sending even a million content 
> >encryption key encrypted in a constant KEK would be extremely unlikely
> >in an S/MIME context, but whether that would really be true would require
> >a more subtle, protocol-dependent analysis than I would care to make,
> >and in addition I very much want to standardize on one key wrapping 
> >algorithm that is protocol independent, and not just for S/MIME.
> >
> >Obviously the above attack can be defeated by prepending some 
> >additional randomness or by changing the IV. But is also what the OAEP
> >approach does, and rather more elegantly.  By the time we have to add
> >either a changing IV or some additional randomness (how much would be
> >required would have to be decided) the length would probably be close
> >to that required for OAEP, which is a much more general solution.
> >
> >In my mind, at least, some extra bytes in the wrapped key is no big deal,
> >but I would like the efficiency to be a good as possible. Triple-DES is 
> >expensive enough in terms of computational efficiency in software, 
> >especially in terms of the initial key expansion, and doing it twice 
> >would be worse yet.
> >
> >Because the new export regulations permit the use of double the key
> length 
> >used for data encryption to be used for key encryption, we are going to
> be
> >using triple-DES in encrypt-decrypt-encrypt mode with only two keys
> (A-B-A) for
> >key wrapping of all export-grade CEK keys.
> >
> >This can be optimized by saving the key expansion of the first
> encryption,
> and 
> >then reusing it for the final encryption.  This technique could
> potentially be 
> >extended to the double encryption wrapping algorithm, by saving the key  
> >expansion used for all three steps, but in order to do that the 
> >"double-triple-DES"
> >algorithm would probably have to be a single algorithm that is invoked --
> >it would be quite difficult to securely save state across two separate 
> >encryption
> >operations.
> >
> >So my preference, as I said earlier, would be to wrap the CEK in ASN.1, 
> >whiten with OAEP, and then encrypt using whatever KEK algorithm and 
> >key length is required, so we don't have to keep re-analyzing this
> problem 
> >for every new CEK or KEK algorithm or key length.
> >
> >If we can define appropriate algorithm IDs, I'm willing and eager to
> adopt
> such
> >a standard for  _all_ wrapped keys generated and used within our Novell 
> >International Cryptographic Infrastructure (NICI), even before S/MIME v3 
> >progresses to a full standard.  I'd be willing to assign an algorithm OID
> 
> >from the 
> >Novell tree, or we could probably get one from PKCS if there would be any
> 
> >problem getting one assigned by the IANA.
> >
> >Regards,
> >
> >Bob
> >
> >
> >> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
> >All:
> >
> >Right now, I am leaning toward the double encryption wrap algorithm.  I
> >think it will be easy to implement, and it yeilds a shorter result that
> the
> >OAEP method.  To convince myself that it was easy to implement, I did an
> >implementation.  It took me about two hours while watching an old Jimmy
> >Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
> >routines.  S/MIME v3 will require these algorithms for other capabilities
> >besides key wrapping.
> >
> >If someone else is willing to do an implementation, I would like to
> compare
> >results.  This will allow a test vector to be included with the algorithm
> >description.
> >
> >Does anyone have any strong objections to the double encryption wrap
> >algorithm being selected?
> >
> >Russ
> >
> >
> >>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
> >>
> >>Key Checksum
> >>
> >>The CMS Checksum Algorithm is used to provide an content-encryption key
> >>integrity check value.  The algorithm is:
> >>
> >>1.  Compute a 20 octet SHA-1 message digest on the 
> >>    content-encryption key.
> >>2.  Use the most significant (first) eight octets of the 
> >>    message digest value as the checksum value.
> >>
> >>Triple-DES Key Wrap
> >>
> >>1.  Set odd parity for each of the DES key octets comprising 
> >>    the content-encryption key, call the result CEK.
> >>2.  Compute a 8 octet key checksum value on CEK as described above,
> >>    call the result ICV.
> >>3.  Let CEKICV = CEK || ICV.
> >>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
> >>    an IV of 0xc302e3c1ad8bb738.
> >>5.  Reverse the order of the ciphertext octets.  That is, the most
> >>    significant (first) octet is swapped with the least significant
> >>    (last) octet, and so on.  Call the result TEMP.
> >>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use 
> >>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.
> >
> >Robert R. Jueneman
> >Security Architect
> >Network Security Development
> >Novell, Inc.
> >122 East 1700 South
> >Provo, UT 84606
> >bjueneman@novell.com 
> >1-801-861-7387
> 


From owner-ietf-smime@imc.org  Fri Feb 26 14:48:33 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA25550
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 14:48:32 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA04061
	for ietf-smime-bks; Fri, 26 Feb 1999 10:34:09 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id KAA04057
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 10:34:07 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Fri, 26 Feb 1999 11:38:38 -0700
Message-Id: <s6d687be.038@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Fri, 26 Feb 1999 11:38:19 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <housley@spyrus.com>
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <bschanni@BayNetworks.com>,
        <kent@bbn.com>, <pcain@bbn.com>, <mhetzel@bell-labs.com>,
        <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <daw@cs.berkeley.edu>,
        <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>,
        <omura@cylink.com>, <dickie@EMPIRE.eclipse.ncsc.mil>,
        <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <ietf-smime@imc.org>,
        <benaloh@microsoft.com>, <bfox@microsoft.com>,
        <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>,
        <desmedt@uwm.edu>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id KAA04058
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 8bit

Russ:

You are correct, of course.  The question, then, is whether
we should just go to the OAEP-type wrapping and not have
to worry about changing IV's and how to convey them.
That would be my recommendation.

On a slightly different issue, several times I have strongly urged
that in order to avoid the problem of having N-squared algorithm
IDs for all of the various combinations of CEK and KEK algorithms,
key lengths, and other miscellaneous data, that we first wrap
the CEK in a descriptive ASN.1 structure that describes the 
the CEK algorithm/key, and then do the wrapping operation.

However, although I've raised this issue several times and indicated
our strong desire to solve the key wrapping issue once and for all,
you have neither incorporated the idea or argued against it,
so I don't know where you stand.

Obviously anyone who is processing certificates is going to have to 
have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures 
me that the performance implications would be negligible compared to
almost any encryption operation.

Assuming that is the case, the only reason I could see for not doing 
it would be concern about the increase in wrapped key size,
or some lingering not-invented-here bias against ISO/ITU/X.500
mechanisms.  I certainly hope it isn't the later.

Is there anything in the existing protocol that is rigidly sensitive to 
the size of the wrapped key?  If so, then that is a problem that 
probably ought to be addressed.

If not, then I believe the architectural benefits would far outweigh
any increase in the size of the wrapped key.

Bob

>>> Russ Housley <housley@spyrus.com> 02/26/99 10:51AM >>>
Bob:

You raise an interesting point, but I think it can be easily solved by a
random IV for the first encryption. Of course, this makes the result one
block longer.  And, we would need a different IV for each wrapping.

Russ


At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
>Russ,
>
>There is a possible attack on the double encryption wrap algorithm 
>that is a result of the constant IV construction. For that reason, I would
>strongly prefer the OAEP construction. Although it may look complicated
>because there are more steps, the number of line of code is really of no 
>consequence at all, but the execution time is important for performance.
>
>Also, I continue to insist that we should not invent n-squared algorithm 
>IDs for every possible combination of CEK algorithm and key length
>plus KEK algorithm and key length. Instead, I would _greatly_ prefer to 
>first wrap the CEK in a ASN.1 structure that defines the CEK algorithm 
>and key length, then whiten that structure with OAEP, encrypt the resulting
>string with the KEK algorithm, and then provide generic instructions as
>to how to decode the result, either by wrapping the entire wrapped key 
>blob in ASN.1 (preferably) or some other way.
>
>Here's the attack on the double-encryption wrapping:
>
>Although most exhaustive search engines divide up the search process
>across multiple machines in order to find a single key as quickly as possible
>(e.g., the series of RSA challenge ciphers), there is another approach
>based on the use of an associative memory that I wrote up back
>in the '70's but never published.  I call it my "vacuum-cleaner" attack.
>
>Assume for the sake or argument that there are lots and lots of keys
>that have been or will be used to encrypt a known plaintext or 
>stereotyped message.  (This is a standard assumption in cryptanalysis.) 
>Actually, the attack will succeed with a somewhat weaker condition --
>it isn't necessary to actually know the plaintext -- it is sufficient that
>the plaintext be unvarying.
>
>Let's also assume that each key is used for some interesting purpose --
>sufficiently interesting that it may not be necessary to crack each and every
>key -- just a few would be useful.  For example, if I were trying to carry on 
>a credit card attack, I don't have to find the key for Bill Gates' or 
>Donald Trump's credit card -- just about anyone's will do, and the more 
>the merrier.
>
>So for every new key that I have the engine try, I contrive to compare 
>the result of encrypting the known plaintext against millions of valid 
>ciphertexts that have been intercepted, looking for a match.  Assuming 
>an effectively inexhaustible supply of ciphertexts is available, this attack 
>multiplies the effectiveness of the key search engine by an order of a million
>or more, depending on the size of the associative memory that is available.
>
>(The use of an associative memory isn't essential -- it was just a gedanken
>experiment to speed up the comparison process without requiring sorting.)
>
>Two things should be noted.  First, this attack is independent of the KEK 
>encryption algorithm used, assuming a fixed block size.  In other words, 
>this would apply to single-DES, triple-DES, umpty-DES, 2048-bit RSA,
>or whatever, assuming a constant session key and constant padding.
>
>Second, the attack is also independent of the length or type of session 
>key that is used, except that the yield is a Birthday Problem function of the
>length of the key.  But given a fixed input, i.e., no random whitening or 
>changing IV, then two or more matching outputs must imply a matching
>session key.  
>
>This leads to a rather surprising result -- even if the KEK performs double 
>encryption using triple-DES (or any other algorithm without whitening)
>to wrap a 40 bit key, two matching session keys can be found with 
>approximately 50% probability after only 2^20 or a million or so session 
>keys have been generated.
>
>Perhaps more surprisingly, at least to people who haven't been down this path,
>changing session keys more rapidly may hurt more than it helps -- it just 
>exposes that many more keys to attack. Changing the session key often 
>in the middle of a session may help limit the ability of the attacker to 
>access the entire message, and hence limits the attacker's "take," but it 
>increases the chances that a potentially interesting fragment of text 
>may be exposed.
>
>I'm sure that someone would observe that sending even a million content 
>encryption key encrypted in a constant KEK would be extremely unlikely
>in an S/MIME context, but whether that would really be true would require
>a more subtle, protocol-dependent analysis than I would care to make,
>and in addition I very much want to standardize on one key wrapping 
>algorithm that is protocol independent, and not just for S/MIME.
>
>Obviously the above attack can be defeated by prepending some 
>additional randomness or by changing the IV. But is also what the OAEP
>approach does, and rather more elegantly.  By the time we have to add
>either a changing IV or some additional randomness (how much would be
>required would have to be decided) the length would probably be close
>to that required for OAEP, which is a much more general solution.
>
>In my mind, at least, some extra bytes in the wrapped key is no big deal,
>but I would like the efficiency to be a good as possible. Triple-DES is 
>expensive enough in terms of computational efficiency in software, 
>especially in terms of the initial key expansion, and doing it twice 
>would be worse yet.
>
>Because the new export regulations permit the use of double the key length 
>used for data encryption to be used for key encryption, we are going to be
>using triple-DES in encrypt-decrypt-encrypt mode with only two keys
(A-B-A) for
>key wrapping of all export-grade CEK keys.
>
>This can be optimized by saving the key expansion of the first encryption,
and 
>then reusing it for the final encryption.  This technique could
potentially be 
>extended to the double encryption wrapping algorithm, by saving the key  
>expansion used for all three steps, but in order to do that the 
>"double-triple-DES"
>algorithm would probably have to be a single algorithm that is invoked --
>it would be quite difficult to securely save state across two separate 
>encryption
>operations.
>
>So my preference, as I said earlier, would be to wrap the CEK in ASN.1, 
>whiten with OAEP, and then encrypt using whatever KEK algorithm and 
>key length is required, so we don't have to keep re-analyzing this problem 
>for every new CEK or KEK algorithm or key length.
>
>If we can define appropriate algorithm IDs, I'm willing and eager to adopt
such
>a standard for  _all_ wrapped keys generated and used within our Novell 
>International Cryptographic Infrastructure (NICI), even before S/MIME v3 
>progresses to a full standard.  I'd be willing to assign an algorithm OID 
>from the 
>Novell tree, or we could probably get one from PKCS if there would be any 
>problem getting one assigned by the IANA.
>
>Regards,
>
>Bob
>
>
>> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
>All:
>
>Right now, I am leaning toward the double encryption wrap algorithm.  I
>think it will be easy to implement, and it yeilds a shorter result that the
>OAEP method.  To convince myself that it was easy to implement, I did an
>implementation.  It took me about two hours while watching an old Jimmy
>Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
>routines.  S/MIME v3 will require these algorithms for other capabilities
>besides key wrapping.
>
>If someone else is willing to do an implementation, I would like to compare
>results.  This will allow a test vector to be included with the algorithm
>description.
>
>Does anyone have any strong objections to the double encryption wrap
>algorithm being selected?
>
>Russ
>
>
>>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>>
>>Key Checksum
>>
>>The CMS Checksum Algorithm is used to provide an content-encryption key
>>integrity check value.  The algorithm is:
>>
>>1.  Compute a 20 octet SHA-1 message digest on the 
>>    content-encryption key.
>>2.  Use the most significant (first) eight octets of the 
>>    message digest value as the checksum value.
>>
>>Triple-DES Key Wrap
>>
>>1.  Set odd parity for each of the DES key octets comprising 
>>    the content-encryption key, call the result CEK.
>>2.  Compute a 8 octet key checksum value on CEK as described above,
>>    call the result ICV.
>>3.  Let CEKICV = CEK || ICV.
>>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>>    an IV of 0xc302e3c1ad8bb738.
>>5.  Reverse the order of the ciphertext octets.  That is, the most
>>    significant (first) octet is swapped with the least significant
>>    (last) octet, and so on.  Call the result TEMP.
>>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use 
>>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.
>
>Robert R. Jueneman
>Security Architect
>Network Security Development
>Novell, Inc.
>122 East 1700 South
>Provo, UT 84606
>bjueneman@novell.com 
>1-801-861-7387



From owner-ietf-smime@imc.org  Fri Feb 26 14:55:44 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA25683
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 14:55:43 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA03683
	for ietf-smime-bks; Fri, 26 Feb 1999 10:02:03 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA03678
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 10:02:02 -0800 (PST)
Received: from rhousley.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id NAA01165;
	Fri, 26 Feb 1999 13:06:56 -0500
Message-Id: <4.1.19990226125559.009c5b20@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Fri, 26 Feb 1999 13:01:28 -0500
To: "Don Johnson" <djohnson@certicom.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: ietf-smime@imc.org, burt@RSA.COM, djohnson@certicom.ca,
        schneier@counterpane.com, denny@tis.com,
        denning@cs.cosc.georgetown.edu, omura@cylink.com,
        mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
        smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
        berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
        carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
        Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
        acc@tycho.ncsc.mil, bschanni@BayNetworks.com,
        dickie@EMPIRE.eclipse.ncsc.mil, jhs@tycho.ncsc.mil, jis@mit.edu,
        pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
        cjwagne@missi.ncsc.mil, balenson@tis.com, jlinn@securitydynamics.com,
        smid@csmes.ncsl.nist.gov, daw@cs.berkeley.edu
In-Reply-To: <85256720.0057DF83.00@domino2.certicom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Don:

In regard to number 3, it seems like using a random IV for the first
encryption is a very good idea.

Russ

At 11:07 AM 2/22/99 -0500, Don Johnson wrote:
>Russ,
>
>Here are some thoughts.
>
>1. Use of HMAC (using SHA-1) versus simple SHA-1 of the key may give
>security properties that are easier to show and be more conforming to
>existing stds. It can also grow easier, one never knows how these things
>might grow.
>2. You need to indicate if the parity bits are checked or not on recovery.
>I suggest that they should be checked, since they are set.  This provides
>some more integrity.
>3. The use of fixed IV's means that the first block of each encryption is
>less protected than the subsequent blocks.  This makes analysis more
>difficult.  If I were going to attack this method, I would concentrate on
>the less protected blocks, trying to find a match after less than 2**32
>encryptions.  This is not a complete idea but may be a start.  That is, the
>middle 2 blocks seem to collide in 2**32 encryptions, but the end blocks
>might collide sooner.
>4. I still think you should try to list some goals for this method.  For
>example, 64 bits of integrity, every bit depends on every other bit,
>confidentiality for key, etc.
>
>Don Johnson
>
>
>
>
>Russ Housley <housley@spyrus.com> on 02/20/99 04:17:39 PM
>
>To:   ietf-smime@imc.org
>cc:   burt@RSA.COM, djohnson@certicom.ca, schneier@counterpane.com,
>      denny@tis.com, denning@cs.cosc.georgetown.edu, omura@cylink.com,
>      mhetzel@bell-labs.com, benaloh@microsoft.com, brickell@certco.com,
>      smatyas@us.ibm.com, paulv@entrust.com, merkle@parc.xerox.com,
>      berson@anagram.com, desmedt@uwm.edu, rivest@theory.lcs.mit.edu,
>      carlisle.adams@entrust.com, ams@terisa.com, ekr@rtfm.com,
>      Blake.greenlee@greenlee.com, cme@ACM.ORG, bfox@microsoft.com,
>      acc@tycho.ncsc.mil, bschanni@BayNetworks.com,
>      dickie@EMPIRE.eclipse.ncsc.mil, jhs@tycho.ncsc.mil, jis@mit.edu,
>      pcain@bbn.com, kent@bbn.com, BSnow@radium.ncsc.mil,
>      cjwagne@missi.ncsc.mil, balenson@tis.com, balenson@tis.com,
>      jlinn@securitydynamics.com, smid@csmes.ncsl.nist.gov,
>      daw@cs.berkeley.edu (bcc: Don Johnson/Certicom)
>Subject:  Re: A New Triple-DES Key Wrap Algorithm
>
>
>
>
>All:
>
>Right now, I am leaning toward the double encryption wrap algorithm.  I
>think it will be easy to implement, and it yeilds a shorter result that the
>OAEP method.  To convince myself that it was easy to implement, I did an
>implementation.  It took me about two hours while watching an old Jimmy
>Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
>routines.  S/MIME v3 will require these algorithms for other capabilities
>besides key wrapping.
>
>If someone else is willing to do an implementation, I would like to compare
>results.  This will allow a test vector to be included with the algorithm
>description.
>
>Does anyone have any strong objections to the double encryption wrap
>algorithm being selected?
>
>Russ
>
>
>>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>>
>>Key Checksum
>>
>>The CMS Checksum Algorithm is used to provide an content-encryption key
>>integrity check value.  The algorithm is:
>>
>>1.  Compute a 20 octet SHA-1 message digest on the
>>    content-encryption key.
>>2.  Use the most significant (first) eight octets of the
>>    message digest value as the checksum value.
>>
>>Triple-DES Key Wrap
>>
>>1.  Set odd parity for each of the DES key octets comprising
>>    the content-encryption key, call the result CEK.
>>2.  Compute a 8 octet key checksum value on CEK as described above,
>>    call the result ICV.
>>3.  Let CEKICV = CEK || ICV.
>>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>>    an IV of 0xc302e3c1ad8bb738.
>>5.  Reverse the order of the ciphertext octets.  That is, the most
>>    significant (first) octet is swapped with the least significant
>>    (last) octet, and so on.  Call the result TEMP.
>>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use
>>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.
>
>
>
>



From owner-ietf-smime@imc.org  Fri Feb 26 15:42:30 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA26435
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 15:42:29 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA04637
	for ietf-smime-bks; Fri, 26 Feb 1999 11:25:45 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA04633
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 11:25:43 -0800 (PST)
Received: from domino2.certicom.com (domino2.certicom.com [10.0.1.25])
	by eng1.certicom.com (8.8.7/8.8.7) with SMTP id OAA18212;
	Fri, 26 Feb 1999 14:31:48 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.1  (569.2 2-6-1998))  id 85256724.006B147E ; Fri, 26 Feb 1999 14:29:35 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: Russ Housley <housley@spyrus.com>
cc: "Bob Jueneman" <BJUENEMAN@novell.com>, ietf-smime@imc.org, cme@ACM.ORG,
        berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com,
        pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com,
        djohnson@certicom.ca, schneier@counterpane.com, daw@cs.berkeley.edu,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
        carlisle.adams@entrust.com, paulv@entrust.com,
        Blake.greenlee@greenlee.com, benaloh@microsoft.com, bfox@microsoft.com,
        cjwagne@missi.ncsc.mil, jis@mit.edu,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, burt@RSA.COM, ekr@rtfm.com,
        jlinn@securitydynamics.com, ams@terisa.com, rivest@theory.lcs.mit.edu,
        balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
        jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu
Message-ID: <85256724.006A41E9.00@domino2.certicom.com>
Date: Fri, 26 Feb 1999 14:19:35 -0500
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

Using a random IV for each encryption helps ensure that each block is
encrypted with the same strength, so my previous concerns about weaknesses
at the ends goes away.

Don Johnson





Russ Housley <housley@spyrus.com> on 02/26/99 12:51:44 PM

To:   "Bob Jueneman" <BJUENEMAN@novell.com>
cc:   ietf-smime@imc.org, cme@ACM.ORG, berson@anagram.com,
      bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
      mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
      schneier@counterpane.com, daw@cs.berkeley.edu,
      denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
      omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
      carlisle.adams@entrust.com, paulv@entrust.com,
      Blake.greenlee@greenlee.com, benaloh@microsoft.com,
      bfox@microsoft.com, cjwagne@missi.ncsc.mil, jis@mit.edu, "Tolga Acar"
      <TACAR.PRV-7.PROVO@novell.com>, merkle@parc.xerox.com,
      BSnow@radium.ncsc.mil, burt@RSA.COM, ekr@rtfm.com,
      jlinn@securitydynamics.com, ams@terisa.com,
      rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com,
      acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com,
      desmedt@uwm.edu (bcc: Don Johnson/Certicom)
Subject:  Re: A New Triple-DES Key Wrap Algorithm




Bob:

You raise an interesting point, but I think it can be easily solved by a
random IV for the first encryption. Of course, this makes the result one
block longer.  And, we would need a different IV for each wrapping.

Russ


At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
>Russ,
>
>There is a possible attack on the double encryption wrap algorithm
>that is a result of the constant IV construction. For that reason, I would
>strongly prefer the OAEP construction. Although it may look complicated
>because there are more steps, the number of line of code is really of no
>consequence at all, but the execution time is important for performance.
>
>Also, I continue to insist that we should not invent n-squared algorithm
>IDs for every possible combination of CEK algorithm and key length
>plus KEK algorithm and key length. Instead, I would _greatly_ prefer to
>first wrap the CEK in a ASN.1 structure that defines the CEK algorithm
>and key length, then whiten that structure with OAEP, encrypt the
resulting
>string with the KEK algorithm, and then provide generic instructions as
>to how to decode the result, either by wrapping the entire wrapped key
>blob in ASN.1 (preferably) or some other way.
>
>Here's the attack on the double-encryption wrapping:
>
>Although most exhaustive search engines divide up the search process
>across multiple machines in order to find a single key as quickly as
possible
>(e.g., the series of RSA challenge ciphers), there is another approach
>based on the use of an associative memory that I wrote up back
>in the '70's but never published.  I call it my "vacuum-cleaner" attack.
>
>Assume for the sake or argument that there are lots and lots of keys
>that have been or will be used to encrypt a known plaintext or
>stereotyped message.  (This is a standard assumption in cryptanalysis.)
>Actually, the attack will succeed with a somewhat weaker condition --
>it isn't necessary to actually know the plaintext -- it is sufficient that
>the plaintext be unvarying.
>
>Let's also assume that each key is used for some interesting purpose --
>sufficiently interesting that it may not be necessary to crack each and
every
>key -- just a few would be useful.  For example, if I were trying to carry
on
>a credit card attack, I don't have to find the key for Bill Gates' or
>Donald Trump's credit card -- just about anyone's will do, and the more
>the merrier.
>
>So for every new key that I have the engine try, I contrive to compare
>the result of encrypting the known plaintext against millions of valid
>ciphertexts that have been intercepted, looking for a match.  Assuming
>an effectively inexhaustible supply of ciphertexts is available, this
attack
>multiplies the effectiveness of the key search engine by an order of a
million
>or more, depending on the size of the associative memory that is
available.
>
>(The use of an associative memory isn't essential -- it was just a
gedanken
>experiment to speed up the comparison process without requiring sorting.)
>
>Two things should be noted.  First, this attack is independent of the KEK
>encryption algorithm used, assuming a fixed block size.  In other words,
>this would apply to single-DES, triple-DES, umpty-DES, 2048-bit RSA,
>or whatever, assuming a constant session key and constant padding.
>
>Second, the attack is also independent of the length or type of session
>key that is used, except that the yield is a Birthday Problem function of
the
>length of the key.  But given a fixed input, i.e., no random whitening or
>changing IV, then two or more matching outputs must imply a matching
>session key.
>
>This leads to a rather surprising result -- even if the KEK performs
double
>encryption using triple-DES (or any other algorithm without whitening)
>to wrap a 40 bit key, two matching session keys can be found with
>approximately 50% probability after only 2^20 or a million or so session
>keys have been generated.
>
>Perhaps more surprisingly, at least to people who haven't been down this
path,
>changing session keys more rapidly may hurt more than it helps -- it just
>exposes that many more keys to attack. Changing the session key often
>in the middle of a session may help limit the ability of the attacker to
>access the entire message, and hence limits the attacker's "take," but it
>increases the chances that a potentially interesting fragment of text
>may be exposed.
>
>I'm sure that someone would observe that sending even a million content
>encryption key encrypted in a constant KEK would be extremely unlikely
>in an S/MIME context, but whether that would really be true would require
>a more subtle, protocol-dependent analysis than I would care to make,
>and in addition I very much want to standardize on one key wrapping
>algorithm that is protocol independent, and not just for S/MIME.
>
>Obviously the above attack can be defeated by prepending some
>additional randomness or by changing the IV. But is also what the OAEP
>approach does, and rather more elegantly.  By the time we have to add
>either a changing IV or some additional randomness (how much would be
>required would have to be decided) the length would probably be close
>to that required for OAEP, which is a much more general solution.
>
>In my mind, at least, some extra bytes in the wrapped key is no big deal,
>but I would like the efficiency to be a good as possible. Triple-DES is
>expensive enough in terms of computational efficiency in software,
>especially in terms of the initial key expansion, and doing it twice
>would be worse yet.
>
>Because the new export regulations permit the use of double the key length
>used for data encryption to be used for key encryption, we are going to be
>using triple-DES in encrypt-decrypt-encrypt mode with only two keys
(A-B-A) for
>key wrapping of all export-grade CEK keys.
>
>This can be optimized by saving the key expansion of the first encryption,
and
>then reusing it for the final encryption.  This technique could
potentially be
>extended to the double encryption wrapping algorithm, by saving the key
>expansion used for all three steps, but in order to do that the
>"double-triple-DES"
>algorithm would probably have to be a single algorithm that is invoked --
>it would be quite difficult to securely save state across two separate
>encryption
>operations.
>
>So my preference, as I said earlier, would be to wrap the CEK in ASN.1,
>whiten with OAEP, and then encrypt using whatever KEK algorithm and
>key length is required, so we don't have to keep re-analyzing this problem
>for every new CEK or KEK algorithm or key length.
>
>If we can define appropriate algorithm IDs, I'm willing and eager to adopt
such
>a standard for  _all_ wrapped keys generated and used within our Novell
>International Cryptographic Infrastructure (NICI), even before S/MIME v3
>progresses to a full standard.  I'd be willing to assign an algorithm OID
>from the
>Novell tree, or we could probably get one from PKCS if there would be any
>problem getting one assigned by the IANA.
>
>Regards,
>
>Bob
>
>
>> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
>All:
>
>Right now, I am leaning toward the double encryption wrap algorithm.  I
>think it will be easy to implement, and it yeilds a shorter result that
the
>OAEP method.  To convince myself that it was easy to implement, I did an
>implementation.  It took me about two hours while watching an old Jimmy
>Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
>routines.  S/MIME v3 will require these algorithms for other capabilities
>besides key wrapping.
>
>If someone else is willing to do an implementation, I would like to
compare
>results.  This will allow a test vector to be included with the algorithm
>description.
>
>Does anyone have any strong objections to the double encryption wrap
>algorithm being selected?
>
>Russ
>
>
>>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>>
>>Key Checksum
>>
>>The CMS Checksum Algorithm is used to provide an content-encryption key
>>integrity check value.  The algorithm is:
>>
>>1.  Compute a 20 octet SHA-1 message digest on the
>>    content-encryption key.
>>2.  Use the most significant (first) eight octets of the
>>    message digest value as the checksum value.
>>
>>Triple-DES Key Wrap
>>
>>1.  Set odd parity for each of the DES key octets comprising
>>    the content-encryption key, call the result CEK.
>>2.  Compute a 8 octet key checksum value on CEK as described above,
>>    call the result ICV.
>>3.  Let CEKICV = CEK || ICV.
>>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>>    an IV of 0xc302e3c1ad8bb738.
>>5.  Reverse the order of the ciphertext octets.  That is, the most
>>    significant (first) octet is swapped with the least significant
>>    (last) octet, and so on.  Call the result TEMP.
>>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use
>>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.
>
>Robert R. Jueneman
>Security Architect
>Network Security Development
>Novell, Inc.
>122 East 1700 South
>Provo, UT 84606
>bjueneman@novell.com
>1-801-861-7387







From owner-ietf-smime@imc.org  Fri Feb 26 15:43:09 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA26478
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 15:43:08 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA04675
	for ietf-smime-bks; Fri, 26 Feb 1999 11:28:30 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA04671
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 11:28:28 -0800 (PST)
Received: from domino2.certicom.com (domino2.certicom.com [10.0.1.25])
	by eng1.certicom.com (8.8.7/8.8.7) with SMTP id OAA18210;
	Fri, 26 Feb 1999 14:31:47 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.1  (569.2 2-6-1998))  id 85256724.006B14C7 ; Fri, 26 Feb 1999 14:29:36 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: "Bob Jueneman" <BJUENEMAN@novell.com>
cc: housley@spyrus.com, cme@ACM.ORG, berson@anagram.com,
        bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
        mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
        schneier@counterpane.com, daw@cs.berkeley.edu,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
        carlisle.adams@entrust.com, paulv@entrust.com,
        Blake.greenlee@greenlee.com, ietf-smime@imc.org, benaloh@microsoft.com,
        bfox@microsoft.com, cjwagne@missi.ncsc.mil, jis@mit.edu,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, burt@RSA.COM, ekr@rtfm.com,
        jlinn@securitydynamics.com, ams@terisa.com, rivest@theory.lcs.mit.edu,
        balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
        jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu
Message-ID: <85256724.006AA08C.00@domino2.certicom.com>
Date: Fri, 26 Feb 1999 14:25:13 -0500
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Bob, Russ,

ASN.1 is very structured and can be considered to have many known values.
As such, strictly from an info theory viewpoint, use of ASN.1 and
confidentiality are are in opposition.  This does not mean it should be
forbidden, just that we would want to have very strong assurances about the
properties provided by the encryption to use ASN.1 or similar highly
structured formats.

Don Johnson





"Bob Jueneman" <BJUENEMAN@novell.com> on 02/26/99 01:38:19 PM

To:   housley@spyrus.com
cc:   cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com,
      kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
      brickell@certco.com, djohnson@certicom.ca, schneier@counterpane.com,
      daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu,
      smid@csmes.ncsl.nist.gov, omura@cylink.com,
      dickie@EMPIRE.eclipse.ncsc.mil, carlisle.adams@entrust.com,
      paulv@entrust.com, Blake.greenlee@greenlee.com, ietf-smime@imc.org,
      benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil,
      jis@mit.edu, "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>,
      merkle@parc.xerox.com, BSnow@radium.ncsc.mil, burt@RSA.COM,
      ekr@rtfm.com, jlinn@securitydynamics.com, ams@terisa.com,
      rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com,
      acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com,
      desmedt@uwm.edu (bcc: Don Johnson/Certicom)
Subject:  Re: A New Triple-DES Key Wrap Algorithm




Russ:

You are correct, of course.  The question, then, is whether
we should just go to the OAEP-type wrapping and not have
to worry about changing IV's and how to convey them.
That would be my recommendation.

On a slightly different issue, several times I have strongly urged
that in order to avoid the problem of having N-squared algorithm
IDs for all of the various combinations of CEK and KEK algorithms,
key lengths, and other miscellaneous data, that we first wrap
the CEK in a descriptive ASN.1 structure that describes the
the CEK algorithm/key, and then do the wrapping operation.

However, although I've raised this issue several times and indicated
our strong desire to solve the key wrapping issue once and for all,
you have neither incorporated the idea or argued against it,
so I don't know where you stand.

Obviously anyone who is processing certificates is going to have to
have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures
me that the performance implications would be negligible compared to
almost any encryption operation.

Assuming that is the case, the only reason I could see for not doing
it would be concern about the increase in wrapped key size,
or some lingering not-invented-here bias against ISO/ITU/X.500
mechanisms.  I certainly hope it isn't the later.

Is there anything in the existing protocol that is rigidly sensitive to
the size of the wrapped key?  If so, then that is a problem that
probably ought to be addressed.

If not, then I believe the architectural benefits would far outweigh
any increase in the size of the wrapped key.

Bob

>>> Russ Housley <housley@spyrus.com> 02/26/99 10:51AM >>>
Bob:

You raise an interesting point, but I think it can be easily solved by a
random IV for the first encryption. Of course, this makes the result one
block longer.  And, we would need a different IV for each wrapping.

Russ


At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
>Russ,
>
>There is a possible attack on the double encryption wrap algorithm
>that is a result of the constant IV construction. For that reason, I would
>strongly prefer the OAEP construction. Although it may look complicated
>because there are more steps, the number of line of code is really of no
>consequence at all, but the execution time is important for performance.
>
>Also, I continue to insist that we should not invent n-squared algorithm
>IDs for every possible combination of CEK algorithm and key length
>plus KEK algorithm and key length. Instead, I would _greatly_ prefer to
>first wrap the CEK in a ASN.1 structure that defines the CEK algorithm
>and key length, then whiten that structure with OAEP, encrypt the
resulting
>string with the KEK algorithm, and then provide generic instructions as
>to how to decode the result, either by wrapping the entire wrapped key
>blob in ASN.1 (preferably) or some other way.
>
>Here's the attack on the double-encryption wrapping:
>
>Although most exhaustive search engines divide up the search process
>across multiple machines in order to find a single key as quickly as
possible
>(e.g., the series of RSA challenge ciphers), there is another approach
>based on the use of an associative memory that I wrote up back
>in the '70's but never published.  I call it my "vacuum-cleaner" attack.
>
>Assume for the sake or argument that there are lots and lots of keys
>that have been or will be used to encrypt a known plaintext or
>stereotyped message.  (This is a standard assumption in cryptanalysis.)
>Actually, the attack will succeed with a somewhat weaker condition --
>it isn't necessary to actually know the plaintext -- it is sufficient that
>the plaintext be unvarying.
>
>Let's also assume that each key is used for some interesting purpose --
>sufficiently interesting that it may not be necessary to crack each and
every
>key -- just a few would be useful.  For example, if I were trying to carry
on
>a credit card attack, I don't have to find the key for Bill Gates' or
>Donald Trump's credit card -- just about anyone's will do, and the more
>the merrier.
>
>So for every new key that I have the engine try, I contrive to compare
>the result of encrypting the known plaintext against millions of valid
>ciphertexts that have been intercepted, looking for a match.  Assuming
>an effectively inexhaustible supply of ciphertexts is available, this
attack
>multiplies the effectiveness of the key search engine by an order of a
million
>or more, depending on the size of the associative memory that is
available.
>
>(The use of an associative memory isn't essential -- it was just a
gedanken
>experiment to speed up the comparison process without requiring sorting.)
>
>Two things should be noted.  First, this attack is independent of the KEK
>encryption algorithm used, assuming a fixed block size.  In other words,
>this would apply to single-DES, triple-DES, umpty-DES, 2048-bit RSA,
>or whatever, assuming a constant session key and constant padding.
>
>Second, the attack is also independent of the length or type of session
>key that is used, except that the yield is a Birthday Problem function of
the
>length of the key.  But given a fixed input, i.e., no random whitening or
>changing IV, then two or more matching outputs must imply a matching
>session key.
>
>This leads to a rather surprising result -- even if the KEK performs
double
>encryption using triple-DES (or any other algorithm without whitening)
>to wrap a 40 bit key, two matching session keys can be found with
>approximately 50% probability after only 2^20 or a million or so session
>keys have been generated.
>
>Perhaps more surprisingly, at least to people who haven't been down this
path,
>changing session keys more rapidly may hurt more than it helps -- it just
>exposes that many more keys to attack. Changing the session key often
>in the middle of a session may help limit the ability of the attacker to
>access the entire message, and hence limits the attacker's "take," but it
>increases the chances that a potentially interesting fragment of text
>may be exposed.
>
>I'm sure that someone would observe that sending even a million content
>encryption key encrypted in a constant KEK would be extremely unlikely
>in an S/MIME context, but whether that would really be true would require
>a more subtle, protocol-dependent analysis than I would care to make,
>and in addition I very much want to standardize on one key wrapping
>algorithm that is protocol independent, and not just for S/MIME.
>
>Obviously the above attack can be defeated by prepending some
>additional randomness or by changing the IV. But is also what the OAEP
>approach does, and rather more elegantly.  By the time we have to add
>either a changing IV or some additional randomness (how much would be
>required would have to be decided) the length would probably be close
>to that required for OAEP, which is a much more general solution.
>
>In my mind, at least, some extra bytes in the wrapped key is no big deal,
>but I would like the efficiency to be a good as possible. Triple-DES is
>expensive enough in terms of computational efficiency in software,
>especially in terms of the initial key expansion, and doing it twice
>would be worse yet.
>
>Because the new export regulations permit the use of double the key length
>used for data encryption to be used for key encryption, we are going to be
>using triple-DES in encrypt-decrypt-encrypt mode with only two keys
(A-B-A) for
>key wrapping of all export-grade CEK keys.
>
>This can be optimized by saving the key expansion of the first encryption,
and
>then reusing it for the final encryption.  This technique could
potentially be
>extended to the double encryption wrapping algorithm, by saving the key
>expansion used for all three steps, but in order to do that the
>"double-triple-DES"
>algorithm would probably have to be a single algorithm that is invoked --
>it would be quite difficult to securely save state across two separate
>encryption
>operations.
>
>So my preference, as I said earlier, would be to wrap the CEK in ASN.1,
>whiten with OAEP, and then encrypt using whatever KEK algorithm and
>key length is required, so we don't have to keep re-analyzing this problem
>for every new CEK or KEK algorithm or key length.
>
>If we can define appropriate algorithm IDs, I'm willing and eager to adopt
such
>a standard for  _all_ wrapped keys generated and used within our Novell
>International Cryptographic Infrastructure (NICI), even before S/MIME v3
>progresses to a full standard.  I'd be willing to assign an algorithm OID
>from the
>Novell tree, or we could probably get one from PKCS if there would be any
>problem getting one assigned by the IANA.
>
>Regards,
>
>Bob
>
>
>> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
>All:
>
>Right now, I am leaning toward the double encryption wrap algorithm.  I
>think it will be easy to implement, and it yeilds a shorter result that
the
>OAEP method.  To convince myself that it was easy to implement, I did an
>implementation.  It took me about two hours while watching an old Jimmy
>Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
>routines.  S/MIME v3 will require these algorithms for other capabilities
>besides key wrapping.
>
>If someone else is willing to do an implementation, I would like to
compare
>results.  This will allow a test vector to be included with the algorithm
>description.
>
>Does anyone have any strong objections to the double encryption wrap
>algorithm being selected?
>
>Russ
>
>
>>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>>
>>Key Checksum
>>
>>The CMS Checksum Algorithm is used to provide an content-encryption key
>>integrity check value.  The algorithm is:
>>
>>1.  Compute a 20 octet SHA-1 message digest on the
>>    content-encryption key.
>>2.  Use the most significant (first) eight octets of the
>>    message digest value as the checksum value.
>>
>>Triple-DES Key Wrap
>>
>>1.  Set odd parity for each of the DES key octets comprising
>>    the content-encryption key, call the result CEK.
>>2.  Compute a 8 octet key checksum value on CEK as described above,
>>    call the result ICV.
>>3.  Let CEKICV = CEK || ICV.
>>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>>    an IV of 0xc302e3c1ad8bb738.
>>5.  Reverse the order of the ciphertext octets.  That is, the most
>>    significant (first) octet is swapped with the least significant
>>    (last) octet, and so on.  Call the result TEMP.
>>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use
>>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.
>
>Robert R. Jueneman
>Security Architect
>Network Security Development
>Novell, Inc.
>122 East 1700 South
>Provo, UT 84606
>bjueneman@novell.com
>1-801-861-7387







From owner-ietf-smime@imc.org  Fri Feb 26 15:50:31 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA26618
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 15:50:30 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA04871
	for ietf-smime-bks; Fri, 26 Feb 1999 11:48:03 -0800 (PST)
Received: from eagle.rsa.com (eagle.rsa.com [192.80.211.35])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id LAA04867
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 11:48:02 -0800 (PST)
Received: from [10.81.217.217] by eagle.rsa.com
          via smtpd (for imc.org [206.184.129.134]) with SMTP; 26 Feb 1999 20:12:17 UT
Received: by lobester.rsa.com with Internet Mail Service (5.5.2232.9)
	id <ZNLAR1LG>; Fri, 26 Feb 1999 11:57:24 -0800
Message-ID: <6236E58EC451D1119E80006097040ED9C61430@lobester.rsa.com>
From: Kevin Kingdon <kevin@RSA.COM>
To: "'Don Johnson'" <djohnson@certicom.com>,
        Bob Jueneman
	 <BJUENEMAN@novell.com>
Cc: housley@spyrus.com, cme@ACM.ORG, berson@anagram.com,
        bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
        mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
        schneier@counterpane.com, daw@cs.berkeley.edu,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
        carlisle.adams@entrust.com, paulv@entrust.com,
        Blake.greenlee@greenlee.com, ietf-smime@imc.org, benaloh@microsoft.com,
        bfox@microsoft.com, cjwagne@missi.ncsc.mil, jis@mit.edu,
        Tolga Acar
	 <TACAR.PRV-7.PROVO@novell.com>, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, Burt Kaliski <burt@RSA.COM>, ekr@rtfm.com,
        jlinn@securitydynamics.com, ams@terisa.com,
        Ron Rivest
	 <rivest@theory.lcs.mit.edu>, balenson@tis.com,
        denny@tis.com, acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
        smatyas@us.ibm.com, desmedt@uwm.edu
Subject: RE: A New Triple-DES Key Wrap Algorithm
Date: Fri, 26 Feb 1999 11:57:22 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Don,

Are you saying that the input (plaintext) to an encryption operation must
not be structured? I thought that was what encryption was all about - hiding
the structure / information content of the plaintext. In any case, doesn't
using OAEP as a part of an encryption scheme mask the plaintext structure
just in case the encryption primitive is vulnerable to attacks that take
advantage of that structure?

Kevin
		-----Original Message-----
		From:	Don Johnson [mailto:djohnson@certicom.com]
		Sent:	Friday, February 26, 1999 11:25 AM
		To:	Bob Jueneman
		Cc:	housley@spyrus.com; cme@ACM.ORG; berson@anagram.com;
bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
schneier@counterpane.com; daw@cs.berkeley.edu;
denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov; omura@cylink.com;
dickie@EMPIRE.eclipse.ncsc.mil; carlisle.adams@entrust.com;
paulv@entrust.com; Blake.greenlee@greenlee.com; ietf-smime@imc.org;
benaloh@microsoft.com; bfox@microsoft.com; cjwagne@missi.ncsc.mil;
jis@mit.edu; Tolga Acar; merkle@parc.xerox.com; BSnow@radium.ncsc.mil; Burt
Kaliski; ekr@rtfm.com; jlinn@securitydynamics.com; ams@terisa.com; Ron
Rivest; balenson@tis.com; denny@tis.com; acc@tycho.ncsc.mil;
jhs@tycho.ncsc.mil; smatyas@us.ibm.com; desmedt@uwm.edu
		Subject:	Re: A New Triple-DES Key Wrap Algorithm

		Bob, Russ,

		ASN.1 is very structured and can be considered to have many
known values.
		As such, strictly from an info theory viewpoint, use of
ASN.1 and
		confidentiality are are in opposition.  This does not mean
it should be
		forbidden, just that we would want to have very strong
assurances about the
		properties provided by the encryption to use ASN.1 or
similar highly
		structured formats.

		Don Johnson





		"Bob Jueneman" <BJUENEMAN@novell.com> on 02/26/99 01:38:19
PM

		To:   housley@spyrus.com
		cc:   cme@ACM.ORG, berson@anagram.com,
bschanni@BayNetworks.com,
		      kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
		      brickell@certco.com, djohnson@certicom.ca,
schneier@counterpane.com,
		      daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu,
		      smid@csmes.ncsl.nist.gov, omura@cylink.com,
		      dickie@EMPIRE.eclipse.ncsc.mil,
carlisle.adams@entrust.com,
		      paulv@entrust.com, Blake.greenlee@greenlee.com,
ietf-smime@imc.org,
		      benaloh@microsoft.com, bfox@microsoft.com,
cjwagne@missi.ncsc.mil,
		      jis@mit.edu, "Tolga Acar"
<TACAR.PRV-7.PROVO@novell.com>,
		      merkle@parc.xerox.com, BSnow@radium.ncsc.mil,
burt@RSA.COM,
		      ekr@rtfm.com, jlinn@securitydynamics.com,
ams@terisa.com,
		      rivest@theory.lcs.mit.edu, balenson@tis.com,
denny@tis.com,
		      acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
smatyas@us.ibm.com,
		      desmedt@uwm.edu (bcc: Don Johnson/Certicom)
		Subject:  Re: A New Triple-DES Key Wrap Algorithm




		Russ:

		You are correct, of course.  The question, then, is whether
		we should just go to the OAEP-type wrapping and not have
		to worry about changing IV's and how to convey them.
		That would be my recommendation.

		On a slightly different issue, several times I have strongly
urged
		that in order to avoid the problem of having N-squared
algorithm
		IDs for all of the various combinations of CEK and KEK
algorithms,
		key lengths, and other miscellaneous data, that we first
wrap
		the CEK in a descriptive ASN.1 structure that describes the
		the CEK algorithm/key, and then do the wrapping operation.

		However, although I've raised this issue several times and
indicated
		our strong desire to solve the key wrapping issue once and
for all,
		you have neither incorporated the idea or argued against it,
		so I don't know where you stand.

		Obviously anyone who is processing certificates is going to
have to
		have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures
		me that the performance implications would be negligible
compared to
		almost any encryption operation.

		Assuming that is the case, the only reason I could see for
not doing
		it would be concern about the increase in wrapped key size,
		or some lingering not-invented-here bias against
ISO/ITU/X.500
		mechanisms.  I certainly hope it isn't the later.

		Is there anything in the existing protocol that is rigidly
sensitive to
		the size of the wrapped key?  If so, then that is a problem
that
		probably ought to be addressed.

		If not, then I believe the architectural benefits would far
outweigh
		any increase in the size of the wrapped key.

		Bob

		>>> Russ Housley <housley@spyrus.com> 02/26/99 10:51AM >>>
		Bob:

		You raise an interesting point, but I think it can be easily
solved by a
		random IV for the first encryption. Of course, this makes
the result one
		block longer.  And, we would need a different IV for each
wrapping.

		Russ


		At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
		>Russ,
		>
		>There is a possible attack on the double encryption wrap
algorithm
		>that is a result of the constant IV construction. For that
reason, I would
		>strongly prefer the OAEP construction. Although it may look
complicated
		>because there are more steps, the number of line of code is
really of no
		>consequence at all, but the execution time is important for
performance.
		>
		>Also, I continue to insist that we should not invent
n-squared algorithm
		>IDs for every possible combination of CEK algorithm and key
length
		>plus KEK algorithm and key length. Instead, I would
_greatly_ prefer to
		>first wrap the CEK in a ASN.1 structure that defines the
CEK algorithm
		>and key length, then whiten that structure with OAEP,
encrypt the
		resulting
		>string with the KEK algorithm, and then provide generic
instructions as
		>to how to decode the result, either by wrapping the entire
wrapped key
		>blob in ASN.1 (preferably) or some other way.
		>
		>Here's the attack on the double-encryption wrapping:
		>
		>Although most exhaustive search engines divide up the
search process
		>across multiple machines in order to find a single key as
quickly as
		possible
		>(e.g., the series of RSA challenge ciphers), there is
another approach
		>based on the use of an associative memory that I wrote up
back
		>in the '70's but never published.  I call it my
"vacuum-cleaner" attack.
		>
		>Assume for the sake or argument that there are lots and
lots of keys
		>that have been or will be used to encrypt a known plaintext
or
		>stereotyped message.  (This is a standard assumption in
cryptanalysis.)
		>Actually, the attack will succeed with a somewhat weaker
condition --
		>it isn't necessary to actually know the plaintext -- it is
sufficient that
		>the plaintext be unvarying.
		>
		>Let's also assume that each key is used for some
interesting purpose --
		>sufficiently interesting that it may not be necessary to
crack each and
		every
		>key -- just a few would be useful.  For example, if I were
trying to carry
		on
		>a credit card attack, I don't have to find the key for Bill
Gates' or
		>Donald Trump's credit card -- just about anyone's will do,
and the more
		>the merrier.
		>
		>So for every new key that I have the engine try, I contrive
to compare
		>the result of encrypting the known plaintext against
millions of valid
		>ciphertexts that have been intercepted, looking for a
match.  Assuming
		>an effectively inexhaustible supply of ciphertexts is
available, this
		attack
		>multiplies the effectiveness of the key search engine by an
order of a
		million
		>or more, depending on the size of the associative memory
that is
		available.
		>
		>(The use of an associative memory isn't essential -- it was
just a
		gedanken
		>experiment to speed up the comparison process without
requiring sorting.)
		>
		>Two things should be noted.  First, this attack is
independent of the KEK
		>encryption algorithm used, assuming a fixed block size.  In
other words,
		>this would apply to single-DES, triple-DES, umpty-DES,
2048-bit RSA,
		>or whatever, assuming a constant session key and constant
padding.
		>
		>Second, the attack is also independent of the length or
type of session
		>key that is used, except that the yield is a Birthday
Problem function of
		the
		>length of the key.  But given a fixed input, i.e., no
random whitening or
		>changing IV, then two or more matching outputs must imply a
matching
		>session key.
		>
		>This leads to a rather surprising result -- even if the KEK
performs
		double
		>encryption using triple-DES (or any other algorithm without
whitening)
		>to wrap a 40 bit key, two matching session keys can be
found with
		>approximately 50% probability after only 2^20 or a million
or so session
		>keys have been generated.
		>
		>Perhaps more surprisingly, at least to people who haven't
been down this
		path,
		>changing session keys more rapidly may hurt more than it
helps -- it just
		>exposes that many more keys to attack. Changing the session
key often
		>in the middle of a session may help limit the ability of
the attacker to
		>access the entire message, and hence limits the attacker's
"take," but it
		>increases the chances that a potentially interesting
fragment of text
		>may be exposed.
		>
		>I'm sure that someone would observe that sending even a
million content
		>encryption key encrypted in a constant KEK would be
extremely unlikely
		>in an S/MIME context, but whether that would really be true
would require
		>a more subtle, protocol-dependent analysis than I would
care to make,
		>and in addition I very much want to standardize on one key
wrapping
		>algorithm that is protocol independent, and not just for
S/MIME.
		>
		>Obviously the above attack can be defeated by prepending
some
		>additional randomness or by changing the IV. But is also
what the OAEP
		>approach does, and rather more elegantly.  By the time we
have to add
		>either a changing IV or some additional randomness (how
much would be
		>required would have to be decided) the length would
probably be close
		>to that required for OAEP, which is a much more general
solution.
		>
		>In my mind, at least, some extra bytes in the wrapped key
is no big deal,
		>but I would like the efficiency to be a good as possible.
Triple-DES is
		>expensive enough in terms of computational efficiency in
software,
		>especially in terms of the initial key expansion, and doing
it twice
		>would be worse yet.
		>
		>Because the new export regulations permit the use of double
the key length
		>used for data encryption to be used for key encryption, we
are going to be
		>using triple-DES in encrypt-decrypt-encrypt mode with only
two keys
		(A-B-A) for
		>key wrapping of all export-grade CEK keys.
		>
		>This can be optimized by saving the key expansion of the
first encryption,
		and
		>then reusing it for the final encryption.  This technique
could
		potentially be
		>extended to the double encryption wrapping algorithm, by
saving the key
		>expansion used for all three steps, but in order to do that
the
		>"double-triple-DES"
		>algorithm would probably have to be a single algorithm that
is invoked --
		>it would be quite difficult to securely save state across
two separate
		>encryption
		>operations.
		>
		>So my preference, as I said earlier, would be to wrap the
CEK in ASN.1,
		>whiten with OAEP, and then encrypt using whatever KEK
algorithm and
		>key length is required, so we don't have to keep
re-analyzing this problem
		>for every new CEK or KEK algorithm or key length.
		>
		>If we can define appropriate algorithm IDs, I'm willing and
eager to adopt
		such
		>a standard for  _all_ wrapped keys generated and used
within our Novell
		>International Cryptographic Infrastructure (NICI), even
before S/MIME v3
		>progresses to a full standard.  I'd be willing to assign an
algorithm OID
		>from the
		>Novell tree, or we could probably get one from PKCS if
there would be any
		>problem getting one assigned by the IANA.
		>
		>Regards,
		>
		>Bob
		>
		>
		>> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
		>All:
		>
		>Right now, I am leaning toward the double encryption wrap
algorithm.  I
		>think it will be easy to implement, and it yeilds a shorter
result that
		the
		>OAEP method.  To convince myself that it was easy to
implement, I did an
		>implementation.  It took me about two hours while watching
an old Jimmy
		>Stewart movie.  Of course, I already have SHA-1 and
Triple-DES CBC
		>routines.  S/MIME v3 will require these algorithms for
other capabilities
		>besides key wrapping.
		>
		>If someone else is willing to do an implementation, I would
like to
		compare
		>results.  This will allow a test vector to be included with
the algorithm
		>description.
		>
		>Does anyone have any strong objections to the double
encryption wrap
		>algorithm being selected?
		>
		>Russ
		>
		>
		>>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
		>>
		>>Key Checksum
		>>
		>>The CMS Checksum Algorithm is used to provide an
content-encryption key
		>>integrity check value.  The algorithm is:
		>>
		>>1.  Compute a 20 octet SHA-1 message digest on the
		>>    content-encryption key.
		>>2.  Use the most significant (first) eight octets of the
		>>    message digest value as the checksum value.
		>>
		>>Triple-DES Key Wrap
		>>
		>>1.  Set odd parity for each of the DES key octets
comprising
		>>    the content-encryption key, call the result CEK.
		>>2.  Compute a 8 octet key checksum value on CEK as
described above,
		>>    call the result ICV.
		>>3.  Let CEKICV = CEK || ICV.
		>>4.  Encrypt CEKICV in CBC mode using the key-encryption
key.  Use
		>>    an IV of 0xc302e3c1ad8bb738.
		>>5.  Reverse the order of the ciphertext octets.  That is,
the most
		>>    significant (first) octet is swapped with the least
significant
		>>    (last) octet, and so on.  Call the result TEMP.
		>>6.  Encrypt TEMP in CBC mode using the key-encryption key.
Use
		>>    an IV of 0x61a197e5b132e196.  The ciphertext is 32
octets long.
		>
		>Robert R. Jueneman
		>Security Architect
		>Network Security Development
		>Novell, Inc.
		>122 East 1700 South
		>Provo, UT 84606
		>bjueneman@novell.com
		>1-801-861-7387



		


From owner-ietf-smime@imc.org  Fri Feb 26 18:02:50 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA03004
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 18:02:49 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA06090
	for ietf-smime-bks; Fri, 26 Feb 1999 13:48:23 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA06086
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 13:48:21 -0800 (PST)
Received: from domino2.certicom.com (domino2.certicom.com [10.0.1.25])
	by eng1.certicom.com (8.8.7/8.8.7) with SMTP id QAA21167;
	Fri, 26 Feb 1999 16:53:28 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.1  (569.2 2-6-1998))  id 85256724.0077E17B ; Fri, 26 Feb 1999 16:49:25 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: Kevin Kingdon <kevin@RSA.COM>
cc: Bob Jueneman <BJUENEMAN@novell.com>, housley@spyrus.com, cme@ACM.ORG,
        berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com,
        pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com,
        djohnson@certicom.ca, schneier@counterpane.com, daw@cs.berkeley.edu,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
        carlisle.adams@entrust.com, paulv@entrust.com,
        Blake.greenlee@greenlee.com, ietf-smime@imc.org, benaloh@microsoft.com,
        bfox@microsoft.com, cjwagne@missi.ncsc.mil, jis@mit.edu,
        Tolga Acar <TACAR.PRV-7.PROVO@novell.com>, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, Burt Kaliski <burt@RSA.COM>, ekr@rtfm.com,
        jlinn@securitydynamics.com, ams@terisa.com,
        Ron Rivest <rivest@theory.lcs.mit.edu>, balenson@tis.com,
        denny@tis.com, acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
        smatyas@us.ibm.com, desmedt@uwm.edu
Message-ID: <85256724.007705DA.00@domino2.certicom.com>
Date: Fri, 26 Feb 1999 16:46:34 -0500
Subject: RE: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Kevin,

Here is what I am saying, I do not think it is not controversial.

1. For any confidentiality method, such as encryption, adding in known
quantities: A) does not keep them confidential, as they are known, and B)
may give an adversary a toehold he would not otherwise have, for example,
with encryption he will know some plaintext and resulting ciphertext (in
the worst case some blocks of known plaintext/ciphertext).

2. For that reason, I resist adding in known data to data that is intended
to be kept confidential.  It is not forbidden to add in known data, I just
want to believe that the cost/benefit tradeoff makes it worthwhile.  And I
try to keep down the amount of known data if possible.

Don Johnson





Kevin Kingdon <kevin@rsa.com> on 02/26/99 02:57:22 PM

To:   Don Johnson/Certicom, Bob Jueneman <BJUENEMAN@novell.com>
cc:   housley@spyrus.com, cme@ACM.ORG, berson@anagram.com,
      bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
      mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
      schneier@counterpane.com, daw@cs.berkeley.edu,
      denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
      omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
      carlisle.adams@entrust.com, paulv@entrust.com,
      Blake.greenlee@greenlee.com, ietf-smime@imc.org,
      benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil,
      jis@mit.edu, Tolga Acar <TACAR.PRV-7.PROVO@novell.com>,
      merkle@parc.xerox.com, BSnow@radium.ncsc.mil, Burt Kaliski
      <burt@rsa.com>, ekr@rtfm.com, jlinn@securitydynamics.com,
      ams@terisa.com, Ron Rivest <rivest@theory.lcs.mit.edu>,
      balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
      jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu
Subject:  RE: A New Triple-DES Key Wrap Algorithm




Don,

Are you saying that the input (plaintext) to an encryption operation must
not be structured? I thought that was what encryption was all about -
hiding
the structure / information content of the plaintext. In any case, doesn't
using OAEP as a part of an encryption scheme mask the plaintext structure
just in case the encryption primitive is vulnerable to attacks that take
advantage of that structure?

Kevin
          -----Original Message-----
          From:     Don Johnson [mailto:djohnson@certicom.com]
          Sent:     Friday, February 26, 1999 11:25 AM
          To:  Bob Jueneman
          Cc:  housley@spyrus.com; cme@ACM.ORG; berson@anagram.com;
bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
schneier@counterpane.com; daw@cs.berkeley.edu;
denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov; omura@cylink.com;
dickie@EMPIRE.eclipse.ncsc.mil; carlisle.adams@entrust.com;
paulv@entrust.com; Blake.greenlee@greenlee.com; ietf-smime@imc.org;
benaloh@microsoft.com; bfox@microsoft.com; cjwagne@missi.ncsc.mil;
jis@mit.edu; Tolga Acar; merkle@parc.xerox.com; BSnow@radium.ncsc.mil; Burt
Kaliski; ekr@rtfm.com; jlinn@securitydynamics.com; ams@terisa.com; Ron
Rivest; balenson@tis.com; denny@tis.com; acc@tycho.ncsc.mil;
jhs@tycho.ncsc.mil; smatyas@us.ibm.com; desmedt@uwm.edu
          Subject:  Re: A New Triple-DES Key Wrap Algorithm

          Bob, Russ,

          ASN.1 is very structured and can be considered to have many
known values.
          As such, strictly from an info theory viewpoint, use of
ASN.1 and
          confidentiality are are in opposition.  This does not mean
it should be
          forbidden, just that we would want to have very strong
assurances about the
          properties provided by the encryption to use ASN.1 or
similar highly
          structured formats.

          Don Johnson





          "Bob Jueneman" <BJUENEMAN@novell.com> on 02/26/99 01:38:19
PM

          To:   housley@spyrus.com
          cc:   cme@ACM.ORG, berson@anagram.com,
bschanni@BayNetworks.com,
                kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
                brickell@certco.com, djohnson@certicom.ca,
schneier@counterpane.com,
                daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu,
                smid@csmes.ncsl.nist.gov, omura@cylink.com,
                dickie@EMPIRE.eclipse.ncsc.mil,
carlisle.adams@entrust.com,
                paulv@entrust.com, Blake.greenlee@greenlee.com,
ietf-smime@imc.org,
                benaloh@microsoft.com, bfox@microsoft.com,
cjwagne@missi.ncsc.mil,
                jis@mit.edu, "Tolga Acar"
<TACAR.PRV-7.PROVO@novell.com>,
                merkle@parc.xerox.com, BSnow@radium.ncsc.mil,
burt@RSA.COM,
                ekr@rtfm.com, jlinn@securitydynamics.com,
ams@terisa.com,
                rivest@theory.lcs.mit.edu, balenson@tis.com,
denny@tis.com,
                acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
smatyas@us.ibm.com,
                desmedt@uwm.edu (bcc: Don Johnson/Certicom)
          Subject:  Re: A New Triple-DES Key Wrap Algorithm




          Russ:

          You are correct, of course.  The question, then, is whether
          we should just go to the OAEP-type wrapping and not have
          to worry about changing IV's and how to convey them.
          That would be my recommendation.

          On a slightly different issue, several times I have strongly
urged
          that in order to avoid the problem of having N-squared
algorithm
          IDs for all of the various combinations of CEK and KEK
algorithms,
          key lengths, and other miscellaneous data, that we first
wrap
          the CEK in a descriptive ASN.1 structure that describes the
          the CEK algorithm/key, and then do the wrapping operation.

          However, although I've raised this issue several times and
indicated
          our strong desire to solve the key wrapping issue once and
for all,
          you have neither incorporated the idea or argued against it,
          so I don't know where you stand.

          Obviously anyone who is processing certificates is going to
have to
          have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures
          me that the performance implications would be negligible
compared to
          almost any encryption operation.

          Assuming that is the case, the only reason I could see for
not doing
          it would be concern about the increase in wrapped key size,
          or some lingering not-invented-here bias against
ISO/ITU/X.500
          mechanisms.  I certainly hope it isn't the later.

          Is there anything in the existing protocol that is rigidly
sensitive to
          the size of the wrapped key?  If so, then that is a problem
that
          probably ought to be addressed.

          If not, then I believe the architectural benefits would far
outweigh
          any increase in the size of the wrapped key.

          Bob

          >>> Russ Housley <housley@spyrus.com> 02/26/99 10:51AM >>>
          Bob:

          You raise an interesting point, but I think it can be easily
solved by a
          random IV for the first encryption. Of course, this makes
the result one
          block longer.  And, we would need a different IV for each
wrapping.

          Russ


          At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
          >Russ,
          >
          >There is a possible attack on the double encryption wrap
algorithm
          >that is a result of the constant IV construction. For that
reason, I would
          >strongly prefer the OAEP construction. Although it may look
complicated
          >because there are more steps, the number of line of code is
really of no
          >consequence at all, but the execution time is important for
performance.
          >
          >Also, I continue to insist that we should not invent
n-squared algorithm
          >IDs for every possible combination of CEK algorithm and key
length
          >plus KEK algorithm and key length. Instead, I would
_greatly_ prefer to
          >first wrap the CEK in a ASN.1 structure that defines the
CEK algorithm
          >and key length, then whiten that structure with OAEP,
encrypt the
          resulting
          >string with the KEK algorithm, and then provide generic
instructions as
          >to how to decode the result, either by wrapping the entire
wrapped key
          >blob in ASN.1 (preferably) or some other way.
          >
          >Here's the attack on the double-encryption wrapping:
          >
          >Although most exhaustive search engines divide up the
search process
          >across multiple machines in order to find a single key as
quickly as
          possible
          >(e.g., the series of RSA challenge ciphers), there is
another approach
          >based on the use of an associative memory that I wrote up
back
          >in the '70's but never published.  I call it my
"vacuum-cleaner" attack.
          >
          >Assume for the sake or argument that there are lots and
lots of keys
          >that have been or will be used to encrypt a known plaintext
or
          >stereotyped message.  (This is a standard assumption in
cryptanalysis.)
          >Actually, the attack will succeed with a somewhat weaker
condition --
          >it isn't necessary to actually know the plaintext -- it is
sufficient that
          >the plaintext be unvarying.
          >
          >Let's also assume that each key is used for some
interesting purpose --
          >sufficiently interesting that it may not be necessary to
crack each and
          every
          >key -- just a few would be useful.  For example, if I were
trying to carry
          on
          >a credit card attack, I don't have to find the key for Bill
Gates' or
          >Donald Trump's credit card -- just about anyone's will do,
and the more
          >the merrier.
          >
          >So for every new key that I have the engine try, I contrive
to compare
          >the result of encrypting the known plaintext against
millions of valid
          >ciphertexts that have been intercepted, looking for a
match.  Assuming
          >an effectively inexhaustible supply of ciphertexts is
available, this
          attack
          >multiplies the effectiveness of the key search engine by an
order of a
          million
          >or more, depending on the size of the associative memory
that is
          available.
          >
          >(The use of an associative memory isn't essential -- it was
just a
          gedanken
          >experiment to speed up the comparison process without
requiring sorting.)
          >
          >Two things should be noted.  First, this attack is
independent of the KEK
          >encryption algorithm used, assuming a fixed block size.  In
other words,
          >this would apply to single-DES, triple-DES, umpty-DES,
2048-bit RSA,
          >or whatever, assuming a constant session key and constant
padding.
          >
          >Second, the attack is also independent of the length or
type of session
          >key that is used, except that the yield is a Birthday
Problem function of
          the
          >length of the key.  But given a fixed input, i.e., no
random whitening or
          >changing IV, then two or more matching outputs must imply a
matching
          >session key.
          >
          >This leads to a rather surprising result -- even if the KEK
performs
          double
          >encryption using triple-DES (or any other algorithm without
whitening)
          >to wrap a 40 bit key, two matching session keys can be
found with
          >approximately 50% probability after only 2^20 or a million
or so session
          >keys have been generated.
          >
          >Perhaps more surprisingly, at least to people who haven't
been down this
          path,
          >changing session keys more rapidly may hurt more than it
helps -- it just
          >exposes that many more keys to attack. Changing the session
key often
          >in the middle of a session may help limit the ability of
the attacker to
          >access the entire message, and hence limits the attacker's
"take," but it
          >increases the chances that a potentially interesting
fragment of text
          >may be exposed.
          >
          >I'm sure that someone would observe that sending even a
million content
          >encryption key encrypted in a constant KEK would be
extremely unlikely
          >in an S/MIME context, but whether that would really be true
would require
          >a more subtle, protocol-dependent analysis than I would
care to make,
          >and in addition I very much want to standardize on one key
wrapping
          >algorithm that is protocol independent, and not just for
S/MIME.
          >
          >Obviously the above attack can be defeated by prepending
some
          >additional randomness or by changing the IV. But is also
what the OAEP
          >approach does, and rather more elegantly.  By the time we
have to add
          >either a changing IV or some additional randomness (how
much would be
          >required would have to be decided) the length would
probably be close
          >to that required for OAEP, which is a much more general
solution.
          >
          >In my mind, at least, some extra bytes in the wrapped key
is no big deal,
          >but I would like the efficiency to be a good as possible.
Triple-DES is
          >expensive enough in terms of computational efficiency in
software,
          >especially in terms of the initial key expansion, and doing
it twice
          >would be worse yet.
          >
          >Because the new export regulations permit the use of double
the key length
          >used for data encryption to be used for key encryption, we
are going to be
          >using triple-DES in encrypt-decrypt-encrypt mode with only
two keys
          (A-B-A) for
          >key wrapping of all export-grade CEK keys.
          >
          >This can be optimized by saving the key expansion of the
first encryption,
          and
          >then reusing it for the final encryption.  This technique
could
          potentially be
          >extended to the double encryption wrapping algorithm, by
saving the key
          >expansion used for all three steps, but in order to do that
the
          >"double-triple-DES"
          >algorithm would probably have to be a single algorithm that
is invoked --
          >it would be quite difficult to securely save state across
two separate
          >encryption
          >operations.
          >
          >So my preference, as I said earlier, would be to wrap the
CEK in ASN.1,
          >whiten with OAEP, and then encrypt using whatever KEK
algorithm and
          >key length is required, so we don't have to keep
re-analyzing this problem
          >for every new CEK or KEK algorithm or key length.
          >
          >If we can define appropriate algorithm IDs, I'm willing and
eager to adopt
          such
          >a standard for  _all_ wrapped keys generated and used
within our Novell
          >International Cryptographic Infrastructure (NICI), even
before S/MIME v3
          >progresses to a full standard.  I'd be willing to assign an
algorithm OID
          >from the
          >Novell tree, or we could probably get one from PKCS if
there would be any
          >problem getting one assigned by the IANA.
          >
          >Regards,
          >
          >Bob
          >
          >
          >> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
          >All:
          >
          >Right now, I am leaning toward the double encryption wrap
algorithm.  I
          >think it will be easy to implement, and it yeilds a shorter
result that
          the
          >OAEP method.  To convince myself that it was easy to
implement, I did an
          >implementation.  It took me about two hours while watching
an old Jimmy
          >Stewart movie.  Of course, I already have SHA-1 and
Triple-DES CBC
          >routines.  S/MIME v3 will require these algorithms for
other capabilities
          >besides key wrapping.
          >
          >If someone else is willing to do an implementation, I would
like to
          compare
          >results.  This will allow a test vector to be included with
the algorithm
          >description.
          >
          >Does anyone have any strong objections to the double
encryption wrap
          >algorithm being selected?
          >
          >Russ
          >
          >
          >>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
          >>
          >>Key Checksum
          >>
          >>The CMS Checksum Algorithm is used to provide an
content-encryption key
          >>integrity check value.  The algorithm is:
          >>
          >>1.  Compute a 20 octet SHA-1 message digest on the
          >>    content-encryption key.
          >>2.  Use the most significant (first) eight octets of the
          >>    message digest value as the checksum value.
          >>
          >>Triple-DES Key Wrap
          >>
          >>1.  Set odd parity for each of the DES key octets
comprising
          >>    the content-encryption key, call the result CEK.
          >>2.  Compute a 8 octet key checksum value on CEK as
described above,
          >>    call the result ICV.
          >>3.  Let CEKICV = CEK || ICV.
          >>4.  Encrypt CEKICV in CBC mode using the key-encryption
key.  Use
          >>    an IV of 0xc302e3c1ad8bb738.
          >>5.  Reverse the order of the ciphertext octets.  That is,
the most
          >>    significant (first) octet is swapped with the least
significant
          >>    (last) octet, and so on.  Call the result TEMP.
          >>6.  Encrypt TEMP in CBC mode using the key-encryption key.
Use
          >>    an IV of 0x61a197e5b132e196.  The ciphertext is 32
octets long.
          >
          >Robert R. Jueneman
          >Security Architect
          >Network Security Development
          >Novell, Inc.
          >122 East 1700 South
          >Provo, UT 84606
          >bjueneman@novell.com
          >1-801-861-7387










From owner-ietf-smime@imc.org  Fri Feb 26 18:15:03 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA03755
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 18:15:02 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA06438
	for ietf-smime-bks; Fri, 26 Feb 1999 14:22:18 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id OAA06434
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 14:22:17 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Fri, 26 Feb 1999 15:26:49 -0700
Message-Id: <s6d6bd39.048@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Fri, 26 Feb 1999 15:26:27 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <djohnson@certicom.com>
Cc: <carlisle.adams@entrust.com>, <paulv@entrust.com>, <ietf-smime@imc.org>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <burt@RSA.COM>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id OAA06435
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 8bit

Don,  I quite agree.  But regardless of whether we use 
double encryption or OAEP, the masking should completely 
obfuscate any structure that ASN.1 would impose.

Bob


>>> "Don Johnson" <djohnson@certicom.com> 02/26/99 12:25PM >>>
Bob, Russ,

ASN.1 is very structured and can be considered to have many known values.
As such, strictly from an info theory viewpoint, use of ASN.1 and
confidentiality are are in opposition.  This does not mean it should be
forbidden, just that we would want to have very strong assurances about the
properties provided by the encryption to use ASN.1 or similar highly
structured formats.

Don Johnson





"Bob Jueneman" <BJUENEMAN@novell.com> on 02/26/99 01:38:19 PM

To:   housley@spyrus.com 
cc:   cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com,
      kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
      brickell@certco.com, djohnson@certicom.ca, schneier@counterpane.com,
      daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu,
      smid@csmes.ncsl.nist.gov, omura@cylink.com,
      dickie@EMPIRE.eclipse.ncsc.mil, carlisle.adams@entrust.com,
      paulv@entrust.com, Blake.greenlee@greenlee.com, ietf-smime@imc.org,
      benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil,
      jis@mit.edu, "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>,
      merkle@parc.xerox.com, BSnow@radium.ncsc.mil, burt@RSA.COM,
      ekr@rtfm.com, jlinn@securitydynamics.com, ams@terisa.com,
      rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com,
      acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com,
      desmedt@uwm.edu (bcc: Don Johnson/Certicom)
Subject:  Re: A New Triple-DES Key Wrap Algorithm




Russ:

You are correct, of course.  The question, then, is whether
we should just go to the OAEP-type wrapping and not have
to worry about changing IV's and how to convey them.
That would be my recommendation.

On a slightly different issue, several times I have strongly urged
that in order to avoid the problem of having N-squared algorithm
IDs for all of the various combinations of CEK and KEK algorithms,
key lengths, and other miscellaneous data, that we first wrap
the CEK in a descriptive ASN.1 structure that describes the
the CEK algorithm/key, and then do the wrapping operation.

However, although I've raised this issue several times and indicated
our strong desire to solve the key wrapping issue once and for all,
you have neither incorporated the idea or argued against it,
so I don't know where you stand.

Obviously anyone who is processing certificates is going to have to
have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures
me that the performance implications would be negligible compared to
almost any encryption operation.

Assuming that is the case, the only reason I could see for not doing
it would be concern about the increase in wrapped key size,
or some lingering not-invented-here bias against ISO/ITU/X.500
mechanisms.  I certainly hope it isn't the later.

Is there anything in the existing protocol that is rigidly sensitive to
the size of the wrapped key?  If so, then that is a problem that
probably ought to be addressed.

If not, then I believe the architectural benefits would far outweigh
any increase in the size of the wrapped key.

Bob

>>> Russ Housley <housley@spyrus.com> 02/26/99 10:51AM >>>
Bob:

You raise an interesting point, but I think it can be easily solved by a
random IV for the first encryption. Of course, this makes the result one
block longer.  And, we would need a different IV for each wrapping.

Russ


At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
>Russ,
>
>There is a possible attack on the double encryption wrap algorithm
>that is a result of the constant IV construction. For that reason, I would
>strongly prefer the OAEP construction. Although it may look complicated
>because there are more steps, the number of line of code is really of no
>consequence at all, but the execution time is important for performance.
>
>Also, I continue to insist that we should not invent n-squared algorithm
>IDs for every possible combination of CEK algorithm and key length
>plus KEK algorithm and key length. Instead, I would _greatly_ prefer to
>first wrap the CEK in a ASN.1 structure that defines the CEK algorithm
>and key length, then whiten that structure with OAEP, encrypt the
resulting
>string with the KEK algorithm, and then provide generic instructions as
>to how to decode the result, either by wrapping the entire wrapped key
>blob in ASN.1 (preferably) or some other way.
>
>Here's the attack on the double-encryption wrapping:
>
>Although most exhaustive search engines divide up the search process
>across multiple machines in order to find a single key as quickly as
possible
>(e.g., the series of RSA challenge ciphers), there is another approach
>based on the use of an associative memory that I wrote up back
>in the '70's but never published.  I call it my "vacuum-cleaner" attack.
>
>Assume for the sake or argument that there are lots and lots of keys
>that have been or will be used to encrypt a known plaintext or
>stereotyped message.  (This is a standard assumption in cryptanalysis.)
>Actually, the attack will succeed with a somewhat weaker condition --
>it isn't necessary to actually know the plaintext -- it is sufficient that
>the plaintext be unvarying.
>
>Let's also assume that each key is used for some interesting purpose --
>sufficiently interesting that it may not be necessary to crack each and
every
>key -- just a few would be useful.  For example, if I were trying to carry
on
>a credit card attack, I don't have to find the key for Bill Gates' or
>Donald Trump's credit card -- just about anyone's will do, and the more
>the merrier.
>
>So for every new key that I have the engine try, I contrive to compare
>the result of encrypting the known plaintext against millions of valid
>ciphertexts that have been intercepted, looking for a match.  Assuming
>an effectively inexhaustible supply of ciphertexts is available, this
attack
>multiplies the effectiveness of the key search engine by an order of a
million
>or more, depending on the size of the associative memory that is
available.
>
>(The use of an associative memory isn't essential -- it was just a
gedanken
>experiment to speed up the comparison process without requiring sorting.)
>
>Two things should be noted.  First, this attack is independent of the KEK
>encryption algorithm used, assuming a fixed block size.  In other words,
>this would apply to single-DES, triple-DES, umpty-DES, 2048-bit RSA,
>or whatever, assuming a constant session key and constant padding.
>
>Second, the attack is also independent of the length or type of session
>key that is used, except that the yield is a Birthday Problem function of
the
>length of the key.  But given a fixed input, i.e., no random whitening or
>changing IV, then two or more matching outputs must imply a matching
>session key.
>
>This leads to a rather surprising result -- even if the KEK performs
double
>encryption using triple-DES (or any other algorithm without whitening)
>to wrap a 40 bit key, two matching session keys can be found with
>approximately 50% probability after only 2^20 or a million or so session
>keys have been generated.
>
>Perhaps more surprisingly, at least to people who haven't been down this
path,
>changing session keys more rapidly may hurt more than it helps -- it just
>exposes that many more keys to attack. Changing the session key often
>in the middle of a session may help limit the ability of the attacker to
>access the entire message, and hence limits the attacker's "take," but it
>increases the chances that a potentially interesting fragment of text
>may be exposed.
>
>I'm sure that someone would observe that sending even a million content
>encryption key encrypted in a constant KEK would be extremely unlikely
>in an S/MIME context, but whether that would really be true would require
>a more subtle, protocol-dependent analysis than I would care to make,
>and in addition I very much want to standardize on one key wrapping
>algorithm that is protocol independent, and not just for S/MIME.
>
>Obviously the above attack can be defeated by prepending some
>additional randomness or by changing the IV. But is also what the OAEP
>approach does, and rather more elegantly.  By the time we have to add
>either a changing IV or some additional randomness (how much would be
>required would have to be decided) the length would probably be close
>to that required for OAEP, which is a much more general solution.
>
>In my mind, at least, some extra bytes in the wrapped key is no big deal,
>but I would like the efficiency to be a good as possible. Triple-DES is
>expensive enough in terms of computational efficiency in software,
>especially in terms of the initial key expansion, and doing it twice
>would be worse yet.
>
>Because the new export regulations permit the use of double the key length
>used for data encryption to be used for key encryption, we are going to be
>using triple-DES in encrypt-decrypt-encrypt mode with only two keys
(A-B-A) for
>key wrapping of all export-grade CEK keys.
>
>This can be optimized by saving the key expansion of the first encryption,
and
>then reusing it for the final encryption.  This technique could
potentially be
>extended to the double encryption wrapping algorithm, by saving the key
>expansion used for all three steps, but in order to do that the
>"double-triple-DES"
>algorithm would probably have to be a single algorithm that is invoked --
>it would be quite difficult to securely save state across two separate
>encryption
>operations.
>
>So my preference, as I said earlier, would be to wrap the CEK in ASN.1,
>whiten with OAEP, and then encrypt using whatever KEK algorithm and
>key length is required, so we don't have to keep re-analyzing this problem
>for every new CEK or KEK algorithm or key length.
>
>If we can define appropriate algorithm IDs, I'm willing and eager to adopt
such
>a standard for  _all_ wrapped keys generated and used within our Novell
>International Cryptographic Infrastructure (NICI), even before S/MIME v3
>progresses to a full standard.  I'd be willing to assign an algorithm OID
>from the
>Novell tree, or we could probably get one from PKCS if there would be any
>problem getting one assigned by the IANA.
>
>Regards,
>
>Bob
>
>
>> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
>All:
>
>Right now, I am leaning toward the double encryption wrap algorithm.  I
>think it will be easy to implement, and it yeilds a shorter result that
the
>OAEP method.  To convince myself that it was easy to implement, I did an
>implementation.  It took me about two hours while watching an old Jimmy
>Stewart movie.  Of course, I already have SHA-1 and Triple-DES CBC
>routines.  S/MIME v3 will require these algorithms for other capabilities
>besides key wrapping.
>
>If someone else is willing to do an implementation, I would like to
compare
>results.  This will allow a test vector to be included with the algorithm
>description.
>
>Does anyone have any strong objections to the double encryption wrap
>algorithm being selected?
>
>Russ
>
>
>>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>>
>>Key Checksum
>>
>>The CMS Checksum Algorithm is used to provide an content-encryption key
>>integrity check value.  The algorithm is:
>>
>>1.  Compute a 20 octet SHA-1 message digest on the
>>    content-encryption key.
>>2.  Use the most significant (first) eight octets of the
>>    message digest value as the checksum value.
>>
>>Triple-DES Key Wrap
>>
>>1.  Set odd parity for each of the DES key octets comprising
>>    the content-encryption key, call the result CEK.
>>2.  Compute a 8 octet key checksum value on CEK as described above,
>>    call the result ICV.
>>3.  Let CEKICV = CEK || ICV.
>>4.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>>    an IV of 0xc302e3c1ad8bb738.
>>5.  Reverse the order of the ciphertext octets.  That is, the most
>>    significant (first) octet is swapped with the least significant
>>    (last) octet, and so on.  Call the result TEMP.
>>6.  Encrypt TEMP in CBC mode using the key-encryption key.  Use
>>    an IV of 0x61a197e5b132e196.  The ciphertext is 32 octets long.
>
>Robert R. Jueneman
>Security Architect
>Network Security Development
>Novell, Inc.
>122 East 1700 South
>Provo, UT 84606
>bjueneman@novell.com 
>1-801-861-7387







From owner-ietf-smime@imc.org  Fri Feb 26 20:54:19 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA13513
	for <smime-archive@odin.ietf.org>; Fri, 26 Feb 1999 20:54:18 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA08064
	for ietf-smime-bks; Fri, 26 Feb 1999 17:00:54 -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 RAA08060
	for <ietf-smime@imc.org>; Fri, 26 Feb 1999 17:00:52 -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 OAA08430; Sat, 27 Feb 1999 14:05:35 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <92007753532320>; Sat, 27 Feb 1999 14:05:35 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: housley@spyrus.com, ietf-smime@imc.org
Subject: Re: A New Triple-DES Key Wrap Algorithm
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Sat, 27 Feb 1999 14:05:35 (NZDT)
Message-ID: <92007753532320@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

>I have a pseudo-random number generator that I am working on for a different
>project.  I put a 0x484848...484848 seed into it and generated the IVs.  Since
>no one has ever looked at that design I will get some new ones from a better
>source.
 
The issue isn't the quality of the numbers, it's a question of verifiability -
the numbers should be from a source which anyone can check, eg hex digits of
pi, e, sqrt( 2 ), whatever.  This is why algorithms like the MDx's and SHA use
well-known, verifiable values.
 
Peter.
 



From owner-ietf-smime@imc.org  Mon Mar  1 16:15:03 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA01405
	for <smime-archive@odin.ietf.org>; Mon, 1 Mar 1999 16:15:02 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA13275
	for ietf-smime-bks; Mon, 1 Mar 1999 11:30:57 -0800 (PST)
Received: from eagle.rsa.com (eagle.rsa.com [192.80.211.35] (may be forged))
	by mail.proper.com (8.8.8/8.8.5) with SMTP id LAA13271
	for <ietf-smime@imc.org>; Mon, 1 Mar 1999 11:30:49 -0800 (PST)
Received: from [10.81.217.217] by eagle.rsa.com
          via smtpd (for imc.org [206.184.129.134]) with SMTP; 1 Mar 1999 19:55:22 UT
Received: by lobester.rsa.com with Internet Mail Service (5.5.2232.9)
	id <ZNLARGRH>; Mon, 1 Mar 1999 11:40:30 -0800
Message-ID: <7DE9F929113DD11181C900805F85C1AA6FDEE1@geoduck.rsa.com>
From: Burt Kaliski <burt@RSA.COM>
To: Kevin Kingdon <kevin@RSA.COM>, "'Don Johnson'" <djohnson@certicom.com>
Cc: Bob Jueneman <BJUENEMAN@novell.com>, housley@spyrus.com, cme@ACM.ORG,
        berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com,
        pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com,
        djohnson@certicom.ca, schneier@counterpane.com, daw@cs.berkeley.edu,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
        carlisle.adams@entrust.com, paulv@entrust.com,
        Blake.greenlee@greenlee.com, ietf-smime@imc.org, benaloh@microsoft.com,
        bfox@microsoft.com, cjwagne@missi.ncsc.mil, jis@mit.edu,
        Tolga Acar
	 <TACAR.PRV-7.PROVO@novell.com>, merkle@parc.xerox.com,
        BSnow@radium.ncsc.mil, ekr@rtfm.com, jlinn@securitydynamics.com,
        ams@terisa.com, Ron Rivest <rivest@theory.lcs.mit.edu>,
        balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
        jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu
Subject: RE: A New Triple-DES Key Wrap Algorithm
Date: Mon, 1 Mar 1999 11:35:06 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Recall that OAEP (in general) has two arguments: message and parameters.

OAEP provides confidentiality to the message and integrity to the
parameters. It also binds the parameters and the message cryptographically.
It the parameters are modified, the OAEP decoding operation will detect the
change.

The set of parameters can be null, or it may contain information about the
message such as key type in the case that the message is the key.

Thus the conflict between ASN.1 and confidentiality is easily resolved: let
the message be the secret key, and let the parameters specify the type of
key, length, usage, etc. with ASN.1. This is one of the nice features of
OAEP: it is easy to carry non-confidential attributes about a message.

-- Burt 

> ----------
> From: 	Don Johnson[SMTP:djohnson@certicom.com]
> Sent: 	Friday, February 26, 1999 4:46 PM
> To: 	Kevin Kingdon
> Cc: 	Bob Jueneman; housley@spyrus.com; cme@ACM.ORG; berson@anagram.com;
> bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com; dickie@EMPIRE.eclipse.ncsc.mil;
> carlisle.adams@entrust.com; paulv@entrust.com;
> Blake.greenlee@greenlee.com; ietf-smime@imc.org; benaloh@microsoft.com;
> bfox@microsoft.com; cjwagne@missi.ncsc.mil; jis@mit.edu; Tolga Acar;
> merkle@parc.xerox.com; BSnow@radium.ncsc.mil; Burt Kaliski; ekr@rtfm.com;
> jlinn@securitydynamics.com; ams@terisa.com; Ron Rivest; balenson@tis.com;
> denny@tis.com; acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil; smatyas@us.ibm.com;
> desmedt@uwm.edu
> Subject: 	RE: A New Triple-DES Key Wrap Algorithm
> 
> Kevin,
> 
> Here is what I am saying, I do not think it is not controversial.
> 
> 1. For any confidentiality method, such as encryption, adding in known
> quantities: A) does not keep them confidential, as they are known, and B)
> may give an adversary a toehold he would not otherwise have, for example,
> with encryption he will know some plaintext and resulting ciphertext (in
> the worst case some blocks of known plaintext/ciphertext).
> 
> 2. For that reason, I resist adding in known data to data that is intended
> to be kept confidential.  It is not forbidden to add in known data, I just
> want to believe that the cost/benefit tradeoff makes it worthwhile.  And I
> try to keep down the amount of known data if possible.
> 
> Don Johnson
> 
> 
> 
> 
> 
> Kevin Kingdon <kevin@rsa.com> on 02/26/99 02:57:22 PM
> 
> To:   Don Johnson/Certicom, Bob Jueneman <BJUENEMAN@novell.com>
> cc:   housley@spyrus.com, cme@ACM.ORG, berson@anagram.com,
>       bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
>       mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
>       schneier@counterpane.com, daw@cs.berkeley.edu,
>       denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
>       omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
>       carlisle.adams@entrust.com, paulv@entrust.com,
>       Blake.greenlee@greenlee.com, ietf-smime@imc.org,
>       benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil,
>       jis@mit.edu, Tolga Acar <TACAR.PRV-7.PROVO@novell.com>,
>       merkle@parc.xerox.com, BSnow@radium.ncsc.mil, Burt Kaliski
>       <burt@rsa.com>, ekr@rtfm.com, jlinn@securitydynamics.com,
>       ams@terisa.com, Ron Rivest <rivest@theory.lcs.mit.edu>,
>       balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
>       jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu
> Subject:  RE: A New Triple-DES Key Wrap Algorithm
> 
> 
> 
> 
> Don,
> 
> Are you saying that the input (plaintext) to an encryption operation must
> not be structured? I thought that was what encryption was all about -
> hiding
> the structure / information content of the plaintext. In any case, doesn't
> using OAEP as a part of an encryption scheme mask the plaintext structure
> just in case the encryption primitive is vulnerable to attacks that take
> advantage of that structure?
> 
> Kevin
>           -----Original Message-----
>           From:     Don Johnson [mailto:djohnson@certicom.com]
>           Sent:     Friday, February 26, 1999 11:25 AM
>           To:  Bob Jueneman
>           Cc:  housley@spyrus.com; cme@ACM.ORG; berson@anagram.com;
> bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com;
> dickie@EMPIRE.eclipse.ncsc.mil; carlisle.adams@entrust.com;
> paulv@entrust.com; Blake.greenlee@greenlee.com; ietf-smime@imc.org;
> benaloh@microsoft.com; bfox@microsoft.com; cjwagne@missi.ncsc.mil;
> jis@mit.edu; Tolga Acar; merkle@parc.xerox.com; BSnow@radium.ncsc.mil;
> Burt
> Kaliski; ekr@rtfm.com; jlinn@securitydynamics.com; ams@terisa.com; Ron
> Rivest; balenson@tis.com; denny@tis.com; acc@tycho.ncsc.mil;
> jhs@tycho.ncsc.mil; smatyas@us.ibm.com; desmedt@uwm.edu
>           Subject:  Re: A New Triple-DES Key Wrap Algorithm
> 
>           Bob, Russ,
> 
>           ASN.1 is very structured and can be considered to have many
> known values.
>           As such, strictly from an info theory viewpoint, use of
> ASN.1 and
>           confidentiality are are in opposition.  This does not mean
> it should be
>           forbidden, just that we would want to have very strong
> assurances about the
>           properties provided by the encryption to use ASN.1 or
> similar highly
>           structured formats.
> 
>           Don Johnson
> 
> 
> 
> 
> 
>           "Bob Jueneman" <BJUENEMAN@novell.com> on 02/26/99 01:38:19
> PM
> 
>           To:   housley@spyrus.com
>           cc:   cme@ACM.ORG, berson@anagram.com,
> bschanni@BayNetworks.com,
>                 kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
>                 brickell@certco.com, djohnson@certicom.ca,
> schneier@counterpane.com,
>                 daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu,
>                 smid@csmes.ncsl.nist.gov, omura@cylink.com,
>                 dickie@EMPIRE.eclipse.ncsc.mil,
> carlisle.adams@entrust.com,
>                 paulv@entrust.com, Blake.greenlee@greenlee.com,
> ietf-smime@imc.org,
>                 benaloh@microsoft.com, bfox@microsoft.com,
> cjwagne@missi.ncsc.mil,
>                 jis@mit.edu, "Tolga Acar"
> <TACAR.PRV-7.PROVO@novell.com>,
>                 merkle@parc.xerox.com, BSnow@radium.ncsc.mil,
> burt@RSA.COM,
>                 ekr@rtfm.com, jlinn@securitydynamics.com,
> ams@terisa.com,
>                 rivest@theory.lcs.mit.edu, balenson@tis.com,
> denny@tis.com,
>                 acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
> smatyas@us.ibm.com,
>                 desmedt@uwm.edu (bcc: Don Johnson/Certicom)
>           Subject:  Re: A New Triple-DES Key Wrap Algorithm
> 
> 
> 
> 
>           Russ:
> 
>           You are correct, of course.  The question, then, is whether
>           we should just go to the OAEP-type wrapping and not have
>           to worry about changing IV's and how to convey them.
>           That would be my recommendation.
> 
>           On a slightly different issue, several times I have strongly
> urged
>           that in order to avoid the problem of having N-squared
> algorithm
>           IDs for all of the various combinations of CEK and KEK
> algorithms,
>           key lengths, and other miscellaneous data, that we first
> wrap
>           the CEK in a descriptive ASN.1 structure that describes the
>           the CEK algorithm/key, and then do the wrapping operation.
> 
>           However, although I've raised this issue several times and
> indicated
>           our strong desire to solve the key wrapping issue once and
> for all,
>           you have neither incorporated the idea or argued against it,
>           so I don't know where you stand.
> 
>           Obviously anyone who is processing certificates is going to
> have to
>           have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures
>           me that the performance implications would be negligible
> compared to
>           almost any encryption operation.
> 
>           Assuming that is the case, the only reason I could see for
> not doing
>           it would be concern about the increase in wrapped key size,
>           or some lingering not-invented-here bias against
> ISO/ITU/X.500
>           mechanisms.  I certainly hope it isn't the later.
> 
>           Is there anything in the existing protocol that is rigidly
> sensitive to
>           the size of the wrapped key?  If so, then that is a problem
> that
>           probably ought to be addressed.
> 
>           If not, then I believe the architectural benefits would far
> outweigh
>           any increase in the size of the wrapped key.
> 
>           Bob
> 
>           >>> Russ Housley <housley@spyrus.com> 02/26/99 10:51AM >>>
>           Bob:
> 
>           You raise an interesting point, but I think it can be easily
> solved by a
>           random IV for the first encryption. Of course, this makes
> the result one
>           block longer.  And, we would need a different IV for each
> wrapping.
> 
>           Russ
> 
> 
>           At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
>           >Russ,
>           >
>           >There is a possible attack on the double encryption wrap
> algorithm
>           >that is a result of the constant IV construction. For that
> reason, I would
>           >strongly prefer the OAEP construction. Although it may look
> complicated
>           >because there are more steps, the number of line of code is
> really of no
>           >consequence at all, but the execution time is important for
> performance.
>           >
>           >Also, I continue to insist that we should not invent
> n-squared algorithm
>           >IDs for every possible combination of CEK algorithm and key
> length
>           >plus KEK algorithm and key length. Instead, I would
> _greatly_ prefer to
>           >first wrap the CEK in a ASN.1 structure that defines the
> CEK algorithm
>           >and key length, then whiten that structure with OAEP,
> encrypt the
>           resulting
>           >string with the KEK algorithm, and then provide generic
> instructions as
>           >to how to decode the result, either by wrapping the entire
> wrapped key
>           >blob in ASN.1 (preferably) or some other way.
>           >
>           >Here's the attack on the double-encryption wrapping:
>           >
>           >Although most exhaustive search engines divide up the
> search process
>           >across multiple machines in order to find a single key as
> quickly as
>           possible
>           >(e.g., the series of RSA challenge ciphers), there is
> another approach
>           >based on the use of an associative memory that I wrote up
> back
>           >in the '70's but never published.  I call it my
> "vacuum-cleaner" attack.
>           >
>           >Assume for the sake or argument that there are lots and
> lots of keys
>           >that have been or will be used to encrypt a known plaintext
> or
>           >stereotyped message.  (This is a standard assumption in
> cryptanalysis.)
>           >Actually, the attack will succeed with a somewhat weaker
> condition --
>           >it isn't necessary to actually know the plaintext -- it is
> sufficient that
>           >the plaintext be unvarying.
>           >
>           >Let's also assume that each key is used for some
> interesting purpose --
>           >sufficiently interesting that it may not be necessary to
> crack each and
>           every
>           >key -- just a few would be useful.  For example, if I were
> trying to carry
>           on
>           >a credit card attack, I don't have to find the key for Bill
> Gates' or
>           >Donald Trump's credit card -- just about anyone's will do,
> and the more
>           >the merrier.
>           >
>           >So for every new key that I have the engine try, I contrive
> to compare
>           >the result of encrypting the known plaintext against
> millions of valid
>           >ciphertexts that have been intercepted, looking for a
> match.  Assuming
>           >an effectively inexhaustible supply of ciphertexts is
> available, this
>           attack
>           >multiplies the effectiveness of the key search engine by an
> order of a
>           million
>           >or more, depending on the size of the associative memory
> that is
>           available.
>           >
>           >(The use of an associative memory isn't essential -- it was
> just a
>           gedanken
>           >experiment to speed up the comparison process without
> requiring sorting.)
>           >
>           >Two things should be noted.  First, this attack is
> independent of the KEK
>           >encryption algorithm used, assuming a fixed block size.  In
> other words,
>           >this would apply to single-DES, triple-DES, umpty-DES,
> 2048-bit RSA,
>           >or whatever, assuming a constant session key and constant
> padding.
>           >
>           >Second, the attack is also independent of the length or
> type of session
>           >key that is used, except that the yield is a Birthday
> Problem function of
>           the
>           >length of the key.  But given a fixed input, i.e., no
> random whitening or
>           >changing IV, then two or more matching outputs must imply a
> matching
>           >session key.
>           >
>           >This leads to a rather surprising result -- even if the KEK
> performs
>           double
>           >encryption using triple-DES (or any other algorithm without
> whitening)
>           >to wrap a 40 bit key, two matching session keys can be
> found with
>           >approximately 50% probability after only 2^20 or a million
> or so session
>           >keys have been generated.
>           >
>           >Perhaps more surprisingly, at least to people who haven't
> been down this
>           path,
>           >changing session keys more rapidly may hurt more than it
> helps -- it just
>           >exposes that many more keys to attack. Changing the session
> key often
>           >in the middle of a session may help limit the ability of
> the attacker to
>           >access the entire message, and hence limits the attacker's
> "take," but it
>           >increases the chances that a potentially interesting
> fragment of text
>           >may be exposed.
>           >
>           >I'm sure that someone would observe that sending even a
> million content
>           >encryption key encrypted in a constant KEK would be
> extremely unlikely
>           >in an S/MIME context, but whether that would really be true
> would require
>           >a more subtle, protocol-dependent analysis than I would
> care to make,
>           >and in addition I very much want to standardize on one key
> wrapping
>           >algorithm that is protocol independent, and not just for
> S/MIME.
>           >
>           >Obviously the above attack can be defeated by prepending
> some
>           >additional randomness or by changing the IV. But is also
> what the OAEP
>           >approach does, and rather more elegantly.  By the time we
> have to add
>           >either a changing IV or some additional randomness (how
> much would be
>           >required would have to be decided) the length would
> probably be close
>           >to that required for OAEP, which is a much more general
> solution.
>           >
>           >In my mind, at least, some extra bytes in the wrapped key
> is no big deal,
>           >but I would like the efficiency to be a good as possible.
> Triple-DES is
>           >expensive enough in terms of computational efficiency in
> software,
>           >especially in terms of the initial key expansion, and doing
> it twice
>           >would be worse yet.
>           >
>           >Because the new export regulations permit the use of double
> the key length
>           >used for data encryption to be used for key encryption, we
> are going to be
>           >using triple-DES in encrypt-decrypt-encrypt mode with only
> two keys
>           (A-B-A) for
>           >key wrapping of all export-grade CEK keys.
>           >
>           >This can be optimized by saving the key expansion of the
> first encryption,
>           and
>           >then reusing it for the final encryption.  This technique
> could
>           potentially be
>           >extended to the double encryption wrapping algorithm, by
> saving the key
>           >expansion used for all three steps, but in order to do that
> the
>           >"double-triple-DES"
>           >algorithm would probably have to be a single algorithm that
> is invoked --
>           >it would be quite difficult to securely save state across
> two separate
>           >encryption
>           >operations.
>           >
>           >So my preference, as I said earlier, would be to wrap the
> CEK in ASN.1,
>           >whiten with OAEP, and then encrypt using whatever KEK
> algorithm and
>           >key length is required, so we don't have to keep
> re-analyzing this problem
>           >for every new CEK or KEK algorithm or key length.
>           >
>           >If we can define appropriate algorithm IDs, I'm willing and
> eager to adopt
>           such
>           >a standard for  _all_ wrapped keys generated and used
> within our Novell
>           >International Cryptographic Infrastructure (NICI), even
> before S/MIME v3
>           >progresses to a full standard.  I'd be willing to assign an
> algorithm OID
>           >from the
>           >Novell tree, or we could probably get one from PKCS if
> there would be any
>           >problem getting one assigned by the IANA.
>           >
>           >Regards,
>           >
>           >Bob
>           >
>           >
>           >> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
>           >All:
>           >
>           >Right now, I am leaning toward the double encryption wrap
> algorithm.  I
>           >think it will be easy to implement, and it yeilds a shorter
> result that
>           the
>           >OAEP method.  To convince myself that it was easy to
> implement, I did an
>           >implementation.  It took me about two hours while watching
> an old Jimmy
>           >Stewart movie.  Of course, I already have SHA-1 and
> Triple-DES CBC
>           >routines.  S/MIME v3 will require these algorithms for
> other capabilities
>           >besides key wrapping.
>           >
>           >If someone else is willing to do an implementation, I would
> like to
>           compare
>           >results.  This will allow a test vector to be included with
> the algorithm
>           >description.
>           >
>           >Does anyone have any strong objections to the double
> encryption wrap
>           >algorithm being selected?
>           >
>           >Russ
>           >
>           >
>           >>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>           >>
>           >>Key Checksum
>           >>
>           >>The CMS Checksum Algorithm is used to provide an
> content-encryption key
>           >>integrity check value.  The algorithm is:
>           >>
>           >>1.  Compute a 20 octet SHA-1 message digest on the
>           >>    content-encryption key.
>           >>2.  Use the most significant (first) eight octets of the
>           >>    message digest value as the checksum value.
>           >>
>           >>Triple-DES Key Wrap
>           >>
>           >>1.  Set odd parity for each of the DES key octets
> comprising
>           >>    the content-encryption key, call the result CEK.
>           >>2.  Compute a 8 octet key checksum value on CEK as
> described above,
>           >>    call the result ICV.
>           >>3.  Let CEKICV = CEK || ICV.
>           >>4.  Encrypt CEKICV in CBC mode using the key-encryption
> key.  Use
>           >>    an IV of 0xc302e3c1ad8bb738.
>           >>5.  Reverse the order of the ciphertext octets.  That is,
> the most
>           >>    significant (first) octet is swapped with the least
> significant
>           >>    (last) octet, and so on.  Call the result TEMP.
>           >>6.  Encrypt TEMP in CBC mode using the key-encryption key.
> Use
>           >>    an IV of 0x61a197e5b132e196.  The ciphertext is 32
> octets long.
>           >
>           >Robert R. Jueneman
>           >Security Architect
>           >Network Security Development
>           >Novell, Inc.
>           >122 East 1700 South
>           >Provo, UT 84606
>           >bjueneman@novell.com
>           >1-801-861-7387
> 
> 
> 
> 
> 
> 
> 
> 


From owner-ietf-smime@imc.org  Mon Mar  1 18:07:38 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA04466
	for <smime-archive@odin.ietf.org>; Mon, 1 Mar 1999 18:07:37 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA14657
	for ietf-smime-bks; Mon, 1 Mar 1999 13:44:31 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id NAA14651
	for <ietf-smime@imc.org>; Mon, 1 Mar 1999 13:44:29 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Mon, 01 Mar 1999 14:39:32 -0700
Message-Id: <s6daa6a4.057@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Mon, 01 Mar 1999 14:39:08 -0700
From: "Tolga Acar" <TACAR@novell.com>
To: <djohnson@certicom.com>, <burt@RSA.COM>, <kevin@RSA.COM>
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <bschanni@BayNetworks.com>,
        <kent@bbn.com>, <pcain@bbn.com>, <mhetzel@bell-labs.com>,
        <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <daw@cs.berkeley.edu>,
        <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>,
        <omura@cylink.com>, <dickie@EMPIRE.eclipse.ncsc.mil>,
        <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <ietf-smime@imc.org>,
        <benaloh@microsoft.com>, <bfox@microsoft.com>,
        <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        "Bob Jueneman" <BJUENEMAN.PRV-7.PROVO@novell.com>,
        <merkle@parc.xerox.com>, <BSnow@radium.ncsc.mil>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <housley@spyrus.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>,
        <desmedt@uwm.edu>
Subject: RE: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id NAA14653
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 8bit


I don't see how a random/different IV suddenly makes it all work, because it is away from being a general solution to the problem. And the problem is twofold, and more general than encrypting a DES key with TripleDES.

1. Diffusion:
Transition of the known plaintext patterns to the ciphertext in block ciphers. A very similar problem exists in image processing where the image is processed block-by-block and then you see the so-called blocking effects. The known-plaintext and birthday attack utilizes this deficiency in block-ciphers. Thus, the analysis should be done on the whole message rather than on blocks; or do "overlapped" processing on block boundaries (which isn't suitable for encryption purpose).

Another way of looking at this aould be to consider the message as the input "block", not necessarily partitioned into sub-blocks to accomodate the requirements of the underlying cipher. Longer the input message (say, ASN.1 encoded key), harder the birthday attacks. So, simply isolate the underlying block cipher details from the key wrapping, i.e., make the input size = block size. 

OAEP is a solution to this problem: a variable block-size algorithm in which it is hard to find the input unless all of the output is known. It adds "integrity" to the message - like a digital signature with message recovery.

Besides, I don't see why the key encryption algorithm has to be a block cipher, let alone a cipher requiring an IV.


2. Block encryption:
Why are we concerned so much about the known plaintext patterns in key wrapping, and not in any (data) encryption where known patterns in the plaintext may be far more common. Isn't it prudent to use OAEP (maybe with different parameters) in regular encryption?

- Tolga


>>> Burt Kaliski <burt@rsa.com> 3/1/99 12:35:06 >>>
Recall that OAEP (in general) has two arguments: message and parameters.

OAEP provides confidentiality to the message and integrity to the
parameters. It also binds the parameters and the message cryptographically.
It the parameters are modified, the OAEP decoding operation will detect the
change.

The set of parameters can be null, or it may contain information about the
message such as key type in the case that the message is the key.

Thus the conflict between ASN.1 and confidentiality is easily resolved: let
the message be the secret key, and let the parameters specify the type of
key, length, usage, etc. with ASN.1. This is one of the nice features of
OAEP: it is easy to carry non-confidential attributes about a message.

-- Burt 

> ----------
> From: 	Don Johnson[SMTP:djohnson@certicom.com] 
> Sent: 	Friday, February 26, 1999 4:46 PM
> To: 	Kevin Kingdon
> Cc: 	Bob Jueneman; housley@spyrus.com; cme@ACM.ORG; berson@anagram.com;
> bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com; dickie@EMPIRE.eclipse.ncsc.mil;
> carlisle.adams@entrust.com; paulv@entrust.com;
> Blake.greenlee@greenlee.com; ietf-smime@imc.org; benaloh@microsoft.com;
> bfox@microsoft.com; cjwagne@missi.ncsc.mil; jis@mit.edu; Tolga Acar;
> merkle@parc.xerox.com; BSnow@radium.ncsc.mil; Burt Kaliski; ekr@rtfm.com;
> jlinn@securitydynamics.com; ams@terisa.com; Ron Rivest; balenson@tis.com;
> denny@tis.com; acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil; smatyas@us.ibm.com;
> desmedt@uwm.edu 
> Subject: 	RE: A New Triple-DES Key Wrap Algorithm
> 
> Kevin,
> 
> Here is what I am saying, I do not think it is not controversial.
> 
> 1. For any confidentiality method, such as encryption, adding in known
> quantities: A) does not keep them confidential, as they are known, and B)
> may give an adversary a toehold he would not otherwise have, for example,
> with encryption he will know some plaintext and resulting ciphertext (in
> the worst case some blocks of known plaintext/ciphertext).
> 
> 2. For that reason, I resist adding in known data to data that is intended
> to be kept confidential.  It is not forbidden to add in known data, I just
> want to believe that the cost/benefit tradeoff makes it worthwhile.  And I
> try to keep down the amount of known data if possible.
> 
> Don Johnson
> 
> 
> 
> 
> 
> Kevin Kingdon <kevin@rsa.com> on 02/26/99 02:57:22 PM
> 
> To:   Don Johnson/Certicom, Bob Jueneman <BJUENEMAN@novell.com>
> cc:   housley@spyrus.com, cme@ACM.ORG, berson@anagram.com,
>       bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
>       mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
>       schneier@counterpane.com, daw@cs.berkeley.edu,
>       denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
>       omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
>       carlisle.adams@entrust.com, paulv@entrust.com,
>       Blake.greenlee@greenlee.com, ietf-smime@imc.org,
>       benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil,
>       jis@mit.edu, Tolga Acar <TACAR.PRV-7.PROVO@novell.com>,
>       merkle@parc.xerox.com, BSnow@radium.ncsc.mil, Burt Kaliski
>       <burt@rsa.com>, ekr@rtfm.com, jlinn@securitydynamics.com,
>       ams@terisa.com, Ron Rivest <rivest@theory.lcs.mit.edu>,
>       balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
>       jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu 
> Subject:  RE: A New Triple-DES Key Wrap Algorithm
> 
> 
> 
> 
> Don,
> 
> Are you saying that the input (plaintext) to an encryption operation must
> not be structured? I thought that was what encryption was all about -
> hiding
> the structure / information content of the plaintext. In any case, doesn't
> using OAEP as a part of an encryption scheme mask the plaintext structure
> just in case the encryption primitive is vulnerable to attacks that take
> advantage of that structure?
> 
> Kevin
>           -----Original Message-----
>           From:     Don Johnson [mailto:djohnson@certicom.com] 
>           Sent:     Friday, February 26, 1999 11:25 AM
>           To:  Bob Jueneman
>           Cc:  housley@spyrus.com; cme@ACM.ORG; berson@anagram.com;
> bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com;
> dickie@EMPIRE.eclipse.ncsc.mil; carlisle.adams@entrust.com;
> paulv@entrust.com; Blake.greenlee@greenlee.com; ietf-smime@imc.org;
> benaloh@microsoft.com; bfox@microsoft.com; cjwagne@missi.ncsc.mil;
> jis@mit.edu; Tolga Acar; merkle@parc.xerox.com; BSnow@radium.ncsc.mil;
> Burt
> Kaliski; ekr@rtfm.com; jlinn@securitydynamics.com; ams@terisa.com; Ron
> Rivest; balenson@tis.com; denny@tis.com; acc@tycho.ncsc.mil;
> jhs@tycho.ncsc.mil; smatyas@us.ibm.com; desmedt@uwm.edu 
>           Subject:  Re: A New Triple-DES Key Wrap Algorithm
> 
>           Bob, Russ,
> 
>           ASN.1 is very structured and can be considered to have many
> known values.
>           As such, strictly from an info theory viewpoint, use of
> ASN.1 and
>           confidentiality are are in opposition.  This does not mean
> it should be
>           forbidden, just that we would want to have very strong
> assurances about the
>           properties provided by the encryption to use ASN.1 or
> similar highly
>           structured formats.
> 
>           Don Johnson
> 
> 
> 
> 
> 
>           "Bob Jueneman" <BJUENEMAN@novell.com> on 02/26/99 01:38:19
> PM
> 
>           To:   housley@spyrus.com 
>           cc:   cme@ACM.ORG, berson@anagram.com,
> bschanni@BayNetworks.com,
>                 kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
>                 brickell@certco.com, djohnson@certicom.ca,
> schneier@counterpane.com,
>                 daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu,
>                 smid@csmes.ncsl.nist.gov, omura@cylink.com,
>                 dickie@EMPIRE.eclipse.ncsc.mil,
> carlisle.adams@entrust.com,
>                 paulv@entrust.com, Blake.greenlee@greenlee.com,
> ietf-smime@imc.org,
>                 benaloh@microsoft.com, bfox@microsoft.com,
> cjwagne@missi.ncsc.mil,
>                 jis@mit.edu, "Tolga Acar"
> <TACAR.PRV-7.PROVO@novell.com>,
>                 merkle@parc.xerox.com, BSnow@radium.ncsc.mil,
> burt@RSA.COM,
>                 ekr@rtfm.com, jlinn@securitydynamics.com,
> ams@terisa.com,
>                 rivest@theory.lcs.mit.edu, balenson@tis.com,
> denny@tis.com,
>                 acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
> smatyas@us.ibm.com,
>                 desmedt@uwm.edu (bcc: Don Johnson/Certicom)
>           Subject:  Re: A New Triple-DES Key Wrap Algorithm
> 
> 
> 
> 
>           Russ:
> 
>           You are correct, of course.  The question, then, is whether
>           we should just go to the OAEP-type wrapping and not have
>           to worry about changing IV's and how to convey them.
>           That would be my recommendation.
> 
>           On a slightly different issue, several times I have strongly
> urged
>           that in order to avoid the problem of having N-squared
> algorithm
>           IDs for all of the various combinations of CEK and KEK
> algorithms,
>           key lengths, and other miscellaneous data, that we first
> wrap
>           the CEK in a descriptive ASN.1 structure that describes the
>           the CEK algorithm/key, and then do the wrapping operation.
> 
>           However, although I've raised this issue several times and
> indicated
>           our strong desire to solve the key wrapping issue once and
> for all,
>           you have neither incorporated the idea or argued against it,
>           so I don't know where you stand.
> 
>           Obviously anyone who is processing certificates is going to
> have to
>           have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures
>           me that the performance implications would be negligible
> compared to
>           almost any encryption operation.
> 
>           Assuming that is the case, the only reason I could see for
> not doing
>           it would be concern about the increase in wrapped key size,
>           or some lingering not-invented-here bias against
> ISO/ITU/X.500
>           mechanisms.  I certainly hope it isn't the later.
> 
>           Is there anything in the existing protocol that is rigidly
> sensitive to
>           the size of the wrapped key?  If so, then that is a problem
> that
>           probably ought to be addressed.
> 
>           If not, then I believe the architectural benefits would far
> outweigh
>           any increase in the size of the wrapped key.
> 
>           Bob
> 
>           >>> Russ Housley <housley@spyrus.com> 02/26/99 10:51AM >>>
>           Bob:
> 
>           You raise an interesting point, but I think it can be easily
> solved by a
>           random IV for the first encryption. Of course, this makes
> the result one
>           block longer.  And, we would need a different IV for each
> wrapping.
> 
>           Russ
> 
> 
>           At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
>           >Russ,
>           >
>           >There is a possible attack on the double encryption wrap
> algorithm
>           >that is a result of the constant IV construction. For that
> reason, I would
>           >strongly prefer the OAEP construction. Although it may look
> complicated
>           >because there are more steps, the number of line of code is
> really of no
>           >consequence at all, but the execution time is important for
> performance.
>           >
>           >Also, I continue to insist that we should not invent
> n-squared algorithm
>           >IDs for every possible combination of CEK algorithm and key
> length
>           >plus KEK algorithm and key length. Instead, I would
> _greatly_ prefer to
>           >first wrap the CEK in a ASN.1 structure that defines the
> CEK algorithm
>           >and key length, then whiten that structure with OAEP,
> encrypt the
>           resulting
>           >string with the KEK algorithm, and then provide generic
> instructions as
>           >to how to decode the result, either by wrapping the entire
> wrapped key
>           >blob in ASN.1 (preferably) or some other way.
>           >
>           >Here's the attack on the double-encryption wrapping:
>           >
>           >Although most exhaustive search engines divide up the
> search process
>           >across multiple machines in order to find a single key as
> quickly as
>           possible
>           >(e.g., the series of RSA challenge ciphers), there is
> another approach
>           >based on the use of an associative memory that I wrote up
> back
>           >in the '70's but never published.  I call it my
> "vacuum-cleaner" attack.
>           >
>           >Assume for the sake or argument that there are lots and
> lots of keys
>           >that have been or will be used to encrypt a known plaintext
> or
>           >stereotyped message.  (This is a standard assumption in
> cryptanalysis.)
>           >Actually, the attack will succeed with a somewhat weaker
> condition --
>           >it isn't necessary to actually know the plaintext -- it is
> sufficient that
>           >the plaintext be unvarying.
>           >
>           >Let's also assume that each key is used for some
> interesting purpose --
>           >sufficiently interesting that it may not be necessary to
> crack each and
>           every
>           >key -- just a few would be useful.  For example, if I were
> trying to carry
>           on
>           >a credit card attack, I don't have to find the key for Bill
> Gates' or
>           >Donald Trump's credit card -- just about anyone's will do,
> and the more
>           >the merrier.
>           >
>           >So for every new key that I have the engine try, I contrive
> to compare
>           >the result of encrypting the known plaintext against
> millions of valid
>           >ciphertexts that have been intercepted, looking for a
> match.  Assuming
>           >an effectively inexhaustible supply of ciphertexts is
> available, this
>           attack
>           >multiplies the effectiveness of the key search engine by an
> order of a
>           million
>           >or more, depending on the size of the associative memory
> that is
>           available.
>           >
>           >(The use of an associative memory isn't essential -- it was
> just a
>           gedanken
>           >experiment to speed up the comparison process without
> requiring sorting.)
>           >
>           >Two things should be noted.  First, this attack is
> independent of the KEK
>           >encryption algorithm used, assuming a fixed block size.  In
> other words,
>           >this would apply to single-DES, triple-DES, umpty-DES,
> 2048-bit RSA,
>           >or whatever, assuming a constant session key and constant
> padding.
>           >
>           >Second, the attack is also independent of the length or
> type of session
>           >key that is used, except that the yield is a Birthday
> Problem function of
>           the
>           >length of the key.  But given a fixed input, i.e., no
> random whitening or
>           >changing IV, then two or more matching outputs must imply a
> matching
>           >session key.
>           >
>           >This leads to a rather surprising result -- even if the KEK
> performs
>           double
>           >encryption using triple-DES (or any other algorithm without
> whitening)
>           >to wrap a 40 bit key, two matching session keys can be
> found with
>           >approximately 50% probability after only 2^20 or a million
> or so session
>           >keys have been generated.
>           >
>           >Perhaps more surprisingly, at least to people who haven't
> been down this
>           path,
>           >changing session keys more rapidly may hurt more than it
> helps -- it just
>           >exposes that many more keys to attack. Changing the session
> key often
>           >in the middle of a session may help limit the ability of
> the attacker to
>           >access the entire message, and hence limits the attacker's
> "take," but it
>           >increases the chances that a potentially interesting
> fragment of text
>           >may be exposed.
>           >
>           >I'm sure that someone would observe that sending even a
> million content
>           >encryption key encrypted in a constant KEK would be
> extremely unlikely
>           >in an S/MIME context, but whether that would really be true
> would require
>           >a more subtle, protocol-dependent analysis than I would
> care to make,
>           >and in addition I very much want to standardize on one key
> wrapping
>           >algorithm that is protocol independent, and not just for
> S/MIME.
>           >
>           >Obviously the above attack can be defeated by prepending
> some
>           >additional randomness or by changing the IV. But is also
> what the OAEP
>           >approach does, and rather more elegantly.  By the time we
> have to add
>           >either a changing IV or some additional randomness (how
> much would be
>           >required would have to be decided) the length would
> probably be close
>           >to that required for OAEP, which is a much more general
> solution.
>           >
>           >In my mind, at least, some extra bytes in the wrapped key
> is no big deal,
>           >but I would like the efficiency to be a good as possible.
> Triple-DES is
>           >expensive enough in terms of computational efficiency in
> software,
>           >especially in terms of the initial key expansion, and doing
> it twice
>           >would be worse yet.
>           >
>           >Because the new export regulations permit the use of double
> the key length
>           >used for data encryption to be used for key encryption, we
> are going to be
>           >using triple-DES in encrypt-decrypt-encrypt mode with only
> two keys
>           (A-B-A) for
>           >key wrapping of all export-grade CEK keys.
>           >
>           >This can be optimized by saving the key expansion of the
> first encryption,
>           and
>           >then reusing it for the final encryption.  This technique
> could
>           potentially be
>           >extended to the double encryption wrapping algorithm, by
> saving the key
>           >expansion used for all three steps, but in order to do that
> the
>           >"double-triple-DES"
>           >algorithm would probably have to be a single algorithm that
> is invoked --
>           >it would be quite difficult to securely save state across
> two separate
>           >encryption
>           >operations.
>           >
>           >So my preference, as I said earlier, would be to wrap the
> CEK in ASN.1,
>           >whiten with OAEP, and then encrypt using whatever KEK
> algorithm and
>           >key length is required, so we don't have to keep
> re-analyzing this problem
>           >for every new CEK or KEK algorithm or key length.
>           >
>           >If we can define appropriate algorithm IDs, I'm willing and
> eager to adopt
>           such
>           >a standard for  _all_ wrapped keys generated and used
> within our Novell
>           >International Cryptographic Infrastructure (NICI), even
> before S/MIME v3
>           >progresses to a full standard.  I'd be willing to assign an
> algorithm OID
>           >from the
>           >Novell tree, or we could probably get one from PKCS if
> there would be any
>           >problem getting one assigned by the IANA.
>           >
>           >Regards,
>           >
>           >Bob
>           >
>           >
>           >> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
>           >All:
>           >
>           >Right now, I am leaning toward the double encryption wrap
> algorithm.  I
>           >think it will be easy to implement, and it yeilds a shorter
> result that
>           the
>           >OAEP method.  To convince myself that it was easy to
> implement, I did an
>           >implementation.  It took me about two hours while watching
> an old Jimmy
>           >Stewart movie.  Of course, I already have SHA-1 and
> Triple-DES CBC
>           >routines.  S/MIME v3 will require these algorithms for
> other capabilities
>           >besides key wrapping.
>           >
>           >If someone else is willing to do an implementation, I would
> like to
>           compare
>           >results.  This will allow a test vector to be included with
> the algorithm
>           >description.
>           >
>           >Does anyone have any strong objections to the double
> encryption wrap
>           >algorithm being selected?
>           >
>           >Russ
>           >
>           >
>           >>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>           >>
>           >>Key Checksum
>           >>
>           >>The CMS Checksum Algorithm is used to provide an
> content-encryption key
>           >>integrity check value.  The algorithm is:
>           >>
>           >>1.  Compute a 20 octet SHA-1 message digest on the
>           >>    content-encryption key.
>           >>2.  Use the most significant (first) eight octets of the
>           >>    message digest value as the checksum value.
>           >>
>           >>Triple-DES Key Wrap
>           >>
>           >>1.  Set odd parity for each of the DES key octets
> comprising
>           >>    the content-encryption key, call the result CEK.
>           >>2.  Compute a 8 octet key checksum value on CEK as
> described above,
>           >>    call the result ICV.
>           >>3.  Let CEKICV = CEK || ICV.
>           >>4.  Encrypt CEKICV in CBC mode using the key-encryption
> key.  Use
>           >>    an IV of 0xc302e3c1ad8bb738.
>           >>5.  Reverse the order of the ciphertext octets.  That is,
> the most
>           >>    significant (first) octet is swapped with the least
> significant
>           >>    (last) octet, and so on.  Call the result TEMP.
>           >>6.  Encrypt TEMP in CBC mode using the key-encryption key.
> Use
>           >>    an IV of 0x61a197e5b132e196.  The ciphertext is 32
> octets long.
>           >
>           >Robert R. Jueneman
>           >Security Architect
>           >Network Security Development
>           >Novell, Inc.
>           >122 East 1700 South
>           >Provo, UT 84606
>           >bjueneman@novell.com 
>           >1-801-861-7387
> 
> 
> 
> 
> 
> 
> 
> 


From owner-ietf-smime@imc.org  Mon Mar  1 20:22:07 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA09565
	for <smime-archive@odin.ietf.org>; Mon, 1 Mar 1999 20:22:06 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA15688
	for ietf-smime-bks; Mon, 1 Mar 1999 16:16:22 -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 QAA15684
	for <ietf-smime@imc.org>; Mon, 1 Mar 1999 16:16:20 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA06772;
	Mon, 1 Mar 1999 19:21:07 -0500 (EST)
Message-Id: <199903020021.TAA06772@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-examples-00.txt
Date: Mon, 01 Mar 1999 19:21:06 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Examples of CMS Message Bodies
	Author(s)	: P. Hoffman
	Filename	: draft-ietf-smime-examples-00.txt
	Pages		: 8
	Date		: 26-Feb-99
	
This document gives examples of message bodies formatted using the
Cryptographic Message Syntax (CMS). It includes examples of most or all
common formats; in addition, it gives examples that show common pitfalls in
implementing CMS. The purpose of this document is to help increase
interoperability for S/MIME and other protocols that rely on CMS.
 
This draft is being discussed on the 'ietf-smime' mailing list.  To join
the list, send a message to <ietf-smime-request@imc.org> with the single
word 'subscribe' in the body of the message.  Also, there is a Web site for
the mailing list at <http://www.imc.org/ietf-smime/>.


A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-examples-00.txt

Internet-Drafts are also 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-ietf-smime-examples-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-examples-00.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:	<19990226104213.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-examples-00.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-examples-00.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Tue Mar  2 19:09:28 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA19365
	for <smime-archive@odin.ietf.org>; Tue, 2 Mar 1999 19:09:28 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id PAA24956
	for ietf-smime-bks; Tue, 2 Mar 1999 15:12:43 -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 PAA24952
	for <ietf-smime@imc.org>; Tue, 2 Mar 1999 15:12:42 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA16442;
	Tue, 2 Mar 1999 18:17:31 -0500 (EST)
Message-Id: <199903022317.SAA16442@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-certdist-03.txt
Date: Tue, 02 Mar 1999 18:17:30 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Certificate Distribution Specification
	Author(s)	: J. Schaad
	Filename	: draft-ietf-smime-certdist-03.txt
	Pages		: 7
	Date		: 01-Mar-99
	
  Current methods of publishing certificates in directory services are
  restricted to just certificates.  This document provides a method of
  publishing certificates with secondary support information such as the
  SMimeCapabilities attribute (containing bulk algorithm support) in a
  way that is both authenticated and bound to a given certificate.
 
  This draft is being discussed on the 'ietf-smime' mailing list.  To
  join the list, send a message to <ietf-smime-request@imc.org> with the
  single word 'subscribe' in the body of the message.  Also, there is a
  Web site for the mailing list at <http://www.imc.org/ietf-smime>.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-certdist-03.txt

Internet-Drafts are also 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-ietf-smime-certdist-03.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-certdist-03.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:	<19990301144435.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-certdist-03.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-certdist-03.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Wed Mar  3 01:06:01 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA16867
	for <smime-archive@odin.ietf.org>; Wed, 3 Mar 1999 01:05:59 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id VAA01490
	for ietf-smime-bks; Tue, 2 Mar 1999 21:08:05 -0800 (PST)
Received: from mailserver ([202.54.106.237])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id VAA01484
	for <ietf-smime@imc.org>; Tue, 2 Mar 1999 21:08:00 -0800 (PST)
Received: by mailserver with XtraMail-SMTP/POP3-Server (v1.10 58210006074) for <ietf-smime@imc.org> at Wed, 3 Mar 99  10:29:09 +0570
Received: from proxy1.ba.best.com (root@proxy1.ba.best.com [206.184.139.12])
	by fpage1.ba.best.com (8.9.2/8.9.2/best.sh) with ESMTP id VAA14793
	for <ravibaid+XRCPT.61616c6f6b4042495351554152452e434f4d@fpage1.ba.best.com>; Mon, 1 Mar 1999 21:43:54 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by proxy1.ba.best.com (8.9.3/8.9.2/best.in) with ESMTP id VAA12273;
	Mon, 1 Mar 1999 21:42:33 -0800 (PST)
Received: by ietf.org (8.9.1a/8.9.1a) id AAA28518
	for ietf-123-outbound.02@ietf.org; Tue, 2 Mar 1999 00:35:03 -0500 (EST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA06772;
	Mon, 1 Mar 1999 19:21:07 -0500 (EST)
Message-Id: <199903020021.TAA06772@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-examples-00.txt
Date: Mon, 01 Mar 1999 19:21:06 -0500
X-Rcpt-To: aalok@bisquare.com
X-UIDL: 2d2549e84e07656204c94359c570d331
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Examples of CMS Message Bodies
	Author(s)	: P. Hoffman
	Filename	: draft-ietf-smime-examples-00.txt
	Pages		: 8
	Date		: 26-Feb-99
	
This document gives examples of message bodies formatted using the
Cryptographic Message Syntax (CMS). It includes examples of most or all
common formats; in addition, it gives examples that show common pitfalls in
implementing CMS. The purpose of this document is to help increase
interoperability for S/MIME and other protocols that rely on CMS.
 
This draft is being discussed on the 'ietf-smime' mailing list.  To join
the list, send a message to <ietf-smime-request@imc.org> with the single
word 'subscribe' in the body of the message.  Also, there is a Web site for
the mailing list at <http://www.imc.org/ietf-smime/>.


A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-examples-00.txt

Internet-Drafts are also 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-ietf-smime-examples-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-examples-00.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:	<19990226104213.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-examples-00.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-examples-00.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--






From owner-ietf-smime@imc.org  Wed Mar  3 01:25:43 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA18205
	for <smime-archive@odin.ietf.org>; Wed, 3 Mar 1999 01:25:42 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id VAA01691
	for ietf-smime-bks; Tue, 2 Mar 1999 21:23:45 -0800 (PST)
Received: from mailserver ([202.54.106.237])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id VAA01687
	for <ietf-smime@imc.org>; Tue, 2 Mar 1999 21:23:39 -0800 (PST)
Received: by mailserver with XtraMail-SMTP/POP3-Server (v1.10 58210006074) for <ietf-smime@imc.org> at Wed, 3 Mar 99  10:49:12 +0530
Received: from proxy1.ba.best.com (root@proxy1.ba.best.com [206.184.139.12])
	by fpage1.ba.best.com (8.9.2/8.9.2/best.sh) with ESMTP id TAA18218
	for <ravibaid+XRCPT.61616c6f6b4042495351554152452e434f4d@fpage1.ba.best.com>; Tue, 2 Mar 1999 19:41:52 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by proxy1.ba.best.com (8.9.3/8.9.2/best.in) with ESMTP id TAA25615;
	Tue, 2 Mar 1999 19:39:26 -0800 (PST)
Received: by ietf.org (8.9.1a/8.9.1a) id WAA03090
	for ietf-123-outbound.02@ietf.org; Tue, 2 Mar 1999 22:35:19 -0500 (EST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA16442;
	Tue, 2 Mar 1999 18:17:31 -0500 (EST)
Message-Id: <199903022317.SAA16442@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-certdist-03.txt
Date: Tue, 02 Mar 1999 18:17:30 -0500
X-Rcpt-To: aalok@bisquare.com
X-UIDL: cad93a4638e297b36b10f1e656580a47
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Certificate Distribution Specification
	Author(s)	: J. Schaad
	Filename	: draft-ietf-smime-certdist-03.txt
	Pages		: 7
	Date		: 01-Mar-99
	
  Current methods of publishing certificates in directory services are
  restricted to just certificates.  This document provides a method of
  publishing certificates with secondary support information such as the
  SMimeCapabilities attribute (containing bulk algorithm support) in a
  way that is both authenticated and bound to a given certificate.
 
  This draft is being discussed on the 'ietf-smime' mailing list.  To
  join the list, send a message to <ietf-smime-request@imc.org> with the
  single word 'subscribe' in the body of the message.  Also, there is a
  Web site for the mailing list at <http://www.imc.org/ietf-smime>.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-certdist-03.txt

Internet-Drafts are also 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-ietf-smime-certdist-03.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-certdist-03.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:	<19990301144435.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-certdist-03.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-certdist-03.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--






From owner-ietf-smime@imc.org  Wed Mar  3 11:42:00 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA14120
	for <smime-archive@odin.ietf.org>; Wed, 3 Mar 1999 11:41:59 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA07232
	for ietf-smime-bks; Wed, 3 Mar 1999 07:09:25 -0800 (PST)
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id HAA07228;
	Wed, 3 Mar 1999 07:09:24 -0800 (PST)
Received: from Eng.Sun.COM (engmail4 [129.144.134.6]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id HAB19668; Wed, 3 Mar 1999 07:14:20 -0800
Received: from basilisk.Eng.Sun.COM (basilisk.Eng.Sun.COM [129.144.153.121])
	by Eng.Sun.COM (8.8.8+Sun/SMI-5.3) with SMTP id HAA13412;
	Wed, 3 Mar 1999 07:14:18 -0800 (PST)
Received: from JaffaGate by basilisk.Eng.Sun.COM (SMI-8.6/SMI-SVR4)
	id HAA03755; Wed, 3 Mar 1999 07:14:06 -0800
Message-ID: <003301be6589$67bb36c0$e83c9c81@JaffaGate>
Reply-To: "Yahya Al-Salqan" <alsalqan@Eng.Sun.COM>
From: "Yahya Al-Salqan" <alsalqan@Eng.Sun.COM>
To: <ietf-pkix@imc.org>, <ietf-smime@imc.org>, <ietf-ssh@clinet.fi>,
        <spki@c2.net>
Cc: <www-security@ns2.Rutgers.EDU>
Subject: Fw: 1999 WET-ICE Enterprise Security Workshop
Date: Wed, 3 Mar 1999 07:20:34 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.0518.4
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0518.4
X-MIME-Autoconverted: from 8bit to quoted-printable by Eng.Sun.COM id HAA13412
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id HAB07229
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 8bit



Dear Colleague,

This mail is to remind you of the upcomming deadline for submissions
the Fourth International Workshop on Enterprise Security, to be held
as a part of IEEE WET-ICE '99 on June 16-18, 1999 at Stanford
University, California, USA. Deadline for paper submissions is March
22, 1999.

Electronic submissions are accepted. Please see the workshop web
page http://www.ida.liu.se/conferences/WETICE/SECWK/ for more
details.

Please accept my apologies if you receive this message more than once.

Enclosed is the Call For Papers. Your help in distributing the
CFP to interested parties would be greatly appreciated.


Sincerely,

Nahid Shahmehri
Program Co-Chair

Dept. of Computer and Information Science
Linköping University
SE-581 83 Linköping
Sweden

-Cut here--------------------------------------------------------------

     FINAL CALL FOR  PAPERS

      Submission deadline: March 22, 1999

      Fourth International Workshop on Enterprise Security
     a WET-ICE '99 workshop
June 16-18, 1999
      Stanford University, California, USA

    Sponsored by the IEEE Computer Society and CERC at West
Virginia University. Hosted by the Center for Design Research,
      Stanford University.


    This document is also available in HTML,
PostScript and PDF formats from

http://www.ida.liu.se/conferences/WETICE/SECWK/




Enterprises are becoming increasingly dependent on their information
systems to support their business and workflow activities.  There is a
need for universal electronic connectivity to support interaction and
cooperation between multiple organizations. This makes enterprise
security and confidentiality more important but at the same time more
difficult to achieve, as the multiple organizations may have
differences in their security policies and may have to interact via an
insecure Internet.

These inter-organizational enterprise systems may be very large.
Efficient tools, techniques and methodologies are therefore needed to
support the specification, analysis and implementation of security.

This workshop will focus on the problems and challenges relating to
enterprise security in inter-organizational systems. We aim to bring
together principal players from both the internetwork and the
enterprise security community and will provide plenty of time for
discussion.

Topics to be discussed include:
-------------------------------
Internet security:
* Security protocols for the Internet
* The work and efforts of IETF security groups
* Global key infrastructures

Distribution:
* Distributed database security
* Secure transactions
* Inter- and intra-organizational security
* Security of collaborative applications

Secure infrastructures:
* Secure applications and environments
* Object-oriented and CORBA Security
* Secure enterprise infrastructures
* Security algorithms
* Public key infrastructures

Security management:
* Role-based access control
* Enterprise security policies
* Security in workflow processes

The program committee welcomes both papers and panel proposals
covering these topics.


SUBMISSIONS
-----------

Authors should submit six copies of an original paper (not submitted
or published elsewhere) to one of the Program Co-Chairs. Electronic
submissions are also accepted via the World Wide Web. Instructions
and forms are available at http://mir7.ida.liu.se:8080/SECWK/ .

Submissions should include the title of the paper, the name and
affiliation of each author, a 150-word abstract, and no more than 8
keywords. Submissions should not exceed 3000 words in length.  The
name, position, address, telephone number, and if possible, fax number
and e-mail address of the author responsible for correspondence must
be included.

A representative selection of accepted papers will published in the
workshop post-proceedings. Papers accepted for publication in the
proceedings are limited to six pages (about 2000-2500 words) in IEEE
format (two columns, single spaced, 10pt Times). Authors are strongly
encouraged to adhere to this format also when submitting
papers. Detailed information on the IEEE format (together with some
templates) is available at http://www.computer.org/cspress/instruct.htm


PANEL PROPOSALS
---------------

Send six copies of panel proposals to the General Chair. Include a
title, a 150-word scope statement, proposed session chair and
panelists and their affiliations, the organizer's affiliation,
address, telephone and fax number, and e-mail address.


GENERAL CHAIR
-------------

Yahya Al-Salqan
Sun Microsystems
901 San Antonio Rd
Palo Alto, CA 94303
USA
E-mail: alsalqan@eng.sun.com


PROGRAM CO-CHAIRS
-----------------

Nahid Shahmehri
Dept. of Computer Science
Linköping University
S-581 83 Linköping
SWEDEN
E-mail: nahsh@ida.liu.se

Mourad Debbabi
Computer Science Department
Laval University
Ste-Foy, Quebec, G1K 7P4
CANADA
E-mail: debabi@ift.ulaval.ca




WORKSHOP PROGRAM COMMITTEE
--------------------------

Dominique Bolignano, INRIA, France
Germano Caronni, ETH-Zentrum, Switzerland
Michael Geva, Java Security Group, USA
Jean Goubault, Gie Dyade, France
Dima Hamad, Birzeit University, West Bank
Douglas Maughan, National Security Agency, USA
Steve Lloyd, Entrust, Canada
Gary McGraw, Reliable Software Technologies Inc., USA
Aravindan Ranganathan, Sun Microsystems, USA
Sumitra Reddy, CERC, West Virginia University, USA
Vipin Samar, Oracle, USA
Bill Soley, Sun Microsystems, USA
Robert Thomys, BSI, Germany
Mark Vandenwauver, K.U. Leuven, Belgium
Wu Wen, NASA Ames Research Center, USA
Tatu Ylönen, SSH Communications Security, Finland
Nick Zhang, Trans Enterprise Technologies Inc., USA
Qun Zhong, HP Extend Enterprise Lab, USA



IMPORTANT DATES
---------------

Papers and panel proposals due  March 22, 1999
Authors notified of acceptance  April 26, 1999
Workshop                        June 16-18, 1999
Camera ready manuscripts due    June 30, 1999



INQUIRIES
---------

For further information, please contact one of the Chairs,
or visit the workshop web pages:
  http://www.ida.liu.se/conferences/WETICE/SECWK/

For inquires regarding WET ICE in general, contact
wetice@cerc.wvu.edu or call (U.S.) +1-304-293-7226, or
visit
  http://www.ida.liu.se/conferences/WETICE/










From owner-ietf-smime@imc.org  Thu Mar  4 10:36:21 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA05863
	for <smime-archive@odin.ietf.org>; Thu, 4 Mar 1999 10:36:21 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA14088
	for ietf-smime-bks; Thu, 4 Mar 1999 06:04:10 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA14081
	for <ietf-smime@imc.org>; Thu, 4 Mar 1999 06:03:57 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id JAA07342;
	Thu, 4 Mar 1999 09:08:41 -0500
Message-Id: <4.1.19990304085554.009f7930@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 09:08:40 -0500
To: "Bob Jueneman" <BJUENEMAN@novell.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <bschanni@BayNetworks.com>,
        <kent@bbn.com>, <pcain@bbn.com>, <mhetzel@bell-labs.com>,
        <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <daw@cs.berkeley.edu>,
        <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>,
        <omura@cylink.com>, <dickie@EMPIRE.eclipse.ncsc.mil>,
        <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <ietf-smime@imc.org>,
        <benaloh@microsoft.com>, <bfox@microsoft.com>,
        <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>,
        <desmedt@uwm.edu>
In-Reply-To: <s6d687be.038@prv-mail20.provo.novell.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Bob:

>You are correct, of course.  The question, then, is whether
>we should just go to the OAEP-type wrapping and not have
>to worry about changing IV's and how to convey them.
>That would be my recommendation.

I think that OAEP has the same issue.  Each time a key is wrapped, a
different random number must be used.  This is the same a generating a new
IV for the first encryption.


>On a slightly different issue, several times I have strongly urged
>that in order to avoid the problem of having N-squared algorithm
>IDs for all of the various combinations of CEK and KEK algorithms,
>key lengths, and other miscellaneous data, that we first wrap
>the CEK in a descriptive ASN.1 structure that describes the 
>the CEK algorithm/key, and then do the wrapping operation.
>
>However, although I've raised this issue several times and indicated
>our strong desire to solve the key wrapping issue once and for all,
>you have neither incorporated the idea or argued against it,
>so I don't know where you stand.

I think I was clear on this point in an earlier posting.  My first priority
is to finish S/MIME v3.  If the general key wrapping problem is solved at
the same time, fine.  The S/MIME v3 structure includes an
AlgorithmIdentifier for the key wrapping algorithm, so if a secure solution
is included in the documents today, it can be aougmented with a general
solution when it is fully vetted.


>Obviously anyone who is processing certificates is going to have to 
>have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures 
>me that the performance implications would be negligible compared to
>almost any encryption operation.
>
>Assuming that is the case, the only reason I could see for not doing 
>it would be concern about the increase in wrapped key size,
>or some lingering not-invented-here bias against ISO/ITU/X.500
>mechanisms.  I certainly hope it isn't the later.

In general, ASN.1 is a good tool.  However, Burt Kaliski's attack against
the original key wrap algorithm was due to known structure in the
plaintext.  ASN.1 intruduces significant structure.  While ASN.1 or some
other encoding might be part of the general key wrap solution, I am will
avoid it in the near term.


>Is there anything in the existing protocol that is rigidly sensitive to 
>the size of the wrapped key?  If so, then that is a problem that 
>probably ought to be addressed.

No.  However, every user is concerned with overhead.  Since the
content-encryption key is wrapped once for each recipient, I am sensitive
to the multiplier.


Russ


From owner-ietf-smime@imc.org  Thu Mar  4 12:14:18 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA08688
	for <smime-archive@odin.ietf.org>; Thu, 4 Mar 1999 12:14:18 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA15076
	for ietf-smime-bks; Thu, 4 Mar 1999 08:01:23 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA15071
	for <ietf-smime@imc.org>; Thu, 4 Mar 1999 08:01:22 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id LAA12181;
	Thu, 4 Mar 1999 11:06:52 -0500
Message-Id: <4.1.19990304110332.009dca80@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 11:03:52 -0500
To: "Blake Ramsdell" <BlakeR@deming.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: CERT changes in IETF last call -- please review
Cc: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
In-Reply-To: <01FF24001403D011AD7B00A024BC53C563DD40@mail.deming.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Ooops.  I still do not see CERT-07 on the server.....

Russ


At 04:27 PM 1/28/99 -0800, Blake Ramsdell wrote:
>> -----Original Message-----
>> From: Blake Ramsdell 
>> Sent: Thursday, January 28, 1999 3:59 PM
>> To: 'ietf-smime@imc.org'
>> Subject: CERT changes in IETF last call -- please review
>> 
>> These are the changes that I am making in MSG-07 that were 
>> requested during
>> IETF last call.
>
>Uh, I mean CERT-07 if you didn't already figure that out.
>
>Blake
>--
>Blake C. Ramsdell
>Worldtalk Corporation
>For current info, check http://www.deming.com/users/blaker
>Voice +1 425 882 8861 x103  Fax +1 425 882 8060
>



From owner-ietf-smime@imc.org  Thu Mar  4 13:51:13 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA10676
	for <smime-archive@odin.ietf.org>; Thu, 4 Mar 1999 13:51:12 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA16064
	for ietf-smime-bks; Thu, 4 Mar 1999 09:39:39 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA16060
	for <ietf-smime@imc.org>; Thu, 4 Mar 1999 09:39:38 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id MAA16283
	for <ietf-smime@imc.org>; Thu, 4 Mar 1999 12:45:09 -0500
Message-Id: <4.1.19990304115333.00980100@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 11:54:50 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: I-D ACTION:draft-ietf-pkix-dhpop-00.txt
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Since Ephemeral-Static Diffie-Hemman is a mandatory to implement CMS
algorithm, this document may be of interest to S/MIME WG members.

Russ


>To: IETF-Announce: ;
>Cc: ietf-pkix@imc.org
>From: Internet-Drafts@ietf.org
>Reply-to: Internet-Drafts@ietf.org
>Subject: I-D ACTION:draft-ietf-pkix-dhpop-00.txt
>Date: Tue, 02 Mar 1999 18:15:32 -0500
>Sender: owner-ietf-pkix@imc.org
>List-Archive: <http://www.imc.org/ietf-pkix/mail-archive/>
>List-Unsubscribe: <mailto:ietf-pkix-request@imc.org?body=unsubscribe>
>
>A New Internet-Draft is available from the on-line Internet-Drafts
directories.
>This draft is a work item of the Public-Key Infrastructure (X.509) Working 
>Group 
>of the IETF.
>
>	Title		: Diffie-Hellman Proof-of-Possession Algorithms
>	Author(s)	: H. Prafullchandra, J. Schaad
>	Filename	: draft-ietf-pkix-dhpop-00.txt
>	Pages		: 9
>	Date		: 01-Mar-99
>	
>  This document describes two methods for producing a signature from a
>  Diffie-Hellman key pair.  This behavior is needed for such operations
>  as creating a signature of a PKCS #10 certification request.  These
>  algorithms are designed to provide a proof-of-possession rather than
>  general purpose signing.
>
>
>A URL for this Internet-Draft is:
>http://www.ietf.org/internet-drafts/draft-ietf-pkix-dhpop-00.txt
>
>Internet-Drafts are also 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-ietf-pkix-dhpop-00.txt".
>
>A list of Internet-Drafts directories can be found in
>http://www.ietf.org/shadow.html 
>or ftp://ftp.ietf.org/ietf/1shadow-sites.txt
>
>
>Internet-Drafts can also be obtained by e-mail.
>
>Send a message to:
>	mailserv@ietf.org.
>In the body type:
>	"FILE /internet-drafts/draft-ietf-pkix-dhpop-00.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.
>Content-Type: text/plain
>Content-ID:	<19990301140219.I-D@ietf.org>
>
>ENCODING mime
>FILE /internet-drafts/draft-ietf-pkix-dhpop-00.txt
>
><ftp://ftp.ietf.org/internet-drafts/draft-ietf-pkix-dhpop-00.txt>



From owner-ietf-smime@imc.org  Thu Mar  4 14:24:07 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA11100
	for <smime-archive@odin.ietf.org>; Thu, 4 Mar 1999 14:24:06 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA15642
	for ietf-smime-bks; Thu, 4 Mar 1999 09:01:06 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA15638
	for <ietf-smime@imc.org>; Thu, 4 Mar 1999 09:01:05 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id LAA14187;
	Thu, 4 Mar 1999 11:52:06 -0500
Message-Id: <4.1.19990304110718.009ac2a0@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 11:51:57 -0500
To: <cme@ACM.ORG>, <berson@anagram.com>, <bschanni@BayNetworks.com>,
        <kent@bbn.com>, <pcain@bbn.com>, <mhetzel@bell-labs.com>,
        <brickell@certco.com>, <djohnson@certicom.ca>,
        <schneier@counterpane.com>, <daw@cs.berkeley.edu>,
        <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>,
        <omura@cylink.com>, <dickie@EMPIRE.eclipse.ncsc.mil>,
        <carlisle.adams@entrust.com>, <paulv@entrust.com>,
        <Blake.greenlee@greenlee.com>, <benaloh@microsoft.com>,
        <bfox@microsoft.com>, <cjwagne@missi.ncsc.mil>, <jis@mit.edu>,
        <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>,
        <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>,
        <jlinn@securitydynamics.com>, <ams@terisa.com>,
        <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>,
        <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>,
        <desmedt@uwm.edu>, ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: New Triple-DES Key Wrap Algorithm Section
In-Reply-To: <s6d687be.038@prv-mail20.provo.novell.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All:

I greatly appreciate the work that everyone has put into the open debate on
key wrapping.

The 44th IETF meeting is coming up rapidly, and I would like to close this
debate prior to the meeting.  To that end, I selected the double-encryption
algorithm.  An updated CMS document has not been posted yet, so I have
attached the text associated with key wrapping.

Based on the discussion on this list, I believe that the double-encryption
algorithm meet the security requirements, and it is easily implemented with
building blocks that are otherwise needed to implement CMS.

I will gladly facilitate the further discussion of the general wrapping
algorithm if the participants are interested.  I do not think that
discussion should occur on the IETF S/MIME Working Group mail list, but I
will arrange for a separate list to be created if you want to pursue the
general wrap algorithm.

Russ


= = = = = = = = = =

12.6  Triple-DES and RC2 Key Wrap Algorithms

   CMS implementations must include encryption of a Triple-DES content-
   encryption key with a Triple-DES key-encryption key using the
   algorithm specified in Sections 12.6.2 and 12.6.3.  CMS
   implementations should include encryption of a RC2 content-encryption
   key with a RC2 key-encryption key using the algorithm specified in
   Sections 12.6.4 and 12.6.5.  Triple-DES and RC2 content-encryption
   keys are encrypted in Cipher Block Chaining (CBC) mode [MODES].

   Key Transport algorithms allow for the content-encryption key to be
   directly encrypted; however, key agreement and symmetric key-
   encryption key algorithms encrypt the content-encryption key with a
   second symmetric encryption algorithm.  This section describes how
   the Triple-DES or RC2 content-encryption key is formatted and
   encrypted.

   Key agreement algorithms generate a pairwise key-encryption key, and
   a key wrap algorithm is used to encrypt the content-encryption key
   with the pairwise key-encryption key.  Similarly, a key wrap
   algorithm is used to encrypt the content-encryption key in a
   previously distributed key-encryption key.

   The key-encryption key is generated by the key agreement algorithm or
   distributed out of band.  For key agreement of RC2 key-encryption
   keys, 128 bits must be generated as input to the key expansion
   process used to compute the RC2 effective key [RC2].

   The same algorithm identifier is used for both 2-key and 3-key
   Triple-DES.  When the length of the content-encryption key to be
   wrapped is a 2-key Triple-DES key, a third key with the same value as
   the first key is created.  Thus, all Triple-DES content-encryption
   keys are wrapped like 3-key Triple-DES keys.

12.6.1  Key Checksum

   The CMS Checksum Algorithm is used to provide a content-encryption
   key integrity check value.  The algorithm is:

   1.  Compute a 20 octet SHA-1 [SHA1] message digest on the
       content-encryption key.
   2.  Use the most significant (first) eight octets of the message
       digest value as the checksum value.

12.6.2  Triple-DES Key Wrap

   The Triple-DES key wrap algorithm encrypts a Triple-DES content-
   encryption key with a Triple-DES key-encryption key.  The Triple-DES
   key wrap algorithm is:

   1.  Set odd parity for each of the DES key octets comprising
       the content-encryption key, call the result CEK.
   2.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1, call the result ICV.
   3.  Let CEKICV = CEK || ICV.
   4.  Generate 8 octets at random, call the result IV.
   5.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
       the random value generated in the previous step as the
       initialization vector (IV).  Call the ciphertext TEMP1.
   6.  Let TEMP2 = IV || TEMP1.
   7.  Reverse the order of the octets in TEMP2.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP3.
   8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
       an initialization vector (IV) of 0x4adda22c79e82105.
       The ciphertext is 40 octets long.

   Note:  When the same content-encryption key is wrapped in different
   key-encryption keys, a fresh initialization vector (IV) must be
   generated for each invocation of the key wrap algorithm.

12.6.3  Triple-DES Key Unwrap

   The Triple-DES key unwrap algorithm decrypts a Triple-DES content-
   encryption key using a Triple-DES key-encryption key.  The Triple-DES
   key unwrap algorithm is:

   1.  If the wrapped content-encryption key is not 40 octets, then
       error.
   2.  Decrypt the wrapped content-encryption key in CBC mode using
       the key-encryption key.  Use an initialization vector (IV)
       of 0x4adda22c79e82105.  Call the output TEMP3.
   3.  Reverse the order of the octets in TEMP3.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP2.
   4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
       significant (first) 8 octets, and TEMP1 is the least significant
       (last) 32 octets.
   5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
       the IV value from the previous step as the initialization vector.
       Call the ciphertext CEKICV.
   6.  Decompose the CEKICV into CEK and ICV. CEK is the most significant
       (first) 24 octets, and ICV is the least significant (last) 8 octets.
   7.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1.  If the computed key checksum value does not
       match the decrypted key checksum value, ICV, then error.
   8.  Check for odd parity each of the DES key octets comprising CEK.
       If parity is incorrect, then there is an error.
   9. Use CEK as the content-encryption key.

12.6.4  RC2 Key Wrap

   The RC2 key wrap algorithm encrypts a RC2 content-encryption key with a 
   RC2 key-encryption key.  The RC2 key wrap algorithm is:

   1.  Let the content-encryption key be called CEK, and let the length
       of the content-encryption key in octets be called LENGTH.
   2.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1, call the result ICV.
   3.  Let CEKICV = LENGTH || CEK || ICV.  LENGTH is a single octet.
   4.  Let CEKICVPAD = CEKICV || PAD.  If the length of CEKICV is a
       multiple of 8, the PAD has a length of zero.  If the length of
       CEKICV is not a multiple of 8, then PAD contains the fewest
       number of random octets to make CEKICVPAD a multiple of 8.
   5.  Generate 8 octets at random, call the result IV.
   5.  Encrypt CEKICVPAD in CBC mode using the key-encryption key.
       Use the random value generated in the previous step as the
       initialization vector (IV).  Call the ciphertext TEMP1.
   6.  Let TEMP2 = IV || TEMP1.
   7.  Reverse the order of the octets in TEMP2.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP3.
   8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
       an initialization vector (IV) of 0x4adda22c79e82105.

   Note:  When the same content-encryption key is wrapped in different
   key-encryption keys, a fresh initialization vector (IV) must be
   generated for each invocation of the key wrap algorithm.

12.6.5  RC2 Key Unwrap

   The RC2 key unwrap algorithm decrypts a RC2 content-encryption key
   using a RC2 key-encryption key.  The RC2 key unwrap algorithm is:

   1.  If the wrapped content-encryption key is not a multiple of 8
       octets, then error.
   2.  Decrypt the wrapped content-encryption key in CBC mode using
       the key-encryption key.  Use an initialization vector (IV)
       of 0x4adda22c79e82105.  Call the output TEMP3.
   3.  Reverse the order of the octets in TEMP3.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP2.
   4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
       significant (first) 8 octets, and TEMP1 is the remaining octets.
   5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
       the IV value from the previous step as the initialization vector.
       Call the ciphertext CEKICVPAD.
   6.  Decompose the CEKICVPAD into LENGTH, CEK, ICV, and PAD.  LENGTH is
       the most significant (first) octet.  CEK is the following LENGTH
       octets.  ICV is the following 8 octets.  PAD is the remaining
       octets, if any.
   7.  If PAD is more than 7 octets, then error.
   8.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1.  If the computed key checksum value does not
       match the decrypted key checksum value, ICV, then error.
   9.  Use CEK as the content-encryption key.

Security Considerations

   Section 12.6 specifies key wrap algorithms used to encrypt a Triple-
   DES [3DES] content-encryption key with a Triple-DES key-encryption
   key or to encrypt a RC2 [RC2] content-encryption key with a RC2 key-
   encryption key.  The key wrap algorithms make use of CBC mode
   [MODES].  These key wrap algorithms have been reviewed for use with
   Triple and RC2.  They have not been reviewed for use with other
   cryptographic modes or other encryption algorithms.  Therefore, if a
   CMS implementation wishes to support ciphers in addition to Triple-
   DES or RC2, then additional key wrap algorithms need to be defined to
   support the additional ciphers.




From owner-ietf-smime@imc.org  Thu Mar  4 15:49:26 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA12411
	for <smime-archive@odin.ietf.org>; Thu, 4 Mar 1999 15:49:26 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA17270
	for ietf-smime-bks; Thu, 4 Mar 1999 11:48:49 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA17266
	for <ietf-smime@imc.org>; Thu, 4 Mar 1999 11:48:48 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id OAA21876;
	Thu, 4 Mar 1999 14:54:14 -0500
Message-Id: <4.1.19990304125831.00924540@209.172.119.123>
Message-Id: <4.1.19990304125831.00924540@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123 (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 13:07:45 -0500
To: "Bonatti, Chris" <bonattic@ieca.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Correct definition of ContentInfo in CMS-10
Cc: William Ottaway <w.ottaway@eris.dera.gov.uk>,
        "'ietf-smime@imc.org'" <ietf-smime@imc.org>
In-Reply-To: <36D16CC0.5B442494@ieca.com>
References: <01BE5E63.4E934480.w.ottaway@eris.dera.gov.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Agree.  The OID in ContentInfo should not be OPTIONAL.


At 09:42 AM 2/22/99 -0500, Bonatti, Chris wrote:
>    I would submit that the 'content' field in the General Syntax section is
>correct.  The instance of OPTIONAL in the appendix must be a copy artifact
>from the 'EncapsulatedContentInfo', in which the 'content' field is
>correctly optional.  I can see no legitimate use of CMS in which you would
>send only a 'contentType' OID.  Even if someone were sending a "detached
>content" in a separate body part, either MIME or X.400 mail systems are
>perfectly capable of attaching a content types for that information without
>utilizing this structure.
>
>Russ,
>
>    Browsing through my historical archive of now "non-existent" I-Ds, I see
>that the OPTIONAL tag seems to have fallen out of the General Syntax
>starting in version 3 of CMS.  Do you remember the reasoning behind the
>change?
>
>Chris
>
>
>
> ---------------------------------------------------------------
> |  International Electronic Communication Analysts, Inc.      |
> |  Christopher D. Bonatti             15309 Turkey Foot Road  |
> |  Principal Engineer              Darnestown, Md 20878-3640  |
> |  bonattic@ieca.com   Tel: 301-208-2349   Fax: 301-208-2379  |
> ---------------------------------------------------------------
>
>
>
>____________________
>
>William Ottaway wrote:
>
>> Within the body of CMS 10 ContentInfo is defined as : -
>>
>> ContentInfo ::= SEQUENCE {
>>         contentType ContentType,
>>         content [0] EXPLICIT ANY DEFINED BY contentType }
>>
>> However, in the appendix ContentInfo is defined as : -
>>
>> ContentInfo ::= SEQUENCE {
>>      contentType ContentType,
>>      content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>>
>> I assume the one within the body (i.e. content not optional) is correct.
>>
>> Bill.
>>
>> "The Information contained in this E-Mail and any subsequent
>> correspondence is private and is intended solely for the intended
>> recipient(s).  For those other than the intended recipient any
>> disclosure, copying, distribution, or any action taken or omitted to
>> be taken in reliance on such information is prohibited and may be
>> unlawful."
>> ____________________________________________________
>> William Ottaway BSc Hons CEng MBCS,
>> L323,                        Tel: +44 (0) 1684 894079
>> DERA Malvern,                Fax: +44 (0) 1684 896113
>> St. Andrews Road,            email: w.ottaway@eris.dera.gov.uk
>> Malvern,
>> Worcs,
>> WR14 3PS
>>
>> All opinions are my own.
>
>
>


From owner-ietf-smime@imc.org  Thu Mar  4 15:55:48 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA12533
	for <smime-archive@odin.ietf.org>; Thu, 4 Mar 1999 15:55:48 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA17260
	for ietf-smime-bks; Thu, 4 Mar 1999 11:48:45 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA17256
	for <ietf-smime@imc.org>; Thu, 4 Mar 1999 11:48:44 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id OAA21872;
	Thu, 4 Mar 1999 14:54:12 -0500
Message-Id: <4.1.19990304124721.00985440@209.172.119.123>
Message-Id: <4.1.19990304124721.00985440@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123 (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 12:57:26 -0500
To: Eric Rescorla <ekr@rtfm.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Comments on x942-05 draft 
Cc: jlinn@securitydynamics.com, ietf-smime@imc.org, burt@RSA.COM
In-Reply-To: <199902221714.JAA26885@speedy.rtfm.com>
References: <Your message of "Fri, 19 Feb 1999 08:50:30 EST."             <D104150098E6D111B7830000F8D90AE845A4B4@exna02.securitydynamics.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Eric:

I am comfortable mandating the effective and real key lengths are the same
for the calculation of the key-encrypting key.  If some policy wants to use
a reduced effective key length for the content-encryption key, thsi can
still be accomodated.

Russ


At 09:14 AM 2/22/99 -0800, Eric Rescorla wrote:
>> Here's some analysis on the RC2 effective key issue, thanks to Burt Kaliski.
>[...]
>Clearly we do have to defend against the partition attack on effective
>key lengths. 
>
>As John suggests, I propose that we place the RC2 effective key 
>length into the the suppPubInfo. However, this leaves us with
>an unfortunate inconsistency, in that for some algorithms it's
>the length and some it's the effective length. One solution
>to this would be to revert to what Stephen Henson has termed
>the X/8 strategy. I.e. make the effective and real lengths
>the same for RC2. This is slightly more tasteful than having
>a bunch of special case language.
>
>Comments? I'd like to get this settled quickly.
>
>-Ekr
>[Eric Rescorla                                   ekr@rtfm.com]
>


From owner-ietf-smime@imc.org  Thu Mar  4 21:31:18 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA24309
	for <smime-archive@odin.ietf.org>; Thu, 4 Mar 1999 21:31:18 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA20384
	for ietf-smime-bks; Thu, 4 Mar 1999 17:34: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 RAA20380
	for <ietf-smime@imc.org>; Thu, 4 Mar 1999 17:34:30 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA20829;
	Thu, 4 Mar 1999 20:39:30 -0500 (EST)
Message-Id: <199903050139.UAA20829@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-ess-11.txt
Date: Thu, 04 Mar 1999 20:39:29 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

Note: This revision reflects comments received during the last call period.

	Title		: Enhanced Security Services for S/MIME
	Author(s)	: P. Hoffman
	Filename	: draft-ietf-smime-ess-11.txt
	Pages		: 37
	Date		: 03-Mar-99
	
This document describes four optional security service extensions for
S/MIME. The services are:
 - signed receipts
 - security labels
 - secure mailing lists
 - signing certificates
The first three of these services provide functionality that is similar to
the Message Security Protocol [MSP4], but are useful in many other
environments, particularly business and finance. Signing certificates are
useful in any environment where certificates might be transmitted with
signed messages.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-ess-11.txt

Internet-Drafts are also 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-ietf-smime-ess-11.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-ess-11.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:	<19990303155457.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-ess-11.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-ess-11.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Fri Mar  5 12:42:24 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA18055
	for <smime-archive@odin.ietf.org>; Fri, 5 Mar 1999 12:42:23 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA05191
	for ietf-smime-bks; Fri, 5 Mar 1999 08:00:33 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id HAA05171
	for <ietf-smime@imc.org>; Fri, 5 Mar 1999 07:57:48 -0800 (PST)
Received: 	id KAA01606; Fri, 5 Mar 1999 10:53:28 -0500
Received: by gateway id <FR0Z4CNN>; Fri, 5 Mar 1999 10:55:38 -0500
Message-ID: <91AE69321799D211AEC500105A9C4696894D69@sothmxs05.entrust.com>
From: Paul Van Oorschot <paul.vanoorschot@entrust.com>
To: cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com,
        pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com,
        djohnson@certicom.ca, schneier@counterpane.com, daw@cs.berkeley.edu,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
        carlisle.adams@entrust.com, paulv@entrust.com,
        Blake.greenlee@greenlee.com, benaloh@microsoft.com, bfox@microsoft.com,
        cjwagne@missi.ncsc.mil, jis@mit.edu, TACAR.PRV-7.PROVO@novell.com,
        merkle@parc.xerox.com, BSnow@radium.ncsc.mil, burt@RSA.COM,
        ekr@rtfm.com, jlinn@securitydynamics.com, ams@terisa.com,
        rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com,
        acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com,
        desmedt@uwm.edu, ietf-smime@imc.org,
        "'Russ Housley'"
	 <housley@spyrus.com>
Subject: RE: New Triple-DES Key Wrap Algorithm Section
Date: Fri, 5 Mar 1999 10:50:48 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.1960.3)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ - does this mean that you have chosen a new, non-standard algorithm?

Paul.

> ----------
> From: 	Russ Housley[SMTP:housley@spyrus.com]
> Sent: 	Thursday, March 04, 1999 11:51 AM
> To: 	cme@ACM.ORG; berson@anagram.com; bschanni@BayNetworks.com;
> kent@bbn.com; pcain@bbn.com; mhetzel@bell-labs.com; brickell@certco.com;
> djohnson@certicom.ca; schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com; dickie@EMPIRE.eclipse.ncsc.mil;
> carlisle.adams@entrust.com; paulv@entrust.com;
> Blake.greenlee@greenlee.com; benaloh@microsoft.com; bfox@microsoft.com;
> cjwagne@missi.ncsc.mil; jis@mit.edu; TACAR.PRV-7.PROVO@novell.com;
> merkle@parc.xerox.com; BSnow@radium.ncsc.mil; burt@RSA.COM; ekr@rtfm.com;
> jlinn@securitydynamics.com; ams@terisa.com; rivest@theory.lcs.mit.edu;
> balenson@tis.com; denny@tis.com; acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil;
> smatyas@us.ibm.com; desmedt@uwm.edu; ietf-smime@imc.org
> Subject: 	New Triple-DES Key Wrap Algorithm Section
> 
> All:
> 
> I greatly appreciate the work that everyone has put into the open debate
> on
> key wrapping.
> 
> The 44th IETF meeting is coming up rapidly, and I would like to close this
> debate prior to the meeting.  To that end, I selected the
> double-encryption
> algorithm.  An updated CMS document has not been posted yet, so I have
> attached the text associated with key wrapping.
> 
> Based on the discussion on this list, I believe that the double-encryption
> algorithm meet the security requirements, and it is easily implemented
> with
> building blocks that are otherwise needed to implement CMS.
> 
> I will gladly facilitate the further discussion of the general wrapping
> algorithm if the participants are interested.  I do not think that
> discussion should occur on the IETF S/MIME Working Group mail list, but I
> will arrange for a separate list to be created if you want to pursue the
> general wrap algorithm.
> 
> Russ
> 
> 
> = = = = = = = = = =
> 
> 12.6  Triple-DES and RC2 Key Wrap Algorithms
> 
>    CMS implementations must include encryption of a Triple-DES content-
>    encryption key with a Triple-DES key-encryption key using the
>    algorithm specified in Sections 12.6.2 and 12.6.3.  CMS
>    implementations should include encryption of a RC2 content-encryption
>    key with a RC2 key-encryption key using the algorithm specified in
>    Sections 12.6.4 and 12.6.5.  Triple-DES and RC2 content-encryption
>    keys are encrypted in Cipher Block Chaining (CBC) mode [MODES].
> 
>    Key Transport algorithms allow for the content-encryption key to be
>    directly encrypted; however, key agreement and symmetric key-
>    encryption key algorithms encrypt the content-encryption key with a
>    second symmetric encryption algorithm.  This section describes how
>    the Triple-DES or RC2 content-encryption key is formatted and
>    encrypted.
> 
>    Key agreement algorithms generate a pairwise key-encryption key, and
>    a key wrap algorithm is used to encrypt the content-encryption key
>    with the pairwise key-encryption key.  Similarly, a key wrap
>    algorithm is used to encrypt the content-encryption key in a
>    previously distributed key-encryption key.
> 
>    The key-encryption key is generated by the key agreement algorithm or
>    distributed out of band.  For key agreement of RC2 key-encryption
>    keys, 128 bits must be generated as input to the key expansion
>    process used to compute the RC2 effective key [RC2].
> 
>    The same algorithm identifier is used for both 2-key and 3-key
>    Triple-DES.  When the length of the content-encryption key to be
>    wrapped is a 2-key Triple-DES key, a third key with the same value as
>    the first key is created.  Thus, all Triple-DES content-encryption
>    keys are wrapped like 3-key Triple-DES keys.
> 
> 12.6.1  Key Checksum
> 
>    The CMS Checksum Algorithm is used to provide a content-encryption
>    key integrity check value.  The algorithm is:
> 
>    1.  Compute a 20 octet SHA-1 [SHA1] message digest on the
>        content-encryption key.
>    2.  Use the most significant (first) eight octets of the message
>        digest value as the checksum value.
> 
> 12.6.2  Triple-DES Key Wrap
> 
>    The Triple-DES key wrap algorithm encrypts a Triple-DES content-
>    encryption key with a Triple-DES key-encryption key.  The Triple-DES
>    key wrap algorithm is:
> 
>    1.  Set odd parity for each of the DES key octets comprising
>        the content-encryption key, call the result CEK.
>    2.  Compute an 8 octet key checksum value on CEK as described above
>        in Section 12.6.1, call the result ICV.
>    3.  Let CEKICV = CEK || ICV.
>    4.  Generate 8 octets at random, call the result IV.
>    5.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>        the random value generated in the previous step as the
>        initialization vector (IV).  Call the ciphertext TEMP1.
>    6.  Let TEMP2 = IV || TEMP1.
>    7.  Reverse the order of the octets in TEMP2.  That is, the most
>        significant (first) octet is swapped with the least significant
>        (last) octet, and so on.  Call the result TEMP3.
>    8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
>        an initialization vector (IV) of 0x4adda22c79e82105.
>        The ciphertext is 40 octets long.
> 
>    Note:  When the same content-encryption key is wrapped in different
>    key-encryption keys, a fresh initialization vector (IV) must be
>    generated for each invocation of the key wrap algorithm.
> 
> 12.6.3  Triple-DES Key Unwrap
> 
>    The Triple-DES key unwrap algorithm decrypts a Triple-DES content-
>    encryption key using a Triple-DES key-encryption key.  The Triple-DES
>    key unwrap algorithm is:
> 
>    1.  If the wrapped content-encryption key is not 40 octets, then
>        error.
>    2.  Decrypt the wrapped content-encryption key in CBC mode using
>        the key-encryption key.  Use an initialization vector (IV)
>        of 0x4adda22c79e82105.  Call the output TEMP3.
>    3.  Reverse the order of the octets in TEMP3.  That is, the most
>        significant (first) octet is swapped with the least significant
>        (last) octet, and so on.  Call the result TEMP2.
>    4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
>        significant (first) 8 octets, and TEMP1 is the least significant
>        (last) 32 octets.
>    5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
>        the IV value from the previous step as the initialization vector.
>        Call the ciphertext CEKICV.
>    6.  Decompose the CEKICV into CEK and ICV. CEK is the most significant
>        (first) 24 octets, and ICV is the least significant (last) 8
> octets.
>    7.  Compute an 8 octet key checksum value on CEK as described above
>        in Section 12.6.1.  If the computed key checksum value does not
>        match the decrypted key checksum value, ICV, then error.
>    8.  Check for odd parity each of the DES key octets comprising CEK.
>        If parity is incorrect, then there is an error.
>    9. Use CEK as the content-encryption key.
> 
> 12.6.4  RC2 Key Wrap
> 
>    The RC2 key wrap algorithm encrypts a RC2 content-encryption key with a
> 
>    RC2 key-encryption key.  The RC2 key wrap algorithm is:
> 
>    1.  Let the content-encryption key be called CEK, and let the length
>        of the content-encryption key in octets be called LENGTH.
>    2.  Compute an 8 octet key checksum value on CEK as described above
>        in Section 12.6.1, call the result ICV.
>    3.  Let CEKICV = LENGTH || CEK || ICV.  LENGTH is a single octet.
>    4.  Let CEKICVPAD = CEKICV || PAD.  If the length of CEKICV is a
>        multiple of 8, the PAD has a length of zero.  If the length of
>        CEKICV is not a multiple of 8, then PAD contains the fewest
>        number of random octets to make CEKICVPAD a multiple of 8.
>    5.  Generate 8 octets at random, call the result IV.
>    5.  Encrypt CEKICVPAD in CBC mode using the key-encryption key.
>        Use the random value generated in the previous step as the
>        initialization vector (IV).  Call the ciphertext TEMP1.
>    6.  Let TEMP2 = IV || TEMP1.
>    7.  Reverse the order of the octets in TEMP2.  That is, the most
>        significant (first) octet is swapped with the least significant
>        (last) octet, and so on.  Call the result TEMP3.
>    8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
>        an initialization vector (IV) of 0x4adda22c79e82105.
> 
>    Note:  When the same content-encryption key is wrapped in different
>    key-encryption keys, a fresh initialization vector (IV) must be
>    generated for each invocation of the key wrap algorithm.
> 
> 12.6.5  RC2 Key Unwrap
> 
>    The RC2 key unwrap algorithm decrypts a RC2 content-encryption key
>    using a RC2 key-encryption key.  The RC2 key unwrap algorithm is:
> 
>    1.  If the wrapped content-encryption key is not a multiple of 8
>        octets, then error.
>    2.  Decrypt the wrapped content-encryption key in CBC mode using
>        the key-encryption key.  Use an initialization vector (IV)
>        of 0x4adda22c79e82105.  Call the output TEMP3.
>    3.  Reverse the order of the octets in TEMP3.  That is, the most
>        significant (first) octet is swapped with the least significant
>        (last) octet, and so on.  Call the result TEMP2.
>    4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
>        significant (first) 8 octets, and TEMP1 is the remaining octets.
>    5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
>        the IV value from the previous step as the initialization vector.
>        Call the ciphertext CEKICVPAD.
>    6.  Decompose the CEKICVPAD into LENGTH, CEK, ICV, and PAD.  LENGTH is
>        the most significant (first) octet.  CEK is the following LENGTH
>        octets.  ICV is the following 8 octets.  PAD is the remaining
>        octets, if any.
>    7.  If PAD is more than 7 octets, then error.
>    8.  Compute an 8 octet key checksum value on CEK as described above
>        in Section 12.6.1.  If the computed key checksum value does not
>        match the decrypted key checksum value, ICV, then error.
>    9.  Use CEK as the content-encryption key.
> 
> Security Considerations
> 
>    Section 12.6 specifies key wrap algorithms used to encrypt a Triple-
>    DES [3DES] content-encryption key with a Triple-DES key-encryption
>    key or to encrypt a RC2 [RC2] content-encryption key with a RC2 key-
>    encryption key.  The key wrap algorithms make use of CBC mode
>    [MODES].  These key wrap algorithms have been reviewed for use with
>    Triple and RC2.  They have not been reviewed for use with other
>    cryptographic modes or other encryption algorithms.  Therefore, if a
>    CMS implementation wishes to support ciphers in addition to Triple-
>    DES or RC2, then additional key wrap algorithms need to be defined to
>    support the additional ciphers.
> 
> 


From owner-ietf-smime@imc.org  Fri Mar  5 14:53:10 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA21163
	for <smime-archive@odin.ietf.org>; Fri, 5 Mar 1999 14:53:09 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA06453
	for ietf-smime-bks; Fri, 5 Mar 1999 10:37:04 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA06449
	for <ietf-smime@imc.org>; Fri, 5 Mar 1999 10:37:00 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194])
	by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id NAA26228;
	Fri, 5 Mar 1999 13:38:59 -0500
Message-Id: <4.1.19990305132922.009ea680@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Fri, 05 Mar 1999 13:38:45 -0500
To: Paul Van Oorschot <paul.vanoorschot@entrust.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: New Triple-DES Key Wrap Algorithm Section
Cc: cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com,
        pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com,
        djohnson@certicom.ca, schneier@counterpane.com, daw@cs.berkeley.edu,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
        carlisle.adams@entrust.com, paulv@entrust.com,
        Blake.greenlee@greenlee.com, benaloh@microsoft.com, bfox@microsoft.com,
        cjwagne@missi.ncsc.mil, jis@mit.edu, TACAR.PRV-7.PROVO@novell.com,
        merkle@parc.xerox.com, BSnow@radium.ncsc.mil, burt@RSA.COM,
        ekr@rtfm.com, jlinn@securitydynamics.com, ams@terisa.com,
        rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com,
        acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com,
        desmedt@uwm.edu, ietf-smime@imc.org
In-Reply-To: <91AE69321799D211AEC500105A9C4696894D69@sothmxs05.entrust.c
 om>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Paul:

I would not be going through this effort at all if there was a standard way
to encrypt one Triple-DES key with another.  This effort is defining the
standard....

Russ

At 10:50 AM 3/5/99 -0500, Paul Van Oorschot wrote:
>Russ - does this mean that you have chosen a new, non-standard algorithm?
>
>Paul.



From owner-ietf-smime@imc.org  Sun Mar  7 00:07:41 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA28693
	for <smime-archive@odin.ietf.org>; Sun, 7 Mar 1999 00:07:41 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id UAA27010
	for ietf-smime-bks; Sat, 6 Mar 1999 20:09:21 -0800 (PST)
Received: from aum (ip11.proper.com [165.227.249.11])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA27003
	for <ietf-smime@imc.org>; Sat, 6 Mar 1999 20:09:19 -0800 (PST)
Message-Id: <4.2.0.25.19990306200136.00ad0280@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.25 (Beta)
Date: Sat, 06 Mar 1999 20:07:17 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Temporary versions of new drafts
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Greetings. Blake and Russ missed the cutoff for turning in draft by a tiny 
bit and were not able to get them into the drafts directory. I've posted 
the -msg, -cert, and -cms drafts on the WG's web site at 
<http://www.imc.org/ietf-smime/>. That site also has the recent versions of 
the -ess and -certdist drafts.

--Paul Hoffman, Director
--Internet Mail Consortium


From owner-ietf-smime@imc.org  Tue Mar  9 23:57:09 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA28676
	for <smime-archive@odin.ietf.org>; Tue, 9 Mar 1999 23:57:09 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id UAA08544
	for ietf-smime-bks; Tue, 9 Mar 1999 20:03:25 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA08537
	for <ietf-smime@imc.org>; Tue, 9 Mar 1999 20:03:24 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (hil-qbu-ppu-vty35.as.wcom.net [209.154.55.35]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id UAA22751; Tue, 9 Mar 1999 20:08:14 -0800 (PST)
Message-Id: <4.1.19990308045615.009c0100@209.172.119.123>
Message-Id: <4.1.19990308045615.009c0100@209.172.119.123>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 08 Mar 1999 04:58:27 -0500
To: agenda@ietf.org, ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: 44th IETF - S/MIME Working Group Agenda
In-Reply-To: <199903031902.OAA16356@ietf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>


      S/MIME Mail Security WG Agenda

Introductions                   Russ Housley
CMS Draft Discussion            Russ Housley
X9.42 Draft Discussion          Eric Rescorla
Avoiding Small Subgroups        Robert Zuccherato
MSG Draft Discussion            Blake Ramsdell
CERT Draft Discussion           Blake Ramsdell
ESS Draft Discussion            Paul Hoffman
CERTDIST Draft Discussion       Jim Schaad
DOMSEC Draft Discussion         Bill Ottaway
S/MIME v3 Examples              Paul Hoffman
Security Policies and Labels    Russ Housley
Wrap up                         Russ Housley



From owner-ietf-smime@imc.org  Wed Mar 10 00:03:05 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA28782
	for <smime-archive@odin.ietf.org>; Wed, 10 Mar 1999 00:03:04 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id UAA08462
	for ietf-smime-bks; Tue, 9 Mar 1999 20:02:46 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA08456
	for <ietf-smime@imc.org>; Tue, 9 Mar 1999 20:02:45 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (hil-qbu-ppu-vty35.as.wcom.net [209.154.55.35]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id UAA22724; Tue, 9 Mar 1999 20:07:51 -0800 (PST)
Message-Id: <4.1.19990308044018.009c2e60@209.172.119.123>
Message-Id: <4.1.19990308044018.009c2e60@209.172.119.123>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 08 Mar 1999 04:43:31 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: ietf-smime@imc.org, burt@RSA.COM
In-Reply-To: <91952395831984@cs26.cs.auckland.ac.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter:

I stayed silent to see if anyone would support your suggestion.  No one
spoke for it, but no one spke against it either.  I would like to heard
from the list members regarding this suggestion.  I do not consider silence
a reason to make an additional recipient type....

Russ

At 04:19 AM 2/21/99 +0000, Peter Gutmann wrote:
>I don't know what the final resolution on optional vs mandatory
KEKIdentifiers 
>was, but I note that PKCS #15, which AFAIK is the first non-S/MIME use of CMS 
>KEK encryption, already has to explicitly state that KEKIdentifiers are null 
>strings wherever they occur because they're not useful for anything (actually 
>there's a "not recommended" special-case use for them, see below).  I think 
>this proves my earlier point that there's going to be very little use for a 
>KEKIdentifier outside S/MIME, so that making it optional would be a good idea.
> 
>Looking at the way KEKRecipientInfo is being used in PKCS #15, there's a 
>rather obvious recipient type missing from CMS: Password-based encryption.  
>PKCS #15 has a hack for this which puts the key derivation information into 
>the KEKIdentifier (this being the special-case use mentioned above), but I'm 
>sure this isn't what it was intended for because it isn't a key identifier at 
>all but contains the AlgorithmIdentifier for the password processing.  What's 
>really needed is a new recipient type, PasswordRecipientInfo.  Included below 
>is a suggestion for this which could drop directly into the CMS draft.
> 
>Peter.
> 
>-- Snip --
> 
>6.2.4  PasswordRecipientInfo Type
> 
>   Recipient information using a user-supplied password is represented in the
>   type PasswordRecipientInfo.  Each instance of PasswordRecipientInfo will
>   transfer the content-encryption key to one or more recipients who have the
>   previously agreed-upon password.
> 
>      PasswordRecipientInfo ::= SEQUENCE {
>        version CMSVersion,  -- always set to 0
>        keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
>        keyEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
>        encryptedKey EncryptedKey }
> 
>   The fields of type PasswordRecipientInfo have the following meanings:
> 
>      version is the syntax version number.  It shall always be 0.
> 
>      keyDerivationAlgorithm identifies the key-derivation algorithm, and any
>      associated parameters, used to derive the key-encryption key from the
>      user-supplied password.
> 
>      keyEncryptionAlgorithm identifies the content-encryption algorithm, and
>      any associated parameters, used to encrypt the content-encryption key
>      with the password-derived key-encryption key.
> 
>      encryptedKey is the result of encrypting the content-encryption key with
>      the password-derived key-encryption key.
> 
>   The key derivation algorithms are:
> 
>      KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
>        { IDENTIFIED BY id-PBKDF2 },
>        ...
>        }
> 
>    For key derivation, CMS implementations must include PBKDF2 [PKCS5v2].
>                        
>    For content (= key) encryption, CMS implementations must include 
>Triple-DES 
>    in CBC mode, should include RC2 in CBC mode, and may include other 
>    algorithms (CAST-128, RC5, IDEA, Skipjack) and modes as required.  CMS 
>    implementations should not include any KSG ciphers such as RC4.
> 
>-- Snip --
> 
>Comments:
> 
>The ContentEncryptionAlgorithmIdentifier is something like:
> 
>      ContentEncryptionAlgorithmIdentifier ::= {
>        { IDENTIFIED BY des-ede3-cbc },
>        { IDENTIFIED BY rc2CBC },
>        { IDENTIFIED BY cast5CBC },
>        { IDENTIFIED BY rc5CBC },
>        { IDENTIFIED BY ideaCBC },
>        { IDENTIFIED BY desCBC },
>        ... -- ... and anything else you can think of, eg Skipjack
>        }
> 
>but enumerating every possible one is superfluous as they're specified 
>elsewhere.
> 
>The content is encrypted is as per the KEK algorithm, but using the IV given 
>in the ContentEncryptionAlgorithmIdentifier instead of a fixed IV - this is 
>just standard CMS content encryption.  The advantage of using standard
OIDs is 
>that it doesn't require defining a completely new set of OIDs which parallel 
>all of the existing ones just to show that you're encrypting a key.  Another 
>way to handle this is as EncryptedContentInfo (which just adds an extra 
>SEQUENCE around the existing ContentEncryptionAlgorithmIdentifier + 
>EncryptedContent (=EncryptedKey)), but this is probably going overboard.
> 
>(I'm prepared to accept a 'kekid [0] KEKIdentifier OPTIONAL' after the
version 
> number if that's what's required to get people's grunt of approval for the 
> thing).
> 
>(Before people complain that you can't change the key wrap algorithm, if it 
> ever does become necessary to change it (and I thought the point of the 
> current key wrap design process was to build a solution once and for all), 
> all you need to do is increment the RecipientInfo version number and add 
> whatever you feel like).
> 
>Peter.
> 
>


From owner-ietf-smime@imc.org  Wed Mar 10 00:07:16 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA28818
	for <smime-archive@odin.ietf.org>; Wed, 10 Mar 1999 00:07:16 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id UAA08422
	for ietf-smime-bks; Tue, 9 Mar 1999 20:02:30 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA08415
	for <ietf-smime@imc.org>; Tue, 9 Mar 1999 20:02:29 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (hil-qbu-ppu-vty35.as.wcom.net [209.154.55.35]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id UAA22701; Tue, 9 Mar 1999 20:07:32 -0800 (PST)
Message-Id: <4.1.19990308043637.009ade70@209.172.119.123>
Message-Id: <4.1.19990308043637.009ade70@209.172.119.123>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 08 Mar 1999 04:37:29 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: Correct definition of ContentInfo in CMS-10
Cc: ietf-smime@imc.org, ross@jgross.demon.co.uk
In-Reply-To: <91969478808191@cs26.cs.auckland.ac.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter:

Thanks for pointing out the error in the Appendix.  You are correct,
content is NOT OPTIONAL.

Russ


At 03:46 AM 2/23/99 +0000, Peter Gutmann wrote:
>>>Within the body of CMS 10 ContentInfo is defined as : -
>>>
>>>ContentInfo ::= SEQUENCE {
>>>        contentType ContentType,
>>>        content [0] EXPLICIT ANY DEFINED BY contentType }
>>>
>>>However, in the appendix ContentInfo is defined as : -
>>>
>>>ContentInfo ::= SEQUENCE {
>>>     contentType ContentType,
>>>     content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>>>
>>>I assume the one within the body (i.e. content not optional) is correct.
> 
>>I assume that content is not optional
> 
>The content is optional.  Think about how detached sigs work.
> 
>Peter.
>


From owner-ietf-smime@imc.org  Wed Mar 10 00:27:55 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA28969
	for <smime-archive@odin.ietf.org>; Wed, 10 Mar 1999 00:27:54 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id UAA10423
	for ietf-smime-bks; Tue, 9 Mar 1999 20:29:27 -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 UAA10418
	for <ietf-smime@imc.org>; Tue, 9 Mar 1999 20:29:24 -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 RAA14290; Wed, 10 Mar 1999 17:35:07 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <92104050600771>; Wed, 10 Mar 1999 17:35:06 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: housley@spyrus.com
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: ietf-smime@imc.org
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Wed, 10 Mar 1999 17:35:06 (NZDT)
Message-ID: <92104050600771@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

 
>I stayed silent to see if anyone would support your suggestion.  No one spoke
>for it, but no one spke against it either.  I would like to heard from the
>list members regarding this suggestion.  I do not consider silence a reason to
>make an additional recipient type....
 
The maxim of the law is that silence gives consent.  Obviously everyone agrees
with me :-).
 
Peter.
 
>I stayed silent to see if anyone would support your suggestion.  No one spoke
>for it, but no one spke against it either.  I would like to heard from the
>list members regarding this suggestion.  I do not consider silence a reason to
>make an additional recipient type....
 
The maxim of the law is that silence gives consent.  Obviously everyone agrees
with me :-).
 
Peter.
 



From owner-ietf-smime@imc.org  Wed Mar 10 10:43:19 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA12532
	for <smime-archive@odin.ietf.org>; Wed, 10 Mar 1999 10:43:18 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA01265
	for ietf-smime-bks; Wed, 10 Mar 1999 06:25:16 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA01261
	for <ietf-smime@imc.org>; Wed, 10 Mar 1999 06:25:15 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id JAA06051;
	Wed, 10 Mar 1999 09:37:05 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id JAA14386; Wed, 10 Mar 1999 09:34:25 -0500
Date: Wed, 10 Mar 1999 09:34:25 -0500
Message-Id: <199903101434.JAA14386@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: burt@RSA.COM
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter, Russ and friends,

Initially, I was opposed to this proposal because it adds yet more
complexity to CMS.  However, I agree with Peter that it is better to have a
clearly defined, meaningful ASN.1 syntax rather than to kludge data into an
existing syntax.  I assume that PKCS #15 is going to be widely used, so it
is worthwhile to enhance the CMS RecipientInfo syntax to include Peter's
proposed PasswordRecipientInfo CHOICE.   

I have a few comments to Peter's proposed additions to CMS:

1) Peter's proposal uses the ALGORITHM-IDENTIFIER syntax which is not part
of the 1988 ASN.1 grammar.  Many moons ago the S/MIME WG decided that the
S/MIME v3 set of specs will only use the 1988 ASN.1 grammar, so I believe
that Peter's proposal should be re-worded to eliminate use of the
ALGORITHM-IDENTIFIER syntax.

2) Recommend that "KSG" be spelled.  

3) Also, please reword the following to use 1988 ASN.1 syntax:
>>The ContentEncryptionAlgorithmIdentifier is something like:
>> 
>>      ContentEncryptionAlgorithmIdentifier ::= {
>>        { IDENTIFIED BY des-ede3-cbc },
>>        { IDENTIFIED BY rc2CBC },
>>        { IDENTIFIED BY cast5CBC },
>>        { IDENTIFIED BY rc5CBC },
>>        { IDENTIFIED BY ideaCBC },
>>        { IDENTIFIED BY desCBC },
>>        ... -- ... and anything else you can think of, eg Skipjack
>>        }


Assuming that CMS is changed to include PasswordRecipientInfo, I don't
believe that the KEKRecipientInfo kekid needs to be changed to be OPTIONAL
(as Peter also proposed) because PKCS #15 will no longer use the
KEKRecipientInfo syntax.

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
========================================================



From owner-ietf-smime@imc.org  Wed Mar 10 10:45:22 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA12567
	for <smime-archive@odin.ietf.org>; Wed, 10 Mar 1999 10:45:22 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA01336
	for ietf-smime-bks; Wed, 10 Mar 1999 06:35:08 -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 GAA01331
	for <ietf-smime@imc.org>; Wed, 10 Mar 1999 06:35:05 -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 DAA31315 for <ietf-smime@imc.org>; Thu, 11 Mar 1999 03:41:01 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <92107686005906>; Thu, 11 Mar 1999 03:41:00 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Whither SignerInfo content-type?
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Thu, 11 Mar 1999 03:41:00 (NZDT)
Message-ID: <92107686005906@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I've just noticed that there doesn't appear to be anything in CMS which says
what you're supposed to do with the content-type attribute when it's present in
the signedAttributes.  11.1 says "The content-type attribute specifies the
content type of the ContentInfo value being signed in signed-data", but there
doesn't appear to be any clear indication of how to apply this when you verify
the signature.  I know it's obvious, but it'd be a good idea to mention it
explicitly, perhaps add to the content-type description or maybe 11.1 something
like "Where this field is present, implementations must verify during the
signature validation process that it matches the type of the ContentInfo being
signed".
 
Peter.
 



From owner-ietf-smime@imc.org  Wed Mar 10 11:16:45 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA13252
	for <smime-archive@odin.ietf.org>; Wed, 10 Mar 1999 11:16:44 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA01507
	for ietf-smime-bks; Wed, 10 Mar 1999 06:57:05 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA01501
	for <ietf-smime@imc.org>; Wed, 10 Mar 1999 06:57:03 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id KAA06957
	for <ietf-smime@imc.org>; Wed, 10 Mar 1999 10:08:55 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id KAA14766; Wed, 10 Mar 1999 10:06:15 -0500
Date: Wed, 10 Mar 1999 10:06:15 -0500
Message-Id: <199903101506.KAA14766@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: Whither SignerInfo content-type?
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter,

I agree with your proposal, but "contentInfo" msut be changed to
"encapContentInfo".

- John Pawling



From owner-ietf-smime@imc.org  Wed Mar 10 12:43:29 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA14672
	for <smime-archive@odin.ietf.org>; Wed, 10 Mar 1999 12:43:28 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA02236
	for ietf-smime-bks; Wed, 10 Mar 1999 08:15:37 -0800 (PST)
Received: from dylithium.adga.ca (dylithium.adga.ca [207.112.67.34])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA02231;
	Wed, 10 Mar 1999 08:15:34 -0800 (PST)
Received: from xfile ([207.112.70.165])
	by dylithium.adga.ca (980427.SGI.8.8.8/8.8.8-ajr) with SMTP id LAA23921;
	Wed, 10 Mar 1999 11:19:56 -0500 (EST)
Message-Id: <3.0.1.32.19990310112112.009fc180@adga.ca>
X-Sender: frousseau@adga.ca
X-Mailer: Windows Eudora Pro Version 3.0.1 (32)
Date: Wed, 10 Mar 1999 11:21:12 -0500
To: phoffman@imc.org
From: Francois Rousseau <f.rousseau@adga.ca>
Subject: Re: I-D ACTION:draft-ietf-smime-ess-11.txt
Cc: ietf-smime@imc.org, jsp@jgvandyke.com
In-Reply-To: <199903050139.UAA20829@ietf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Paul,

After reviewing version 11 of ESS I have noticed that you did include Jim's
proposal to expand the use of the signingCertificate attribute in Section
5.4 such that authorization certificates can be either attribute
certificates or normal certificates (e.g. encryption certificate).

However, you did not include the related comments that I had made on 05 Feb
1999 about Jim's proposal that were also supported by John Pawling.

Francois Rousseau
AEPOS Technologies 




From owner-ietf-smime@imc.org  Wed Mar 10 14:14:22 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA15561
	for <smime-archive@odin.ietf.org>; Wed, 10 Mar 1999 14:14:22 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA03547
	for ietf-smime-bks; Wed, 10 Mar 1999 10:20:04 -0800 (PST)
Received: from dylithium.adga.ca (dylithium.adga.ca [207.112.67.34])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA03543
	for <ietf-smime@imc.org>; Wed, 10 Mar 1999 10:20:03 -0800 (PST)
Received: from xfile ([207.112.70.165])
	by dylithium.adga.ca (980427.SGI.8.8.8/8.8.8-ajr) with SMTP id NAA25572;
	Wed, 10 Mar 1999 13:24:15 -0500 (EST)
Message-Id: <3.0.1.32.19990310132538.00a0ccd0@adga.ca>
X-Sender: frousseau@adga.ca
X-Mailer: Windows Eudora Pro Version 3.0.1 (32)
Date: Wed, 10 Mar 1999 13:25:38 -0500
To: Russ Housley <housley@spyrus.com>
From: Francois Rousseau <f.rousseau@adga.ca>
Subject: Comment on CMS-11 (Temporary Version)
Cc: ietf-smime@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

I had not noticed this one before but throughout Sections 12.3 various
things (e.g. key agreement algorithm identifiers, key transport algorithm
identifiers, key wrap algorithm identifiers, etc.) are referred as being
located or used from the "EnvelopedData RecipientInfo...", however they
could also be located or used from the "AuthenticatedData RecipientInfo..."

Francois Rousseau
AEPOS Technologies


From owner-ietf-smime@imc.org  Wed Mar 10 14:24:08 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA15749
	for <smime-archive@odin.ietf.org>; Wed, 10 Mar 1999 14:24:07 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA03489
	for ietf-smime-bks; Wed, 10 Mar 1999 10:14:17 -0800 (PST)
Received: from smtp3.erols.com (smtp3.erols.com [207.172.3.236])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA03485
	for <ietf-smime@imc.org>; Wed, 10 Mar 1999 10:14:12 -0800 (PST)
Received: from fujitsu1.ny.certco.com (207-172-46-41.s41.tnt9.ann.va.dialup.rcn.com [207.172.46.41])
	by smtp3.erols.com (8.8.8/8.8.5) with ESMTP id NAA08982;
	Wed, 10 Mar 1999 13:19:30 -0500 (EST)
Message-Id: <199903101819.NAA08982@smtp3.erols.com>
Reply-To: <rankney@erols.com>
From: "Rich Ankney" <rankney@erols.com>
To: <pgut001@cs.aucKland.ac.nz>, "Russ Housley" <housley@spyrus.com>
Cc: <ietf-smime@imc.org>, <burt@RSA.COM>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Wed, 10 Mar 1999 13:16:52 -0500
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

If we're going to add another recipient type, I'd like to see it be an
open type (OID and ANY DEFINED BY), of which this would be
the first case.  ANSI X9F3 would like to add another recipient type,
as well (the Tecsec CKM stuff from X9.69).  So we would have:

Key transport
KEK
Key agreement
Other
	Password-based
	CKM

Regards,
Rich

----------
> From: Russ Housley <housley@spyrus.com>
> To: pgut001@cs.aucKland.ac.nz
> Cc: ietf-smime@imc.org; burt@RSA.COM
> Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
> Date: Monday, March 08, 1999 4:43 AM
> 
> Peter:
> 
> I stayed silent to see if anyone would support your suggestion.  No one
> spoke for it, but no one spke against it either.  I would like to heard
> from the list members regarding this suggestion.  I do not consider
silence
> a reason to make an additional recipient type....
> 
> Russ
> 
> At 04:19 AM 2/21/99 +0000, Peter Gutmann wrote:
> >I don't know what the final resolution on optional vs mandatory
> KEKIdentifiers 
> >was, but I note that PKCS #15, which AFAIK is the first non-S/MIME use
of CMS 
> >KEK encryption, already has to explicitly state that KEKIdentifiers are
null 
> >strings wherever they occur because they're not useful for anything
(actually 
> >there's a "not recommended" special-case use for them, see below).  I
think 
> >this proves my earlier point that there's going to be very little use
for a 
> >KEKIdentifier outside S/MIME, so that making it optional would be a good
idea.
> > 
> >Looking at the way KEKRecipientInfo is being used in PKCS #15, there's a

> >rather obvious recipient type missing from CMS: Password-based
encryption.  
> >PKCS #15 has a hack for this which puts the key derivation information
into 
> >the KEKIdentifier (this being the special-case use mentioned above), but
I'm 
> >sure this isn't what it was intended for because it isn't a key
identifier at 
> >all but contains the AlgorithmIdentifier for the password processing. 
What's 
> >really needed is a new recipient type, PasswordRecipientInfo.  Included
below 
> >is a suggestion for this which could drop directly into the CMS draft.
> > 
> >Peter.
> > 
> >-- Snip --
> > 
> >6.2.4  PasswordRecipientInfo Type
> > 
> >   Recipient information using a user-supplied password is represented
in the
> >   type PasswordRecipientInfo.  Each instance of PasswordRecipientInfo
will
> >   transfer the content-encryption key to one or more recipients who
have the
> >   previously agreed-upon password.
> > 
> >      PasswordRecipientInfo ::= SEQUENCE {
> >        version CMSVersion,  -- always set to 0
> >        keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
> >        keyEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
> >        encryptedKey EncryptedKey }
> > 
> >   The fields of type PasswordRecipientInfo have the following meanings:
> > 
> >      version is the syntax version number.  It shall always be 0.
> > 
> >      keyDerivationAlgorithm identifies the key-derivation algorithm,
and any
> >      associated parameters, used to derive the key-encryption key from
the
> >      user-supplied password.
> > 
> >      keyEncryptionAlgorithm identifies the content-encryption
algorithm, and
> >      any associated parameters, used to encrypt the content-encryption
key
> >      with the password-derived key-encryption key.
> > 
> >      encryptedKey is the result of encrypting the content-encryption
key with
> >      the password-derived key-encryption key.
> > 
> >   The key derivation algorithms are:
> > 
> >      KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
> >        { IDENTIFIED BY id-PBKDF2 },
> >        ...
> >        }
> > 
> >    For key derivation, CMS implementations must include PBKDF2
[PKCS5v2].
> >                        
> >    For content (= key) encryption, CMS implementations must include 
> >Triple-DES 
> >    in CBC mode, should include RC2 in CBC mode, and may include other 
> >    algorithms (CAST-128, RC5, IDEA, Skipjack) and modes as required. 
CMS 
> >    implementations should not include any KSG ciphers such as RC4.
> > 
> >-- Snip --
> > 
> >Comments:
> > 
> >The ContentEncryptionAlgorithmIdentifier is something like:
> > 
> >      ContentEncryptionAlgorithmIdentifier ::= {
> >        { IDENTIFIED BY des-ede3-cbc },
> >        { IDENTIFIED BY rc2CBC },
> >        { IDENTIFIED BY cast5CBC },
> >        { IDENTIFIED BY rc5CBC },
> >        { IDENTIFIED BY ideaCBC },
> >        { IDENTIFIED BY desCBC },
> >        ... -- ... and anything else you can think of, eg Skipjack
> >        }
> > 
> >but enumerating every possible one is superfluous as they're specified 
> >elsewhere.
> > 
> >The content is encrypted is as per the KEK algorithm, but using the IV
given 
> >in the ContentEncryptionAlgorithmIdentifier instead of a fixed IV - this
is 
> >just standard CMS content encryption.  The advantage of using standard
> OIDs is 
> >that it doesn't require defining a completely new set of OIDs which
parallel 
> >all of the existing ones just to show that you're encrypting a key. 
Another 
> >way to handle this is as EncryptedContentInfo (which just adds an extra 
> >SEQUENCE around the existing ContentEncryptionAlgorithmIdentifier + 
> >EncryptedContent (=EncryptedKey)), but this is probably going overboard.
> > 
> >(I'm prepared to accept a 'kekid [0] KEKIdentifier OPTIONAL' after the
> version 
> > number if that's what's required to get people's grunt of approval for
the 
> > thing).
> > 
> >(Before people complain that you can't change the key wrap algorithm, if
it 
> > ever does become necessary to change it (and I thought the point of the

> > current key wrap design process was to build a solution once and for
all), 
> > all you need to do is increment the RecipientInfo version number and
add 
> > whatever you feel like).
> > 
> >Peter.
> > 
> >


From owner-ietf-smime@imc.org  Wed Mar 10 14:32:21 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA15902
	for <smime-archive@odin.ietf.org>; Wed, 10 Mar 1999 14:32:21 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA03499
	for ietf-smime-bks; Wed, 10 Mar 1999 10:15:17 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA03495
	for <ietf-smime@imc.org>; Wed, 10 Mar 1999 10:15:16 -0800 (PST)
Received: by dfssl.dns.microsoft.com with Internet Mail Service (5.5.2448.0)
	id <GM1BP88Q>; Wed, 10 Mar 1999 10:20:47 -0800
Message-ID: <2FBF98FC7852CF11912A0000000000010ECB5D9E@DINO>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'jsp@jgvandyke.com'" <jsp@jgvandyke.com>, ietf-smime@imc.org
Cc: burt@RSA.COM
Subject: RE: More on KEKIdentifiers, and a suggested addition to CMS
Date: Wed, 10 Mar 1999 10:20:40 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
	charset="windows-1252"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John & Peter,

At this point in time I am not willing to support this. I have two reasons
for this

1.  I want to get CMS approved, and there are other options for how to
approach this (such as a new I-D) and we know a new version of CMS is coming
soon to deal with OEAP

2.  I don't think this is the correct set of items that are needed.  You
have not proposed an appropriate set of text for section 12.  I don't
understand why the Content Encrytion Alg should be encoded twice.  I don't
understand why the KEK Wrap algorithm is not specified.  I just don't think
this is complete yet.

jim


-----Original Message-----
From: jsp@jgvandyke.com [mailto:jsp@jgvandyke.com]
Sent: Wednesday, March 10, 1999 6:34 AM
To: ietf-smime@imc.org
Cc: burt@RSA.COM
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS


Peter, Russ and friends,

Initially, I was opposed to this proposal because it adds yet more
complexity to CMS.  However, I agree with Peter that it is better to have a
clearly defined, meaningful ASN.1 syntax rather than to kludge data into an
existing syntax.  I assume that PKCS #15 is going to be widely used, so it
is worthwhile to enhance the CMS RecipientInfo syntax to include Peter's
proposed PasswordRecipientInfo CHOICE.   

I have a few comments to Peter's proposed additions to CMS:

1) Peter's proposal uses the ALGORITHM-IDENTIFIER syntax which is not part
of the 1988 ASN.1 grammar.  Many moons ago the S/MIME WG decided that the
S/MIME v3 set of specs will only use the 1988 ASN.1 grammar, so I believe
that Peter's proposal should be re-worded to eliminate use of the
ALGORITHM-IDENTIFIER syntax.

2) Recommend that "KSG" be spelled.  

3) Also, please reword the following to use 1988 ASN.1 syntax:
>>The ContentEncryptionAlgorithmIdentifier is something like:
>> 
>>      ContentEncryptionAlgorithmIdentifier ::= {
>>        { IDENTIFIED BY des-ede3-cbc },
>>        { IDENTIFIED BY rc2CBC },
>>        { IDENTIFIED BY cast5CBC },
>>        { IDENTIFIED BY rc5CBC },
>>        { IDENTIFIED BY ideaCBC },
>>        { IDENTIFIED BY desCBC },
>>        ... -- ... and anything else you can think of, eg Skipjack
>>        }


Assuming that CMS is changed to include PasswordRecipientInfo, I don't
believe that the KEKRecipientInfo kekid needs to be changed to be OPTIONAL
(as Peter also proposed) because PKCS #15 will no longer use the
KEKRecipientInfo syntax.

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
========================================================


From owner-ietf-smime@imc.org  Thu Mar 11 00:08:55 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA24175
	for <smime-archive@odin.ietf.org>; Thu, 11 Mar 1999 00:08:55 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id UAA07449
	for ietf-smime-bks; Wed, 10 Mar 1999 20:13:27 -0800 (PST)
Received: from tnt.isi.edu (tnt.isi.edu [128.9.128.128])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA07444;
	Wed, 10 Mar 1999 20:13:26 -0800 (PST)
Received: from cayman-islands.isi.edu (cayman-islands.isi.edu [128.9.160.140])
	by tnt.isi.edu (8.8.7/8.8.6) with ESMTP id UAA27909;
	Wed, 10 Mar 1999 20:18:56 -0800 (PST)
Received: (from bcn@localhost)
	by cayman-islands.isi.edu (8.8.7/8.8.6) id UAA15042;
	Wed, 10 Mar 1999 20:18:55 -0800 (PST)
Date: Wed, 10 Mar 1999 20:18:55 -0800 (PST)
Message-Id: <199903110418.UAA15042@cayman-islands.isi.edu>
From: Clifford Neuman <bcn@ISI.EDU>
To: the-computer-security-community@ISI.EDU
Subject: Workshop on Countering Cyber-Terrorism
Reply-to: bcn@ISI.EDU
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

		      Countering Cyber-Terrorism
			      June 22-23
		      Marina del Rey, California
      A workshop sponsored by the Information Sciences Institute
	       of the University of Southern California

			Call for Participation

Recent studies warn of Cyber-Terrorism and the vulnerability of our
computer systems and infrastructure to attack. These reports identify
damage that determined, knowledgeable, and well-financed adversaries
could inflict on commercial, government, and military systems.  Such
attacks would have severe consequences for the public, and in
particular the economy, which has become dependant on computers and
communications infrastructure.

The objective of this workshop is to identify things that should be
done to improve our ability to detect, protect against, contain,
neutralize, mitigate the effects of, and recover from cyber-terrorist
attacks.  Participants are sought from the computer security,
electronic commerce and banking, network infrastructure, military, and
counter-terrorism communities, as well as those with experience of
cyber-terrorist attacks.  Recommendations may suggest research and
development or operational measures that can be taken.  The workshop
is NOT a forum for presentation of the latest security systems,
protocols or algorithms.  The workshop will address the strategies,
framework, and infrastructure required to combine and incrementally
deploy such technologies to counter the cyber-terrorist threat.

Attendance will be limited to approximately 25 participants.
Participants will be selected on the basis of submitted position
papers that raise issues for the workshop to discuss, identify threats
or countermeasures, or propose strategies or infrastructure to counter
the threat of cyber-terrorism. Position papers should be four pages or
less in length.  Submissions should be sent in e-mail in Word or PDF
format, or as ASCII text to cyber-terrorism-ws@isi.edu.

Please check the web page http://www.isi.edu/cctws for more
information, including a position paper from the organizers which will
be available two weeks prior to the submission deadline.

Important Dates:

  Organizer's Paper Available              April  5, 1999
  Position Papers Due                      April 19, 1999
  Notification of Acceptance               May 1, 1999
  Revised Position Papers Due              May 28, 1999
  Position Papers Available on Web         June 9
  Workshop Dates                           June 22-23

Organizing Committee:

   Bob Balzer, Information Sciences Institute, Balzer@isi.edu
   Thomas Longstaff, CERT Coordination Center, tal@cert.org
   Don Faatz, the MITRE Corporation, dfaatz@mitre.org 
   Clifford Neuman, Information Sciences Institute, bcn@isi.edu


From owner-ietf-smime@imc.org  Thu Mar 11 05:43:04 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA03091
	for <smime-archive@odin.ietf.org>; Thu, 11 Mar 1999 05:43:03 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id BAA02611
	for ietf-smime-bks; Thu, 11 Mar 1999 01:12:55 -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 BAA02607
	for <ietf-smime@imc.org>; Thu, 11 Mar 1999 01:12:52 -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 WAA16095 for <ietf-smime@imc.org>; Thu, 11 Mar 1999 22:18:52 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <92114393229012>; Thu, 11 Mar 1999 22:18:52 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Thu, 11 Mar 1999 22:18:52 (NZDT)
Message-ID: <92114393229012@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I think the way to avoid the "too late for CMS" problem is to publish
PasswordRecipientInfo as its own draft which can follow on to CMS at a
later date.  To handle this all you need to do is add a '...' at the 
end of the RecipientInfo types in CMS (I think the '...' is implied 
anyway, since presumably there'll be more than three different types 
defined at some point).  I submitted a proposed draft covering this a 
few days ago, I guess I'll jump the gun a bit and post it here (it's 
fairly short) to give people a better idea of what it could look like.

Peter

-- Snip --

Internet Draft                                      Editor: Peter Gutmann
draft-ietf-smime-password-00.txt                    University of Auckland
February 26, 1999
Expires in six months

                    Password-based Encryption for S/MIME

1. Introduction

This document describes a password-based content encryption mechanism for
S/MIME.  This is implemented as a new RecipientInfo type and is an extension to
the RecipientInfo types currently defined in CMS [CMS].

The format of the messages are described in ASN.1:1994 [ASN1].

The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD", "SHOULD NOT",
"RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as
described in [RFC2119].

This draft is being discussed on the 'ietf-smime' mailing list.  To
subscribe, send a message to:
     ietf-smime-request@imc.org
with the single word
     subscribe
in the body of the message. There is a Web site for the mailing list at
<http://www.imc.org/ietf-smime/>.

1.1 Password-based Content Encryption

CMS currently defineds three recipient information types for public-key key
wrapping (KeyTransRecipientInfo), conventional key wrapping (KEKRecipientInfo),
and key agreement (KeyAgreeRecipientInfo).  The recipient information described
here adds a fourth type, PasswordRecipientInfo, which provides for
password-based key wrapping.

1.2 RecipientInfo Types

The new recipient information type is an extension to the RecipientInfo type
defined in section 6.2 of CMS, extending the types to:

    RecipientInfo ::= CHOICE {
      ktri KeyTransRecipientInfo,
      kari [1] KeyAgreeRecipientInfo,
      kekri [2] KEKRecipientInfo,
      pwri [3] PasswordRecipientinfo   -- New RecipientInfo type
      }

Although the recipient information generation process is described in terms of
a password-based operation (since this will be its most common use), the
transformation employed is a general-purpose key derivation one which allows
any type of keying material to be converted into a key specific to a particular
content-encryption algorithm.

1.2.1  PasswordRecipientInfo Type

Recipient information using a user-supplied password is represented in the type
PasswordRecipientInfo.  Each instance of PasswordRecipientInfo will transfer
the content-encryption key to one or more recipients who have the previously
agreed-upon password.

    PasswordRecipientInfo ::= SEQUENCE {
      version CMSVersion,  -- always set to 0
      keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
      keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
      encryptedKey EncryptedKey }

The fields of type PasswordRecipientInfo have the following meanings:

  version is the syntax version number.  It shall always be 0.

  keyDerivationAlgorithm identifies the key-derivation algorithm, and any
  associated parameters, used to derive the key-encryption key (KEK) from the
  user-supplied password.

  keyEncryptionAlgorithm identifies the content-encryption algorithm, and any
  associated parameters, used to encrypt the content-encryption key with the
  password-derived KEK.

  encryptedKey is the result of encrypting the content-encryption key with the
  password-derived KEK.

1.2.2 Rationale

Password-based key wrapping is a two-stage process, a first stage in which the
user-supplied password is converted into a KEK, and a second stage in which the
KEK is used to encrypt a content-encryption key.  These two stages are
identified by the two algorithm identifiers.  Although the PKCS #5 standard
wraps these up into a single AlgorithmIdentifier, this design is particular to
that standard and may not be applicable for other password-based key wrapping
standards.  For this reason the two steps are specified separately.

2 Supported Algorithms

This section lists the algorithms that must be implemented.  Additional
algorithms that should be implemented are also included.

2.1 Key Derivation Algorithms

These algorithms are used to convert the password into a KEK.  The key
derivation algorithms are:

    KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
      { SYNTAX PBKDF2-params IDENTIFIED BY id-PBKDF2 },
      ...
      }

CMS implementations must include PBKDF2 [PKCS5v2].

2.2 Key Encryption Algorithms

These algorithms are used to encrypt the content (the key) using the derived
KEK.  The content encryption algorithms are:

    KeyEncryptionAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= PBES2-Encs

CMS implementations must include Triple-DES in CBC mode, should include RC2 in
CBC mode, and may include other algorithms (CAST-128, RC5, IDEA, Skipjack) and
modes as required.  CMS implementations should not include any KSG ciphers such
as RC4.

2.3 Symmetric Key Encryption Algorithms

<<Align with CMS KEK algorithm when it's stable.  The content is encrypted is
  as per the KEK algorithm, but using the IV given in the
  KeyEncryptionAlgorithmIdentifier instead of a fixed IV - this is just
  standard CMS content encryption.  The latest CMS KEK stuff looked like it was
  moving in this direction anyway>>

3. Security Considerations

The security of this recipient information type rests on the security of the
underlying mechanisms employed, for which further information can be found in
CMS and PKCS5v2.

Appendix A: ASN.1 Module

PasswordRecipientInfo
    { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
      modules(0) pwri(n+1) }

DEFINITIONS IMPLICIT TAGS ::=
BEGIN

IMPORTS

  FROM PKCS5 { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-5(5) }
       PBKDF2-params, PBES2-Encs;

PasswordRecipientInfo ::= SEQUENCE {
  version CMSVersion,  -- always set to 0
  keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
  keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
  encryptedKey EncryptedKey }

KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
  { SYNTAX PBKDF2-params IDENTIFIED BY id-PBKDF2 },
  ...
  }

KeyEncryptionAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= PBES2-Encs

END

References

  ASN1  Recommendation X.680: Specification of Abstract Syntax Notation One
        (ASN.1), 1994.

  CMS   Cryptographic Message Syntax, draft-ietf-smime-cms-10.txt, Russ
        Housley, December 1998.

  PKCS5v2 PKCS #5 v2.0: Password-Based Cryptography Standard, Third Draft, RSA
        Laboratories, February 1999.
        <<Presumably this will become an RFC as soon as it's finalised, include
          this as the actual reference>>

  RFC2119 Key Words for Use in RFC's to Indicate Requirement Levels, S.Bradner,
        March 1997.



From owner-ietf-smime@imc.org  Thu Mar 11 10:20:42 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA04693
	for <smime-archive@odin.ietf.org>; Thu, 11 Mar 1999 10:20:42 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id FAA08661
	for ietf-smime-bks; Thu, 11 Mar 1999 05:24:31 -0800 (PST)
Received: from karon.dynas.se (karon.dynas.se [192.71.43.4])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id FAA08657
	for <ietf-smime@imc.org>; Thu, 11 Mar 1999 05:24:28 -0800 (PST)
Received: (qmail 1572 invoked from network); 11 Mar 1999 13:30:26 -0000
Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10)
  by karon.dynas.se with SMTP; 11 Mar 1999 13:30:26 -0000
Received: from reyzin_pc.securitydynamics.com by spirit.dynas.se with smtp
	(Smail3.1.28.1 #32) id m10L5Xd-000iSCC; Thu, 11 Mar 99 14:30:25 +0100
Date: Thu, 11 Mar 1999 08:29:47 -0500 (Eastern Standard Time)
From: Magnus Nystrom <magnus@RSA.COM>
To: Peter Gutmann <pgut001@cs.aucKland.ac.nz>
cc: ietf-smime@imc.org
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
In-Reply-To: <92114393229012@cs26.cs.auckland.ac.nz>
Message-ID: <Pine.WNT.4.05.9903110813320.236-100000@reyzin_pc.securitydynamics.com>
X-X-Sender: magnus@spirit.dynas.se
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by mail.proper.com id FAA08658
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 8bit


As an alternative, if the current CMS draft would allow for the 'PBES2'
algorithm identifier defined in PKCS #5 v2 in the set of
KeyEncryptionAlgorithms, there would be no need for changing the ASN.1 in
CMS. Another advantage with this is that it would enable an easy way to
send encrypted email where the key is derived from a previously
agreed-upon password.

I realize that this may require PKCS #5 v2 to be published as an
informational RFC.

-- Magnus

Magnus Nyström            Email: magnus@rsa.com
RSA Laboratories          Phone: (781) 687-7000

On Thu, 11 Mar 1999, Peter Gutmann wrote:

> I think the way to avoid the "too late for CMS" problem is to publish
> PasswordRecipientInfo as its own draft which can follow on to CMS at a
> later date.  To handle this all you need to do is add a '...' at the 
> end of the RecipientInfo types in CMS (I think the '...' is implied 
> anyway, since presumably there'll be more than three different types 
> defined at some point).  I submitted a proposed draft covering this a 
> few days ago, I guess I'll jump the gun a bit and post it here (it's 
> fairly short) to give people a better idea of what it could look like.
> 
> Peter
> 
> -- Snip --
> 
> Internet Draft                                      Editor: Peter Gutmann
> draft-ietf-smime-password-00.txt                    University of Auckland
> February 26, 1999
> Expires in six months
> 
>                     Password-based Encryption for S/MIME
> 
> 1. Introduction
> 
> This document describes a password-based content encryption mechanism for
> S/MIME.  This is implemented as a new RecipientInfo type and is an extension to
> the RecipientInfo types currently defined in CMS [CMS].
> 
> The format of the messages are described in ASN.1:1994 [ASN1].
> 
> The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD", "SHOULD NOT",
> "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as
> described in [RFC2119].
> 
> This draft is being discussed on the 'ietf-smime' mailing list.  To
> subscribe, send a message to:
>      ietf-smime-request@imc.org
> with the single word
>      subscribe
> in the body of the message. There is a Web site for the mailing list at
> <http://www.imc.org/ietf-smime/>.
> 
> 1.1 Password-based Content Encryption
> 
> CMS currently defineds three recipient information types for public-key key
> wrapping (KeyTransRecipientInfo), conventional key wrapping (KEKRecipientInfo),
> and key agreement (KeyAgreeRecipientInfo).  The recipient information described
> here adds a fourth type, PasswordRecipientInfo, which provides for
> password-based key wrapping.
> 
> 1.2 RecipientInfo Types
> 
> The new recipient information type is an extension to the RecipientInfo type
> defined in section 6.2 of CMS, extending the types to:
> 
>     RecipientInfo ::= CHOICE {
>       ktri KeyTransRecipientInfo,
>       kari [1] KeyAgreeRecipientInfo,
>       kekri [2] KEKRecipientInfo,
>       pwri [3] PasswordRecipientinfo   -- New RecipientInfo type
>       }
> 
> Although the recipient information generation process is described in terms of
> a password-based operation (since this will be its most common use), the
> transformation employed is a general-purpose key derivation one which allows
> any type of keying material to be converted into a key specific to a particular
> content-encryption algorithm.
> 
> 1.2.1  PasswordRecipientInfo Type
> 
> Recipient information using a user-supplied password is represented in the type
> PasswordRecipientInfo.  Each instance of PasswordRecipientInfo will transfer
> the content-encryption key to one or more recipients who have the previously
> agreed-upon password.
> 
>     PasswordRecipientInfo ::= SEQUENCE {
>       version CMSVersion,  -- always set to 0
>       keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
>       keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
>       encryptedKey EncryptedKey }
> 
> The fields of type PasswordRecipientInfo have the following meanings:
> 
>   version is the syntax version number.  It shall always be 0.
> 
>   keyDerivationAlgorithm identifies the key-derivation algorithm, and any
>   associated parameters, used to derive the key-encryption key (KEK) from the
>   user-supplied password.
> 
>   keyEncryptionAlgorithm identifies the content-encryption algorithm, and any
>   associated parameters, used to encrypt the content-encryption key with the
>   password-derived KEK.
> 
>   encryptedKey is the result of encrypting the content-encryption key with the
>   password-derived KEK.
> 
> 1.2.2 Rationale
> 
> Password-based key wrapping is a two-stage process, a first stage in which the
> user-supplied password is converted into a KEK, and a second stage in which the
> KEK is used to encrypt a content-encryption key.  These two stages are
> identified by the two algorithm identifiers.  Although the PKCS #5 standard
> wraps these up into a single AlgorithmIdentifier, this design is particular to
> that standard and may not be applicable for other password-based key wrapping
> standards.  For this reason the two steps are specified separately.
> 
> 2 Supported Algorithms
> 
> This section lists the algorithms that must be implemented.  Additional
> algorithms that should be implemented are also included.
> 
> 2.1 Key Derivation Algorithms
> 
> These algorithms are used to convert the password into a KEK.  The key
> derivation algorithms are:
> 
>     KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
>       { SYNTAX PBKDF2-params IDENTIFIED BY id-PBKDF2 },
>       ...
>       }
> 
> CMS implementations must include PBKDF2 [PKCS5v2].
> 
> 2.2 Key Encryption Algorithms
> 
> These algorithms are used to encrypt the content (the key) using the derived
> KEK.  The content encryption algorithms are:
> 
>     KeyEncryptionAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= PBES2-Encs
> 
> CMS implementations must include Triple-DES in CBC mode, should include RC2 in
> CBC mode, and may include other algorithms (CAST-128, RC5, IDEA, Skipjack) and
> modes as required.  CMS implementations should not include any KSG ciphers such
> as RC4.
> 
> 2.3 Symmetric Key Encryption Algorithms
> 
> <<Align with CMS KEK algorithm when it's stable.  The content is encrypted is
>   as per the KEK algorithm, but using the IV given in the
>   KeyEncryptionAlgorithmIdentifier instead of a fixed IV - this is just
>   standard CMS content encryption.  The latest CMS KEK stuff looked like it was
>   moving in this direction anyway>>
> 
> 3. Security Considerations
> 
> The security of this recipient information type rests on the security of the
> underlying mechanisms employed, for which further information can be found in
> CMS and PKCS5v2.
> 
> Appendix A: ASN.1 Module
> 
> PasswordRecipientInfo
>     { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
>       modules(0) pwri(n+1) }
> 
> DEFINITIONS IMPLICIT TAGS ::=
> BEGIN
> 
> IMPORTS
> 
>   FROM PKCS5 { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-5(5) }
>        PBKDF2-params, PBES2-Encs;
> 
> PasswordRecipientInfo ::= SEQUENCE {
>   version CMSVersion,  -- always set to 0
>   keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
>   keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
>   encryptedKey EncryptedKey }
> 
> KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
>   { SYNTAX PBKDF2-params IDENTIFIED BY id-PBKDF2 },
>   ...
>   }
> 
> KeyEncryptionAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= PBES2-Encs
> 
> END
> 
> References
> 
>   ASN1  Recommendation X.680: Specification of Abstract Syntax Notation One
>         (ASN.1), 1994.
> 
>   CMS   Cryptographic Message Syntax, draft-ietf-smime-cms-10.txt, Russ
>         Housley, December 1998.
> 
>   PKCS5v2 PKCS #5 v2.0: Password-Based Cryptography Standard, Third Draft, RSA
>         Laboratories, February 1999.
>         <<Presumably this will become an RFC as soon as it's finalised, include
>           this as the actual reference>>
> 
>   RFC2119 Key Words for Use in RFC's to Indicate Requirement Levels, S.Bradner,
>         March 1997.
> 
> 



From owner-ietf-smime@imc.org  Thu Mar 11 14:08:35 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA08477
	for <smime-archive@odin.ietf.org>; Thu, 11 Mar 1999 14:08:35 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA11182
	for ietf-smime-bks; Thu, 11 Mar 1999 09:50:24 -0800 (PST)
Received: from gnasher.sol.co.uk (gnasher.sol.co.uk [194.247.64.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA11178
	for <ietf-smime@imc.org>; Thu, 11 Mar 1999 09:50:22 -0800 (PST)
Received: from jrwork (e1c6p45.scotland.net [148.176.233.109])
	by gnasher.sol.co.uk (8.8.5/8.8.5) with SMTP id RAA14355;
	Thu, 11 Mar 1999 17:55:57 GMT
Message-ID: <00e901be6c2a$ded01e40$0400000a@jrwork>
From: "John Ross" <ross@secstan.com>
To: <rankney@erols.com>, <pgut001@cs.aucKland.ac.nz>,
        "Russ Housley" <housley@spyrus.com>
Cc: <ietf-smime@imc.org>, <burt@RSA.COM>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Thu, 11 Mar 1999 17:51:28 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

If you are going to allow the choice to be extended, I agree with Rick that
it should be controlled.  Just extending the choice with a new tag (and by
the way it also then needs a new version number), will give problems in the
future, as it is not a unique identifier.  What if a private extensions has
been defined already and used tag 3?  Also, if every extension to the choice
needs a new CMSversion number assigned, that may be a lot of CMSversion
around in the future. A while back I proposed to have an extensible "choice"
using octet string, it would be better using OID and any defined by as
follows:.


 The following is an example ASN.1:

 RecipientInfo ::= CHOICE {
        ktri KeyTransRecipientInfo,
        kari [1] KeyAgreeRecipientInfo,
        kekri [2] KEKRecipientInfo,
        kext [3] ExternalyDefinedKeyAgreement --for future or private key
management schemes }



ExternalyDefinedKeyAgreement :: = SEQUENCE {
    keyTypeIdentifier ObjectIdentier,
    keyTypeInfo OCTECT STRING --any defined by OID}

This will at lease make sure that there is unique identifiers for all the
extensions to recipient info.

Regards

John Ross

-----Original Message-----
From: Rich Ankney <rankney@erols.com>
To: pgut001@cs.aucKland.ac.nz <pgut001@cs.aucKland.ac.nz>; Russ Housley
<housley@spyrus.com>
Cc: ietf-smime@imc.org <ietf-smime@imc.org>; burt@RSA.COM <burt@RSA.COM>
Date: Wednesday, March 10, 1999 10:39 AM
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS


>If we're going to add another recipient type, I'd like to see it be an
>open type (OID and ANY DEFINED BY), of which this would be
>the first case.  ANSI X9F3 would like to add another recipient type,
>as well (the Tecsec CKM stuff from X9.69).  So we would have:
>
>Key transport
>KEK
>Key agreement
>Other
> Password-based
> CKM
>
>Regards,
>Rich
>
>----------
>> From: Russ Housley <housley@spyrus.com>
>> To: pgut001@cs.aucKland.ac.nz
>> Cc: ietf-smime@imc.org; burt@RSA.COM
>> Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
>> Date: Monday, March 08, 1999 4:43 AM
>>
>> Peter:
>>
>> I stayed silent to see if anyone would support your suggestion.  No one
>> spoke for it, but no one spke against it either.  I would like to heard
>> from the list members regarding this suggestion.  I do not consider
>silence
>> a reason to make an additional recipient type....
>>
>> Russ
>>
>> At 04:19 AM 2/21/99 +0000, Peter Gutmann wrote:
>> >I don't know what the final resolution on optional vs mandatory
>> KEKIdentifiers
>> >was, but I note that PKCS #15, which AFAIK is the first non-S/MIME use
>of CMS
>> >KEK encryption, already has to explicitly state that KEKIdentifiers are
>null
>> >strings wherever they occur because they're not useful for anything
>(actually
>> >there's a "not recommended" special-case use for them, see below).  I
>think
>> >this proves my earlier point that there's going to be very little use
>for a
>> >KEKIdentifier outside S/MIME, so that making it optional would be a good
>idea.
>> >
>> >Looking at the way KEKRecipientInfo is being used in PKCS #15, there's a
>
>> >rather obvious recipient type missing from CMS: Password-based
>encryption.
>> >PKCS #15 has a hack for this which puts the key derivation information
>into
>> >the KEKIdentifier (this being the special-case use mentioned above), but
>I'm
>> >sure this isn't what it was intended for because it isn't a key
>identifier at
>> >all but contains the AlgorithmIdentifier for the password processing.
>What's
>> >really needed is a new recipient type, PasswordRecipientInfo.  Included
>below
>> >is a suggestion for this which could drop directly into the CMS draft.
>> >
>> >Peter.
>> >
>> >-- Snip --
>> >
>> >6.2.4  PasswordRecipientInfo Type
>> >
>> >   Recipient information using a user-supplied password is represented
>in the
>> >   type PasswordRecipientInfo.  Each instance of PasswordRecipientInfo
>will
>> >   transfer the content-encryption key to one or more recipients who
>have the
>> >   previously agreed-upon password.
>> >
>> >      PasswordRecipientInfo ::= SEQUENCE {
>> >        version CMSVersion,  -- always set to 0
>> >        keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
>> >        keyEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
>> >        encryptedKey EncryptedKey }
>> >
>> >   The fields of type PasswordRecipientInfo have the following meanings:
>> >
>> >      version is the syntax version number.  It shall always be 0.
>> >
>> >      keyDerivationAlgorithm identifies the key-derivation algorithm,
>and any
>> >      associated parameters, used to derive the key-encryption key from
>the
>> >      user-supplied password.
>> >
>> >      keyEncryptionAlgorithm identifies the content-encryption
>algorithm, and
>> >      any associated parameters, used to encrypt the content-encryption
>key
>> >      with the password-derived key-encryption key.
>> >
>> >      encryptedKey is the result of encrypting the content-encryption
>key with
>> >      the password-derived key-encryption key.
>> >
>> >   The key derivation algorithms are:
>> >
>> >      KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
>> >        { IDENTIFIED BY id-PBKDF2 },
>> >        ...
>> >        }
>> >
>> >    For key derivation, CMS implementations must include PBKDF2
>[PKCS5v2].
>> >
>> >    For content (= key) encryption, CMS implementations must include
>> >Triple-DES
>> >    in CBC mode, should include RC2 in CBC mode, and may include other
>> >    algorithms (CAST-128, RC5, IDEA, Skipjack) and modes as required.
>CMS
>> >    implementations should not include any KSG ciphers such as RC4.
>> >
>> >-- Snip --
>> >
>> >Comments:
>> >
>> >The ContentEncryptionAlgorithmIdentifier is something like:
>> >
>> >      ContentEncryptionAlgorithmIdentifier ::= {
>> >        { IDENTIFIED BY des-ede3-cbc },
>> >        { IDENTIFIED BY rc2CBC },
>> >        { IDENTIFIED BY cast5CBC },
>> >        { IDENTIFIED BY rc5CBC },
>> >        { IDENTIFIED BY ideaCBC },
>> >        { IDENTIFIED BY desCBC },
>> >        ... -- ... and anything else you can think of, eg Skipjack
>> >        }
>> >
>> >but enumerating every possible one is superfluous as they're specified
>> >elsewhere.
>> >
>> >The content is encrypted is as per the KEK algorithm, but using the IV
>given
>> >in the ContentEncryptionAlgorithmIdentifier instead of a fixed IV - this
>is
>> >just standard CMS content encryption.  The advantage of using standard
>> OIDs is
>> >that it doesn't require defining a completely new set of OIDs which
>parallel
>> >all of the existing ones just to show that you're encrypting a key.
>Another
>> >way to handle this is as EncryptedContentInfo (which just adds an extra
>> >SEQUENCE around the existing ContentEncryptionAlgorithmIdentifier +
>> >EncryptedContent (=EncryptedKey)), but this is probably going overboard.
>> >
>> >(I'm prepared to accept a 'kekid [0] KEKIdentifier OPTIONAL' after the
>> version
>> > number if that's what's required to get people's grunt of approval for
>the
>> > thing).
>> >
>> >(Before people complain that you can't change the key wrap algorithm, if
>it
>> > ever does become necessary to change it (and I thought the point of the
>
>> > current key wrap design process was to build a solution once and for
>all),
>> > all you need to do is increment the RecipientInfo version number and
>add
>> > whatever you feel like).
>> >
>> >Peter.
>> >
>> >



From owner-ietf-smime@imc.org  Thu Mar 11 17:46:12 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA14025
	for <smime-archive@odin.ietf.org>; Thu, 11 Mar 1999 17:46:10 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA13568
	for ietf-smime-bks; Thu, 11 Mar 1999 13:48:00 -0800 (PST)
Received: from aum (ip11.proper.com [165.227.249.11])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA13564
	for <ietf-smime@imc.org>; Thu, 11 Mar 1999 13:47:59 -0800 (PST)
Message-Id: <4.2.0.29.19990311134917.0096df00@mail.imc.org>
X-Sender: phoffman@mail.imc.org (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.29 (Beta)
Date: Thu, 11 Mar 1999 13:53:03 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
In-Reply-To: <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Folks:

Peter has posted an Internet Draft for an addition to CMS. I think it is 
very late for us to be adding things for which there is disagreement on how 
to put it in. We can discuss Peter's draft and decide if we want to pass it 
out of the working group. If we do, it can be a stand-alone RFC. If it gets 
two independent implementations, we might fold it into the CMS RFC (if we 
ever get there.....) when we move from Proposed Standard to Draft Standard.

--Paul Hoffman, Director
--Internet Mail Consortium


From owner-ietf-smime@imc.org  Fri Mar 12 05:37:32 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA00089
	for <smime-archive@odin.ietf.org>; Fri, 12 Mar 1999 05:37:31 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id BAA08307
	for ietf-smime-bks; Fri, 12 Mar 1999 01:20:42 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA08299
	for <ietf-smime@imc.org>; Fri, 12 Mar 1999 01:20:38 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (hil-qbu-ppu-vty45.as.wcom.net [209.154.55.45]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id BAA11224; Fri, 12 Mar 1999 01:26:01 -0800 (PST)
Message-Id: <4.1.19990311161546.00988e70@mail.spyrus.com>
Message-Id: <4.1.19990311161546.00988e70@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 11 Mar 1999 16:19:48 -0500
To: Burt Kaliski <burt@RSA.COM>
From: Russ Housley <housley@spyrus.com>
Subject: RE: Comments on x942-05 draft 
Cc: ekr@rtfm.com, jlinn@securitydynamics.com, ietf-smime@imc.org
In-Reply-To: <7DE9F929113DD11181C900805F85C1AA6FDF94@geoduck.rsa.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Burt:

You are correct.  The corrent write-up does specify the content-encryption
algorithm OID.  I agree that we should replace the content-encryption
algorithm OID with the key-wrap algorithm OID.

Russ


At 01:07 PM 3/10/99 -0800, Burt Kaliski wrote:
>Dear Russ --
>
>Thanks for the CMS excerpt.
>
>My question is about the parameters to the X9.42 KDF, specifically the OID
>associated with the derived key. The field is defined as follows:
>
>	algorithm is the ASN.1 algorithm OID of the symmetric algorithm with
>which
>	     this KEK will be used. 
>
>I'm assuming that within CMS, the OID would be id-alg-CMS3DESwrap or
>id-alg-CMSRC2wrap.
>
>x942-05 is unclear about this, as "symmetric algorithm" might be interpreted
>as the OID for RC2 or triple-DES, not the key wrapping mechanism. I think
>it's better to identify the key wrapping mechanism, in case there's more
>than one with the same underlying symmetric algorithm. One risk, of course,
>is that the OID for the key wrapping mechansim might be too generic -- so
>there should be some way to include parameters (if any) to the key wrapping
>OID as input to the KDF.
>
>-- Burt
>
>
>> ----------
>> From: 	Russ Housley[SMTP:housley@spyrus.com]
>> Sent: 	Friday, March 05, 1999 10:05 AM
>> To: 	Burt Kaliski
>> Cc: 	Eric Rescorla; jlinn@securitydynamics.com
>> Subject: 	RE: Comments on x942-05 draft 
>> 
>> Burt:
>> 
>> Please take a look at CMS for this answer.  The AlgorithmIdentifier used
>> to
>> name Ephemeral-Static Diffie-Hellman has a parameter, and that parameter
>> specifies the key wrap algorithm.
>> 
>> Russ
>> 


From owner-ietf-smime@imc.org  Fri Mar 12 08:08:22 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA01358
	for <smime-archive@odin.ietf.org>; Fri, 12 Mar 1999 08:08:21 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id DAA14702
	for ietf-smime-bks; Fri, 12 Mar 1999 03:59:51 -0800 (PST)
Received: from hinge.mistral.co.uk (hinge.mistral.co.uk [195.184.228.15])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id DAA14698
	for <ietf-smime@imc.org>; Fri, 12 Mar 1999 03:59:49 -0800 (PST)
Received: from d3-s5-161-telehouse.mistral.co.uk (d3-s5-161-telehouse.mistral.co.uk [195.184.228.161]) by hinge.mistral.co.uk (8.8.5/8.6.9) with SMTP id MAA17608; Fri, 12 Mar 1999 12:05:53 GMT
Received: by d3-s5-161-telehouse.mistral.co.uk with Microsoft Mail
	id <01BE6C80.43FE1010@d3-s5-161-telehouse.mistral.co.uk>; Fri, 12 Mar 1999 12:02:56 -0000
Message-ID: <01BE6C80.43FE1010@d3-s5-161-telehouse.mistral.co.uk>
From: Darren Harter <darren@sapher.com>
To: "'John Ross'" <ross@secstan.com>,
        "rankney@erols.com"
	 <rankney@erols.com>,
        "pgut001@cs.aucKland.ac.nz"
	 <pgut001@cs.aucKland.ac.nz>,
        Russ Housley <housley@spyrus.com>
Cc: "ietf-smime@imc.org" <ietf-smime@imc.org>, "burt@RSA.COM"
	 <burt@RSA.COM>
Subject: RE: More on KEKIdentifiers, and a suggested addition to CMS
Date: Fri, 12 Mar 1999 09:16:54 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id DAA14699
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 8bit

John,

I agree in general with what you propose.  I understand the benefit of using an OCTET STRING to ensure easy decoding for recipients that do not understand the syntax of the data associated with keyTypeIdentifier.  However, I believe that a true ANY would be better than an OCTET STRING in this case.

Applications that support CMS already have to deal with a lot of ANY's, so one more is not going to add much complexity.  Also, using an ANY rather than an OCTET STRING allows for a single pass decode process, which an embedded OCTET STRING encoding does not.

The amended part of your syntax would be:

ExternalyDefinedKeyAgreement :: = SEQUENCE {
    keyTypeIdentifier OBJECT IDENTIFIER,
    keyTypeInfo ANY DEFINED BY keyTypeIdentifier }


Regards,

Darren

------------------------------------------------------------------------
Darren Harter BSc (Hons) CEng MBCS
Entegrity Solutions Corp
http://www.entegrity.co.uk
+44 (0) 1452 371383
Email: mailto:darren@sapher.com



From owner-ietf-smime@imc.org  Fri Mar 12 11:10:24 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA04339
	for <smime-archive@odin.ietf.org>; Fri, 12 Mar 1999 11:10:20 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA15718
	for ietf-smime-bks; Fri, 12 Mar 1999 06:40:51 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA15714
	for <ietf-smime@imc.org>; Fri, 12 Mar 1999 06:40:50 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id JAA22316;
	Fri, 12 Mar 1999 09:52:52 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id JAA07743; Fri, 12 Mar 1999 09:50:11 -0500
Date: Fri, 12 Mar 1999 09:50:11 -0500
Message-Id: <199903121450.JAA07743@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: RE: More on KEKIdentifiers, and a suggested addition to CMS
Cc: burt@RSA.COM
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Jim and Friends,

I agree with Jim's message.  When I expressed support for Peter's proposal
to enhance the CMS RecipientInfo syntax, I assumed that there was consensus
in the PKCS-15 community regarding the proposal.  Based on subsequent e-mail
traffic, that assumption has been proved to be false.  Therefore, I agree
with Jim that the CMS RecipientInfo syntax should remain unchanged.

- John Pawling 


At 10:20 AM 3/10/99 -0800, Jim Schaad (Exchange) wrote:
>John & Peter,
>
>At this point in time I am not willing to support this. I have two reasons
>for this
>
>1.  I want to get CMS approved, and there are other options for how to
>approach this (such as a new I-D) and we know a new version of CMS is coming
>soon to deal with OEAP
>
>2.  I don't think this is the correct set of items that are needed.  You
>have not proposed an appropriate set of text for section 12.  I don't
>understand why the Content Encrytion Alg should be encoded twice.  I don't
>understand why the KEK Wrap algorithm is not specified.  I just don't think
>this is complete yet.
>
>jim
>
>



From owner-ietf-smime@imc.org  Fri Mar 12 11:31:09 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA05350
	for <smime-archive@odin.ietf.org>; Fri, 12 Mar 1999 11:31:08 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id GAA15863
	for ietf-smime-bks; Fri, 12 Mar 1999 06:54:31 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA15859
	for <ietf-smime@imc.org>; Fri, 12 Mar 1999 06:54:30 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id KAA22703;
	Fri, 12 Mar 1999 10:06:32 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id KAA07921; Fri, 12 Mar 1999 10:03:48 -0500
Date: Fri, 12 Mar 1999 10:03:48 -0500
Message-Id: <199903121503.KAA07921@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "John Ross" <ross@secstan.com>, <rankney@erols.com>,
        <pgut001@cs.aucKland.ac.nz>, "Russ Housley" <housley@spyrus.com>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: <ietf-smime@imc.org>, <burt@RSA.COM>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

I believe that this proposal leads to non-interoperable S/MIME
implementations, so I oppose it.  If the originator chooses a kext syntax
that the recipient's software does not understand, then the recipient will
not be able to decrypt the EnvelopedData content.  I believe that the CMS
RecipientInfo syntax should not be changed until it is proven that it does
not meet a valid requirement ("valid" as defined by consensus of the S/MIME
WG).  If that occurs, then we should consider adding a well-defined syntax
as a ReceipientInfo CHOICE (not a wild card).

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================


At 05:51 PM 3/11/99 -0800, John Ross wrote:
>If you are going to allow the choice to be extended, I agree with Rick that
>it should be controlled.  Just extending the choice with a new tag (and by
>the way it also then needs a new version number), will give problems in the
>future, as it is not a unique identifier.  What if a private extensions has
>been defined already and used tag 3?  Also, if every extension to the choice
>needs a new CMSversion number assigned, that may be a lot of CMSversion
>around in the future. A while back I proposed to have an extensible "choice"
>using octet string, it would be better using OID and any defined by as
>follows:.
>
>
> The following is an example ASN.1:
>
> RecipientInfo ::= CHOICE {
>        ktri KeyTransRecipientInfo,
>        kari [1] KeyAgreeRecipientInfo,
>        kekri [2] KEKRecipientInfo,
>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
>management schemes }
>
>
>
>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>    keyTypeIdentifier ObjectIdentier,
>    keyTypeInfo OCTECT STRING --any defined by OID}
>
>This will at lease make sure that there is unique identifiers for all the
>extensions to recipient info.
>
>Regards
>
>John Ross
>



From owner-ietf-smime@imc.org  Fri Mar 12 12:23:32 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA07200
	for <smime-archive@odin.ietf.org>; Fri, 12 Mar 1999 12:23:31 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA16501
	for ietf-smime-bks; Fri, 12 Mar 1999 08:10:21 -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 IAA16497
	for <ietf-smime@imc.org>; Fri, 12 Mar 1999 08:10:18 -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 FAA23514 for <ietf-smime@imc.org>; Sat, 13 Mar 1999 05:16:24 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <92125538404998>; Sat, 13 Mar 1999 05:16:24 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Sat, 13 Mar 1999 05:16:24 (NZDT)
Message-ID: <92125538404998@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Paul Hoffman / IMC <phoffman@imc.org> writes:
 
>Peter has posted an Internet Draft for an addition to CMS. I think it is very 
>late for us to be adding things for which there is disagreement on how to put 
>it in. We can discuss Peter's draft and decide if we want to pass it out of 
>the working group. If we do, it can be a stand-alone RFC. If it gets two 
>independent implementations, we might fold it into the CMS RFC (if we ever 
>get there.....) when we move from Proposed Standard to Draft Standard.
 
The point of making it an independent RFC was that it wouldn't hold up the CMS 
RFC - that can proceed as usual, and the PWRI RFC could be developed at its 
own pace.
 
>As an alternative, if the current CMS draft would allow for the 'PBES2' 
>algorithm identifier defined in PKCS #5 v2 in the set of 
>KeyEncryptionAlgorithms, there would be no need for changing the ASN.1 in 
>CMS. Another advantage with this is that it would enable an easy way to send 
>encrypted email where the key is derived from a previously agreed-upon 
>password.
 
I don't think this is such a good idea, it's a significant change to the CMS 
RFC at a late stage (which I was trying to avoid by having an independent PWRI 
RFC), and it's rather a kludge.  I think it'd be better to leave KEKRI for 
what it was intended for and have a dedicated PWRI which specifically 
addresses the requirements of password-based encryption.
 
"John Ross" <ross@secstan.com> writes:
 
>Also, if every extension to the choice needs a new CMSversion number 
>assigned, that may be a lot of CMSversion around in the future.
 
You don't need to do this though, if you use '...' as I suggested in a 
previous message then implementations will know that there could be further 
types added there and skip any new ones they don't recognise.  Once this is 
done, there's no need to change the version number whenever a new choice is 
added.
 
Peter.
 



From owner-ietf-smime@imc.org  Fri Mar 12 14:17:04 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA10118
	for <smime-archive@odin.ietf.org>; Fri, 12 Mar 1999 14:17:03 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA17242
	for ietf-smime-bks; Fri, 12 Mar 1999 09:55:35 -0800 (PST)
Received: from doggate.exchange.microsoft.com (doggate.exchange.microsoft.com [131.107.88.55])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA17235
	for <ietf-smime@imc.org>; Fri, 12 Mar 1999 09:55:26 -0800 (PST)
Received: by doggate.exchange.microsoft.com with Internet Mail Service (5.5.2232.9)
	id <GFNX11MN>; Fri, 12 Mar 1999 10:01:03 -0800
Message-ID: <2FBF98FC7852CF11912A0000000000010ECB5DB0@DINO>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'Russ Housley'" <housley@spyrus.com>, cme@ACM.ORG, berson@anagram.com,
        bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
        mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
        schneier@counterpane.com, daw@cs.berkeley.edu,
        denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
        omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
        carlisle.adams@entrust.com, paulv@entrust.com,
        Blake.greenlee@greenlee.com, Josh Benaloh <benaloh@microsoft.com>,
        "Barb Fox (Exchange)" <bfox@EXCHANGE.MICROSOFT.com>,
        cjwagne@missi.ncsc.mil, jis@mit.edu, TACAR.PRV-7.PROVO@novell.com,
        merkle@parc.xerox.com, BSnow@radium.ncsc.mil, burt@RSA.COM,
        ekr@rtfm.com, jlinn@securitydynamics.com, ams@terisa.com,
        rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com,
        acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com,
        desmedt@uwm.edu, ietf-smime@imc.org
Subject: RE: New Triple-DES Key Wrap Algorithm Section
Date: Fri, 12 Mar 1999 10:00:21 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain;
	charset="windows-1252"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

I would like to see some changes to the RC2 key wrap algorithm to make it
easier to implement both the RC2 and 3DES wrapping using the same code.  The
core change is that the formatting and padding are done PRIOR to computing
the ICV value and thus all the code from step 4 on is the same for both the
RC2 Key wrap and the 3DES key wrap.

1.  LENGTH = sizeof(CEK)
2.  PAD = random(8 - (LENGTH + 1) % 8)
3.  TMP1 = LENGHT || CEK || PAD
4.  ICV = SHA_8(TMP1)
5.  TMP2 = ENC(TMP1 || ICV, IV)
6.  TMP3 = IV || TMP2
7.  TMP4 = REVERSE(TMP3)
8.  TMP5 = ENC(TMP4, constantIV)

This means that the KEK wrap routine is on constant data and the padding
also happens to be protected.  I suppose there is a possible attack with the
padding, but if the verification routine checks the pad length I doubt it is
possible.  However this means that I have one method of doing KEK rather
than 2.

jim

-----Original Message-----
From: Russ Housley [mailto:housley@spyrus.com]
Sent: Thursday, March 04, 1999 8:52 AM
To: cme@ACM.ORG; berson@anagram.com; bschanni@BayNetworks.com;
kent@bbn.com; pcain@bbn.com; mhetzel@bell-labs.com; brickell@certco.com;
djohnson@certicom.ca; schneier@counterpane.com; daw@cs.berkeley.edu;
denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
omura@cylink.com; dickie@EMPIRE.eclipse.ncsc.mil;
carlisle.adams@entrust.com; paulv@entrust.com;
Blake.greenlee@greenlee.com; Josh Benaloh; Barb Fox (Exchange);
cjwagne@missi.ncsc.mil; jis@mit.edu; TACAR.PRV-7.PROVO@novell.com;
merkle@parc.xerox.com; BSnow@radium.ncsc.mil; burt@RSA.COM;
ekr@rtfm.com; jlinn@securitydynamics.com; ams@terisa.com;
rivest@theory.lcs.mit.edu; balenson@tis.com; denny@tis.com;
acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil; smatyas@us.ibm.com;
desmedt@uwm.edu; ietf-smime@imc.org
Subject: New Triple-DES Key Wrap Algorithm Section


All:

I greatly appreciate the work that everyone has put into the open debate on
key wrapping.

The 44th IETF meeting is coming up rapidly, and I would like to close this
debate prior to the meeting.  To that end, I selected the double-encryption
algorithm.  An updated CMS document has not been posted yet, so I have
attached the text associated with key wrapping.

Based on the discussion on this list, I believe that the double-encryption
algorithm meet the security requirements, and it is easily implemented with
building blocks that are otherwise needed to implement CMS.

I will gladly facilitate the further discussion of the general wrapping
algorithm if the participants are interested.  I do not think that
discussion should occur on the IETF S/MIME Working Group mail list, but I
will arrange for a separate list to be created if you want to pursue the
general wrap algorithm.

Russ


= = = = = = = = = =

12.6  Triple-DES and RC2 Key Wrap Algorithms

   CMS implementations must include encryption of a Triple-DES content-
   encryption key with a Triple-DES key-encryption key using the
   algorithm specified in Sections 12.6.2 and 12.6.3.  CMS
   implementations should include encryption of a RC2 content-encryption
   key with a RC2 key-encryption key using the algorithm specified in
   Sections 12.6.4 and 12.6.5.  Triple-DES and RC2 content-encryption
   keys are encrypted in Cipher Block Chaining (CBC) mode [MODES].

   Key Transport algorithms allow for the content-encryption key to be
   directly encrypted; however, key agreement and symmetric key-
   encryption key algorithms encrypt the content-encryption key with a
   second symmetric encryption algorithm.  This section describes how
   the Triple-DES or RC2 content-encryption key is formatted and
   encrypted.

   Key agreement algorithms generate a pairwise key-encryption key, and
   a key wrap algorithm is used to encrypt the content-encryption key
   with the pairwise key-encryption key.  Similarly, a key wrap
   algorithm is used to encrypt the content-encryption key in a
   previously distributed key-encryption key.

   The key-encryption key is generated by the key agreement algorithm or
   distributed out of band.  For key agreement of RC2 key-encryption
   keys, 128 bits must be generated as input to the key expansion
   process used to compute the RC2 effective key [RC2].

   The same algorithm identifier is used for both 2-key and 3-key
   Triple-DES.  When the length of the content-encryption key to be
   wrapped is a 2-key Triple-DES key, a third key with the same value as
   the first key is created.  Thus, all Triple-DES content-encryption
   keys are wrapped like 3-key Triple-DES keys.

12.6.1  Key Checksum

   The CMS Checksum Algorithm is used to provide a content-encryption
   key integrity check value.  The algorithm is:

   1.  Compute a 20 octet SHA-1 [SHA1] message digest on the
       content-encryption key.
   2.  Use the most significant (first) eight octets of the message
       digest value as the checksum value.

12.6.2  Triple-DES Key Wrap

   The Triple-DES key wrap algorithm encrypts a Triple-DES content-
   encryption key with a Triple-DES key-encryption key.  The Triple-DES
   key wrap algorithm is:

   1.  Set odd parity for each of the DES key octets comprising
       the content-encryption key, call the result CEK.
   2.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1, call the result ICV.
   3.  Let CEKICV = CEK || ICV.
   4.  Generate 8 octets at random, call the result IV.
   5.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
       the random value generated in the previous step as the
       initialization vector (IV).  Call the ciphertext TEMP1.
   6.  Let TEMP2 = IV || TEMP1.
   7.  Reverse the order of the octets in TEMP2.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP3.
   8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
       an initialization vector (IV) of 0x4adda22c79e82105.
       The ciphertext is 40 octets long.

   Note:  When the same content-encryption key is wrapped in different
   key-encryption keys, a fresh initialization vector (IV) must be
   generated for each invocation of the key wrap algorithm.

12.6.3  Triple-DES Key Unwrap

   The Triple-DES key unwrap algorithm decrypts a Triple-DES content-
   encryption key using a Triple-DES key-encryption key.  The Triple-DES
   key unwrap algorithm is:

   1.  If the wrapped content-encryption key is not 40 octets, then
       error.
   2.  Decrypt the wrapped content-encryption key in CBC mode using
       the key-encryption key.  Use an initialization vector (IV)
       of 0x4adda22c79e82105.  Call the output TEMP3.
   3.  Reverse the order of the octets in TEMP3.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP2.
   4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
       significant (first) 8 octets, and TEMP1 is the least significant
       (last) 32 octets.
   5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
       the IV value from the previous step as the initialization vector.
       Call the ciphertext CEKICV.
   6.  Decompose the CEKICV into CEK and ICV. CEK is the most significant
       (first) 24 octets, and ICV is the least significant (last) 8 octets.
   7.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1.  If the computed key checksum value does not
       match the decrypted key checksum value, ICV, then error.
   8.  Check for odd parity each of the DES key octets comprising CEK.
       If parity is incorrect, then there is an error.
   9. Use CEK as the content-encryption key.

12.6.4  RC2 Key Wrap

   The RC2 key wrap algorithm encrypts a RC2 content-encryption key with a 
   RC2 key-encryption key.  The RC2 key wrap algorithm is:

   1.  Let the content-encryption key be called CEK, and let the length
       of the content-encryption key in octets be called LENGTH.
   2.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1, call the result ICV.
   3.  Let CEKICV = LENGTH || CEK || ICV.  LENGTH is a single octet.
   4.  Let CEKICVPAD = CEKICV || PAD.  If the length of CEKICV is a
       multiple of 8, the PAD has a length of zero.  If the length of
       CEKICV is not a multiple of 8, then PAD contains the fewest
       number of random octets to make CEKICVPAD a multiple of 8.
   5.  Generate 8 octets at random, call the result IV.
   5.  Encrypt CEKICVPAD in CBC mode using the key-encryption key.
       Use the random value generated in the previous step as the
       initialization vector (IV).  Call the ciphertext TEMP1.
   6.  Let TEMP2 = IV || TEMP1.
   7.  Reverse the order of the octets in TEMP2.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP3.
   8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
       an initialization vector (IV) of 0x4adda22c79e82105.

   Note:  When the same content-encryption key is wrapped in different
   key-encryption keys, a fresh initialization vector (IV) must be
   generated for each invocation of the key wrap algorithm.

12.6.5  RC2 Key Unwrap

   The RC2 key unwrap algorithm decrypts a RC2 content-encryption key
   using a RC2 key-encryption key.  The RC2 key unwrap algorithm is:

   1.  If the wrapped content-encryption key is not a multiple of 8
       octets, then error.
   2.  Decrypt the wrapped content-encryption key in CBC mode using
       the key-encryption key.  Use an initialization vector (IV)
       of 0x4adda22c79e82105.  Call the output TEMP3.
   3.  Reverse the order of the octets in TEMP3.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP2.
   4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
       significant (first) 8 octets, and TEMP1 is the remaining octets.
   5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
       the IV value from the previous step as the initialization vector.
       Call the ciphertext CEKICVPAD.
   6.  Decompose the CEKICVPAD into LENGTH, CEK, ICV, and PAD.  LENGTH is
       the most significant (first) octet.  CEK is the following LENGTH
       octets.  ICV is the following 8 octets.  PAD is the remaining
       octets, if any.
   7.  If PAD is more than 7 octets, then error.
   8.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1.  If the computed key checksum value does not
       match the decrypted key checksum value, ICV, then error.
   9.  Use CEK as the content-encryption key.

Security Considerations

   Section 12.6 specifies key wrap algorithms used to encrypt a Triple-
   DES [3DES] content-encryption key with a Triple-DES key-encryption
   key or to encrypt a RC2 [RC2] content-encryption key with a RC2 key-
   encryption key.  The key wrap algorithms make use of CBC mode
   [MODES].  These key wrap algorithms have been reviewed for use with
   Triple and RC2.  They have not been reviewed for use with other
   cryptographic modes or other encryption algorithms.  Therefore, if a
   CMS implementation wishes to support ciphers in addition to Triple-
   DES or RC2, then additional key wrap algorithms need to be defined to
   support the additional ciphers.



From owner-ietf-smime@imc.org  Fri Mar 12 14:56:50 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA12610
	for <smime-archive@odin.ietf.org>; Fri, 12 Mar 1999 14:56:47 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA17638
	for ietf-smime-bks; Fri, 12 Mar 1999 10:48:46 -0800 (PST)
Received: from gnasher.sol.co.uk (gnasher.sol.co.uk [194.247.64.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA17634
	for <ietf-smime@imc.org>; Fri, 12 Mar 1999 10:48:44 -0800 (PST)
Received: from jrprotable2 (e1c10p28.scotland.net [148.176.234.92])
	by gnasher.sol.co.uk (8.8.5/8.8.5) with SMTP id SAA18554;
	Fri, 12 Mar 1999 18:54:45 GMT
Message-ID: <002701be6cb9$7c6f4890$1500000a@jrprotable2>
From: "ross@secstan" <ross@secstan.com>
To: <pgut001@cs.aucKland.ac.nz>, <ietf-smime@imc.org>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Fri, 12 Mar 1999 18:52:21 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

I am happy to use '...' in the choice syntax, but unfortunately that is not
available when using 1988 ASN.1.  So that option is not available.

If there is strong objection to having a "controlled" way of extending the
choice (i.e the OID route), but there is agreement to specifically allow the
equivalent of '...' in 88 syntax (i.e. extend the choice), then there is a
need to add a comment in the ASN.1.   Also it would be a advisable to say
under what condition the CMSversion needs to change (if any).  Rule are
needed so that there is no misunderstanding on how to  expansion the choice
in the future.

Personally I think a new  version number is advisable every time the choice
is extended, as that  would make the handing of any extended choice easier
to handle on reception. But I am happy to follow the general consensus on
that issue.
-----Original Message-----
From: Peter Gutmann <pgut001@cs.aucKland.ac.nz>
To: ietf-smime@imc.org <ietf-smime@imc.org>
Date: 12 March 1999 16:38
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS


>Paul Hoffman / IMC <phoffman@imc.org> writes:
>
>>Peter has posted an Internet Draft for an addition to CMS. I think it is
very
>>late for us to be adding things for which there is disagreement on how to
put
>>it in. We can discuss Peter's draft and decide if we want to pass it out
of
>>the working group. If we do, it can be a stand-alone RFC. If it gets two
>>independent implementations, we might fold it into the CMS RFC (if we ever
>>get there.....) when we move from Proposed Standard to Draft Standard.
>
>The point of making it an independent RFC was that it wouldn't hold up the
CMS
>RFC - that can proceed as usual, and the PWRI RFC could be developed at its
>own pace.
>
>>As an alternative, if the current CMS draft would allow for the 'PBES2'
>>algorithm identifier defined in PKCS #5 v2 in the set of
>>KeyEncryptionAlgorithms, there would be no need for changing the ASN.1 in
>>CMS. Another advantage with this is that it would enable an easy way to
send
>>encrypted email where the key is derived from a previously agreed-upon
>>password.
>
>I don't think this is such a good idea, it's a significant change to the
CMS
>RFC at a late stage (which I was trying to avoid by having an independent
PWRI
>RFC), and it's rather a kludge.  I think it'd be better to leave KEKRI for
>what it was intended for and have a dedicated PWRI which specifically
>addresses the requirements of password-based encryption.
>
>"John Ross" <ross@secstan.com> writes:
>
>>Also, if every extension to the choice needs a new CMSversion number
>>assigned, that may be a lot of CMSversion around in the future.
>
>You don't need to do this though, if you use '...' as I suggested in a
>previous message then implementations will know that there could be further
>types added there and skip any new ones they don't recognise.  Once this is
>done, there's no need to change the version number whenever a new choice is
>added.
>
>Peter.
>
>



From owner-ietf-smime@imc.org  Fri Mar 12 15:04:03 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA12811
	for <smime-archive@odin.ietf.org>; Fri, 12 Mar 1999 15:04:02 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA17710
	for ietf-smime-bks; Fri, 12 Mar 1999 11:02:53 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA17706
	for <ietf-smime@imc.org>; Fri, 12 Mar 1999 11:02:52 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id OAA28707;
	Fri, 12 Mar 1999 14:14:54 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id OAA11293; Fri, 12 Mar 1999 14:12:12 -0500
Date: Fri, 12 Mar 1999 14:12:12 -0500
Message-Id: <199903121912.OAA11293@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "ross@secstan" <ross@secstan.com>, <pgut001@cs.aucKland.ac.nz>,
        <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

I disagree with adding "..." to the RecipientInfo CHOICE because I believe
that leads to non-interoperable S/MIME implementations.  I believe that the
CMS RecipientInfo syntax should not be changed until it is proven that it does
not meet a valid requirement ("valid" as defined by consensus of the S/MIME
WG).  If that occurs, then we should consider adding a well-defined syntax
as a ReceipientInfo CHOICE (not a wild card).

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================


At 06:52 PM 3/12/99 -0000, ross@secstan wrote:
>I am happy to use '...' in the choice syntax, but unfortunately that is not
>available when using 1988 ASN.1.  So that option is not available.
>
>If there is strong objection to having a "controlled" way of extending the
>choice (i.e the OID route), but there is agreement to specifically allow the
>equivalent of '...' in 88 syntax (i.e. extend the choice), then there is a
>need to add a comment in the ASN.1.   Also it would be a advisable to say
>under what condition the CMSversion needs to change (if any).  Rule are
>needed so that there is no misunderstanding on how to  expansion the choice
>in the future.
>
>Personally I think a new  version number is advisable every time the choice
>is extended, as that  would make the handing of any extended choice easier
>to handle on reception. But I am happy to follow the general consensus on
>that issue.



From owner-ietf-smime@imc.org  Sat Mar 13 11:58:14 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA06627
	for <smime-archive@odin.ietf.org>; Sat, 13 Mar 1999 11:58:13 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA21492
	for ietf-smime-bks; Sat, 13 Mar 1999 07:54:40 -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 HAA21488
	for <ietf-smime@imc.org>; Sat, 13 Mar 1999 07:54:37 -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 FAA15506 for <ietf-smime@imc.org>; Sun, 14 Mar 1999 05:00:49 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <92134084901635>; Sun, 14 Mar 1999 05:00:49 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Sun, 14 Mar 1999 05:00:49 (NZDT)
Message-ID: <92134084901635@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

>I disagree with adding "..." to the RecipientInfo CHOICE because I believe
>that leads to non-interoperable S/MIME implementations.
 
>Personally I think a new version number is advisable every time the choice is
>extended, as that would make the handing of any extended choice easier to
>handle on reception. But I am happy to follow the general consensus on that
>issue.
 
<grumble>
Why are people trying to manufacture all this unnecessary complexity for 
something so simple?  X.500 has had this capability (the Name CHOICE) for over 
10 years and it's never lead to any problems because the only way to extend it 
is via changes to X.500 (that is, you need to extend the standard to extend 
the CHOICE).  Similarly, someone can't just drop in a new CHOICE option for 
CMS, it'd have to be done via the usual CMS standards process, so that 
resulting implementations would be just as interoperable as, say, ESS 
implementations.
 
Similarly, I don't see why it's necessary to change the version number every 
time the CHOICE is extended - if you don't recognise a CHOICE alternative, you 
skip it and continue.  Since CMS already requires changes from S/MIME v2/PKCS 
#7 (by adding the CHOICE) adding an extra line or two of code to 
implementations to skip unrecognised choices can't be that hard.
</grumble>
 
This is why I asked for '...' (or text to that effect for those still stuck
with ASN.1:1988) be added to CMS, it means it'll be possible to extend the
CHOICE in the future with further RFC's without requiring an update to CMS
itself (I believe this was the same rationale behind X.500's Name CHOICE).
There won't be an uncontrolled explosion of choices since the only way to
extend it would be as a full RFC, which would have to go through the usual
carefully-controlled standards process.
 
Peter.



From owner-ietf-smime@imc.org  Sun Mar 14 13:19:24 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA04443
	for <smime-archive@odin.ietf.org>; Sun, 14 Mar 1999 13:19:24 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA27589
	for ietf-smime-bks; Sun, 14 Mar 1999 09:18:17 -0800 (PST)
Received: from darius.concentric.net (darius.concentric.net [207.155.198.79])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA27583
	for <ietf-smime@imc.org>; Sun, 14 Mar 1999 09:18:15 -0800 (PST)
Received: from newman.concentric.net (newman [207.155.198.71])
	by darius.concentric.net (8.9.1a/(98/12/15 5.12))
	id MAA25207; Sun, 14 Mar 1999 12:24:36 -0500 (EST)
	[1-800-745-2747 The Concentric Network]
Received: from aum (ts007d12.min-mn.concentric.net [209.31.113.72])
	by newman.concentric.net (8.9.1a)
	id MAA28927; Sun, 14 Mar 1999 12:24:35 -0500 (EST)
Message-Id: <4.2.0.25.19990314112145.009f51b0@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.25 (Beta)
Date: Sun, 14 Mar 1999 11:24:13 -0600
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Temporary version of CMS KEA and SKIPJACK conventions
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I've posted a temporary copy of the first draft of the "CMS KEA and 
SKIPJACK Conventions"
Internet-Draft at <http://www.imc.org/ietf-smime/temp-cmskea.txt>. John 
Pawling passes along this information:

This document describes the
conventions for using the CMS EnvelopedData and EncryptedData content types
with the Key Exchange Algorithm (KEA) and SKIPJACK encryption algorithm.
The intent of this document is to promote interoperability between
implementations using the FORTEZZA suite of algorithms with CMS.

This document may be discussed at the IETF meeting this week.

--Paul Hoffman, Director
--Internet Mail Consortium


From owner-ietf-smime@imc.org  Mon Mar 15 05:32:38 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA19454
	for <smime-archive@odin.ietf.org>; Mon, 15 Mar 1999 05:32:38 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id BAA08771
	for ietf-smime-bks; Mon, 15 Mar 1999 01:16:13 -0800 (PST)
Received: from gnasher.sol.co.uk (gnasher.sol.co.uk [194.247.64.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA08767
	for <ietf-smime@imc.org>; Mon, 15 Mar 1999 01:16:11 -0800 (PST)
Received: from jrwork (e2c9p51.scotland.net [148.176.238.51])
	by gnasher.sol.co.uk (8.8.5/8.8.5) with SMTP id JAA06531;
	Mon, 15 Mar 1999 09:22:11 GMT
Message-ID: <002c01be6f07$c0709350$0400000a@jrwork>
From: "John Ross" <ross@secstan.com>
To: <pgut001@cs.aucKland.ac.nz>, <ietf-smime@imc.org>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Mon, 15 Mar 1999 09:17:38 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

I agree with Peter, CMS should allow the extension of the Choice syntax
 i.e. in text using  the old ASN.1 rules), which gives a good pointer to the
implementors that they should not object if the they receive an extended
choice.

I also agree with John Pawling, that any extension must be controlled and
should only be done when there is a requirement not met by the current
syntax. As per Peter's comment, control of the choice can be achieved by the
normal RFC process.  Also, if more control is required on S/MIME for
interoperability reasons, the S/MIME specification  (not the CMS spec) could
prohibit the expansion of the choice unless a new version number is agreed.


Regards
JR




From owner-ietf-smime@imc.org  Mon Mar 15 11:50:17 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA22337
	for <smime-archive@odin.ietf.org>; Mon, 15 Mar 1999 11:50:16 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA13603
	for ietf-smime-bks; Mon, 15 Mar 1999 07:32:29 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA13599
	for <ietf-smime@imc.org>; Mon, 15 Mar 1999 07:32:27 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id KAA03353
	for <ietf-smime@imc.org>; Mon, 15 Mar 1999 10:44:48 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id KAA27413; Mon, 15 Mar 1999 10:42:07 -0500
Date: Mon, 15 Mar 1999 10:42:07 -0500
Message-Id: <199903151542.KAA27413@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter,

I still oppose the addition of "..." to the CMS RecipientInfo syntax.  IMHO,
"..." does not add any value to the document.  Implementors realize that the
S/MIME v3 documents are subject to enhancements.  If people need to add a
CHOICE to the CMS RecipientInfo syntax, then they need to propose a specific
syntax and accompanying text for inclusion in CMS.  


You stated: "- if you don't recognise a CHOICE alternative, you skip it and
continue." 

If you were talking about v3 cert extensions or signedAttributes, I would
agree with your "skip it and continue" strategy for unrecognized syntaxes.
In the case of a CHOICE syntax, I disagree that it is straightforward to
"skip" an unrecognized CHOICE alternative.  Most S/MIME implementations use
an ASN.1 decoding strategy by which the entire object (i.e. envelopedData,
signedData, etc) is decoded via a single call to an ASN.1 library that
implements general purpose ASN.1 decoding rules.  In this case, there is no
easy way to "skip" an unrecognized CHOICE syntax.  That is an error
condition.  For example, if a RecipientInfo includes a CHOICE alternative
not defined in the CMS standard, then the decoding software returns an error
when attempting to decode the object.  I believe that you will find that the
vast majority of S/MIME implementations work in this fashion.  For example,
the S/MIME Freeware Library calls the freeware SNACC ASN.1 library to decode
objects.  The SNACC ASN.1 library is capable of using general purpose ASN.1
rules to decode the ASN.1 syntaxes included in the ASN.1 modules provided at
compile time (ex: CMS ASN.1 module).  If the SNACC library encounters an
unrecognized CHOICE alternative, it returns an error.  There is no easy way
to add code to handle a special case like "skip an unrecognized CHOICE
alternative in recipientInfo".  


>This is why I asked for '...' (or text to that effect for those still stuck
>with ASN.1:1988) be added to CMS, it means it'll be possible to extend the
>CHOICE in the future with further RFC's without requiring an update to CMS
>itself (I believe this was the same rationale behind X.500's Name CHOICE).

I don't like the idea of splitting a CHOICE syntax definition between
multiple documents.  IMHO, that is OK for defining attributes and
extensions, but not CHOICEs.    

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================




From owner-ietf-smime@imc.org  Mon Mar 15 12:01:34 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA22532
	for <smime-archive@odin.ietf.org>; Mon, 15 Mar 1999 12:01:33 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA13690
	for ietf-smime-bks; Mon, 15 Mar 1999 07:45:58 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA13686
	for <ietf-smime@imc.org>; Mon, 15 Mar 1999 07:45:57 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id KAA03684
	for <ietf-smime@imc.org>; Mon, 15 Mar 1999 10:58:17 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id KAA27654; Mon, 15 Mar 1999 10:55:37 -0500
Date: Mon, 15 Mar 1999 10:55:37 -0500
Message-Id: <199903151555.KAA27654@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John,

You stated:
>I agree with Peter, CMS should allow the extension of the Choice syntax
> i.e. in text using  the old ASN.1 rules), which gives a good pointer to the
>implementors that they should not object if the they receive an extended
>choice.

I agree that the CMS RecipientInfo CHOICE syntax could be modified in future
versions of CMS through the addition of well-defined ASN.1 syntaxes, but I
disagree that adding "..." in the current CMS RecipientInfo syntax adds any
value.  If your use of "extended choice" refers to a RecipientInfo including
a CHOICE alternative not specified in the CMS document, then I object to
your statement that implementors "should not object if the they receive an
extended choice."  Please see my previous message for the explanation of why
I object to the premise that it is straightforward for recipient software to
ignore undefined CHOICE alternatives. 

- John Pawling



From owner-ietf-smime@imc.org  Tue Mar 16 00:21:51 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA29413
	for <smime-archive@odin.ietf.org>; Tue, 16 Mar 1999 00:21:51 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id UAA23531
	for ietf-smime-bks; Mon, 15 Mar 1999 20:20:49 -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 UAA23522
	for <ietf-smime@imc.org>; Mon, 15 Mar 1999 20:20:46 -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 RAA32147; Tue, 16 Mar 1999 17:27:07 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <92155842632353>; Tue, 16 Mar 1999 17:27:06 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org, ross@secstan.com
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Tue, 16 Mar 1999 17:27:06 (NZDT)
Message-ID: <92155842632353@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"John Ross" <ross@secstan.com> writes:
 
>I also agree with John Pawling, that any extension must be controlled and
>should only be done when there is a requirement not met by the current syntax.
>As per Peter's comment, control of the choice can be achieved by the normal
>RFC process.  Also, if more control is required on S/MIME for interoperability
>reasons, the S/MIME specification (not the CMS spec) could prohibit the
>expansion of the choice unless a new version number is agreed.
 
This sounds like a good way to handle it, that way MSG can profile the stuff
specifically required for S/MIME leaving CMS able to be extended to handle
things which aren't necessarily useful for S/MIME, but are useful for other
applications (things like protection of stored data, of which PKCS #15 is a
prime example).
 
Peter.
 



From owner-ietf-smime@imc.org  Tue Mar 16 12:08:07 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA11593
	for <smime-archive@odin.ietf.org>; Tue, 16 Mar 1999 12:08:07 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA22280
	for ietf-smime-bks; Tue, 16 Mar 1999 07:28:53 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA22276
	for <ietf-smime@imc.org>; Tue, 16 Mar 1999 07:28:51 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (dial01.spyrus.com [207.212.34.121]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id HAA06021 for <ietf-smime@imc.org>; Tue, 16 Mar 1999 07:34:47 -0800 (PST)
Message-Id: <4.1.19990313171127.009d8cc0@mail.spyrus.com>
Message-Id: <4.1.19990313171127.009d8cc0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Sat, 13 Mar 1999 17:22:21 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
In-Reply-To: <4.2.0.29.19990311134917.0096df00@mail.imc.org>
References: <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 8bit

All:

I agree with Paul Hoffman.  We should proceed with CMS so that the S/MIME
v3 set of documents can become Proposed Standards.  Using the list, we can
discuss the best way to handle password-based key management.  We can do as
many Internet-Drafts as necessary to sort this out.  Once we reach
concensus, we can add the that technique to CMS when the document
progresses from Proposed Standard to Draft Standard.

Of the suggestions discussed so far, I am leaning toward the one made by
Magnus Nyström.  This seems to provide all of the capability needed for
PKCS#15.

On the other hand, the proposal made by Rich Ankney (and seconded by John
Ross) provides a open solution for new techniques are they are needed.  I
have concerns that this may not be the best solution for interoperability.
Rich can you post the ANSI X9F3 requirements for CKM?  Please start a new
thread for that topic.

Russ


At 01:53 PM 3/11/99 -0800, Paul Hoffman / IMC wrote:
>Folks:
>
>Peter has posted an Internet Draft for an addition to CMS. I think it is 
>very late for us to be adding things for which there is disagreement on how 
>to put it in. We can discuss Peter's draft and decide if we want to pass it 
>out of the working group. If we do, it can be a stand-alone RFC. If it gets 
>two independent implementations, we might fold it into the CMS RFC (if we 
>ever get there.....) when we move from Proposed Standard to Draft Standard.
>
>--Paul Hoffman, Director
>--Internet Mail Consortium


From owner-ietf-smime@imc.org  Tue Mar 16 13:29:36 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA12191
	for <smime-archive@odin.ietf.org>; Tue, 16 Mar 1999 13:29:35 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA23234
	for ietf-smime-bks; Tue, 16 Mar 1999 09:07:32 -0800 (PST)
Received: from gnasher.sol.co.uk (gnasher.sol.co.uk [194.247.65.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA23230
	for <ietf-smime@imc.org>; Tue, 16 Mar 1999 09:07:30 -0800 (PST)
Received: from jrprotable2 (e1c6p55.scotland.net [148.176.233.119])
	by gnasher.sol.co.uk (8.8.5/8.8.5) with SMTP id RAA15391;
	Tue, 16 Mar 1999 17:13:55 GMT
Message-ID: <000c01be6fd0$0e86f980$1500000a@jrprotable2>
From: "ross@secstan" <ross@secstan.com>
To: <ietf-smime@imc.org>, "John Pawling" <jsp@jgvandyke.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Tue, 16 Mar 1999 17:11:34 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

John,

If the choice includes an OID extension with an OCTET STRING, then the one
pass ASN.1 decoding strategy on the entire object works OK. Correct?

If the implementation can support an OID extension will  it need to dig
deeper into the OCTETSTRING.  Implementations that do not support any OID
extension to the choice will just ignore it,  there should be no syntax or
decoder failure.   The end result will be that envelopeData will decode
correctly.

So I favour adding the OID extension to the choice.

Regards

JR
.



-----Original Message-----
From: John Pawling <jsp@jgvandyke.com>
To: ietf-smime@imc.org <ietf-smime@imc.org>
Date: 15 March 1999 16:21
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS


>John,
>
>You stated:
>>I agree with Peter, CMS should allow the extension of the Choice syntax
>> i.e. in text using  the old ASN.1 rules), which gives a good pointer to
the
>>implementors that they should not object if the they receive an extended
>>choice.
>
>I agree that the CMS RecipientInfo CHOICE syntax could be modified in
future
>versions of CMS through the addition of well-defined ASN.1 syntaxes, but I
>disagree that adding "..." in the current CMS RecipientInfo syntax adds any
>value.  If your use of "extended choice" refers to a RecipientInfo
including
>a CHOICE alternative not specified in the CMS document, then I object to
>your statement that implementors "should not object if the they receive an
>extended choice."  Please see my previous message for the explanation of
why
>I object to the premise that it is straightforward for recipient software
to
>ignore undefined CHOICE alternatives.
>
>- John Pawling
>



From owner-ietf-smime@imc.org  Tue Mar 16 13:59:40 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA12559
	for <smime-archive@odin.ietf.org>; Tue, 16 Mar 1999 13:59:39 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA23668
	for ietf-smime-bks; Tue, 16 Mar 1999 09:43:43 -0800 (PST)
Received: from ns2.walltech.com (ns2.walltech.com [208.195.156.18])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA23664
	for <ietf-smime@imc.org>; Tue, 16 Mar 1999 09:43:42 -0800 (PST)
Received: from iris (user51.sj.dialup.innetix.com [209.172.68.114])
	by ns2.walltech.com (8.8.7/8.8.7/walltech-1.28h) with SMTP id JAA12013;
	Tue, 16 Mar 1999 09:49:55 -0800 (PST)
Message-Id: <3.0.6.32.19990316094910.007baa30@pop.walltech.com>
X-Sender: bgreenblatt@pop.walltech.com
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32)
Date: Tue, 16 Mar 1999 09:49:10 -0800
To: Russ Housley <housley@spyrus.com>, ietf-smime@imc.org
From: Bruce Greenblatt <bgreenblatt@directory-applications.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
In-Reply-To: <4.1.19990313171127.009d8cc0@mail.spyrus.com>
References: <4.2.0.29.19990311134917.0096df00@mail.imc.org>
 <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 05:22 PM 3/13/99 -0500, Russ Housley wrote:
>All:
>
>I agree with Paul Hoffman.  We should proceed with CMS so that the S/MIME
>v3 set of documents can become Proposed Standards.  Using the list, we can
>discuss the best way to handle password-based key management.  We can do as
>many Internet-Drafts as necessary to sort this out.  Once we reach
>concensus, we can add the that technique to CMS when the document
>progresses from Proposed Standard to Draft Standard.
>

I have a question about this.  Are you producing a document with a known
deficiency that you intend to correct later in the standards process?  It
appears to me that making the change that has been suggested using the
extension mechanism after it has been released as PS would likely cause CMS
to move backwards in the standards process, and not forwards.  Thus, the
whole process would be substantially delayed.  You're better off correcting
the problem now with the "..." or extension mechanism or whatever as part
of WG last call, and moving on rather than attempting to correct it later,
and then being shifted back in the standardization process...

Bruce
================================================
Bruce Greenblatt             
bgreenblatt@directory-applications.com
http://www.directory-applications.com
================================================


From owner-ietf-smime@imc.org  Tue Mar 16 14:57:37 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA13169
	for <smime-archive@odin.ietf.org>; Tue, 16 Mar 1999 14:57:37 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA24761
	for ietf-smime-bks; Tue, 16 Mar 1999 10:57:33 -0800 (PST)
Received: from smtp2.erols.com (smtp2.erols.com [207.172.3.235])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA24756
	for <ietf-smime@imc.org>; Tue, 16 Mar 1999 10:57:24 -0800 (PST)
Received: from fujitsu1.ny.certco.com (207-172-111-51.s51.tnt1.ann.va.dialup.rcn.com [207.172.111.51])
	by smtp2.erols.com (8.8.8/8.8.5) with ESMTP id OAA07595;
	Tue, 16 Mar 1999 14:08:13 -0500 (EST)
Message-Id: <199903161908.OAA07595@smtp2.erols.com>
Reply-To: <rankney@erols.com>
From: "Rich Ankney" <rankney@erols.com>
To: "ross@secstan" <ross@secstan.com>, <ietf-smime@imc.org>,
        "John Pawling" <jsp@jgvandyke.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Tue, 16 Mar 1999 14:03:58 -0500
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

I agree with this approach.  Otherwise I'd like to reserve the version
number 73, for X9.73 with CKM key management :-)

/ Rich

----------
> From: ross@secstan <ross@secstan.com>
> To: ietf-smime@imc.org; John Pawling <jsp@jgvandyke.com>
> Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
> Date: Tuesday, March 16, 1999 12:11 PM
> 
> John,
> 
> If the choice includes an OID extension with an OCTET STRING, then the
one
> pass ASN.1 decoding strategy on the entire object works OK. Correct?
> 
> If the implementation can support an OID extension will  it need to dig
> deeper into the OCTETSTRING.  Implementations that do not support any OID
> extension to the choice will just ignore it,  there should be no syntax
or
> decoder failure.   The end result will be that envelopeData will decode
> correctly.
> 
> So I favour adding the OID extension to the choice.
> 
> Regards
> 
> JR
> .
> 
> 
> 
> -----Original Message-----
> From: John Pawling <jsp@jgvandyke.com>
> To: ietf-smime@imc.org <ietf-smime@imc.org>
> Date: 15 March 1999 16:21
> Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
> 
> 
> >John,
> >
> >You stated:
> >>I agree with Peter, CMS should allow the extension of the Choice syntax
> >> i.e. in text using  the old ASN.1 rules), which gives a good pointer
to
> the
> >>implementors that they should not object if the they receive an
extended
> >>choice.
> >
> >I agree that the CMS RecipientInfo CHOICE syntax could be modified in
> future
> >versions of CMS through the addition of well-defined ASN.1 syntaxes, but
I
> >disagree that adding "..." in the current CMS RecipientInfo syntax adds
any
> >value.  If your use of "extended choice" refers to a RecipientInfo
> including
> >a CHOICE alternative not specified in the CMS document, then I object to
> >your statement that implementors "should not object if the they receive
an
> >extended choice."  Please see my previous message for the explanation of
> why
> >I object to the premise that it is straightforward for recipient
software
> to
> >ignore undefined CHOICE alternatives.
> >
> >- John Pawling
> >


From owner-ietf-smime@imc.org  Tue Mar 16 15:30:23 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA13493
	for <smime-archive@odin.ietf.org>; Tue, 16 Mar 1999 15:30:23 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA25138
	for ietf-smime-bks; Tue, 16 Mar 1999 11:29:08 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA25134
	for <ietf-smime@imc.org>; Tue, 16 Mar 1999 11:29:07 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id OAA10530;
	Tue, 16 Mar 1999 14:41:30 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id OAA13129; Tue, 16 Mar 1999 14:38:49 -0500
Date: Tue, 16 Mar 1999 14:38:49 -0500
Message-Id: <199903161938.OAA13129@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "ross@secstan" <ross@secstan.com>, <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John,

Upon further investigation, your proposal (excerpted below) does not cause
the ASN.1 decoding problems that I thought that it would.  Contrary to what
I stated in yesterday's message, I agree that your proposal would allow
general purpose ASN.1 libraries (such as SNACC) to be able to successfully
decode the RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and
keyTypeInfo OCTET STRING on the first pass.  The receiving software could
then examine the keyTypeIdentifier OID to determine if it is able to decode
the data within the keyTypeInfo OCTET STRING.  If it does not recognize the
OID, then it could skip the processing of this instance of RecipientInfo and
attempt to find another instance that it recognizes.  If it does not find a
recognized RecipientInfo CHOICE syntax that includes the recipient's
protected CEK, then the software would return an error.  

Also, Darren Harter's comment to change keyTypeInfo to an ANY will allow
general purpose ASN.1 decode libraries to be able to successfully decode the
RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and keyTypeInfo
ANY on the first pass.  I agree with Darren's comment that the receiving
software could completely decode the keyTypeInfo ANY as part of the first
pass if it recognizes the keyTypeIdentifier OID. 

> RecipientInfo ::= CHOICE {
>        ktri KeyTransRecipientInfo,
>        kari [1] KeyAgreeRecipientInfo,
>        kekri [2] KEKRecipientInfo,
>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
>management schemes }
>
>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>    keyTypeIdentifier ObjectIdentier,
>    keyTypeInfo OCTECT STRING --any defined by OID}

In summary, I agree that your proposal is technically feasible, but I am
still not sure that adding kext is the right thing to do.  This strategy
leads us to yet another S/MIME v3 spec that would define
ExternallyDefinedKeyAgreement syntaxes.  It seems that another strategy
would be to develop a new version of the base CMS document when the syntax
needs to be enhanced.  

- John Pawling



At 05:11 PM 3/16/99 -0000, ross@secstan wrote:
>John,
>
>If the choice includes an OID extension with an OCTET STRING, then the one
>pass ASN.1 decoding strategy on the entire object works OK. Correct?
>
>If the implementation can support an OID extension will  it need to dig
>deeper into the OCTETSTRING.  Implementations that do not support any OID
>extension to the choice will just ignore it,  there should be no syntax or
>decoder failure.   The end result will be that envelopeData will decode
>correctly.
>
>So I favour adding the OID extension to the choice.
>
>Regards
>
>JR
>.
>
>
>



From owner-ietf-smime@imc.org  Tue Mar 16 16:12:42 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA14209
	for <smime-archive@odin.ietf.org>; Tue, 16 Mar 1999 16:12:41 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA25519
	for ietf-smime-bks; Tue, 16 Mar 1999 12:12:40 -0800 (PST)
Received: from aum (ts010d12.min-mn.concentric.net [209.31.113.216])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA25514;
	Tue, 16 Mar 1999 12:12:30 -0800 (PST)
Message-Id: <4.2.0.25.19990316125239.00cc49e0@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.25 (Beta)
Date: Tue, 16 Mar 1999 12:56:40 -0600
To: Bruce Greenblatt <bgreenblatt@directory-applications.com>,
        Russ Housley <housley@spyrus.com>, ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
In-Reply-To: <3.0.6.32.19990316094910.007baa30@pop.walltech.com>
References: <4.1.19990313171127.009d8cc0@mail.spyrus.com>
 <4.2.0.29.19990311134917.0096df00@mail.imc.org>
 <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>


>I have a question about this.  Are you producing a document with a known
>deficiency that you intend to correct later in the standards process?

There is a difference between a deficiency and a security flaw. The desire 
for passwords was brought up very late in the process, an indication that 
there are not pressing market needs for it. It would be nice to have, but 
there are significant technical issues, and thus Peter is proposing an 
extension to CMS.

>  It
>appears to me that making the change that has been suggested using the
>extension mechanism after it has been released as PS would likely cause CMS
>to move backwards in the standards process, and not forwards.

I don't understand why. The separate proposal does not have to be bound to 
CMS. If we want to later bind it to CMS, we can postpone going from 
Proposed Standard to Draft Standard by enough months to let the extension 
catch up. Otherwise, they can independently move to Draft Standard. Both 
are quite common in the IETF.

>  Thus, the
>whole process would be substantially delayed.

Just the opposite: there is no delay at all.

>  You're better off correcting
>the problem now with the "..." or extension mechanism or whatever as part
>of WG last call, and moving on rather than attempting to correct it later,
>and then being shifted back in the standardization process...

I respectfully disagree.


--Paul Hoffman, Director
--Internet Mail Consortium


From owner-ietf-smime@imc.org  Wed Mar 17 01:06:08 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA20209
	for <smime-archive@odin.ietf.org>; Wed, 17 Mar 1999 01:06:08 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id VAA15701
	for ietf-smime-bks; Tue, 16 Mar 1999 21:19:15 -0800 (PST)
Received: from ns2.walltech.com (ns2.walltech.com [208.195.156.18])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id VAA15694
	for <ietf-smime@imc.org>; Tue, 16 Mar 1999 21:19:14 -0800 (PST)
Received: from iris (user47.sj.dialup.innetix.com [209.172.68.110])
	by ns2.walltech.com (8.8.7/8.8.7/walltech-1.28h) with SMTP id VAA01258;
	Tue, 16 Mar 1999 21:25:34 -0800 (PST)
Message-Id: <3.0.6.32.19990316212454.007bd100@pop.walltech.com>
X-Sender: bgreenblatt@pop.walltech.com
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32)
Date: Tue, 16 Mar 1999 21:24:54 -0800
To: Russ Housley <housley@spyrus.com>
From: Bruce Greenblatt <bgreenblatt@directory-applications.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: ietf-smime@imc.org
In-Reply-To: <4.1.19990317000628.009dc750@mail.spyrus.com>
References: <3.0.6.32.19990316094910.007baa30@pop.walltech.com>
 <4.1.19990313171127.009d8cc0@mail.spyrus.com>
 <4.2.0.29.19990311134917.0096df00@mail.imc.org>
 <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 12:07 AM 3/17/99 -0500, Russ Housley wrote:
>No.  The current document meets all of the original requirements.  We are
>considering an enhancement that is beyond the original charter.
>
>Russ
>

Thanks for the clarification.  As long as the enhancement to the protocol
doesn't "break" conformant implementations, I think that you and Paul are
right that the process won't be held up.  I thought that I read that an
extension mechanism was going to be put in between PS and DS that would
change the protocol in such a way that implementations that conformed to
the PS version of CMS might get confused by the DS version of the protocol.
 Obviously, this would be a bad thing.

Bruce
================================================
Bruce Greenblatt             
bgreenblatt@directory-applications.com
http://www.directory-applications.com
================================================


From owner-ietf-smime@imc.org  Wed Mar 17 01:06:47 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA20220
	for <smime-archive@odin.ietf.org>; Wed, 17 Mar 1999 01:06:47 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id VAA14548
	for ietf-smime-bks; Tue, 16 Mar 1999 21:08:46 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id VAA14542
	for <ietf-smime@imc.org>; Tue, 16 Mar 1999 21:08:45 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (dial03.spyrus.com [207.212.34.123]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id VAA23610; Tue, 16 Mar 1999 21:14:10 -0800 (PST)
Message-Id: <4.1.19990317000628.009dc750@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 17 Mar 1999 00:07:30 -0500
To: Bruce Greenblatt <bgreenblatt@directory-applications.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: ietf-smime@imc.org
In-Reply-To: <3.0.6.32.19990316094910.007baa30@pop.walltech.com>
References: <4.1.19990313171127.009d8cc0@mail.spyrus.com>
 <4.2.0.29.19990311134917.0096df00@mail.imc.org>
 <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

No.  The current document meets all of the original requirements.  We are
considering an enhancement that is beyond the original charter.

Russ

At 09:49 AM 3/16/99 -0800, Bruce Greenblatt wrote:
>At 05:22 PM 3/13/99 -0500, Russ Housley wrote:
>>All:
>>
>>I agree with Paul Hoffman.  We should proceed with CMS so that the S/MIME
>>v3 set of documents can become Proposed Standards.  Using the list, we can
>>discuss the best way to handle password-based key management.  We can do as
>>many Internet-Drafts as necessary to sort this out.  Once we reach
>>concensus, we can add the that technique to CMS when the document
>>progresses from Proposed Standard to Draft Standard.
>>
>
>I have a question about this.  Are you producing a document with a known
>deficiency that you intend to correct later in the standards process?  It
>appears to me that making the change that has been suggested using the
>extension mechanism after it has been released as PS would likely cause CMS
>to move backwards in the standards process, and not forwards.  Thus, the
>whole process would be substantially delayed.  You're better off correcting
>the problem now with the "..." or extension mechanism or whatever as part
>of WG last call, and moving on rather than attempting to correct it later,
>and then being shifted back in the standardization process...
>
>Bruce
>================================================
>Bruce Greenblatt             
>bgreenblatt@directory-applications.com
>http://www.directory-applications.com
>================================================



From owner-ietf-smime@imc.org  Wed Mar 17 04:37:53 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA27903
	for <smime-archive@odin.ietf.org>; Wed, 17 Mar 1999 04:37:53 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id AAA21269
	for ietf-smime-bks; Wed, 17 Mar 1999 00:34:36 -0800 (PST)
Received: from barbar.esat.kuleuven.ac.be (root@barbar.esat.kuleuven.ac.be [134.58.56.153])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA21263;
	Wed, 17 Mar 1999 00:34:31 -0800 (PST)
Received: from domus.esat.kuleuven.ac.be (domus.esat.kuleuven.ac.be [134.58.189.68]) by barbar (version 8.8.5)  with ESMTP
	id JAA17405; Wed, 17 Mar 1999 09:40:04 +0100 (MET)
Organization: ESAT, K.U.Leuven, Belgium
Date: Wed, 17 Mar 1999 09:40:04 +0100 (MET)
From: "CMS'99" <cms99@esat.kuleuven.ac.be>
To: cms99@esat.kuleuven.ac.be
Subject: Communications and Multimedia Security '99
Message-ID: <Pine.HPX.4.05.9903170933330.15612-100000@domus.esat.kuleuven.ac.be>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>


[Apologies if you receive this more than once]

NEW DEADLINE FOR THE CMS'99 CONFERENCE: 

April 2nd, 1999

The call for papers can be found at 
http://www.esat.kuleuven.ac.be/cosic/cms99/





From owner-ietf-smime@imc.org  Wed Mar 17 14:26:51 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA03281
	for <smime-archive@odin.ietf.org>; Wed, 17 Mar 1999 14:26:50 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA28820
	for ietf-smime-bks; Wed, 17 Mar 1999 10:14:46 -0800 (PST)
Received: from postoffice.mr.net (dialup.MR.Net [137.192.180.6])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA28816
	for <ietf-smime@imc.org>; Wed, 17 Mar 1999 10:14:36 -0800 (PST)
Received: by postoffice.mr.net (8.8.8/8.8.8) with SMTP id MAA04098
	  at Wed, 17 Mar 1999 12:21:02 -0600 (CST)
	  SMTP "HELO" = balenson.44ietf.mr.net
	  But _really_ from host167.44IETF.MR.Net [209.32.92.167]
	  SMTP "MAIL FROM" = balenson@tislabs.com
	  SMTP "RCPT TO" = 
Message-Id: <199903171821.MAA04098@postoffice.mr.net>
X-Sender: balenson@pop.hq.tis.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0
Date: Wed, 17 Mar 1999 13:20:14 -0500
To: ietf-smime@imc.org
From: "David M. Balenson" <balenson@tislabs.com>
Subject: CFP: ISOC Year 2000 Network & Distr. System Security (NDSS
  2000)
Cc: balenson@tislabs.com
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>


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


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

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


IMPORTANT DATES:

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

GOAL: 

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

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

  * Secure Electronic Commerce, e.g., payment, barter, EDI,
    notarization/timestamping, endorsement and licensing.
  * Intellectual Property Protection: protocols, schemas,
    implementations, metering, watermarking, other forms of rights
    management.
  * Implementation, deployment and management of network security
    policies.
  * Integrating Security in Internet protocols: routing, naming,
    TCP/IP, multicast, network management, and, of course, the Web.
  * Attack-resistant protocols and services.
  * Special problems and case studies: e.g. interplay and tradeoffs
    between security and efficiency, usability, reliability and cost.
  * Security for collaborative applications and services: tele- and
    video-conferencing, groupwork, etc.
  * Fundamental services: authentication, data integrity,
    confidentiality, authorization, non-repudiation, and availability.
  * Supporting mechanisms and APIs: key management and certification,
    revocation, audit trails and accountability.
  * Integrating security services with system and application security
    facilities and protocols, e.g., message handling, file
    transport/access, directories, time synchronization, data base

    management, boot services, mobile computing.
  * Security for emerging technologies -- sensor networks, specialized
    testbeds, wireless/mobile (and ad hoc) networks, personal
    communication systems, and large heterogeneous distributed systems.
  * Intrusion Avoidance, Detection, and Response: systems, experiences
    and architectures
  * Network Perimeter Controls: firewalls, packet filters, application
    gateways.

BEST PAPER AWARD:

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

GENERAL CHAIR:
  Stephen Welke, Trusted Computer Solutions

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

TUTORIAL CHAIR:
  Doug Maughan, NSA / DARPA

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

LOCAL ARRANGEMENTS CHAIR:
  Thomas Hutton, San Diego Supercomputer Center

PUBLICATIONS CHAIR:
  John Kochmar, SEI

PUBLICITY CHAIR:
  David Balenson, TIS Labs at Network Associates   

LOGISTICS CHAIR:
  Carla Rosenfeld, Internet Society

REGISTRATIONS CHAIR
  Beth Strait, Internet Society

SUBMISSIONS: 

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

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

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

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

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

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

  Each submission will be acknowledged by e-mail.  If acknowledgment
  is not received within seven days, please contact the program
  chair as indicated above.  Authors and panelists will be notified

  of acceptance by August 17, 1999.  Instructions for preparing
  camera-ready copy for the proceedings will be sent at that time.
  The camera-ready copy must be received by October 15, 1999.


----------------------------------------------------------------------
David M. Balenson, Cryptographic Technologies Group
TIS Labs at Network Associates, Inc.
3060 Washington Road, Suite 100, Glenwood, MD 21738  USA
balenson@tislabs.com; 443-259-2358; fax 301-854-4731
pgp fingerprints FD53 918E 097A 2579 C1A8  34F8 E05D E74F AC1D E184 (DSS/DH)
                 D43B 565B 2C0E 90F4  38BB D9EA 1454 3264 (RSA)



From owner-ietf-smime@imc.org  Wed Mar 17 14:47:13 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA03629
	for <smime-archive@odin.ietf.org>; Wed, 17 Mar 1999 14:47:12 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA28960
	for ietf-smime-bks; Wed, 17 Mar 1999 10:30:35 -0800 (PST)
Received: from gnasher.sol.co.uk (gnasher.sol.co.uk [194.247.64.2])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA28956
	for <ietf-smime@imc.org>; Wed, 17 Mar 1999 10:30:23 -0800 (PST)
Received: from jrprotable2 (e1c10p1.scotland.net [148.176.234.65])
	by gnasher.sol.co.uk (8.8.5/8.8.5) with SMTP id SAA22953;
	Wed, 17 Mar 1999 18:10:41 GMT
Message-ID: <002a01be70a1$259945c0$1500000a@jrprotable2>
From: "ross@secstan" <ross@secstan.com>
To: <ietf-smime@imc.org>, "John Pawling" <jsp@jgvandyke.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Wed, 17 Mar 1999 18:08:09 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Does this mean that we have come to closure on this? i.e using:
RecipientInfo ::= CHOICE {
>>        ktri KeyTransRecipientInfo,
>>        kari [1] KeyAgreeRecipientInfo,
>>        kekri [2] KEKRecipientInfo,
>>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
management schemes }
>>
>>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>>    keyTypeIdentifier ObjectIdentier,
>>    keyTypeInfo OCTECT STRING --any defined by OID}
>


-----Original Message-----
From: John Pawling <jsp@jgvandyke.com>
To: ross@secstan <ross@secstan.com>; ietf-smime@imc.org <ietf-smime@imc.org>
Date: 16 March 1999 19:50
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS


>John,
>
>Upon further investigation, your proposal (excerpted below) does not cause
>the ASN.1 decoding problems that I thought that it would.  Contrary to what
>I stated in yesterday's message, I agree that your proposal would allow
>general purpose ASN.1 libraries (such as SNACC) to be able to successfully
>decode the RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and
>keyTypeInfo OCTET STRING on the first pass.  The receiving software could
>then examine the keyTypeIdentifier OID to determine if it is able to decode
>the data within the keyTypeInfo OCTET STRING.  If it does not recognize the
>OID, then it could skip the processing of this instance of RecipientInfo
and
>attempt to find another instance that it recognizes.  If it does not find a
>recognized RecipientInfo CHOICE syntax that includes the recipient's
>protected CEK, then the software would return an error.
>
>Also, Darren Harter's comment to change keyTypeInfo to an ANY will allow
>general purpose ASN.1 decode libraries to be able to successfully decode
the
>RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and keyTypeInfo
>ANY on the first pass.  I agree with Darren's comment that the receiving
>software could completely decode the keyTypeInfo ANY as part of the first
>pass if it recognizes the keyTypeIdentifier OID.
>
>> RecipientInfo ::= CHOICE {
>>        ktri KeyTransRecipientInfo,
>>        kari [1] KeyAgreeRecipientInfo,
>>        kekri [2] KEKRecipientInfo,
>>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
>>management schemes }
>>
>>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>>    keyTypeIdentifier ObjectIdentier,
>>    keyTypeInfo OCTECT STRING --any defined by OID}
>
>In summary, I agree that your proposal is technically feasible, but I am
>still not sure that adding kext is the right thing to do.  This strategy
>leads us to yet another S/MIME v3 spec that would define
>ExternallyDefinedKeyAgreement syntaxes.  It seems that another strategy
>would be to develop a new version of the base CMS document when the syntax
>needs to be enhanced.
>
>- John Pawling
>
>
>
>At 05:11 PM 3/16/99 -0000, ross@secstan wrote:
>>John,
>>
>>If the choice includes an OID extension with an OCTET STRING, then the one
>>pass ASN.1 decoding strategy on the entire object works OK. Correct?
>>
>>If the implementation can support an OID extension will  it need to dig
>>deeper into the OCTETSTRING.  Implementations that do not support any OID
>>extension to the choice will just ignore it,  there should be no syntax or
>>decoder failure.   The end result will be that envelopeData will decode
>>correctly.
>>
>>So I favour adding the OID extension to the choice.
>>
>>Regards
>>
>>JR
>>.
>>
>>
>>
>



From owner-ietf-smime@imc.org  Wed Mar 17 19:46:51 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA07316
	for <smime-archive@odin.ietf.org>; Wed, 17 Mar 1999 19:46:50 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id PAA01722
	for ietf-smime-bks; Wed, 17 Mar 1999 15:50:12 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id PAA01718
	for <ietf-smime@imc.org>; Wed, 17 Mar 1999 15:50:11 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (dial01.spyrus.com [207.212.34.121]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id PAA12768; Wed, 17 Mar 1999 15:55:28 -0800 (PST)
Message-Id: <4.1.19990317044406.009fa710@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 17 Mar 1999 04:45:42 -0500
To: "ross@secstan" <ross@secstan.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: ietf-smime@imc.org
In-Reply-To: <002a01be70a1$259945c0$1500000a@jrprotable2>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

No.  CMS will not be modified at this time to support additional
RecipiontInfo CHOICES.  This will be addressed as a separate charter item
once the current charter is fulfilled.

Russ

At 06:08 PM 3/17/99 +0000, you wrote:
>Does this mean that we have come to closure on this? i.e using:
>RecipientInfo ::= CHOICE {
>>>        ktri KeyTransRecipientInfo,
>>>        kari [1] KeyAgreeRecipientInfo,
>>>        kekri [2] KEKRecipientInfo,
>>>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
>management schemes }
>>>
>>>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>>>    keyTypeIdentifier ObjectIdentier,
>>>    keyTypeInfo OCTECT STRING --any defined by OID}
>>
>
>
>-----Original Message-----
>From: John Pawling <jsp@jgvandyke.com>
>To: ross@secstan <ross@secstan.com>; ietf-smime@imc.org <ietf-smime@imc.org>
>Date: 16 March 1999 19:50
>Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
>
>
>>John,
>>
>>Upon further investigation, your proposal (excerpted below) does not cause
>>the ASN.1 decoding problems that I thought that it would.  Contrary to what
>>I stated in yesterday's message, I agree that your proposal would allow
>>general purpose ASN.1 libraries (such as SNACC) to be able to successfully
>>decode the RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and
>>keyTypeInfo OCTET STRING on the first pass.  The receiving software could
>>then examine the keyTypeIdentifier OID to determine if it is able to decode
>>the data within the keyTypeInfo OCTET STRING.  If it does not recognize the
>>OID, then it could skip the processing of this instance of RecipientInfo
>and
>>attempt to find another instance that it recognizes.  If it does not find a
>>recognized RecipientInfo CHOICE syntax that includes the recipient's
>>protected CEK, then the software would return an error.
>>
>>Also, Darren Harter's comment to change keyTypeInfo to an ANY will allow
>>general purpose ASN.1 decode libraries to be able to successfully decode
>the
>>RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and keyTypeInfo
>>ANY on the first pass.  I agree with Darren's comment that the receiving
>>software could completely decode the keyTypeInfo ANY as part of the first
>>pass if it recognizes the keyTypeIdentifier OID.
>>
>>> RecipientInfo ::= CHOICE {
>>>        ktri KeyTransRecipientInfo,
>>>        kari [1] KeyAgreeRecipientInfo,
>>>        kekri [2] KEKRecipientInfo,
>>>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
>>>management schemes }
>>>
>>>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>>>    keyTypeIdentifier ObjectIdentier,
>>>    keyTypeInfo OCTECT STRING --any defined by OID}
>>
>>In summary, I agree that your proposal is technically feasible, but I am
>>still not sure that adding kext is the right thing to do.  This strategy
>>leads us to yet another S/MIME v3 spec that would define
>>ExternallyDefinedKeyAgreement syntaxes.  It seems that another strategy
>>would be to develop a new version of the base CMS document when the syntax
>>needs to be enhanced.
>>
>>- John Pawling
>>
>>
>>
>>At 05:11 PM 3/16/99 -0000, ross@secstan wrote:
>>>John,
>>>
>>>If the choice includes an OID extension with an OCTET STRING, then the one
>>>pass ASN.1 decoding strategy on the entire object works OK. Correct?
>>>
>>>If the implementation can support an OID extension will  it need to dig
>>>deeper into the OCTETSTRING.  Implementations that do not support any OID
>>>extension to the choice will just ignore it,  there should be no syntax or
>>>decoder failure.   The end result will be that envelopeData will decode
>>>correctly.
>>>
>>>So I favour adding the OID extension to the choice.
>>>
>>>Regards
>>>
>>>JR
>>>.
>>>
>>>
>>>
>>
>



From owner-ietf-smime@imc.org  Thu Mar 18 17:32:03 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA27438
	for <smime-archive@odin.ietf.org>; Thu, 18 Mar 1999 17:32:02 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA10400
	for ietf-smime-bks; Thu, 18 Mar 1999 13:33:07 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA10396
	for <ietf-smime@imc.org>; Thu, 18 Mar 1999 13:33:06 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (host113.44IETF.MR.Net [209.32.92.113]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id NAA03520 for <ietf-smime@imc.org>; Thu, 18 Mar 1999 13:39:30 -0800 (PST)
Message-Id: <4.1.19990318011740.009d9970@mail.spyrus.com>
Message-Id: <4.1.19990318011740.009d9970@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 18 Mar 1999 01:18:49 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Reminder to presentors
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Presentors:

Please send me powerpoint files containing your slides for the IETF minutes.

Russ


From owner-ietf-smime@imc.org  Thu Mar 18 22:39:10 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA01962
	for <smime-archive@odin.ietf.org>; Thu, 18 Mar 1999 22:39:09 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id SAA13592
	for ietf-smime-bks; Thu, 18 Mar 1999 18:45:12 -0800 (PST)
Received: from aum (host204.44IETF.MR.Net [209.32.92.204])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA13587;
	Thu, 18 Mar 1999 18:45:09 -0800 (PST)
Message-Id: <4.2.0.25.19990318205019.00989e30@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.25 (Beta)
Date: Thu, 18 Mar 1999 20:51:51 -0600
To: Russ Housley <housley@spyrus.com>, ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: Reminder to presentors
In-Reply-To: <4.1.19990318011740.009d9970@mail.spyrus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 01:18 AM 3/18/99 -0500, Russ Housley wrote:
>Presentors:
>
>Please send me powerpoint files containing your slides for the IETF minutes.

Unfortunately, I think Blake walked off with my slide. Or maybe Russ did....

--Paul Hoffman, Director
--Internet Mail Consortium


From owner-ietf-smime@imc.org  Sun Mar 21 12:57:56 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA03123
	for <smime-archive@odin.ietf.org>; Sun, 21 Mar 1999 12:57:55 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA18938
	for ietf-smime-bks; Sun, 21 Mar 1999 09:03:58 -0800 (PST)
Received: from bradley.bradley.edu (root@bradley.bradley.edu [136.176.5.10])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id JAA18905;
	Sun, 21 Mar 1999 09:03:09 -0800 (PST)
Received: from Sports (npuntarenas1-a25.racsa.co.cr [196.40.11.154]) by bradley.bradley.edu (8.6.12/8.6.12) with SMTP id KAA16175; Sun, 21 Mar 1999 10:56:07 -0600
Message-Id: <199903211656.KAA16175@bradley.bradley.edu>
Date: Sun, 21 Mar 99 10:50:43 EST
From: "Sports" <Sports@07003.com>
To: Friend@public.com
Subject: Sports
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

BASEBALL & BASKETBALL SEASON PROMOTIONS

We give you a 10% bonus on your initial deposit (minimum $500 deposit -
$50 minimum bet - no maximum.) Though Western Union cash only.

We give you a FREE SPORTS PAGER
(It has injury reports, scores, weather and everything you need to know)
with $1000 or more or get the 10% bonus.

15% Match play for Friend Referral.

20% Match play on your losses every 6 months!

THAT'S 45% BONUSES JUST FOR YOU !!

1-800-973-1514 ext. 7373

Great off shore sports book that really pays out if you win!



From owner-ietf-smime@imc.org  Mon Mar 22 15:28:53 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA28121
	for <smime-archive@odin.ietf.org>; Mon, 22 Mar 1999 15:28:52 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA03424
	for ietf-smime-bks; Mon, 22 Mar 1999 11:21:47 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA03420
	for <ietf-smime@imc.org>; Mon, 22 Mar 1999 11:21:46 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id LAA20235; Mon, 22 Mar 1999 11:28:16 -0800 (PST)
Message-Id: <4.1.19990321235711.00a03620@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 22 Mar 1999 00:16:56 -0500
To: Eric Rescorla <ekr@rtfm.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Updated draft
Cc: ietf-smime@imc.org
In-Reply-To: <199903211609.IAA20970@speedy.rtfm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Eric:

I have a few comments.  Most are nit-picks.

Russ


= = = = = = = = = = 


>Abstract
>
>   This document standardizes one particular Diffie-Hellman variant,
>   based on the ANSI X9.42 draft, developed by the ANSI X9F1 working
>   group. Diffie-Hellman is a key agreement algorithm used by two par-
>   ties to agree on a shared secret. An algorithm for converting the
>   shared secret into an arbitrary amount of keying material is pro-
>   vided. The resulting keying material is used as a symmetric encryp-
>   tion key.  The D-H variant described requires the recipient to have a
>   certificate, but the originator may have a static key pair (with the
>   public key placed in a certificate) or an ephemeral key pair.

This is the only place you use the D-H abbreviation.  Please spell it out.

>2.1.  Key Agreement
>
>   The first stage of the key agreement process is to compute a shared
>   secret number, called ZZ.  When the same originator and recipient
>   public/private key pairs are used, the same ZZ value will result.
>   The ZZ value is then converted into a shared symmetric cryptographic
>   key. When the originator employs a static private/public key pair,
>   the introduction of public random values are used to ensure that the
>   resulting symmetric key will be different for each key agreement.

Please replace the last sentence.  Since onlt partyAInfo is supported, only
one public random can be used:
	When the originator employs a static private/public key pair,
	the introduction of a public random value ensures that the
	resulting symmetric key will be different for each key agreement.


>2.1.1.  Generation of ZZ
>
>   X9.42 defines that the shared secret ZZ is generated as follows:
>
>           ZZ = g ^ (xb * xa) mod p
>
>   Note that the individual parties actually perform the computations:
>
>           ZZ = yb ^ xa    (mod p) = ya ^ xb  mod p

Please pick one notation.  I think this is the only place "(mod p)" is
used.  My preference is:
	ZZ = (yb ^ xa) mod p = (ya ^ xb) mod p

>
>   where ^ denotes exponentiation
>         ya is party a's public key; ya = g ^ xa mod p
>         yb is party b's public key; yb = g ^ xb mod p
>         xa is party a's private key
>         xb is party b's private key
>         p is a large prime
>         q is a large prime
>         g = h^{(p-1)/q} mod p, where
>         h is any integer with 1 < h < p-1 such that h{(p-1)/q} mod p > 1
>           (g has order q mod p; i.e. g^q mod p = 1 if g!=1)
>         j a large integer such that p=qj + 1
>         (See Section 2.2 for criteria for keys and parameters)
>
>   In [CMS], the recipient's key is identified by the CMS RecipientIden-
>   tifier, which points to the recipient's certificate.  The sender's
>   key is identified using the OriginatorIdentifierOrKey field, either
>   by reference to the sender's certificate or by inline inclusion of a
>   key.

Please change "key" to "public key" in the last sentence.


>2.1.2.  Generation of Keying Material
>
>   [snip]
>   Note that these ASN.1 definitions use EXPLICIT tagging. (In ASN.1,
>   EXPLICIT tagging is implicit unless IMPLICIT is explicitly speci-
>   fied.)

Please move this note right before or right after the ASN.1.

>   To generate a KEK, one generates one or more KM blocks (incrementing
>   counter appropriately) until enough material has been generated.  The
>   KM blocks are concatenated left to right in the obvious order.  I.e.
>   KM(counter=1) || KM(counter=2)...

I think that "obvious order" is asking for trouble.  You are better off
deleting the phrase if you cannot think of a better way to say it.

>2.1.4.  Keylengths for common algorithms
>
>   Some common key encryption algorithms have KEKs of the following
>   lengths.
>
>           3DES-EDE-ECB    192 bits
>           RC2-128         128 bits
>           RC2-40          40 bits

Please change "3DES-EDE-ECB" to "3-key 3DES".  The mode does not determine
key lenght, but the number of keys does.  You might want to include "2-key
3DES" to make this clear.

>2.1.6.  Example 1
>
>
>   ZZ is the 20 bytes 00 01 02 03 04 05 06 07 08 09
>                      0a 0b 0c 0d 0e 0f 10 11 12 13
>
>   The key wrap algorithm is 3DES-EDE wrap.
>
>   No partyAInfo is used

Please add missing period.

>Acknowledgements
>
>   The Key Agreement method described in this document is based on work
>   done by the ANSI X9F1 working group. The author wishes to extend his
>   thanks for their assistance.
>
>   The author also wishes to thank Burt Kaliski, Paul Hoffman, Stephen
>   Henson, Russ Housley, Brian Korver, John Linn, Jim Schaad, Mark
>   Schertler, Peter Yee, and Robert Zuccherato for their expert advice
>   and review.

You may wish to use alphabetical order here.

>   [PKIX] Housley, R., Ford, W., Polk, W., Solo, D., "Internet X.509 Public
>       Key Infrastructure Certificate and CRL Profile", RFC-XXXX.

RFC 2459.  Also, add date.




From owner-ietf-smime@imc.org  Tue Mar 23 13:35:52 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA24513
	for <smime-archive@odin.ietf.org>; Tue, 23 Mar 1999 13:35:51 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id JAA11661
	for ietf-smime-bks; Tue, 23 Mar 1999 09:23:12 -0800 (PST)
Received: from aum (ip11.proper.com [165.227.249.11])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA11657
	for <ietf-smime@imc.org>; Tue, 23 Mar 1999 09:23:10 -0800 (PST)
Message-Id: <4.2.0.32.19990323092427.00cdf3c0@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.32 (Beta)
Date: Tue, 23 Mar 1999 09:28:38 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Proposed changes to the -msg draft
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Greetings again. As was discussed in Minneapolis, I propose two small but 
significant changes to the -msg draft. There was pretty strong agreement in 
the room at the time, but I'm open to feedback from the list.

I propose that the following statement should be added to Section 2.2:

Note that S/MIME v2 clients are only capable of verifying digital 
signatures using the rsaEncryption algorithm.

I also propose that the following statement should be added to Sec 2.3:

Note that S/MIME v2 clients are only capable of decrypting content 
encryption keys using the rsaEncryption algorithm.

Both sentences reflect reality, not politics. However, I think it's 
important to add them because a naive developer who picks up the S/MIME v3 
spec might miss the fact that their implementation won't interoperate with 
v2 implementations unless they add (if they can) rsaEncryption.

--Paul Hoffman, Director
--Internet Mail Consortium


From owner-ietf-smime@imc.org  Tue Mar 23 14:38:34 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA25439
	for <smime-archive@odin.ietf.org>; Tue, 23 Mar 1999 14:38:33 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id KAA12521
	for ietf-smime-bks; Tue, 23 Mar 1999 10:42:21 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA12516
	for <ietf-smime@imc.org>; Tue, 23 Mar 1999 10:42:14 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id NAA20509
	for <ietf-smime@imc.org>; Tue, 23 Mar 1999 13:55:17 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id NAA06673; Tue, 23 Mar 1999 13:52:30 -0500
Date: Tue, 23 Mar 1999 13:52:30 -0500
Message-Id: <199903231852.NAA06673@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: Proposed changes to the -msg draft
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,
I concur with Paul's proposed text.
- John Pawling



From owner-ietf-smime@imc.org  Tue Mar 23 15:41:37 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA26577
	for <smime-archive@odin.ietf.org>; Tue, 23 Mar 1999 15:41:36 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA12957
	for ietf-smime-bks; Tue, 23 Mar 1999 11:36:34 -0800 (PST)
Received: from dylithium.adga.ca (dylithium.adga.ca [207.112.67.34])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA12952;
	Tue, 23 Mar 1999 11:36:32 -0800 (PST)
Received: from xfile ([207.112.70.165])
	by dylithium.adga.ca (980427.SGI.8.8.8/8.8.8-ajr) with SMTP id OAA00061;
	Tue, 23 Mar 1999 14:42:03 -0500 (EST)
Message-Id: <3.0.1.32.19990323144254.00a20ac0@adga.ca>
X-Sender: frousseau@adga.ca
X-Mailer: Windows Eudora Pro Version 3.0.1 (32)
Date: Tue, 23 Mar 1999 14:42:54 -0500
To: Paul Hoffman / IMC <phoffman@imc.org>
From: Francois Rousseau <f.rousseau@adga.ca>
Subject: Re: Proposed changes to the -msg draft
Cc: ietf-smime@imc.org
In-Reply-To: <4.2.0.32.19990323092427.00cdf3c0@mail.imc.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Paul,

I concur with the proposed changes, but I would suggest that the two
statements be made consistent with the terminology currently used in the
-MSG draft. See below.

Francois Rousseau
AEPOS Technologies

At 09:28 AM 23/03/99 -0800, Paul Hoffman / IMC wrote:
>Greetings again. As was discussed in Minneapolis, I propose two small but 
>significant changes to the -msg draft. There was pretty strong agreement in 
>the room at the time, but I'm open to feedback from the list.
>
>I propose that the following statement should be added to Section 2.2:
>
>Note that S/MIME v2 clients are only capable of verifying digital 
>signatures using the rsaEncryption algorithm.
>

I suggest it should read:

Note that S/MIME version 2 receiving agents are only capable of verifying
digital signatures using the rsaEncryption algorithm.

>I also propose that the following statement should be added to Sec 2.3:
>
>Note that S/MIME v2 clients are only capable of decrypting content 
>encryption keys using the rsaEncryption algorithm.
>

I suggest it should read:

Note that S/MIME version 2 receiving agents are only capable of decrypting
content encryption keys using the rsaEncryption algorithm.

>Both sentences reflect reality, not politics. However, I think it's 
>important to add them because a naive developer who picks up the S/MIME v3 
>spec might miss the fact that their implementation won't interoperate with 
>v2 implementations unless they add (if they can) rsaEncryption.
>
>--Paul Hoffman, Director
>--Internet Mail Consortium
>
>


From owner-ietf-smime@imc.org  Tue Mar 23 18:03:36 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA29504
	for <smime-archive@odin.ietf.org>; Tue, 23 Mar 1999 18:03:35 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA14357
	for ietf-smime-bks; Tue, 23 Mar 1999 14:04:33 -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 OAA14352
	for <ietf-smime@imc.org>; Tue, 23 Mar 1999 14:04:32 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA27847;
	Tue, 23 Mar 1999 17:11:06 -0500 (EST)
Message-Id: <199903232211.RAA27847@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-x942-06.txt
Date: Tue, 23 Mar 1999 17:11:05 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

Note: This revision reflects comments received during the last call period.

	Title		: Diffie-Hellman Key Agreement Method
	Author(s)	: E. Rescorla
	Filename	: draft-ietf-smime-x942-06.txt
	Pages		: 13
	Date		: 22-Mar-99
	
   This document standardizes one particular Diffie-Hellman variant,
   based on the ANSI X9.42 draft, developed by the ANSI X9F1 working
   group. Diffie-Hellman is a key agreement algorithm used by two par-
   ties to agree on a shared secret. An algorithm for converting the
   shared secret into an arbitrary amount of keying material is pro-
   vided. The resulting keying material is used as a symmetric encryp-
   tion key.  The D-H variant described requires the recipient to have a
   certificate, but the originator may have a static key pair (with the
   public key placed in a certificate) or an ephemeral key pair.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-x942-06.txt

Internet-Drafts are also 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-ietf-smime-x942-06.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-x942-06.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:	<19990322172152.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-x942-06.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-x942-06.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Tue Mar 23 18:06:29 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA29695
	for <smime-archive@odin.ietf.org>; Tue, 23 Mar 1999 18:06:28 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA14390
	for ietf-smime-bks; Tue, 23 Mar 1999 14:07:55 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA14386
	for <ietf-smime@imc.org>; Tue, 23 Mar 1999 14:07:54 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id OAA16862 for <ietf-smime@imc.org>; Tue, 23 Mar 1999 14:14:30 -0800 (PST)
Message-Id: <4.1.19990323030127.00a12b30@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Tue, 23 Mar 1999 03:02:50 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: CERTDIST-03 Working Group Last Call
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message announces the begining of S/MIME Working Group Last call on
the CERTDIST document.  I expect Last Call to close in two weeks unless
significant issues are raised.

Russ



From owner-ietf-smime@imc.org  Tue Mar 23 20:54:02 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA05777
	for <smime-archive@odin.ietf.org>; Tue, 23 Mar 1999 20:54:02 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id RAA16081
	for ietf-smime-bks; Tue, 23 Mar 1999 17:00:11 -0800 (PST)
Received: from aum (ip11.proper.com [165.227.249.11])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA16077
	for <ietf-smime@imc.org>; Tue, 23 Mar 1999 17:00:10 -0800 (PST)
Message-Id: <4.2.0.32.19990323165014.00a47f00@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.32 (Beta)
Date: Tue, 23 Mar 1999 17:04:47 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Changes in CMS examples -00
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Greetings again. After talking to Blake Ramsdell and Jim Schaad, the two 
people who are probably going to generate the initial keys and certs for 
the -examples draft, we changed things a bit from the -00 draft. I thought 
I would put the changes on the list to generate some more thinking about 
the content of the draft itself.

In section 6.2, we removed the keys that were used in just that example.

In section 3.2, we added keys for Eve for examples of sharing D-H, and we 
made Diane's RSA key for both signing and encrypting.

In section 3.3, we added a cert for Eve, gave Diane a new RSA cert and a 
new DSS cert, had Alison not inherit her parameters from Carl, and made 
Diane inherit her DSS parameters from Carl.

Got all that? I'll be adding comments to the Base64 in the draft so you 
don't have to just read the names. Here's the text that will most likely be 
in -01.

3.2 Keys

The following keys are needed to create the samples. Note that 
BobPubDHEncrypt and DianePubDHEncrypt do *not* share Diffie-Hellman 
parameters; however, Bob and Eve share Diffie-Hellman parameters. (A joke 
about "safe sets" comes to mind, but is elided.)

AlicePrivDSSSign = XXXXX
AlicePrivRSASign = XXXXX
AlicePubDSSSign = XXXXX
AlicePubRSASign = XXXXX
BobPrivDHEncrypt = XXXXX
BobPrivRSAEncrypt = XXXXX
BobPubDHEncrypt = XXXXX
BobPubRSAEncrypt = XXXXX
CarlPrivDSSSign = XXXXX
CarlPrivRSASign = XXXXX
CarlPubDSSSign = XXXXX
CarlPubRSASign = XXXXX
DianePubDSSSign = XXXXX
DianePubRSASignEncrypt = XXXXX
DianePubDHEncrypt = XXXXX
EvePubDHEncryptBobParam = XXXXX
EvePrivDHEncryptBobParam = XXXXX
MailListTripleDES = XXXXX
MailListRC2 = XXXXX

3.3 Certificates

AliceDSSSignByCarlNoInherit = XXXXX
AliceRSASignByCarl = XXXXX
BobDHEncryptByCarl =  XXXXX
CarlDSSSelf = XXXXX
CarlRSASelf = XXXXX
DianeDSSSignByCarlInherit = XXXXX
DianeDHEncryptByCarl = XXXXX
DianeRSASignEncryptByCarl = XXXXX
EveDHEncryptByCarl = XXXXX



--Paul Hoffman, Director
--Internet Mail Consortium


From owner-ietf-smime@imc.org  Wed Mar 24 11:35:47 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA24971
	for <smime-archive@odin.ietf.org>; Wed, 24 Mar 1999 11:35:46 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id HAA19922
	for ietf-smime-bks; Wed, 24 Mar 1999 07:17:57 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA19918
	for <ietf-smime@imc.org>; Wed, 24 Mar 1999 07:17:55 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id KAA28582
	for <ietf-smime@imc.org>; Wed, 24 Mar 1999 10:31:08 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id KAA16676; Wed, 24 Mar 1999 10:28:22 -0500
Date: Wed, 24 Mar 1999 10:28:22 -0500
Message-Id: <199903241528.KAA16676@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: x942-06 Comment
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

The 22-Mar-99 Diffie-Hellman Key Agreement Method I-D (x942-06), Section
2.1.2 includes the following text regarding the KeySpecificInfo algorithm
field:  "algorithm is the ASN.1 algorithm OID of the MEK wrapping algorithm
with which this KEK will be used."  Recommend that "MEK" should be changed
to "CEK" in the above text because "MEK" is not defined/used in the S/MIME
v3 set of specs

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================



From owner-ietf-smime@imc.org  Wed Mar 24 18:26:47 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA04337
	for <smime-archive@odin.ietf.org>; Wed, 24 Mar 1999 18:26:46 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA24424
	for ietf-smime-bks; Wed, 24 Mar 1999 13:59:11 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA24419
	for <ietf-smime@imc.org>; Wed, 24 Mar 1999 13:59:10 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id OAA08976; Wed, 24 Mar 1999 14:05:17 -0800 (PST)
Message-Id: <4.1.19990324020428.00a0c100@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 24 Mar 1999 02:04:34 -0500
To: jsp@jgvandyke.com (John Pawling)
From: Russ Housley <housley@spyrus.com>
Subject: Re: x942-06 Comment
Cc: ietf-smime@imc.org
In-Reply-To: <199903241528.KAA16676@ajsn101.jgvandyke.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Agree.


At 10:28 AM 3/24/99 -0500, John Pawling wrote:
>All,
>
>The 22-Mar-99 Diffie-Hellman Key Agreement Method I-D (x942-06), Section
>2.1.2 includes the following text regarding the KeySpecificInfo algorithm
>field:  "algorithm is the ASN.1 algorithm OID of the MEK wrapping algorithm
>with which this KEK will be used."  Recommend that "MEK" should be changed
>to "CEK" in the above text because "MEK" is not defined/used in the S/MIME
>v3 set of specs
>
>=========================================================
>John Pawling,  Director - Systems Engineering
>J.G. Van Dyke & Associates, Inc., a Wang Global Company
>=========================================================
>



From owner-ietf-smime@imc.org  Fri Mar 26 13:03:47 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA29302
	for <smime-archive@odin.ietf.org>; Fri, 26 Mar 1999 13:03:46 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA15788
	for ietf-smime-bks; Fri, 26 Mar 1999 08:58:53 -0800 (PST)
Received: from broncho.ucok.edu (broncho.ucok.edu [192.206.65.10])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA15763;
	Fri, 26 Mar 1999 08:58:35 -0800 (PST)
Received: from england.com ([196.40.0.38]) by broncho.ucok.edu (AIX4.2/UCB 8.7/8.7) with SMTP id KAA41558; Fri, 26 Mar 1999 10:41:22 -0600 (CST)
Message-Id: <199903261641.KAA41558@broncho.ucok.edu>
Date: Sat, 27 Mar 99 00:03:49 EST
From: "mora@england.com" <mora@26601.com>
To: Friend@public.com
Subject: STOCKS ON THE MOVE!
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

PDC Innovative Industries Inc. (Symbol PDCI), OTC Boulletin Board is
prepared for a big move saids stock market analysts. Recently reverse
split 40 for 1 currently trading at 4 Dollars per share. If the stock hits
pre split level the price could easily hit 10 to 12 Dollars per share. PDCI
recently announces major news concerning production and sales
projections. Medical Stock Analyst see PDC's steri-pro invention as mayor
winner. For more info check Dow Jones Historical news.



From owner-ietf-smime@imc.org  Fri Mar 26 16:17:19 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA02078
	for <smime-archive@odin.ietf.org>; Fri, 26 Mar 1999 16:17:18 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id LAA19477
	for ietf-smime-bks; Fri, 26 Mar 1999 11:39:40 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA19473
	for <ietf-smime@imc.org>; Fri, 26 Mar 1999 11:39:39 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id LAA18031; Fri, 26 Mar 1999 11:46:18 -0800 (PST)
Message-Id: <4.1.19990326002405.00a16190@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Fri, 26 Mar 1999 00:29:18 -0500
To: Francois Rousseau <f.rousseau@adga.ca>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Comment on CMS-11 (Temporary Version)
Cc: ietf-smime@imc.org
In-Reply-To: <3.0.1.32.19990310132538.00a0ccd0@adga.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Francois:

Thanks for catching the long stangins omission.  Please make sure that I got
all of the places (see below).

Russ



>Russ,
>
>I had not noticed this one before but throughout Sections 12.3 various
>things (e.g. key agreement algorithm identifiers, key transport algorithm
>identifiers, key wrap algorithm identifiers, etc.) are referred as being
>located or used from the "EnvelopedData RecipientInfo...", however they
>could also be located or used from the "AuthenticatedData RecipientInfo..."
>
>Francois Rousseau
>AEPOS Technologies

= = = = = = = = = = = 

12.3  Key Management Algorithms

CMS accommodates three general key management techniques: key agreement, key
transport, and previously distributed symmetric key-encryption keys.

12.3.1  Key Agreement Algorithms

CMS implementations must include key agreement using X9.42 Ephemeral-Static
Diffie-Hellman.

Any symmetric encryption algorithm that a CMS implementation includes as a
content-encryption algorithm must also be included as a key-encryption
algorithm.  CMS implementations must include key agreement of Triple-DES
pairwise key-encryption keys and Triple-DES wrapping of Triple-DES
content-encryption keys.  CMS implementations should include key agreement of
RC2 pairwise key-encryption keys and RC2 wrapping of RC2 content-encryption
keys.  The key wrap algorithm for Triple-DES and RC2 is described in section
12.3.3.

A CMS implementation may support mixed key-encryption and content-encryption
algorithms.  For example, a 128-bit RC2 content-encryption key may be wrapped
with 168-bit Triple-DES key-encryption key.  Similarly, a 40-bit RC2
content-encryption key may be wrapped with 128-bit RC2 key-encryption key.

For key agreement of RC2 key-encryption keys, 128 bits must be generated as
input to the key expansion process used to compute the RC2 effective key [RC2].

Key agreement algorithm identifiers are located in the EnvelopedData
RecipientInfo KeyAgreeRecipientInfo keyEncryptionAlgorithm and
AuthenticatedData RecipientInfo KeyAgreeRecipientInfo keyEncryptionAlgorithm
fields.

Key wrap algorithm identifiers are located in the KeyWrapAlgorithm parameters
within the EnvelopedData RecipientInfo KeyAgreeRecipientInfo
keyEncryptionAlgorithm and AuthenticatedData RecipientInfo
KeyAgreeRecipientInfo keyEncryptionAlgorithm fields.

Wrapped content-encryption keys are located in the EnvelopedData RecipientInfo
KeyAgreeRecipientInfo recipientEncryptedKeys encryptedKey and AuthenticatedData
RecipientInfo KeyAgreeRecipientInfo recipientEncryptedKeys encryptedKey fields.

12.3.1.1  X9.42 Ephemeral-Static Diffie-Hellman

Ephemeral-Static Diffie-Hellman key agreement is defined in RFC TBD1
[DH-X9.42].  When using Ephemeral-Static Diffie-Hellman, the EnvelopedData
RecipientInfo KeyAgreeRecipientInfo and AuthenticatedData RecipientInfo
KeyAgreeRecipientInfo fields are used as follows:

version must be 3.

originator must be the originatorKey alternative.  The originatorKey algorithm
fields must contain the dh-public-number object identifier with absent
parameters.  The originatorKey publicKey field must contain the sender's
ephemeral public key.  The dh-public-number object identifier is:

   dh-public-number OBJECT IDENTIFIER ::= { iso(1) member-body(2)
       us(840) ansi-x942(10046) number-type(2) 1 }

ukm may be absent.  When present, the ukm is used to ensure that a different
key-encryption key is generated when the ephemeral private key might be used
more than once.

keyEncryptionAlgorithm must be the id-alg-ESDH algorithm identifier.  The
algorithm identifier parameter field for id-alg-ESDH is KeyWrapAlgorihtm, and
this parameter must be present.  The KeyWrapAlgorithm denotes the symmetric
encryption algorithm used to encrypt the content-encryption key with the
pairwise key-encryption key generated using the Ephemeral-Static Diffie-Hellman
key agreement algorithm.  Triple-DES and RC2 key wrap algorithms are discussed
in section 12.3.3.  The id-alg-ESDH algorithm
identifier and parameter syntax is:

   id-alg-ESDH OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840)
       rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 5 }

   KeyWrapAlgorithm ::= AlgorithmIdentifier

recipientEncryptedKeys contains an identifier and an encrypted key for each
recipient.  The RecipientEncryptedKey KeyAgreeRecipientIdentifier must contain
either the issuerAndSerialNumber identifying the recipient's certificate or the
RecipientKeyIdentifier containing the subject key identifier from the
recipient's certificate.  In both cases, the recipient's certificate contains
the recipient's static public key.  RecipientEncryptedKey EncryptedKey must
contain the content-encryption key encrypted with the Ephemeral-Static
Diffie-Hellman generated pairwise key-encryption key using the algorithm
specified by the KeyWrapAlgortihm.

12.3.2  Key Transport Algorithms

CMS implementations should include key transport using RSA.  RSA
implementations must include key transport of Triple-DES content-encryption
keys.  RSA implementations should include key transport of RC2
content-encryption keys.

Key transport algorithm identifiers are located in the EnvelopedData
RecipientInfo KeyTransRecipientInfo keyEncryptionAlgorithm and
AuthenticatedData RecipientInfo KeyTransRecipientInfo keyEncryptionAlgorithm
fields.

Key transport encrypted content-encryption keys are located in the
EnvelopedData RecipientInfo KeyTransRecipientInfo EncryptedKey and
AuthenticatedData RecipientInfo KeyTransRecipientInfo EncryptedKey fields.

12.3.2.1  RSA

The RSA key transport algorithm is the RSA encryption scheme defined in RFC
2313 [PKCS#1], block type is 02, where the message to be encrypted is the
content-encryption key.  The algorithm identifier for RSA is:

   rsaEncryption OBJECT IDENTIFIER ::= { iso(1) member-body(2)
       us(840) rsadsi(113549) pkcs(1) pkcs-1(1) 1 }

The AlgorithmIdentifier parameters field must be present, and the parameters
field must contain NULL.

When using a Triple-DES content-encryption key, adjust the parity bits for each
DES key comprising the Triple-DES key prior to RSA encryption.

The use of RSA encryption, as defined in RFC 2313 [PKCS#1], to provide
confidentiality has a known vulnerability concerns.  The vulnerability is
primarily relevant to usage in interactive applications rather than to
store-and-forward environments.  Further information and proposed
countermeasures are discussed in the Security Considerations section of this
document.

Note that the same encryption scheme is also defined in RFC 2437 [NEWPKCS#1]. 
Within RFC 2437, this scheme is called RSAES-PKCS1-v1_5.

12.3.3  Symmetric Key-Encryption Key Algorithms

CMS implementations may include symmetric key-encryption key management.  Such
CMS implementations must include Triple-DES key-encryption keys wrapping
Triple-DES content-encryption keys, and such CMS implementations should include
RC2 key-encryption keys wrapping RC2 content-encryption keys.  A CMS
implementation may support mixed key-encryption and content-encryption
algorithms.  For example, a 40-bit RC2 content-encryption key may be wrapped
with 168-bit Triple-DES key-encryption key or with a 128-bit RC2 key-encryption
key.
 
Key wrap algorithm identifiers are located in the EnvelopedData RecipientInfo
KEKRecipientInfo keyEncryptionAlgorithm and AuthenticatedData RecipientInfo
KEKRecipientInfo keyEncryptionAlgorithm fields.

Wrapped content-encryption keys are located in the EnvelopedData RecipientInfo
KEKRecipientInfo encryptedKey and AuthenticatedData RecipientInfo
KEKRecipientInfo encryptedKey fields.

The output of a key agreement algorithm is a key-encryption key, and this
key-encryption key is used to encrypt the content-encryption key.  In
conjunction with key agreement algorithms, CMS implementations must include
encryption of content-encryption keys with the pairwise key-encryption key
generated using a key agreement algorithm.  To support key agreement, key wrap
algorithm identifiers are located in the KeyWrapAlgorithm parameter of the
EnvelopedData RecipientInfo KeyAgreeRecipientInfo keyEncryptionAlgorithm and
AuthenticatedData RecipientInfo KeyAgreeRecipientInfo keyEncryptionAlgorithm
fields, and wrapped content-encryption keys are located in the EnvelopedData
RecipientInfo KeyAgreeRecipientInfo recipientEncryptedKeys encryptedKey and
AuthenticatedData RecipientInfo KeyAgreeRecipientInfo recipientEncryptedKeys
encryptedKey fields.

12.3.3.1  Triple-DES Key Wrap

Triple-DES key encryption has the algorithm identifier:

   id-alg-CMS3DESwrap OBJECT IDENTIFIER ::= { iso(1) member-body(2)
       us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 6 }

The AlgorithmIdentifier parameter field must be NULL.

The key wrap algorithm used to encrypt a Triple-DES content-encryption key with
a Triple-DES key-encryption key is specified in section 12.6.

Out-of-band distribution of the Triple-DES key-encryption key used to encrypt
the Triple-DES content-encryption key is beyond of the scope of this document.

12.3.3.2  RC2 Key Wrap

RC2 key encryption has the algorithm identifier:

   id-alg-CMSRC2wrap OBJECT IDENTIFIER ::= { iso(1) member-body(2)
       us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 7 }

The AlgorithmIdentifier parameter field must be RC2wrapParameter:

   RC2wrapParameter ::= RC2ParameterVersion

   RC2ParameterVersion ::= INTEGER

The RC2 effective-key-bits (key size) greater than 32 and less than 256 is
encoded in the RC2ParameterVersion.  For the effective-key-bits of 40, 64, and
128, the rc2ParameterVersion values are 160, 120, and 58 respectively.  These
values are not simply the RC2 key length.  Note that the value 160 must be
encoded as two octets (00 A0), because the one octet (A0) encoding represents a
negative number.

The key wrap algorithm used to encrypt a RC2 content-encryption key with a RC2
key-encryption key is specified in section 12.6.

Out-of-band distribution of the RC2 key-encryption key used to encrypt the RC2
content-encryption key is beyond of the scope of this document.



From owner-ietf-smime@imc.org  Fri Mar 26 18:56:02 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA06942
	for <smime-archive@odin.ietf.org>; Fri, 26 Mar 1999 18:56:01 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA21102
	for ietf-smime-bks; Fri, 26 Mar 1999 14:50:45 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA21098
	for <ietf-smime@imc.org>; Fri, 26 Mar 1999 14:50:43 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101])
	by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id SAA09153
	for <ietf-smime@imc.org>; Fri, 26 Mar 1999 18:04:09 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4)
	id SAA29730; Fri, 26 Mar 1999 18:01:23 -0500
Date: Fri, 26 Mar 1999 18:01:23 -0500
Message-Id: <199903262301.SAA29730@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: 3/17/99 S/MIME WG Mtg Minutes
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

This message includes the minutes of the IETF S/MIME Working Group 
(WG) meeting held on 17 March 1999 in Minneapolis, MN, USA. These 
minutes were coordinated with the briefing presenters.  All briefing 
slides are stored at: ftp://ftp.ietf.org/ietf/smime/.  Reported by
John Pawling.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Introductions - Russ Housley
 
Russ reviewed the agenda.  Nobody objected to the agenda.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

CMS Draft Discussion - Russ Housley

Russ presented the status of the February 1999 Cryptographic Message 
Syntax (CMS-11) Internet-Draft (I-D).  CMS-11 is in IETF Last Call.  
The majority of the comments received since the last meeting have 
focused on Section 12. (This is the section on algorithms and key 
wrapping support.)  CMS-11 includes new key wrap algorithms that 
resolve the issues raised on the S/MIME WG mail list regarding 
possible cryptographic vulnerabilities such as Burt Kaliski's comments 
regarding the "birthday attack". The completion of CMS depends on the 
Diffie-Hellman (D-H) Key Agreement Method I-D (X9.42 I-D).

Russ reviewed the highlights of the CMS-11 Key Wrapping Algorithm 
sections.  CMS-11 documents a mandatory-to-implement key wrapping 
algorithm that describes the process of wrapping a Triple-DES content 
encryption key (CEK) with a Triple-DES key encryption key (KEK). It 
documents another (optional) key wrapping algorithm that describes the 
process of wrapping an RC2 CEK with an RC2 KEK.  Each key wrapping 
algorithm includes instructions for key checksum, key wrap and key 
unwrap.  

The CMS-11 Checksum Algorithm is used to provide a CEK integrity check 
value.  The algorithm is:
   1.  Compute a 20 octet SHA-1 message digest on the CEK.
   2.  Use the most significant (first) eight octets of the message 
       digest value as the checksum value.

The Triple-DES key wrap algorithm encrypts a Triple-DES CEK with a 
Triple-DES KEK.  The CMS-11 Triple-DES key wrap algorithm is:
   1.  Set odd parity for each of the DES key octets comprising the 
       CEK, call the result CEK.
   2.  Compute an 8 octet key checksum value on CEK as described 
       above, call the result ICV.
   3.  Let CEKICV = CEK || ICV.
   4.  Generate 8 octets at random, call the result IV.
   5.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use 
       the random value generated in the previous step as the 
       initialization vector (IV).  Call the ciphertext TEMP1.
   6.  Let TEMP2 = IV || TEMP1.
   7.  Reverse the order of the octets in TEMP2.  That is, the most 
       significant (first) octet is swapped with the least significant 
       (last) octet, and so on.  Call the result TEMP3.
   8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use IV 
       of 0x4adda22c79e82105.  The ciphertext is 40 octets long.

The Triple-DES key unwrap algorithm decrypts a Triple-DES CEK using a 
Triple-DES KEK.  The CMS-11 DES key unwrap algorithm is:
   1.  If the wrapped CEK is not 40 octets, then error.
   2.  Decrypt the wrapped CEK in CBC mode using the KEK.  Use an IV 
       of 0x4adda22c79e82105.  Call the output TEMP3.
   3.  Reverse the order of the octets in TEMP3.  That is, the most 
       significant (first) octet is swapped with the least significant 
       (last) octet, and so on.  Call the result TEMP2.
   4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most 
       significant (first) 8 octets, and TEMP1 is the least 
       significant (last) 32 octets.
   5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use     
       the IV value from the previous step as the initialization 
       vector.  Call the ciphertext CEKICV.
   6.  Decompose the CEKICV into CEK and ICV. CEK is the most 
       significant (first) 24 octets, and ICV is the least significant 
       (last) 8 octets.
   7.  Compute an 8 octet key checksum value on CEK as described 
       above.  If the computed key checksum value does not match the 
       decrypted key checksum value, ICV, then error.
   8.  Check for odd parity each of the DES key octets comprising CEK.  
       If parity is incorrect, then there is an error.

Jim Schaad sent comments to the mail list regarding the CMS-11 RC2 Key 
Wrap Algorithm.  Russ briefed the following RC2 Key Wrap algorithm 
that includes Jim's comments:
1. Let LCEKPAD = LENGTH || CEK || RANDOM_PAD.
2. Compute checksum on LCEKPAD, call result ICV.
3. Let LCEKPADICV = CEK || ICV.
4. Generate 8 octets at random, call the result IV.
5. Encrypt LCEKPADICV in CBC mode using above IV. Call ciphertext 
   TEMP1. 
6. Let TEMP2 = IV || TEMP1.
7. Let TEMP3 = REVERSE(TEMP2)
8. Encrypt TEMP3 in CBC mode using IV of 0x4adda22c79e82105.

Russ briefed the following RC2 Key Wrap algorithm that includes Jim's 
comments:
1. If the wrapped key length is not a multiple of 8, then error.
2. Decrypt wrapped key in CBC mode using IV of 0x4adda22c79e82105.  
   Call the output TEMP3.
3. TEMP2 = REVERSE(TEMP3)
4. Decompose the TEMP2 into IV and TEMP1. 
5. Decrypt TEMP1 in CBC mode using IV from above.  Call the ciphertext 
   LCEKPADICV.
6. Decompose the LCEKPADICV into LCEKPAD and ICV. 
7. Validate ICV.
8. Decompose the LCEKPAD into LENGTH, CEK and PAD. 

Russ stated that he believes that Jim's proposed changes should be 
incorporated into CMS.  Nobody objected to the inclusion of Jim's 
proposals into CMS. 

Way Forward:  A new CMS draft (CMS-12) will include the harmonized 
Triple-DES and RC2 key wrap algorithms as stated above.  CMS-12 will 
be posted as soon as the repository opens for the submission of new 
IETF drafts.  CMS-12 is ready for discussion by the IESG when the 
X9.42 draft is completed.
 
Russ asked if there were any other unresolved issued regarding CMS. 
Denis Pinkas stated that he believes that CMS should specify how key 
validation is performed.  He is especially concerned with the case in 
which multiple Certification Authority (CA) certificates contain the 
same public key. A vast majority of the meeting attendees decided that 
the PKIX X.509 Certificate and CRL Profile (RFC2459) (referred to by 
the CERT I-D) specifies how key validation is performed and that CMS 
should not replicate that information.  


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

X9.42 Draft Discussion - Eric Rescorla

Eric discussed the status of the January 1999 D-H Key Agreement Method 
I-D (a.k.a. X9.42 I-D).  One change to be made is that the actual RC2 
key length will be the same as the effective key length.  Eric stated 
that he believes that this change resolves the RC2 partition attack.  

Eric also stated that Section 2.1.2, "Generation of Keying Material", 
will be changed to state that the KeySpecificInfo algorithm field will 
include the key wrap algorithm object identifier (OID) instead of the 
symmetric algorithm OID.  The examples will be enhanced to match this 
change.

Nobody objected to Eric's proposed changes.
  

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Small Subgroup Attacks on D-H      Robert Zuccherato

Robert is developing an informational draft that will describe 
situations that require protection from "small subgroup" attacks on 
D-H.  The draft will also provide guidance on how to provide 
protection.

When is protection required?  In general, for sender:
1) If key is ephemeral, then no protection is required.
2) If key is static, protection is required.

In general, for a recipient (assuming static key):
1) If no information on the success of the decryption is available, no 
   protection is required.
2) If information on the success of the decryption is available, 
   protection is required.

Methods of Protection: 
1) The process by which the recipient's public key is validated by the 
   originator is described in the X9.42 draft.  This strategy is 
   possibly encumbered. Certicom has applied for a patent 
   covering the use of methods to avoid small subgroup attacks.
2) Public key validation by the CA is only realistic for static public 
   keys.
3) Choose p-1=2*q*r where r is product of "large" primes.  Must still 
   check whether public key is +/- 1.
4) Compatible Cofactor Exponentiation is described in IEEE P1363. Also 
   possibly encumbered.

Russ stated that the purpose of this document is to inform people of 
when they need to worry about small subgroup attacks.  Certicom has 
notified the S/MIME WG that they have a pending patent regarding small
subgroup attack protection.  If implementers need to be concerned with 
small subgroup attack protection, then they may wish to watch for 
this patent.
  
Eric Rescorla asked about the status of Certicom's offer for a 
royalty-free license that would allow S/MIME vendors to use the 
technology covered by their pending patent.  Russ stated that Certicom 
had not yet offered any royalty-free licenses because they do not 
believe that their pending patent covers any mandatory S/MIME 
requirements.  Russ also stated that this issue is still being worked.


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

MSG Draft Discussion - Blake Ramsdell

Blake stated that the 26 February 1999 S/MIME v3 Message Specification 
(MSG-07) I-D addresses the comments submitted to the mail list.  Blake 
stated that the MSG I-D has been submitted for IETF last call. Blake 
asked if anybody knew of any unresolved issued regarding MSG. 

Paul Hoffman proposed that the following statement should be added to 
Sec 2.2:  "Note that S/MIME v2 clients are only capable of verifying 
digital signatures using the rsaEncryption algorithm." Paul also 
proposed that the following statement should be added to Sec 2.3:  
"Note that S/MIME v2 clients are only capable of decrypting content 
encryption keys using the rsaEncryption algorithm."  Nobody objected 
to these changes.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

CERT Draft Discussion - Blake Ramsdell

Blake stated that the 26 February 1999 S/MIME v3 Certificate Handling 
(CERT-07) I-D addresses the comments submitted to the mail list.  
Blake stated that the CERT I-D has been submitted for IETF last call. 

Blake asked if anybody knew of any unresolved issued regarding CERT.  
Denis Pinkas stated that he believed that CERT should be changed to 
state that a receiving agent "MUST support revocation" rather than 
"MUST support CRLs".  He said that his recommended wording would allow 
receiving agents to use other methods of revocation checking such as 
OCSP.  Eric Rescorla made the point that the CMS heading includes 
fields to carry CRLs, so the receiving agent must use them.  After 
several other attendees stated their opinions regarding the use of 
CRLs, Russ asked that the debate be put on hold until the end of the 
meeting so that the rest of the topics could be covered.

Denis has a second comment that he believed that the possible absence 
of the subject DN in a leaf certificate could present a problem. A 
vast majority of the meeting attendees decided that RFC2459 specifies 
how key validation is performed using certificates that may omit the 
subject DN and that CMS should not replicate that information.  

Paul Hoffman pointed out that section 3 in CERT-07 needed
to be modified to delete the "3.1" sub-section title. 


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

ESS Draft Discussion - Paul Hoffman

Paul stated that the 26 February 1999 Enhanced Security Services for 
SMIME (ESS-11) I-D addresses the comments submitted to the mail list.  
It has been submitted for IETF last call.  

Paul said that he will incorporate Francois Rousseau's comments sent 
to the mail list regarding the use of the signingCertificate 
attribute.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

CERTDIST Draft Discussion - Jim Schaad

Jim stated that the 25 February 1999 Certificate Distribution 
(CERTDIST-03) I-D has not been significantly changed since the 
December 98 S/MIME WG meeting.  He said that he still needs to 
include example data in the document.  The next draft will be
submitted for S/MIME WG last call after the example data has been
added.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

DOMSEC Draft Discussion - Bill Ottaway

Bill stated that the 17 November 1999 Domain Security Services using 
S/MIME (DOMSEC-01) I-D has been submitted to the mail list.  He stated  
that there has been no changes to the domsec draft since the December
98 S/MIME WG meeting. He is currently working on an implementation of 
domsec.  He intends to have a new draft, based on comments received
and experience gained, before the current draft expires in May 99.


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Security Policies and Labels    Russ Housley

Russ stated that Weston Nicolls is developing an Internet draft that 
will document the security policies of Whirlpool, Caterpillar and 
Amoco.  The draft will also document how the ESSSecurityLabel can be 
used to implement those corporations' security policies.  Russ stated 
that the S/MIME WG Charter will be expanded to cover this work.  
Nobody objected.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

S/MIME v3 Examples     Paul Hoffman

Paul stated that the 25 February 1999 Examples of CMS Message Bodies 
(EXAMPLES-00) I-D has been submitted to the mail list.  Paul stated 
that the document will include example keys, certificates and CRLs.  
The next draft will include CRLs.  The document will include some 
incorrect examples that flag common implementation errors. Paul is 
only going to coordinate putting this document together. He needs 
example data for the document and he needs people to volunteer to test 
the sample data.  Volunteers will be given credit in the document.  
Individuals would like to volunteer to do examples should contact Paul 
at phoffman@imc.org.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Wrap Up - Russ Housley

Russ stated that the CMS, ESS, MSG, CERT and X9.42 documents are in 
IETF Last Call.  He hopes to have these documents reviewed by the IESG 
as soon as possible.

John Pawling asked if there was a strategy for enhancing the S/MIME v3 
documents after they are approved by the IESG.  Russ stated that minor 
changes could be made in the documents when they progress from 
Proposed Standard to Draft Standard.  For example, the proposed change
to the CMS RecipientInfo syntax could be made when CMS progresses from
Proposed Standard to Draft Standard, if consensus is reached on the
handling of password-based key management.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Open Issues                     

The debate resumed regarding Denis Pinkas' proposal to change CERT so 
that it states that a receiving agent "MUST support revocation" rather 
than "MUST support CRLs".  After much exciting debate, the majority of 
the group reached consensus that CERT sections 2.1 and 4.1 must be 
changed to state the following:  "All agents MUST be capable of 
performing revocation checks using CRLs as specified in RFC2459.  All 
agents MUST perform revocation status checking in accordance with 
RFC2459."


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

ACTION ITEMS (These changes will be included in the S/MIME v3
documents after they have been discussed on the S/MIME WG mail
list):

1. Enhance CMS I-D to include Jim's comments regarding the RC2 key 
   wrapping and unwrapping algorithms (Russ Housley).
2. Enhance X9.42 I-D to include changes regarding RC2 key length and 
   key wrap algorithm OIDs (Eric Rescorla).
3. Develop I-D regarding small subgroup attacks on D-H (Robert 
   Zuccherato).
4. Enhance MSG I-D to include Paul's comments regarding S/MIME v2 
   agents to MSG draft (Blake Ramsdell).
5. Enhance CERT I-D sections 2.1 and 4.1 as described above (Blake 
   Ramsdell).
6. Enhance ESS I-D to include Francois Rousseau's comments regarding 
   signingCertificate attribute (Paul Hoffman).
7. Develop I-D regarding security policies and labels (Weston 
   Nicolls).
8. Incorporate sample data into Example I-D (Paul Hoffman).

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
jsp@jgvandyke.com
=========================================================




From owner-ietf-smime@imc.org  Mon Mar 29 18:01:59 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA25391
	for <smime-archive@odin.ietf.org>; Mon, 29 Mar 1999 18:01:59 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA02653
	for ietf-smime-bks; Mon, 29 Mar 1999 14:23:54 -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 OAA02649
	for <ietf-smime@imc.org>; Mon, 29 Mar 1999 14:23:53 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA24297;
	Mon, 29 Mar 1999 17:23:18 -0500 (EST)
Message-Id: <199903292223.RAA24297@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-small-subgroup-00.txt
Date: Mon, 29 Mar 1999 17:23:18 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Methods for Avoiding the 'Small-Subgroup' 
                          Attacks on the Diffie-Hellman Key Agreement Method 
                          for S/MIME
	Author(s)	: R. Zuccherato
	Filename	: draft-ietf-smime-small-subgroup-00.txt
	Pages		: 7
	Date		: 26-Mar-99
	
In some circumstances the use of the Diffie-Hellman key agreement scheme
in a prime order subgroup of a large prime p is vulnerable to certain
attacks known as 'small-subgroup' attacks.  Methods exist, however, to
prevent these attacks.  This document will describe the situations
relevent to the S/MIME standard in which protection is required and the
methods that can be used to to prevent these attacks.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-small-subgroup-00.txt

Internet-Drafts are also 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-ietf-smime-small-subgroup-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-small-subgroup-00.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:	<19990326145826.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-small-subgroup-00.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-small-subgroup-00.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Mon Mar 29 22:59:47 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA05986
	for <smime-archive@odin.ietf.org>; Mon, 29 Mar 1999 22:59:47 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id TAA08195
	for ietf-smime-bks; Mon, 29 Mar 1999 19:12:39 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170])
	by mail.proper.com (8.8.8/8.8.5) with SMTP id TAA08181
	for <ietf-smime@imc.org>; Mon, 29 Mar 1999 19:12:35 -0800 (PST)
Received: 	id WAA13258; Mon, 29 Mar 1999 22:04:57 -0500
Received: by gateway id <G4CAYP83>; Mon, 29 Mar 1999 22:07:15 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B112BD4C@sothmxs06>
From: Robert Zuccherato <robert.zuccherato@entrust.com>
To: ietf-smime@imc.org
Subject: RE: I-D ACTION:draft-ietf-smime-small-subgroup-00.txt
Date: Mon, 29 Mar 1999 22:01:52 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.1960.3)
Content-Type: text/plain
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

As I mentioned at the meeting in Minneapolis, this draft is intended to be
an informational draft briefly describing the "small-subgroup" attacks on
Diffie-Hellman and methods to protect oneself from these attacks.  I would
encourage people to read this draft.  Comments and criticism are
appreciated.

> ----------
> From: 	Internet-Drafts@ietf.org[SMTP:Internet-Drafts@ietf.org]
> Reply To: 	Internet-Drafts@ietf.org
> Sent: 	Monday, March 29, 1999 5:23 PM
> To: 	IETF-Announce
> Cc: 	ietf-smime@imc.org
> Subject: 	I-D ACTION:draft-ietf-smime-small-subgroup-00.txt
> 
> <<Message: Microsoft Exchange Message>>
> A New Internet-Draft is available from the on-line Internet-Drafts
> directories.
> This draft is a work item of the S/MIME Mail Security Working Group of the
> IETF.
> 
> 	Title		: Methods for Avoiding the 'Small-Subgroup' 
>                           Attacks on the Diffie-Hellman Key Agreement
> Method 
>                           for S/MIME
> 	Author(s)	: R. Zuccherato
> 	Filename	: draft-ietf-smime-small-subgroup-00.txt
> 	Pages		: 7
> 	Date		: 26-Mar-99
> 	
> In some circumstances the use of the Diffie-Hellman key agreement scheme
> in a prime order subgroup of a large prime p is vulnerable to certain
> attacks known as 'small-subgroup' attacks.  Methods exist, however, to
> prevent these attacks.  This document will describe the situations
> relevent to the S/MIME standard in which protection is required and the
> methods that can be used to to prevent these attacks.
> 
> A URL for this Internet-Draft is:
> http://www.ietf.org/internet-drafts/draft-ietf-smime-small-subgroup-00.txt
> 
> Internet-Drafts are also 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-ietf-smime-small-subgroup-00.txt".
> 
> A list of Internet-Drafts directories can be found in
> http://www.ietf.org/shadow.html 
> or ftp://ftp.ietf.org/ietf/1shadow-sites.txt
> 
> 
> Internet-Drafts can also be obtained by e-mail.
> 
> Send a message to:
> 	mailserv@ietf.org.
> In the body type:
> 	"FILE /internet-drafts/draft-ietf-smime-small-subgroup-00.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.
> 


From owner-ietf-smime@imc.org  Tue Mar 30 19:22:58 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA01126
	for <smime-archive@odin.ietf.org>; Tue, 30 Mar 1999 19:22:57 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id PAA16579
	for ietf-smime-bks; Tue, 30 Mar 1999 15:37:48 -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 PAA16574
	for <ietf-smime@imc.org>; Tue, 30 Mar 1999 15:37:46 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA29929;
	Tue, 30 Mar 1999 18:37:18 -0500 (EST)
Message-Id: <199903302337.SAA29929@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-cms-12.txt
Date: Tue, 30 Mar 1999 18:37:18 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

Note: This revision reflects comments received during the last call period.

	Title		: Cryptographic Message Syntax
	Author(s)	: R. Housley
	Filename	: draft-ietf-smime-cms-12.txt
	Pages		: 58
	Date		: 29-Mar-99
	
   This document describes the Cryptographic Message Syntax.  This
   syntax is used to digitally sign, digest, authenticate, or encrypt
   arbitrary messages.
 
   The Cryptographic Message Syntax is derived from PKCS #7 version 1.5
   as specified in RFC 2315 [PKCS#7].  Wherever possible, backward
   compatibility is preserved; however, changes were necessary to
   accommodate attribute certificate transfer and key agreement
   techniques for key management.
 
   This draft is being discussed on the 'ietf-smime' mailing list.  To
   join the list, send a message to <ietf-smime-request@imc.org> with
   the single word 'subscribe' in the body of the message.  Also, there
   is a Web site for the mailing list at <http://www.imc.org/ietf-
   smime/>.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-cms-12.txt

Internet-Drafts are also 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-ietf-smime-cms-12.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-cms-12.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:	<19990329150618.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-cms-12.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-cms-12.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Tue Mar 30 19:35:40 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA01701
	for <smime-archive@odin.ietf.org>; Tue, 30 Mar 1999 19:35:39 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id PAA16601
	for ietf-smime-bks; Tue, 30 Mar 1999 15:38:15 -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 PAA16596
	for <ietf-smime@imc.org>; Tue, 30 Mar 1999 15:38:14 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA00019;
	Tue, 30 Mar 1999 18:37:46 -0500 (EST)
Message-Id: <199903302337.SAA00019@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-idea-00.txt
Date: Tue, 30 Mar 1999 18:37:46 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Incorporation of IDEA encryption algorithm in S/MIME
	Author(s)	: S. Teiwes, P. Hartmann, D. Kuenzi
	Filename	: draft-ietf-smime-idea-00.txt
	Pages		: 
	Date		: 29-Mar-99
	
   This memo describes how to incorporate the IDEA (International Data
   Encryption Algorithm) [IDEA] encryption algorithm into S/MIME
   (Secure/Multipurpose Internet Mail Extensions) [SMIME2, SMIME3]. The
   S/MIME standard provides a consistent way to send and receive secure
   MIME [MIME] data. Information security services are implemented on
   the basis of a set of cryptographic functions. Thus, digital
   signatures are used for secure authentication, non-repudiation of
   origin, and data integrity, whereas data encryption is used to assure
   data security and privacy.
 
   S/MIME is constructed as an open system. Its functionality for
   information security purposes can be flexibly extended to meet new
   requirements. At the same time it is assured that extended systems
   will be compatible with non-extended systems.
 
   The general functional capabilities and preferences of S/MIME are
   specified by the registered list of S/MIME object identifiers (OIDs).
   This list of OIDs is maintained by the Internet Mail Consortium at
   <http://www.imc.org/ietf-smime/oids.html>.
   The set of S/MIME functions provided by a client is expressed by the
   S/MIME capabilities attribute. This attribute contains a list of OIDs
   of supported cryptographic functions.


A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-idea-00.txt

Internet-Drafts are also 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-ietf-smime-idea-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-idea-00.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:	<19990329161200.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-idea-00.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-idea-00.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Wed Mar 31 12:21:29 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA26609
	for <smime-archive@odin.ietf.org>; Wed, 31 Mar 1999 12:21:29 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id IAA08847
	for ietf-smime-bks; Wed, 31 Mar 1999 08:25:27 -0800 (PST)
Received: from post-20.mail.demon.net (post-20.mail.demon.net [194.217.242.27])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA08837
	for <ietf-smime@imc.org>; Wed, 31 Mar 1999 08:25:22 -0800 (PST)
Received: from [193.237.150.98] (helo=celocom.com)
	by post-20.mail.demon.net with esmtp (Exim 2.10 #2)
	id 10SNnw-0005CW-0K
	for ietf-smime@imc.org; Wed, 31 Mar 1999 16:25:25 +0000
Message-ID: <37024C29.DC77436D@celocom.com>
Date: Wed, 31 Mar 1999 17:24:09 +0000
From: Dr Stephen Henson <drh@celocom.com>
Organization: Dr S N Henson
X-Mailer: Mozilla 4.08 [en] (Win95; U)
MIME-Version: 1.0
To: "ietf-smime@imc.org" <ietf-smime@imc.org>
Subject: Re: I-D ACTION:draft-ietf-smime-idea-00.txt
References: <199903302337.SAA00019@ietf.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Is there a potential conflict with CMS 12.3.1? That is:

   Any symmetric encryption algorithm that a CMS implementation includes
   as a content-encryption algorithm must also be included as a key-
   encryption algorithm.  

As I understand this this means that a CMS implementation using IDEA
must also include a means to wrap content encryption keys with IDEA.
This would require additional information and a new OID
id-alg-CMSIDEAwrap for example.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: shenson@drh-consultancy.demon.co.uk 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: drh@celocom.com PGP key: via homepage.



From owner-ietf-smime@imc.org  Wed Mar 31 16:00:56 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA00199
	for <smime-archive@odin.ietf.org>; Wed, 31 Mar 1999 16:00:55 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA26908
	for ietf-smime-bks; Wed, 31 Mar 1999 12:14:49 -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 MAA26902
	for <ietf-smime@imc.org>; Wed, 31 Mar 1999 12:14:47 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA28760;
	Wed, 31 Mar 1999 15:14:23 -0500 (EST)
Message-Id: <199903312014.PAA28760@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-x942-07.txt
Date: Wed, 31 Mar 1999 15:14:22 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts
directories.  This draft is a work item of the S/MIME Mail Security
Working Group of the IETF.

	Title		: Diffie-Hellman Key Agreement Method
	Author(s)	: E. Rescorla
	Filename	: draft-ietf-smime-x942-07.txt
	Pages		: 10
	Date		: 30-Mar-99
	
This document standardizes one particular Diffie-Hellman variant,
   based on the ANSI X9.42 draft, developed by the ANSI X9F1 working
   group. Diffie-Hellman is a key agreement algorithm used by two par-
   ties to agree on a shared secret. An algorithm for converting the
   shared secret into an arbitrary amount of keying material is pro-
   vided. The resulting keying material is used as a symmetric encryp-
   tion key.  The Diffie-Hellman variant described requires the recipi-
   ent to have a certificate, but the originator may have a static key
   pair (with the public key placed in a certificate) or an ephemeral
   key pair.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-x942-07.txt

Internet-Drafts are also 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-ietf-smime-x942-07.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-x942-07.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:	<19990331121259.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-x942-07.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-x942-07.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Wed Mar 31 16:08:54 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA00473
	for <smime-archive@odin.ietf.org>; Wed, 31 Mar 1999 16:08:53 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id MAA27820
	for ietf-smime-bks; Wed, 31 Mar 1999 12:26:17 -0800 (PST)
Received: from post-20.mail.demon.net (post-20.mail.demon.net [194.217.242.27])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA27815
	for <ietf-smime@imc.org>; Wed, 31 Mar 1999 12:26:16 -0800 (PST)
Received: from [193.237.150.98] (helo=celocom.com)
	by post-20.mail.demon.net with esmtp (Exim 2.10 #2)
	id 10SRZA-0000Iz-0K
	for ietf-smime@imc.org; Wed, 31 Mar 1999 20:26:24 +0000
Message-ID: <3702848A.EADF89B3@celocom.com>
Date: Wed, 31 Mar 1999 21:24:42 +0000
From: Dr Stephen Henson <drh@celocom.com>
Organization: Dr S N Henson
X-Mailer: Mozilla 4.08 [en] (Win95; U)
MIME-Version: 1.0
To: "ietf-smime@imc.org" <ietf-smime@imc.org>
Subject: RC2 keylength in CMS.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

In CMS there are still a couple of references to the RC2 key length
being always 128 bits. Specifically 12.3.1 and 12.6. 

Whereas X9.42 refelects the change and that RC2 effective and real key
lengths are equal.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: shenson@drh-consultancy.demon.co.uk 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: drh@celocom.com PGP key: via homepage.



From owner-ietf-smime@imc.org  Wed Mar 31 17:01:26 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA02366
	for <smime-archive@odin.ietf.org>; Wed, 31 Mar 1999 17:01:25 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id NAA01416
	for ietf-smime-bks; Wed, 31 Mar 1999 13:18:25 -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 NAA01410
	for <ietf-smime@imc.org>; Wed, 31 Mar 1999 13:18:24 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA00714;
	Wed, 31 Mar 1999 16:17:59 -0500 (EST)
Message-Id: <199903312117.QAA00714@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-ess-12.txt
Date: Wed, 31 Mar 1999 16:17:59 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Enhanced Security Services for S/MIME
	Author(s)	: P. Hoffman
	Filename	: draft-ietf-smime-ess-12.txt
	Pages		: 38
	Date		: 30-Mar-99
	
This document describes four optional security service extensions for
S/MIME. The services are:
 - signed receipts
 - security labels
 - secure mailing lists
 - signing certificates
The first three of these services provide functionality that is similar
to the Message Security Protocol [MSP4], but are useful in many other
environments, particularly business and finance. Signing certificates
are useful in any environment where certificates might be transmitted
with signed messages.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-ess-12.txt

Internet-Drafts are also 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-ietf-smime-ess-12.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-ess-12.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:	<19990331121313.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-ess-12.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-ess-12.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Wed Mar 31 18:11:58 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA04313
	for <smime-archive@odin.ietf.org>; Wed, 31 Mar 1999 18:11:57 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id OAA06069
	for ietf-smime-bks; Wed, 31 Mar 1999 14:16:37 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA06063
	for <ietf-smime@imc.org>; Wed, 31 Mar 1999 14:16:35 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id OAA00107; Wed, 31 Mar 1999 14:16:03 -0800 (PST)
Message-Id: <4.1.19990331160801.00a2b280@mail.spyrus.com>
Message-Id: <4.1.19990331160801.00a2b280@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 31 Mar 1999 16:10:08 -0500
To: Dr Stephen Henson <drh@celocom.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: I-D ACTION:draft-ietf-smime-idea-00.txt
Cc: "ietf-smime@imc.org" <ietf-smime@imc.org>
In-Reply-To: <37024C29.DC77436D@celocom.com>
References: <199903302337.SAA00019@ietf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Steve:

The reason for this requirement is that Ephemeral-Static Diffie-Hellman
(E-S D-H) is the mandatory to implement key management algorithm.  The
output of E-S D-H is a KEK.  So, the mandatory to implement key management
algorithm requires a way to wrap the CEK in the resulting pairwise KEK.

Russ

At 05:24 PM 3/31/99 +0000, Dr Stephen Henson wrote:
>Is there a potential conflict with CMS 12.3.1? That is:
>
>   Any symmetric encryption algorithm that a CMS implementation includes
>   as a content-encryption algorithm must also be included as a key-
>   encryption algorithm.  
>
>As I understand this this means that a CMS implementation using IDEA
>must also include a means to wrap content encryption keys with IDEA.
>This would require additional information and a new OID
>id-alg-CMSIDEAwrap for example.
>
>Steve.
>-- 
>Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
>Personal Email: shenson@drh-consultancy.demon.co.uk 
>Senior crypto engineer, Celo Communications: http://www.celocom.com/
>Core developer of the   OpenSSL project: http://www.openssl.org/
>Business Email: drh@celocom.com PGP key: via homepage.
>


From owner-ietf-smime@imc.org  Wed Mar 31 19:52:55 1999
Received: from mail.proper.com (mail.proper.com [206.86.127.224])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA05900
	for <smime-archive@odin.ietf.org>; Wed, 31 Mar 1999 19:52:54 -0500 (EST)
Received: (from majordomo@localhost)
	by mail.proper.com (8.8.8/8.8.5) id QAA11655
	for ietf-smime-bks; Wed, 31 Mar 1999 16:03:42 -0800 (PST)
Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41])
	by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA11650
	for <ietf-smime@imc.org>; Wed, 31 Mar 1999 16:03:41 -0800 (PST)
Received: from [193.237.150.98] (helo=celocom.com)
	by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1)
	id 10SUxZ-000E4R-0C; Thu, 1 Apr 1999 00:03:49 +0000
Message-ID: <3702B391.977444B1@celocom.com>
Date: Thu, 01 Apr 1999 00:45:21 +0000
From: Dr Stephen Henson <drh@celocom.com>
Organization: Dr S N Henson
X-Mailer: Mozilla 4.08 [en] (Win95; U)
MIME-Version: 1.0
To: Russ Housley <housley@spyrus.com>
CC: "ietf-smime@imc.org" <ietf-smime@imc.org>
Subject: Re: I-D ACTION:draft-ietf-smime-idea-00.txt
References: <199903302337.SAA00019@ietf.org> <4.1.19990331160801.00a2b280@mail.spyrus.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Russ Housley wrote:
> 
> Steve:
> 
> The reason for this requirement is that Ephemeral-Static Diffie-Hellman
> (E-S D-H) is the mandatory to implement key management algorithm.  The
> output of E-S D-H is a KEK.  So, the mandatory to implement key management
> algorithm requires a way to wrap the CEK in the resulting pairwise KEK.
> 
> Russ
> 
> At 05:24 PM 3/31/99 +0000, Dr Stephen Henson wrote:
> >Is there a potential conflict with CMS 12.3.1? That is:
> >
> >   Any symmetric encryption algorithm that a CMS implementation includes
> >   as a content-encryption algorithm must also be included as a key-
> >   encryption algorithm.
> >
> >As I understand this this means that a CMS implementation using IDEA
> >must also include a means to wrap content encryption keys with IDEA.
> >This would require additional information and a new OID
> >id-alg-CMSIDEAwrap for example.
> >

My point is that the S/MIME IDEA draft spec specifies a way to use IDEA
as a content encryption algorithm but does not include details of how to
use IDEA as a key encryption algorithm.

My interpretation of the quoted paragraph from CMS 12.3.1 (which may
well be incorrect) in the context of the IDEA spec is that any
implementation using IDEA as a content encryption algorithm must also
support IDEA as a key encryption algorithm which the draft S/MIME IDEA
specification does not define.

Again my interpretation of this would be that IDEA cannot be used with a
conformant CMS application until an IDEA key encryption algorithm (and
associated object identifier) is defined as well.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: shenson@drh-consultancy.demon.co.uk 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: drh@celocom.com PGP key: via homepage.





Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id QAA11655 for ietf-smime-bks; Wed, 31 Mar 1999 16:03:42 -0800 (PST)
Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id QAA11650 for <ietf-smime@imc.org>; Wed, 31 Mar 1999 16:03:41 -0800 (PST)
Received: from [193.237.150.98] (helo=celocom.com) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 10SUxZ-000E4R-0C; Thu, 1 Apr 1999 00:03:49 +0000
Message-ID: <3702B391.977444B1@celocom.com>
Date: Thu, 01 Apr 1999 00:45:21 +0000
From: Dr Stephen Henson <drh@celocom.com>
Organization: Dr S N Henson
X-Mailer: Mozilla 4.08 [en] (Win95; U)
MIME-Version: 1.0
To: Russ Housley <housley@spyrus.com>
CC: "ietf-smime@imc.org" <ietf-smime@imc.org>
Subject: Re: I-D ACTION:draft-ietf-smime-idea-00.txt
References: <199903302337.SAA00019@ietf.org> <4.1.19990331160801.00a2b280@mail.spyrus.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ Housley wrote:
> 
> Steve:
> 
> The reason for this requirement is that Ephemeral-Static Diffie-Hellman
> (E-S D-H) is the mandatory to implement key management algorithm.  The
> output of E-S D-H is a KEK.  So, the mandatory to implement key management
> algorithm requires a way to wrap the CEK in the resulting pairwise KEK.
> 
> Russ
> 
> At 05:24 PM 3/31/99 +0000, Dr Stephen Henson wrote:
> >Is there a potential conflict with CMS 12.3.1? That is:
> >
> >   Any symmetric encryption algorithm that a CMS implementation includes
> >   as a content-encryption algorithm must also be included as a key-
> >   encryption algorithm.
> >
> >As I understand this this means that a CMS implementation using IDEA
> >must also include a means to wrap content encryption keys with IDEA.
> >This would require additional information and a new OID
> >id-alg-CMSIDEAwrap for example.
> >

My point is that the S/MIME IDEA draft spec specifies a way to use IDEA
as a content encryption algorithm but does not include details of how to
use IDEA as a key encryption algorithm.

My interpretation of the quoted paragraph from CMS 12.3.1 (which may
well be incorrect) in the context of the IDEA spec is that any
implementation using IDEA as a content encryption algorithm must also
support IDEA as a key encryption algorithm which the draft S/MIME IDEA
specification does not define.

Again my interpretation of this would be that IDEA cannot be used with a
conformant CMS application until an IDEA key encryption algorithm (and
associated object identifier) is defined as well.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: shenson@drh-consultancy.demon.co.uk 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: drh@celocom.com PGP key: via homepage.




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id OAA06069 for ietf-smime-bks; Wed, 31 Mar 1999 14:16:37 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA06063 for <ietf-smime@imc.org>; Wed, 31 Mar 1999 14:16:35 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id OAA00107; Wed, 31 Mar 1999 14:16:03 -0800 (PST)
Message-Id: <4.1.19990331160801.00a2b280@mail.spyrus.com>
Message-Id: <4.1.19990331160801.00a2b280@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 31 Mar 1999 16:10:08 -0500
To: Dr Stephen Henson <drh@celocom.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: I-D ACTION:draft-ietf-smime-idea-00.txt
Cc: "ietf-smime@imc.org" <ietf-smime@imc.org>
In-Reply-To: <37024C29.DC77436D@celocom.com>
References: <199903302337.SAA00019@ietf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Steve:

The reason for this requirement is that Ephemeral-Static Diffie-Hellman
(E-S D-H) is the mandatory to implement key management algorithm.  The
output of E-S D-H is a KEK.  So, the mandatory to implement key management
algorithm requires a way to wrap the CEK in the resulting pairwise KEK.

Russ

At 05:24 PM 3/31/99 +0000, Dr Stephen Henson wrote:
>Is there a potential conflict with CMS 12.3.1? That is:
>
>   Any symmetric encryption algorithm that a CMS implementation includes
>   as a content-encryption algorithm must also be included as a key-
>   encryption algorithm.  
>
>As I understand this this means that a CMS implementation using IDEA
>must also include a means to wrap content encryption keys with IDEA.
>This would require additional information and a new OID
>id-alg-CMSIDEAwrap for example.
>
>Steve.
>-- 
>Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
>Personal Email: shenson@drh-consultancy.demon.co.uk 
>Senior crypto engineer, Celo Communications: http://www.celocom.com/
>Core developer of the   OpenSSL project: http://www.openssl.org/
>Business Email: drh@celocom.com PGP key: via homepage.
>


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id NAA01416 for ietf-smime-bks; Wed, 31 Mar 1999 13:18:25 -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 NAA01410 for <ietf-smime@imc.org>; Wed, 31 Mar 1999 13:18:24 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA00714; Wed, 31 Mar 1999 16:17:59 -0500 (EST)
Message-Id: <199903312117.QAA00714@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-ess-12.txt
Date: Wed, 31 Mar 1999 16:17:59 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Enhanced Security Services for S/MIME
	Author(s)	: P. Hoffman
	Filename	: draft-ietf-smime-ess-12.txt
	Pages		: 38
	Date		: 30-Mar-99
	
This document describes four optional security service extensions for
S/MIME. The services are:
 - signed receipts
 - security labels
 - secure mailing lists
 - signing certificates
The first three of these services provide functionality that is similar
to the Message Security Protocol [MSP4], but are useful in many other
environments, particularly business and finance. Signing certificates
are useful in any environment where certificates might be transmitted
with signed messages.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-ess-12.txt

Internet-Drafts are also 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-ietf-smime-ess-12.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-ess-12.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:	<19990331121313.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-ess-12.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-ess-12.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id MAA27820 for ietf-smime-bks; Wed, 31 Mar 1999 12:26:17 -0800 (PST)
Received: from post-20.mail.demon.net (post-20.mail.demon.net [194.217.242.27]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA27815 for <ietf-smime@imc.org>; Wed, 31 Mar 1999 12:26:16 -0800 (PST)
Received: from [193.237.150.98] (helo=celocom.com) by post-20.mail.demon.net with esmtp (Exim 2.10 #2) id 10SRZA-0000Iz-0K for ietf-smime@imc.org; Wed, 31 Mar 1999 20:26:24 +0000
Message-ID: <3702848A.EADF89B3@celocom.com>
Date: Wed, 31 Mar 1999 21:24:42 +0000
From: Dr Stephen Henson <drh@celocom.com>
Organization: Dr S N Henson
X-Mailer: Mozilla 4.08 [en] (Win95; U)
MIME-Version: 1.0
To: "ietf-smime@imc.org" <ietf-smime@imc.org>
Subject: RC2 keylength in CMS.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

In CMS there are still a couple of references to the RC2 key length
being always 128 bits. Specifically 12.3.1 and 12.6. 

Whereas X9.42 refelects the change and that RC2 effective and real key
lengths are equal.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: shenson@drh-consultancy.demon.co.uk 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: drh@celocom.com PGP key: via homepage.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id MAA26908 for ietf-smime-bks; Wed, 31 Mar 1999 12:14:49 -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 MAA26902 for <ietf-smime@imc.org>; Wed, 31 Mar 1999 12:14:47 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA28760; Wed, 31 Mar 1999 15:14:23 -0500 (EST)
Message-Id: <199903312014.PAA28760@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-x942-07.txt
Date: Wed, 31 Mar 1999 15:14:22 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts
directories.  This draft is a work item of the S/MIME Mail Security
Working Group of the IETF.

	Title		: Diffie-Hellman Key Agreement Method
	Author(s)	: E. Rescorla
	Filename	: draft-ietf-smime-x942-07.txt
	Pages		: 10
	Date		: 30-Mar-99
	
This document standardizes one particular Diffie-Hellman variant,
   based on the ANSI X9.42 draft, developed by the ANSI X9F1 working
   group. Diffie-Hellman is a key agreement algorithm used by two par-
   ties to agree on a shared secret. An algorithm for converting the
   shared secret into an arbitrary amount of keying material is pro-
   vided. The resulting keying material is used as a symmetric encryp-
   tion key.  The Diffie-Hellman variant described requires the recipi-
   ent to have a certificate, but the originator may have a static key
   pair (with the public key placed in a certificate) or an ephemeral
   key pair.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-x942-07.txt

Internet-Drafts are also 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-ietf-smime-x942-07.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-x942-07.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:	<19990331121259.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-x942-07.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-x942-07.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA08847 for ietf-smime-bks; Wed, 31 Mar 1999 08:25:27 -0800 (PST)
Received: from post-20.mail.demon.net (post-20.mail.demon.net [194.217.242.27]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA08837 for <ietf-smime@imc.org>; Wed, 31 Mar 1999 08:25:22 -0800 (PST)
Received: from [193.237.150.98] (helo=celocom.com) by post-20.mail.demon.net with esmtp (Exim 2.10 #2) id 10SNnw-0005CW-0K for ietf-smime@imc.org; Wed, 31 Mar 1999 16:25:25 +0000
Message-ID: <37024C29.DC77436D@celocom.com>
Date: Wed, 31 Mar 1999 17:24:09 +0000
From: Dr Stephen Henson <drh@celocom.com>
Organization: Dr S N Henson
X-Mailer: Mozilla 4.08 [en] (Win95; U)
MIME-Version: 1.0
To: "ietf-smime@imc.org" <ietf-smime@imc.org>
Subject: Re: I-D ACTION:draft-ietf-smime-idea-00.txt
References: <199903302337.SAA00019@ietf.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Is there a potential conflict with CMS 12.3.1? That is:

   Any symmetric encryption algorithm that a CMS implementation includes
   as a content-encryption algorithm must also be included as a key-
   encryption algorithm.  

As I understand this this means that a CMS implementation using IDEA
must also include a means to wrap content encryption keys with IDEA.
This would require additional information and a new OID
id-alg-CMSIDEAwrap for example.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: shenson@drh-consultancy.demon.co.uk 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: drh@celocom.com PGP key: via homepage.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id PAA16601 for ietf-smime-bks; Tue, 30 Mar 1999 15:38:15 -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 PAA16596 for <ietf-smime@imc.org>; Tue, 30 Mar 1999 15:38:14 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA00019; Tue, 30 Mar 1999 18:37:46 -0500 (EST)
Message-Id: <199903302337.SAA00019@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-idea-00.txt
Date: Tue, 30 Mar 1999 18:37:46 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Incorporation of IDEA encryption algorithm in S/MIME
	Author(s)	: S. Teiwes, P. Hartmann, D. Kuenzi
	Filename	: draft-ietf-smime-idea-00.txt
	Pages		: 
	Date		: 29-Mar-99
	
   This memo describes how to incorporate the IDEA (International Data
   Encryption Algorithm) [IDEA] encryption algorithm into S/MIME
   (Secure/Multipurpose Internet Mail Extensions) [SMIME2, SMIME3]. The
   S/MIME standard provides a consistent way to send and receive secure
   MIME [MIME] data. Information security services are implemented on
   the basis of a set of cryptographic functions. Thus, digital
   signatures are used for secure authentication, non-repudiation of
   origin, and data integrity, whereas data encryption is used to assure
   data security and privacy.
 
   S/MIME is constructed as an open system. Its functionality for
   information security purposes can be flexibly extended to meet new
   requirements. At the same time it is assured that extended systems
   will be compatible with non-extended systems.
 
   The general functional capabilities and preferences of S/MIME are
   specified by the registered list of S/MIME object identifiers (OIDs).
   This list of OIDs is maintained by the Internet Mail Consortium at
   <http://www.imc.org/ietf-smime/oids.html>.
   The set of S/MIME functions provided by a client is expressed by the
   S/MIME capabilities attribute. This attribute contains a list of OIDs
   of supported cryptographic functions.


A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-idea-00.txt

Internet-Drafts are also 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-ietf-smime-idea-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-idea-00.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:	<19990329161200.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-idea-00.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-idea-00.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id PAA16579 for ietf-smime-bks; Tue, 30 Mar 1999 15:37:48 -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 PAA16574 for <ietf-smime@imc.org>; Tue, 30 Mar 1999 15:37:46 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA29929; Tue, 30 Mar 1999 18:37:18 -0500 (EST)
Message-Id: <199903302337.SAA29929@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-cms-12.txt
Date: Tue, 30 Mar 1999 18:37:18 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

Note: This revision reflects comments received during the last call period.

	Title		: Cryptographic Message Syntax
	Author(s)	: R. Housley
	Filename	: draft-ietf-smime-cms-12.txt
	Pages		: 58
	Date		: 29-Mar-99
	
   This document describes the Cryptographic Message Syntax.  This
   syntax is used to digitally sign, digest, authenticate, or encrypt
   arbitrary messages.
 
   The Cryptographic Message Syntax is derived from PKCS #7 version 1.5
   as specified in RFC 2315 [PKCS#7].  Wherever possible, backward
   compatibility is preserved; however, changes were necessary to
   accommodate attribute certificate transfer and key agreement
   techniques for key management.
 
   This draft is being discussed on the 'ietf-smime' mailing list.  To
   join the list, send a message to <ietf-smime-request@imc.org> with
   the single word 'subscribe' in the body of the message.  Also, there
   is a Web site for the mailing list at <http://www.imc.org/ietf-
   smime/>.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-cms-12.txt

Internet-Drafts are also 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-ietf-smime-cms-12.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-cms-12.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:	<19990329150618.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-cms-12.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-cms-12.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id TAA08195 for ietf-smime-bks; Mon, 29 Mar 1999 19:12:39 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170]) by mail.proper.com (8.8.8/8.8.5) with SMTP id TAA08181 for <ietf-smime@imc.org>; Mon, 29 Mar 1999 19:12:35 -0800 (PST)
Received: 	id WAA13258; Mon, 29 Mar 1999 22:04:57 -0500
Received: by gateway id <G4CAYP83>; Mon, 29 Mar 1999 22:07:15 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B112BD4C@sothmxs06>
From: Robert Zuccherato <robert.zuccherato@entrust.com>
To: ietf-smime@imc.org
Subject: RE: I-D ACTION:draft-ietf-smime-small-subgroup-00.txt
Date: Mon, 29 Mar 1999 22:01:52 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.1960.3)
Content-Type: text/plain
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

As I mentioned at the meeting in Minneapolis, this draft is intended to be
an informational draft briefly describing the "small-subgroup" attacks on
Diffie-Hellman and methods to protect oneself from these attacks.  I would
encourage people to read this draft.  Comments and criticism are
appreciated.

> ----------
> From: 	Internet-Drafts@ietf.org[SMTP:Internet-Drafts@ietf.org]
> Reply To: 	Internet-Drafts@ietf.org
> Sent: 	Monday, March 29, 1999 5:23 PM
> To: 	IETF-Announce
> Cc: 	ietf-smime@imc.org
> Subject: 	I-D ACTION:draft-ietf-smime-small-subgroup-00.txt
> 
> <<Message: Microsoft Exchange Message>>
> A New Internet-Draft is available from the on-line Internet-Drafts
> directories.
> This draft is a work item of the S/MIME Mail Security Working Group of the
> IETF.
> 
> 	Title		: Methods for Avoiding the 'Small-Subgroup' 
>                           Attacks on the Diffie-Hellman Key Agreement
> Method 
>                           for S/MIME
> 	Author(s)	: R. Zuccherato
> 	Filename	: draft-ietf-smime-small-subgroup-00.txt
> 	Pages		: 7
> 	Date		: 26-Mar-99
> 	
> In some circumstances the use of the Diffie-Hellman key agreement scheme
> in a prime order subgroup of a large prime p is vulnerable to certain
> attacks known as 'small-subgroup' attacks.  Methods exist, however, to
> prevent these attacks.  This document will describe the situations
> relevent to the S/MIME standard in which protection is required and the
> methods that can be used to to prevent these attacks.
> 
> A URL for this Internet-Draft is:
> http://www.ietf.org/internet-drafts/draft-ietf-smime-small-subgroup-00.txt
> 
> Internet-Drafts are also 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-ietf-smime-small-subgroup-00.txt".
> 
> A list of Internet-Drafts directories can be found in
> http://www.ietf.org/shadow.html 
> or ftp://ftp.ietf.org/ietf/1shadow-sites.txt
> 
> 
> Internet-Drafts can also be obtained by e-mail.
> 
> Send a message to:
> 	mailserv@ietf.org.
> In the body type:
> 	"FILE /internet-drafts/draft-ietf-smime-small-subgroup-00.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.
> 


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id OAA02653 for ietf-smime-bks; Mon, 29 Mar 1999 14:23:54 -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 OAA02649 for <ietf-smime@imc.org>; Mon, 29 Mar 1999 14:23:53 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA24297; Mon, 29 Mar 1999 17:23:18 -0500 (EST)
Message-Id: <199903292223.RAA24297@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-small-subgroup-00.txt
Date: Mon, 29 Mar 1999 17:23:18 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Methods for Avoiding the 'Small-Subgroup' 
                          Attacks on the Diffie-Hellman Key Agreement Method 
                          for S/MIME
	Author(s)	: R. Zuccherato
	Filename	: draft-ietf-smime-small-subgroup-00.txt
	Pages		: 7
	Date		: 26-Mar-99
	
In some circumstances the use of the Diffie-Hellman key agreement scheme
in a prime order subgroup of a large prime p is vulnerable to certain
attacks known as 'small-subgroup' attacks.  Methods exist, however, to
prevent these attacks.  This document will describe the situations
relevent to the S/MIME standard in which protection is required and the
methods that can be used to to prevent these attacks.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-small-subgroup-00.txt

Internet-Drafts are also 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-ietf-smime-small-subgroup-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-small-subgroup-00.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:	<19990326145826.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-small-subgroup-00.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-small-subgroup-00.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id OAA21102 for ietf-smime-bks; Fri, 26 Mar 1999 14:50:45 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA21098 for <ietf-smime@imc.org>; Fri, 26 Mar 1999 14:50:43 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id SAA09153 for <ietf-smime@imc.org>; Fri, 26 Mar 1999 18:04:09 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id SAA29730; Fri, 26 Mar 1999 18:01:23 -0500
Date: Fri, 26 Mar 1999 18:01:23 -0500
Message-Id: <199903262301.SAA29730@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: 3/17/99 S/MIME WG Mtg Minutes
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

This message includes the minutes of the IETF S/MIME Working Group 
(WG) meeting held on 17 March 1999 in Minneapolis, MN, USA. These 
minutes were coordinated with the briefing presenters.  All briefing 
slides are stored at: ftp://ftp.ietf.org/ietf/smime/.  Reported by
John Pawling.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Introductions - Russ Housley
 
Russ reviewed the agenda.  Nobody objected to the agenda.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

CMS Draft Discussion - Russ Housley

Russ presented the status of the February 1999 Cryptographic Message 
Syntax (CMS-11) Internet-Draft (I-D).  CMS-11 is in IETF Last Call.  
The majority of the comments received since the last meeting have 
focused on Section 12. (This is the section on algorithms and key 
wrapping support.)  CMS-11 includes new key wrap algorithms that 
resolve the issues raised on the S/MIME WG mail list regarding 
possible cryptographic vulnerabilities such as Burt Kaliski's comments 
regarding the "birthday attack". The completion of CMS depends on the 
Diffie-Hellman (D-H) Key Agreement Method I-D (X9.42 I-D).

Russ reviewed the highlights of the CMS-11 Key Wrapping Algorithm 
sections.  CMS-11 documents a mandatory-to-implement key wrapping 
algorithm that describes the process of wrapping a Triple-DES content 
encryption key (CEK) with a Triple-DES key encryption key (KEK). It 
documents another (optional) key wrapping algorithm that describes the 
process of wrapping an RC2 CEK with an RC2 KEK.  Each key wrapping 
algorithm includes instructions for key checksum, key wrap and key 
unwrap.  

The CMS-11 Checksum Algorithm is used to provide a CEK integrity check 
value.  The algorithm is:
   1.  Compute a 20 octet SHA-1 message digest on the CEK.
   2.  Use the most significant (first) eight octets of the message 
       digest value as the checksum value.

The Triple-DES key wrap algorithm encrypts a Triple-DES CEK with a 
Triple-DES KEK.  The CMS-11 Triple-DES key wrap algorithm is:
   1.  Set odd parity for each of the DES key octets comprising the 
       CEK, call the result CEK.
   2.  Compute an 8 octet key checksum value on CEK as described 
       above, call the result ICV.
   3.  Let CEKICV = CEK || ICV.
   4.  Generate 8 octets at random, call the result IV.
   5.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use 
       the random value generated in the previous step as the 
       initialization vector (IV).  Call the ciphertext TEMP1.
   6.  Let TEMP2 = IV || TEMP1.
   7.  Reverse the order of the octets in TEMP2.  That is, the most 
       significant (first) octet is swapped with the least significant 
       (last) octet, and so on.  Call the result TEMP3.
   8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use IV 
       of 0x4adda22c79e82105.  The ciphertext is 40 octets long.

The Triple-DES key unwrap algorithm decrypts a Triple-DES CEK using a 
Triple-DES KEK.  The CMS-11 DES key unwrap algorithm is:
   1.  If the wrapped CEK is not 40 octets, then error.
   2.  Decrypt the wrapped CEK in CBC mode using the KEK.  Use an IV 
       of 0x4adda22c79e82105.  Call the output TEMP3.
   3.  Reverse the order of the octets in TEMP3.  That is, the most 
       significant (first) octet is swapped with the least significant 
       (last) octet, and so on.  Call the result TEMP2.
   4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most 
       significant (first) 8 octets, and TEMP1 is the least 
       significant (last) 32 octets.
   5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use     
       the IV value from the previous step as the initialization 
       vector.  Call the ciphertext CEKICV.
   6.  Decompose the CEKICV into CEK and ICV. CEK is the most 
       significant (first) 24 octets, and ICV is the least significant 
       (last) 8 octets.
   7.  Compute an 8 octet key checksum value on CEK as described 
       above.  If the computed key checksum value does not match the 
       decrypted key checksum value, ICV, then error.
   8.  Check for odd parity each of the DES key octets comprising CEK.  
       If parity is incorrect, then there is an error.

Jim Schaad sent comments to the mail list regarding the CMS-11 RC2 Key 
Wrap Algorithm.  Russ briefed the following RC2 Key Wrap algorithm 
that includes Jim's comments:
1. Let LCEKPAD = LENGTH || CEK || RANDOM_PAD.
2. Compute checksum on LCEKPAD, call result ICV.
3. Let LCEKPADICV = CEK || ICV.
4. Generate 8 octets at random, call the result IV.
5. Encrypt LCEKPADICV in CBC mode using above IV. Call ciphertext 
   TEMP1. 
6. Let TEMP2 = IV || TEMP1.
7. Let TEMP3 = REVERSE(TEMP2)
8. Encrypt TEMP3 in CBC mode using IV of 0x4adda22c79e82105.

Russ briefed the following RC2 Key Wrap algorithm that includes Jim's 
comments:
1. If the wrapped key length is not a multiple of 8, then error.
2. Decrypt wrapped key in CBC mode using IV of 0x4adda22c79e82105.  
   Call the output TEMP3.
3. TEMP2 = REVERSE(TEMP3)
4. Decompose the TEMP2 into IV and TEMP1. 
5. Decrypt TEMP1 in CBC mode using IV from above.  Call the ciphertext 
   LCEKPADICV.
6. Decompose the LCEKPADICV into LCEKPAD and ICV. 
7. Validate ICV.
8. Decompose the LCEKPAD into LENGTH, CEK and PAD. 

Russ stated that he believes that Jim's proposed changes should be 
incorporated into CMS.  Nobody objected to the inclusion of Jim's 
proposals into CMS. 

Way Forward:  A new CMS draft (CMS-12) will include the harmonized 
Triple-DES and RC2 key wrap algorithms as stated above.  CMS-12 will 
be posted as soon as the repository opens for the submission of new 
IETF drafts.  CMS-12 is ready for discussion by the IESG when the 
X9.42 draft is completed.
 
Russ asked if there were any other unresolved issued regarding CMS. 
Denis Pinkas stated that he believes that CMS should specify how key 
validation is performed.  He is especially concerned with the case in 
which multiple Certification Authority (CA) certificates contain the 
same public key. A vast majority of the meeting attendees decided that 
the PKIX X.509 Certificate and CRL Profile (RFC2459) (referred to by 
the CERT I-D) specifies how key validation is performed and that CMS 
should not replicate that information.  


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

X9.42 Draft Discussion - Eric Rescorla

Eric discussed the status of the January 1999 D-H Key Agreement Method 
I-D (a.k.a. X9.42 I-D).  One change to be made is that the actual RC2 
key length will be the same as the effective key length.  Eric stated 
that he believes that this change resolves the RC2 partition attack.  

Eric also stated that Section 2.1.2, "Generation of Keying Material", 
will be changed to state that the KeySpecificInfo algorithm field will 
include the key wrap algorithm object identifier (OID) instead of the 
symmetric algorithm OID.  The examples will be enhanced to match this 
change.

Nobody objected to Eric's proposed changes.
  

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Small Subgroup Attacks on D-H      Robert Zuccherato

Robert is developing an informational draft that will describe 
situations that require protection from "small subgroup" attacks on 
D-H.  The draft will also provide guidance on how to provide 
protection.

When is protection required?  In general, for sender:
1) If key is ephemeral, then no protection is required.
2) If key is static, protection is required.

In general, for a recipient (assuming static key):
1) If no information on the success of the decryption is available, no 
   protection is required.
2) If information on the success of the decryption is available, 
   protection is required.

Methods of Protection: 
1) The process by which the recipient's public key is validated by the 
   originator is described in the X9.42 draft.  This strategy is 
   possibly encumbered. Certicom has applied for a patent 
   covering the use of methods to avoid small subgroup attacks.
2) Public key validation by the CA is only realistic for static public 
   keys.
3) Choose p-1=2*q*r where r is product of "large" primes.  Must still 
   check whether public key is +/- 1.
4) Compatible Cofactor Exponentiation is described in IEEE P1363. Also 
   possibly encumbered.

Russ stated that the purpose of this document is to inform people of 
when they need to worry about small subgroup attacks.  Certicom has 
notified the S/MIME WG that they have a pending patent regarding small
subgroup attack protection.  If implementers need to be concerned with 
small subgroup attack protection, then they may wish to watch for 
this patent.
  
Eric Rescorla asked about the status of Certicom's offer for a 
royalty-free license that would allow S/MIME vendors to use the 
technology covered by their pending patent.  Russ stated that Certicom 
had not yet offered any royalty-free licenses because they do not 
believe that their pending patent covers any mandatory S/MIME 
requirements.  Russ also stated that this issue is still being worked.


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

MSG Draft Discussion - Blake Ramsdell

Blake stated that the 26 February 1999 S/MIME v3 Message Specification 
(MSG-07) I-D addresses the comments submitted to the mail list.  Blake 
stated that the MSG I-D has been submitted for IETF last call. Blake 
asked if anybody knew of any unresolved issued regarding MSG. 

Paul Hoffman proposed that the following statement should be added to 
Sec 2.2:  "Note that S/MIME v2 clients are only capable of verifying 
digital signatures using the rsaEncryption algorithm." Paul also 
proposed that the following statement should be added to Sec 2.3:  
"Note that S/MIME v2 clients are only capable of decrypting content 
encryption keys using the rsaEncryption algorithm."  Nobody objected 
to these changes.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

CERT Draft Discussion - Blake Ramsdell

Blake stated that the 26 February 1999 S/MIME v3 Certificate Handling 
(CERT-07) I-D addresses the comments submitted to the mail list.  
Blake stated that the CERT I-D has been submitted for IETF last call. 

Blake asked if anybody knew of any unresolved issued regarding CERT.  
Denis Pinkas stated that he believed that CERT should be changed to 
state that a receiving agent "MUST support revocation" rather than 
"MUST support CRLs".  He said that his recommended wording would allow 
receiving agents to use other methods of revocation checking such as 
OCSP.  Eric Rescorla made the point that the CMS heading includes 
fields to carry CRLs, so the receiving agent must use them.  After 
several other attendees stated their opinions regarding the use of 
CRLs, Russ asked that the debate be put on hold until the end of the 
meeting so that the rest of the topics could be covered.

Denis has a second comment that he believed that the possible absence 
of the subject DN in a leaf certificate could present a problem. A 
vast majority of the meeting attendees decided that RFC2459 specifies 
how key validation is performed using certificates that may omit the 
subject DN and that CMS should not replicate that information.  

Paul Hoffman pointed out that section 3 in CERT-07 needed
to be modified to delete the "3.1" sub-section title. 


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

ESS Draft Discussion - Paul Hoffman

Paul stated that the 26 February 1999 Enhanced Security Services for 
SMIME (ESS-11) I-D addresses the comments submitted to the mail list.  
It has been submitted for IETF last call.  

Paul said that he will incorporate Francois Rousseau's comments sent 
to the mail list regarding the use of the signingCertificate 
attribute.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

CERTDIST Draft Discussion - Jim Schaad

Jim stated that the 25 February 1999 Certificate Distribution 
(CERTDIST-03) I-D has not been significantly changed since the 
December 98 S/MIME WG meeting.  He said that he still needs to 
include example data in the document.  The next draft will be
submitted for S/MIME WG last call after the example data has been
added.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

DOMSEC Draft Discussion - Bill Ottaway

Bill stated that the 17 November 1999 Domain Security Services using 
S/MIME (DOMSEC-01) I-D has been submitted to the mail list.  He stated  
that there has been no changes to the domsec draft since the December
98 S/MIME WG meeting. He is currently working on an implementation of 
domsec.  He intends to have a new draft, based on comments received
and experience gained, before the current draft expires in May 99.


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Security Policies and Labels    Russ Housley

Russ stated that Weston Nicolls is developing an Internet draft that 
will document the security policies of Whirlpool, Caterpillar and 
Amoco.  The draft will also document how the ESSSecurityLabel can be 
used to implement those corporations' security policies.  Russ stated 
that the S/MIME WG Charter will be expanded to cover this work.  
Nobody objected.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

S/MIME v3 Examples     Paul Hoffman

Paul stated that the 25 February 1999 Examples of CMS Message Bodies 
(EXAMPLES-00) I-D has been submitted to the mail list.  Paul stated 
that the document will include example keys, certificates and CRLs.  
The next draft will include CRLs.  The document will include some 
incorrect examples that flag common implementation errors. Paul is 
only going to coordinate putting this document together. He needs 
example data for the document and he needs people to volunteer to test 
the sample data.  Volunteers will be given credit in the document.  
Individuals would like to volunteer to do examples should contact Paul 
at phoffman@imc.org.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Wrap Up - Russ Housley

Russ stated that the CMS, ESS, MSG, CERT and X9.42 documents are in 
IETF Last Call.  He hopes to have these documents reviewed by the IESG 
as soon as possible.

John Pawling asked if there was a strategy for enhancing the S/MIME v3 
documents after they are approved by the IESG.  Russ stated that minor 
changes could be made in the documents when they progress from 
Proposed Standard to Draft Standard.  For example, the proposed change
to the CMS RecipientInfo syntax could be made when CMS progresses from
Proposed Standard to Draft Standard, if consensus is reached on the
handling of password-based key management.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Open Issues                     

The debate resumed regarding Denis Pinkas' proposal to change CERT so 
that it states that a receiving agent "MUST support revocation" rather 
than "MUST support CRLs".  After much exciting debate, the majority of 
the group reached consensus that CERT sections 2.1 and 4.1 must be 
changed to state the following:  "All agents MUST be capable of 
performing revocation checks using CRLs as specified in RFC2459.  All 
agents MUST perform revocation status checking in accordance with 
RFC2459."


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

ACTION ITEMS (These changes will be included in the S/MIME v3
documents after they have been discussed on the S/MIME WG mail
list):

1. Enhance CMS I-D to include Jim's comments regarding the RC2 key 
   wrapping and unwrapping algorithms (Russ Housley).
2. Enhance X9.42 I-D to include changes regarding RC2 key length and 
   key wrap algorithm OIDs (Eric Rescorla).
3. Develop I-D regarding small subgroup attacks on D-H (Robert 
   Zuccherato).
4. Enhance MSG I-D to include Paul's comments regarding S/MIME v2 
   agents to MSG draft (Blake Ramsdell).
5. Enhance CERT I-D sections 2.1 and 4.1 as described above (Blake 
   Ramsdell).
6. Enhance ESS I-D to include Francois Rousseau's comments regarding 
   signingCertificate attribute (Paul Hoffman).
7. Develop I-D regarding security policies and labels (Weston 
   Nicolls).
8. Incorporate sample data into Example I-D (Paul Hoffman).

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
jsp@jgvandyke.com
=========================================================




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id LAA19477 for ietf-smime-bks; Fri, 26 Mar 1999 11:39:40 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA19473 for <ietf-smime@imc.org>; Fri, 26 Mar 1999 11:39:39 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id LAA18031; Fri, 26 Mar 1999 11:46:18 -0800 (PST)
Message-Id: <4.1.19990326002405.00a16190@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Fri, 26 Mar 1999 00:29:18 -0500
To: Francois Rousseau <f.rousseau@adga.ca>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Comment on CMS-11 (Temporary Version)
Cc: ietf-smime@imc.org
In-Reply-To: <3.0.1.32.19990310132538.00a0ccd0@adga.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Francois:

Thanks for catching the long stangins omission.  Please make sure that I got
all of the places (see below).

Russ



>Russ,
>
>I had not noticed this one before but throughout Sections 12.3 various
>things (e.g. key agreement algorithm identifiers, key transport algorithm
>identifiers, key wrap algorithm identifiers, etc.) are referred as being
>located or used from the "EnvelopedData RecipientInfo...", however they
>could also be located or used from the "AuthenticatedData RecipientInfo..."
>
>Francois Rousseau
>AEPOS Technologies

= = = = = = = = = = = 

12.3  Key Management Algorithms

CMS accommodates three general key management techniques: key agreement, key
transport, and previously distributed symmetric key-encryption keys.

12.3.1  Key Agreement Algorithms

CMS implementations must include key agreement using X9.42 Ephemeral-Static
Diffie-Hellman.

Any symmetric encryption algorithm that a CMS implementation includes as a
content-encryption algorithm must also be included as a key-encryption
algorithm.  CMS implementations must include key agreement of Triple-DES
pairwise key-encryption keys and Triple-DES wrapping of Triple-DES
content-encryption keys.  CMS implementations should include key agreement of
RC2 pairwise key-encryption keys and RC2 wrapping of RC2 content-encryption
keys.  The key wrap algorithm for Triple-DES and RC2 is described in section
12.3.3.

A CMS implementation may support mixed key-encryption and content-encryption
algorithms.  For example, a 128-bit RC2 content-encryption key may be wrapped
with 168-bit Triple-DES key-encryption key.  Similarly, a 40-bit RC2
content-encryption key may be wrapped with 128-bit RC2 key-encryption key.

For key agreement of RC2 key-encryption keys, 128 bits must be generated as
input to the key expansion process used to compute the RC2 effective key [RC2].

Key agreement algorithm identifiers are located in the EnvelopedData
RecipientInfo KeyAgreeRecipientInfo keyEncryptionAlgorithm and
AuthenticatedData RecipientInfo KeyAgreeRecipientInfo keyEncryptionAlgorithm
fields.

Key wrap algorithm identifiers are located in the KeyWrapAlgorithm parameters
within the EnvelopedData RecipientInfo KeyAgreeRecipientInfo
keyEncryptionAlgorithm and AuthenticatedData RecipientInfo
KeyAgreeRecipientInfo keyEncryptionAlgorithm fields.

Wrapped content-encryption keys are located in the EnvelopedData RecipientInfo
KeyAgreeRecipientInfo recipientEncryptedKeys encryptedKey and AuthenticatedData
RecipientInfo KeyAgreeRecipientInfo recipientEncryptedKeys encryptedKey fields.

12.3.1.1  X9.42 Ephemeral-Static Diffie-Hellman

Ephemeral-Static Diffie-Hellman key agreement is defined in RFC TBD1
[DH-X9.42].  When using Ephemeral-Static Diffie-Hellman, the EnvelopedData
RecipientInfo KeyAgreeRecipientInfo and AuthenticatedData RecipientInfo
KeyAgreeRecipientInfo fields are used as follows:

version must be 3.

originator must be the originatorKey alternative.  The originatorKey algorithm
fields must contain the dh-public-number object identifier with absent
parameters.  The originatorKey publicKey field must contain the sender's
ephemeral public key.  The dh-public-number object identifier is:

   dh-public-number OBJECT IDENTIFIER ::= { iso(1) member-body(2)
       us(840) ansi-x942(10046) number-type(2) 1 }

ukm may be absent.  When present, the ukm is used to ensure that a different
key-encryption key is generated when the ephemeral private key might be used
more than once.

keyEncryptionAlgorithm must be the id-alg-ESDH algorithm identifier.  The
algorithm identifier parameter field for id-alg-ESDH is KeyWrapAlgorihtm, and
this parameter must be present.  The KeyWrapAlgorithm denotes the symmetric
encryption algorithm used to encrypt the content-encryption key with the
pairwise key-encryption key generated using the Ephemeral-Static Diffie-Hellman
key agreement algorithm.  Triple-DES and RC2 key wrap algorithms are discussed
in section 12.3.3.  The id-alg-ESDH algorithm
identifier and parameter syntax is:

   id-alg-ESDH OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840)
       rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 5 }

   KeyWrapAlgorithm ::= AlgorithmIdentifier

recipientEncryptedKeys contains an identifier and an encrypted key for each
recipient.  The RecipientEncryptedKey KeyAgreeRecipientIdentifier must contain
either the issuerAndSerialNumber identifying the recipient's certificate or the
RecipientKeyIdentifier containing the subject key identifier from the
recipient's certificate.  In both cases, the recipient's certificate contains
the recipient's static public key.  RecipientEncryptedKey EncryptedKey must
contain the content-encryption key encrypted with the Ephemeral-Static
Diffie-Hellman generated pairwise key-encryption key using the algorithm
specified by the KeyWrapAlgortihm.

12.3.2  Key Transport Algorithms

CMS implementations should include key transport using RSA.  RSA
implementations must include key transport of Triple-DES content-encryption
keys.  RSA implementations should include key transport of RC2
content-encryption keys.

Key transport algorithm identifiers are located in the EnvelopedData
RecipientInfo KeyTransRecipientInfo keyEncryptionAlgorithm and
AuthenticatedData RecipientInfo KeyTransRecipientInfo keyEncryptionAlgorithm
fields.

Key transport encrypted content-encryption keys are located in the
EnvelopedData RecipientInfo KeyTransRecipientInfo EncryptedKey and
AuthenticatedData RecipientInfo KeyTransRecipientInfo EncryptedKey fields.

12.3.2.1  RSA

The RSA key transport algorithm is the RSA encryption scheme defined in RFC
2313 [PKCS#1], block type is 02, where the message to be encrypted is the
content-encryption key.  The algorithm identifier for RSA is:

   rsaEncryption OBJECT IDENTIFIER ::= { iso(1) member-body(2)
       us(840) rsadsi(113549) pkcs(1) pkcs-1(1) 1 }

The AlgorithmIdentifier parameters field must be present, and the parameters
field must contain NULL.

When using a Triple-DES content-encryption key, adjust the parity bits for each
DES key comprising the Triple-DES key prior to RSA encryption.

The use of RSA encryption, as defined in RFC 2313 [PKCS#1], to provide
confidentiality has a known vulnerability concerns.  The vulnerability is
primarily relevant to usage in interactive applications rather than to
store-and-forward environments.  Further information and proposed
countermeasures are discussed in the Security Considerations section of this
document.

Note that the same encryption scheme is also defined in RFC 2437 [NEWPKCS#1]. 
Within RFC 2437, this scheme is called RSAES-PKCS1-v1_5.

12.3.3  Symmetric Key-Encryption Key Algorithms

CMS implementations may include symmetric key-encryption key management.  Such
CMS implementations must include Triple-DES key-encryption keys wrapping
Triple-DES content-encryption keys, and such CMS implementations should include
RC2 key-encryption keys wrapping RC2 content-encryption keys.  A CMS
implementation may support mixed key-encryption and content-encryption
algorithms.  For example, a 40-bit RC2 content-encryption key may be wrapped
with 168-bit Triple-DES key-encryption key or with a 128-bit RC2 key-encryption
key.
 
Key wrap algorithm identifiers are located in the EnvelopedData RecipientInfo
KEKRecipientInfo keyEncryptionAlgorithm and AuthenticatedData RecipientInfo
KEKRecipientInfo keyEncryptionAlgorithm fields.

Wrapped content-encryption keys are located in the EnvelopedData RecipientInfo
KEKRecipientInfo encryptedKey and AuthenticatedData RecipientInfo
KEKRecipientInfo encryptedKey fields.

The output of a key agreement algorithm is a key-encryption key, and this
key-encryption key is used to encrypt the content-encryption key.  In
conjunction with key agreement algorithms, CMS implementations must include
encryption of content-encryption keys with the pairwise key-encryption key
generated using a key agreement algorithm.  To support key agreement, key wrap
algorithm identifiers are located in the KeyWrapAlgorithm parameter of the
EnvelopedData RecipientInfo KeyAgreeRecipientInfo keyEncryptionAlgorithm and
AuthenticatedData RecipientInfo KeyAgreeRecipientInfo keyEncryptionAlgorithm
fields, and wrapped content-encryption keys are located in the EnvelopedData
RecipientInfo KeyAgreeRecipientInfo recipientEncryptedKeys encryptedKey and
AuthenticatedData RecipientInfo KeyAgreeRecipientInfo recipientEncryptedKeys
encryptedKey fields.

12.3.3.1  Triple-DES Key Wrap

Triple-DES key encryption has the algorithm identifier:

   id-alg-CMS3DESwrap OBJECT IDENTIFIER ::= { iso(1) member-body(2)
       us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 6 }

The AlgorithmIdentifier parameter field must be NULL.

The key wrap algorithm used to encrypt a Triple-DES content-encryption key with
a Triple-DES key-encryption key is specified in section 12.6.

Out-of-band distribution of the Triple-DES key-encryption key used to encrypt
the Triple-DES content-encryption key is beyond of the scope of this document.

12.3.3.2  RC2 Key Wrap

RC2 key encryption has the algorithm identifier:

   id-alg-CMSRC2wrap OBJECT IDENTIFIER ::= { iso(1) member-body(2)
       us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 7 }

The AlgorithmIdentifier parameter field must be RC2wrapParameter:

   RC2wrapParameter ::= RC2ParameterVersion

   RC2ParameterVersion ::= INTEGER

The RC2 effective-key-bits (key size) greater than 32 and less than 256 is
encoded in the RC2ParameterVersion.  For the effective-key-bits of 40, 64, and
128, the rc2ParameterVersion values are 160, 120, and 58 respectively.  These
values are not simply the RC2 key length.  Note that the value 160 must be
encoded as two octets (00 A0), because the one octet (A0) encoding represents a
negative number.

The key wrap algorithm used to encrypt a RC2 content-encryption key with a RC2
key-encryption key is specified in section 12.6.

Out-of-band distribution of the RC2 key-encryption key used to encrypt the RC2
content-encryption key is beyond of the scope of this document.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA15788 for ietf-smime-bks; Fri, 26 Mar 1999 08:58:53 -0800 (PST)
Received: from broncho.ucok.edu (broncho.ucok.edu [192.206.65.10]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA15763; Fri, 26 Mar 1999 08:58:35 -0800 (PST)
Received: from england.com ([196.40.0.38]) by broncho.ucok.edu (AIX4.2/UCB 8.7/8.7) with SMTP id KAA41558; Fri, 26 Mar 1999 10:41:22 -0600 (CST)
Message-Id: <199903261641.KAA41558@broncho.ucok.edu>
Date: Sat, 27 Mar 99 00:03:49 EST
From: "mora@england.com" <mora@26601.com>
To: Friend@public.com
Subject: STOCKS ON THE MOVE!
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

PDC Innovative Industries Inc. (Symbol PDCI), OTC Boulletin Board is
prepared for a big move saids stock market analysts. Recently reverse
split 40 for 1 currently trading at 4 Dollars per share. If the stock hits
pre split level the price could easily hit 10 to 12 Dollars per share. PDCI
recently announces major news concerning production and sales
projections. Medical Stock Analyst see PDC's steri-pro invention as mayor
winner. For more info check Dow Jones Historical news.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id NAA24424 for ietf-smime-bks; Wed, 24 Mar 1999 13:59:11 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA24419 for <ietf-smime@imc.org>; Wed, 24 Mar 1999 13:59:10 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id OAA08976; Wed, 24 Mar 1999 14:05:17 -0800 (PST)
Message-Id: <4.1.19990324020428.00a0c100@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 24 Mar 1999 02:04:34 -0500
To: jsp@jgvandyke.com (John Pawling)
From: Russ Housley <housley@spyrus.com>
Subject: Re: x942-06 Comment
Cc: ietf-smime@imc.org
In-Reply-To: <199903241528.KAA16676@ajsn101.jgvandyke.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Agree.


At 10:28 AM 3/24/99 -0500, John Pawling wrote:
>All,
>
>The 22-Mar-99 Diffie-Hellman Key Agreement Method I-D (x942-06), Section
>2.1.2 includes the following text regarding the KeySpecificInfo algorithm
>field:  "algorithm is the ASN.1 algorithm OID of the MEK wrapping algorithm
>with which this KEK will be used."  Recommend that "MEK" should be changed
>to "CEK" in the above text because "MEK" is not defined/used in the S/MIME
>v3 set of specs
>
>=========================================================
>John Pawling,  Director - Systems Engineering
>J.G. Van Dyke & Associates, Inc., a Wang Global Company
>=========================================================
>



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA19922 for ietf-smime-bks; Wed, 24 Mar 1999 07:17:57 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA19918 for <ietf-smime@imc.org>; Wed, 24 Mar 1999 07:17:55 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id KAA28582 for <ietf-smime@imc.org>; Wed, 24 Mar 1999 10:31:08 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id KAA16676; Wed, 24 Mar 1999 10:28:22 -0500
Date: Wed, 24 Mar 1999 10:28:22 -0500
Message-Id: <199903241528.KAA16676@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: x942-06 Comment
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

The 22-Mar-99 Diffie-Hellman Key Agreement Method I-D (x942-06), Section
2.1.2 includes the following text regarding the KeySpecificInfo algorithm
field:  "algorithm is the ASN.1 algorithm OID of the MEK wrapping algorithm
with which this KEK will be used."  Recommend that "MEK" should be changed
to "CEK" in the above text because "MEK" is not defined/used in the S/MIME
v3 set of specs

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id RAA16081 for ietf-smime-bks; Tue, 23 Mar 1999 17:00:11 -0800 (PST)
Received: from aum (ip11.proper.com [165.227.249.11]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id RAA16077 for <ietf-smime@imc.org>; Tue, 23 Mar 1999 17:00:10 -0800 (PST)
Message-Id: <4.2.0.32.19990323165014.00a47f00@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.32 (Beta)
Date: Tue, 23 Mar 1999 17:04:47 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Changes in CMS examples -00
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Greetings again. After talking to Blake Ramsdell and Jim Schaad, the two 
people who are probably going to generate the initial keys and certs for 
the -examples draft, we changed things a bit from the -00 draft. I thought 
I would put the changes on the list to generate some more thinking about 
the content of the draft itself.

In section 6.2, we removed the keys that were used in just that example.

In section 3.2, we added keys for Eve for examples of sharing D-H, and we 
made Diane's RSA key for both signing and encrypting.

In section 3.3, we added a cert for Eve, gave Diane a new RSA cert and a 
new DSS cert, had Alison not inherit her parameters from Carl, and made 
Diane inherit her DSS parameters from Carl.

Got all that? I'll be adding comments to the Base64 in the draft so you 
don't have to just read the names. Here's the text that will most likely be 
in -01.

3.2 Keys

The following keys are needed to create the samples. Note that 
BobPubDHEncrypt and DianePubDHEncrypt do *not* share Diffie-Hellman 
parameters; however, Bob and Eve share Diffie-Hellman parameters. (A joke 
about "safe sets" comes to mind, but is elided.)

AlicePrivDSSSign = XXXXX
AlicePrivRSASign = XXXXX
AlicePubDSSSign = XXXXX
AlicePubRSASign = XXXXX
BobPrivDHEncrypt = XXXXX
BobPrivRSAEncrypt = XXXXX
BobPubDHEncrypt = XXXXX
BobPubRSAEncrypt = XXXXX
CarlPrivDSSSign = XXXXX
CarlPrivRSASign = XXXXX
CarlPubDSSSign = XXXXX
CarlPubRSASign = XXXXX
DianePubDSSSign = XXXXX
DianePubRSASignEncrypt = XXXXX
DianePubDHEncrypt = XXXXX
EvePubDHEncryptBobParam = XXXXX
EvePrivDHEncryptBobParam = XXXXX
MailListTripleDES = XXXXX
MailListRC2 = XXXXX

3.3 Certificates

AliceDSSSignByCarlNoInherit = XXXXX
AliceRSASignByCarl = XXXXX
BobDHEncryptByCarl =  XXXXX
CarlDSSSelf = XXXXX
CarlRSASelf = XXXXX
DianeDSSSignByCarlInherit = XXXXX
DianeDHEncryptByCarl = XXXXX
DianeRSASignEncryptByCarl = XXXXX
EveDHEncryptByCarl = XXXXX



--Paul Hoffman, Director
--Internet Mail Consortium


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id OAA14390 for ietf-smime-bks; Tue, 23 Mar 1999 14:07:55 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id OAA14386 for <ietf-smime@imc.org>; Tue, 23 Mar 1999 14:07:54 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id OAA16862 for <ietf-smime@imc.org>; Tue, 23 Mar 1999 14:14:30 -0800 (PST)
Message-Id: <4.1.19990323030127.00a12b30@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Tue, 23 Mar 1999 03:02:50 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: CERTDIST-03 Working Group Last Call
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message announces the begining of S/MIME Working Group Last call on
the CERTDIST document.  I expect Last Call to close in two weeks unless
significant issues are raised.

Russ



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id OAA14357 for ietf-smime-bks; Tue, 23 Mar 1999 14:04:33 -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 OAA14352 for <ietf-smime@imc.org>; Tue, 23 Mar 1999 14:04:32 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA27847; Tue, 23 Mar 1999 17:11:06 -0500 (EST)
Message-Id: <199903232211.RAA27847@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-x942-06.txt
Date: Tue, 23 Mar 1999 17:11:05 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

Note: This revision reflects comments received during the last call period.

	Title		: Diffie-Hellman Key Agreement Method
	Author(s)	: E. Rescorla
	Filename	: draft-ietf-smime-x942-06.txt
	Pages		: 13
	Date		: 22-Mar-99
	
   This document standardizes one particular Diffie-Hellman variant,
   based on the ANSI X9.42 draft, developed by the ANSI X9F1 working
   group. Diffie-Hellman is a key agreement algorithm used by two par-
   ties to agree on a shared secret. An algorithm for converting the
   shared secret into an arbitrary amount of keying material is pro-
   vided. The resulting keying material is used as a symmetric encryp-
   tion key.  The D-H variant described requires the recipient to have a
   certificate, but the originator may have a static key pair (with the
   public key placed in a certificate) or an ephemeral key pair.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-x942-06.txt

Internet-Drafts are also 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-ietf-smime-x942-06.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-x942-06.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:	<19990322172152.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-x942-06.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-x942-06.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id LAA12957 for ietf-smime-bks; Tue, 23 Mar 1999 11:36:34 -0800 (PST)
Received: from dylithium.adga.ca (dylithium.adga.ca [207.112.67.34]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA12952; Tue, 23 Mar 1999 11:36:32 -0800 (PST)
Received: from xfile ([207.112.70.165]) by dylithium.adga.ca (980427.SGI.8.8.8/8.8.8-ajr) with SMTP id OAA00061; Tue, 23 Mar 1999 14:42:03 -0500 (EST)
Message-Id: <3.0.1.32.19990323144254.00a20ac0@adga.ca>
X-Sender: frousseau@adga.ca
X-Mailer: Windows Eudora Pro Version 3.0.1 (32)
Date: Tue, 23 Mar 1999 14:42:54 -0500
To: Paul Hoffman / IMC <phoffman@imc.org>
From: Francois Rousseau <f.rousseau@adga.ca>
Subject: Re: Proposed changes to the -msg draft
Cc: ietf-smime@imc.org
In-Reply-To: <4.2.0.32.19990323092427.00cdf3c0@mail.imc.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Paul,

I concur with the proposed changes, but I would suggest that the two
statements be made consistent with the terminology currently used in the
-MSG draft. See below.

Francois Rousseau
AEPOS Technologies

At 09:28 AM 23/03/99 -0800, Paul Hoffman / IMC wrote:
>Greetings again. As was discussed in Minneapolis, I propose two small but 
>significant changes to the -msg draft. There was pretty strong agreement in 
>the room at the time, but I'm open to feedback from the list.
>
>I propose that the following statement should be added to Section 2.2:
>
>Note that S/MIME v2 clients are only capable of verifying digital 
>signatures using the rsaEncryption algorithm.
>

I suggest it should read:

Note that S/MIME version 2 receiving agents are only capable of verifying
digital signatures using the rsaEncryption algorithm.

>I also propose that the following statement should be added to Sec 2.3:
>
>Note that S/MIME v2 clients are only capable of decrypting content 
>encryption keys using the rsaEncryption algorithm.
>

I suggest it should read:

Note that S/MIME version 2 receiving agents are only capable of decrypting
content encryption keys using the rsaEncryption algorithm.

>Both sentences reflect reality, not politics. However, I think it's 
>important to add them because a naive developer who picks up the S/MIME v3 
>spec might miss the fact that their implementation won't interoperate with 
>v2 implementations unless they add (if they can) rsaEncryption.
>
>--Paul Hoffman, Director
>--Internet Mail Consortium
>
>


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA12521 for ietf-smime-bks; Tue, 23 Mar 1999 10:42:21 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA12516 for <ietf-smime@imc.org>; Tue, 23 Mar 1999 10:42:14 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id NAA20509 for <ietf-smime@imc.org>; Tue, 23 Mar 1999 13:55:17 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id NAA06673; Tue, 23 Mar 1999 13:52:30 -0500
Date: Tue, 23 Mar 1999 13:52:30 -0500
Message-Id: <199903231852.NAA06673@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: Proposed changes to the -msg draft
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,
I concur with Paul's proposed text.
- John Pawling



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA11661 for ietf-smime-bks; Tue, 23 Mar 1999 09:23:12 -0800 (PST)
Received: from aum (ip11.proper.com [165.227.249.11]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA11657 for <ietf-smime@imc.org>; Tue, 23 Mar 1999 09:23:10 -0800 (PST)
Message-Id: <4.2.0.32.19990323092427.00cdf3c0@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.32 (Beta)
Date: Tue, 23 Mar 1999 09:28:38 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Proposed changes to the -msg draft
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Greetings again. As was discussed in Minneapolis, I propose two small but 
significant changes to the -msg draft. There was pretty strong agreement in 
the room at the time, but I'm open to feedback from the list.

I propose that the following statement should be added to Section 2.2:

Note that S/MIME v2 clients are only capable of verifying digital 
signatures using the rsaEncryption algorithm.

I also propose that the following statement should be added to Sec 2.3:

Note that S/MIME v2 clients are only capable of decrypting content 
encryption keys using the rsaEncryption algorithm.

Both sentences reflect reality, not politics. However, I think it's 
important to add them because a naive developer who picks up the S/MIME v3 
spec might miss the fact that their implementation won't interoperate with 
v2 implementations unless they add (if they can) rsaEncryption.

--Paul Hoffman, Director
--Internet Mail Consortium


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id LAA03424 for ietf-smime-bks; Mon, 22 Mar 1999 11:21:47 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA03420 for <ietf-smime@imc.org>; Mon, 22 Mar 1999 11:21:46 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id LAA20235; Mon, 22 Mar 1999 11:28:16 -0800 (PST)
Message-Id: <4.1.19990321235711.00a03620@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 22 Mar 1999 00:16:56 -0500
To: Eric Rescorla <ekr@rtfm.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Updated draft
Cc: ietf-smime@imc.org
In-Reply-To: <199903211609.IAA20970@speedy.rtfm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Eric:

I have a few comments.  Most are nit-picks.

Russ


= = = = = = = = = = 


>Abstract
>
>   This document standardizes one particular Diffie-Hellman variant,
>   based on the ANSI X9.42 draft, developed by the ANSI X9F1 working
>   group. Diffie-Hellman is a key agreement algorithm used by two par-
>   ties to agree on a shared secret. An algorithm for converting the
>   shared secret into an arbitrary amount of keying material is pro-
>   vided. The resulting keying material is used as a symmetric encryp-
>   tion key.  The D-H variant described requires the recipient to have a
>   certificate, but the originator may have a static key pair (with the
>   public key placed in a certificate) or an ephemeral key pair.

This is the only place you use the D-H abbreviation.  Please spell it out.

>2.1.  Key Agreement
>
>   The first stage of the key agreement process is to compute a shared
>   secret number, called ZZ.  When the same originator and recipient
>   public/private key pairs are used, the same ZZ value will result.
>   The ZZ value is then converted into a shared symmetric cryptographic
>   key. When the originator employs a static private/public key pair,
>   the introduction of public random values are used to ensure that the
>   resulting symmetric key will be different for each key agreement.

Please replace the last sentence.  Since onlt partyAInfo is supported, only
one public random can be used:
	When the originator employs a static private/public key pair,
	the introduction of a public random value ensures that the
	resulting symmetric key will be different for each key agreement.


>2.1.1.  Generation of ZZ
>
>   X9.42 defines that the shared secret ZZ is generated as follows:
>
>           ZZ = g ^ (xb * xa) mod p
>
>   Note that the individual parties actually perform the computations:
>
>           ZZ = yb ^ xa    (mod p) = ya ^ xb  mod p

Please pick one notation.  I think this is the only place "(mod p)" is
used.  My preference is:
	ZZ = (yb ^ xa) mod p = (ya ^ xb) mod p

>
>   where ^ denotes exponentiation
>         ya is party a's public key; ya = g ^ xa mod p
>         yb is party b's public key; yb = g ^ xb mod p
>         xa is party a's private key
>         xb is party b's private key
>         p is a large prime
>         q is a large prime
>         g = h^{(p-1)/q} mod p, where
>         h is any integer with 1 < h < p-1 such that h{(p-1)/q} mod p > 1
>           (g has order q mod p; i.e. g^q mod p = 1 if g!=1)
>         j a large integer such that p=qj + 1
>         (See Section 2.2 for criteria for keys and parameters)
>
>   In [CMS], the recipient's key is identified by the CMS RecipientIden-
>   tifier, which points to the recipient's certificate.  The sender's
>   key is identified using the OriginatorIdentifierOrKey field, either
>   by reference to the sender's certificate or by inline inclusion of a
>   key.

Please change "key" to "public key" in the last sentence.


>2.1.2.  Generation of Keying Material
>
>   [snip]
>   Note that these ASN.1 definitions use EXPLICIT tagging. (In ASN.1,
>   EXPLICIT tagging is implicit unless IMPLICIT is explicitly speci-
>   fied.)

Please move this note right before or right after the ASN.1.

>   To generate a KEK, one generates one or more KM blocks (incrementing
>   counter appropriately) until enough material has been generated.  The
>   KM blocks are concatenated left to right in the obvious order.  I.e.
>   KM(counter=1) || KM(counter=2)...

I think that "obvious order" is asking for trouble.  You are better off
deleting the phrase if you cannot think of a better way to say it.

>2.1.4.  Keylengths for common algorithms
>
>   Some common key encryption algorithms have KEKs of the following
>   lengths.
>
>           3DES-EDE-ECB    192 bits
>           RC2-128         128 bits
>           RC2-40          40 bits

Please change "3DES-EDE-ECB" to "3-key 3DES".  The mode does not determine
key lenght, but the number of keys does.  You might want to include "2-key
3DES" to make this clear.

>2.1.6.  Example 1
>
>
>   ZZ is the 20 bytes 00 01 02 03 04 05 06 07 08 09
>                      0a 0b 0c 0d 0e 0f 10 11 12 13
>
>   The key wrap algorithm is 3DES-EDE wrap.
>
>   No partyAInfo is used

Please add missing period.

>Acknowledgements
>
>   The Key Agreement method described in this document is based on work
>   done by the ANSI X9F1 working group. The author wishes to extend his
>   thanks for their assistance.
>
>   The author also wishes to thank Burt Kaliski, Paul Hoffman, Stephen
>   Henson, Russ Housley, Brian Korver, John Linn, Jim Schaad, Mark
>   Schertler, Peter Yee, and Robert Zuccherato for their expert advice
>   and review.

You may wish to use alphabetical order here.

>   [PKIX] Housley, R., Ford, W., Polk, W., Solo, D., "Internet X.509 Public
>       Key Infrastructure Certificate and CRL Profile", RFC-XXXX.

RFC 2459.  Also, add date.




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA18938 for ietf-smime-bks; Sun, 21 Mar 1999 09:03:58 -0800 (PST)
Received: from bradley.bradley.edu (root@bradley.bradley.edu [136.176.5.10]) by mail.proper.com (8.8.8/8.8.5) with SMTP id JAA18905; Sun, 21 Mar 1999 09:03:09 -0800 (PST)
Received: from Sports (npuntarenas1-a25.racsa.co.cr [196.40.11.154]) by bradley.bradley.edu (8.6.12/8.6.12) with SMTP id KAA16175; Sun, 21 Mar 1999 10:56:07 -0600
Message-Id: <199903211656.KAA16175@bradley.bradley.edu>
Date: Sun, 21 Mar 99 10:50:43 EST
From: "Sports" <Sports@07003.com>
To: Friend@public.com
Subject: Sports
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

BASEBALL & BASKETBALL SEASON PROMOTIONS

We give you a 10% bonus on your initial deposit (minimum $500 deposit -
$50 minimum bet - no maximum.) Though Western Union cash only.

We give you a FREE SPORTS PAGER
(It has injury reports, scores, weather and everything you need to know)
with $1000 or more or get the 10% bonus.

15% Match play for Friend Referral.

20% Match play on your losses every 6 months!

THAT'S 45% BONUSES JUST FOR YOU !!

1-800-973-1514 ext. 7373

Great off shore sports book that really pays out if you win!



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id SAA13592 for ietf-smime-bks; Thu, 18 Mar 1999 18:45:12 -0800 (PST)
Received: from aum (host204.44IETF.MR.Net [209.32.92.204]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id SAA13587; Thu, 18 Mar 1999 18:45:09 -0800 (PST)
Message-Id: <4.2.0.25.19990318205019.00989e30@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.25 (Beta)
Date: Thu, 18 Mar 1999 20:51:51 -0600
To: Russ Housley <housley@spyrus.com>, ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: Reminder to presentors
In-Reply-To: <4.1.19990318011740.009d9970@mail.spyrus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 01:18 AM 3/18/99 -0500, Russ Housley wrote:
>Presentors:
>
>Please send me powerpoint files containing your slides for the IETF minutes.

Unfortunately, I think Blake walked off with my slide. Or maybe Russ did....

--Paul Hoffman, Director
--Internet Mail Consortium


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id NAA10400 for ietf-smime-bks; Thu, 18 Mar 1999 13:33:07 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA10396 for <ietf-smime@imc.org>; Thu, 18 Mar 1999 13:33:06 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (host113.44IETF.MR.Net [209.32.92.113]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id NAA03520 for <ietf-smime@imc.org>; Thu, 18 Mar 1999 13:39:30 -0800 (PST)
Message-Id: <4.1.19990318011740.009d9970@mail.spyrus.com>
Message-Id: <4.1.19990318011740.009d9970@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 18 Mar 1999 01:18:49 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Reminder to presentors
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Presentors:

Please send me powerpoint files containing your slides for the IETF minutes.

Russ


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id PAA01722 for ietf-smime-bks; Wed, 17 Mar 1999 15:50:12 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id PAA01718 for <ietf-smime@imc.org>; Wed, 17 Mar 1999 15:50:11 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (dial01.spyrus.com [207.212.34.121]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id PAA12768; Wed, 17 Mar 1999 15:55:28 -0800 (PST)
Message-Id: <4.1.19990317044406.009fa710@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 17 Mar 1999 04:45:42 -0500
To: "ross@secstan" <ross@secstan.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: ietf-smime@imc.org
In-Reply-To: <002a01be70a1$259945c0$1500000a@jrprotable2>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

No.  CMS will not be modified at this time to support additional
RecipiontInfo CHOICES.  This will be addressed as a separate charter item
once the current charter is fulfilled.

Russ

At 06:08 PM 3/17/99 +0000, you wrote:
>Does this mean that we have come to closure on this? i.e using:
>RecipientInfo ::= CHOICE {
>>>        ktri KeyTransRecipientInfo,
>>>        kari [1] KeyAgreeRecipientInfo,
>>>        kekri [2] KEKRecipientInfo,
>>>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
>management schemes }
>>>
>>>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>>>    keyTypeIdentifier ObjectIdentier,
>>>    keyTypeInfo OCTECT STRING --any defined by OID}
>>
>
>
>-----Original Message-----
>From: John Pawling <jsp@jgvandyke.com>
>To: ross@secstan <ross@secstan.com>; ietf-smime@imc.org <ietf-smime@imc.org>
>Date: 16 March 1999 19:50
>Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
>
>
>>John,
>>
>>Upon further investigation, your proposal (excerpted below) does not cause
>>the ASN.1 decoding problems that I thought that it would.  Contrary to what
>>I stated in yesterday's message, I agree that your proposal would allow
>>general purpose ASN.1 libraries (such as SNACC) to be able to successfully
>>decode the RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and
>>keyTypeInfo OCTET STRING on the first pass.  The receiving software could
>>then examine the keyTypeIdentifier OID to determine if it is able to decode
>>the data within the keyTypeInfo OCTET STRING.  If it does not recognize the
>>OID, then it could skip the processing of this instance of RecipientInfo
>and
>>attempt to find another instance that it recognizes.  If it does not find a
>>recognized RecipientInfo CHOICE syntax that includes the recipient's
>>protected CEK, then the software would return an error.
>>
>>Also, Darren Harter's comment to change keyTypeInfo to an ANY will allow
>>general purpose ASN.1 decode libraries to be able to successfully decode
>the
>>RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and keyTypeInfo
>>ANY on the first pass.  I agree with Darren's comment that the receiving
>>software could completely decode the keyTypeInfo ANY as part of the first
>>pass if it recognizes the keyTypeIdentifier OID.
>>
>>> RecipientInfo ::= CHOICE {
>>>        ktri KeyTransRecipientInfo,
>>>        kari [1] KeyAgreeRecipientInfo,
>>>        kekri [2] KEKRecipientInfo,
>>>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
>>>management schemes }
>>>
>>>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>>>    keyTypeIdentifier ObjectIdentier,
>>>    keyTypeInfo OCTECT STRING --any defined by OID}
>>
>>In summary, I agree that your proposal is technically feasible, but I am
>>still not sure that adding kext is the right thing to do.  This strategy
>>leads us to yet another S/MIME v3 spec that would define
>>ExternallyDefinedKeyAgreement syntaxes.  It seems that another strategy
>>would be to develop a new version of the base CMS document when the syntax
>>needs to be enhanced.
>>
>>- John Pawling
>>
>>
>>
>>At 05:11 PM 3/16/99 -0000, ross@secstan wrote:
>>>John,
>>>
>>>If the choice includes an OID extension with an OCTET STRING, then the one
>>>pass ASN.1 decoding strategy on the entire object works OK. Correct?
>>>
>>>If the implementation can support an OID extension will  it need to dig
>>>deeper into the OCTETSTRING.  Implementations that do not support any OID
>>>extension to the choice will just ignore it,  there should be no syntax or
>>>decoder failure.   The end result will be that envelopeData will decode
>>>correctly.
>>>
>>>So I favour adding the OID extension to the choice.
>>>
>>>Regards
>>>
>>>JR
>>>.
>>>
>>>
>>>
>>
>



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA28960 for ietf-smime-bks; Wed, 17 Mar 1999 10:30:35 -0800 (PST)
Received: from gnasher.sol.co.uk (gnasher.sol.co.uk [194.247.64.2]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA28956 for <ietf-smime@imc.org>; Wed, 17 Mar 1999 10:30:23 -0800 (PST)
Received: from jrprotable2 (e1c10p1.scotland.net [148.176.234.65]) by gnasher.sol.co.uk (8.8.5/8.8.5) with SMTP id SAA22953; Wed, 17 Mar 1999 18:10:41 GMT
Message-ID: <002a01be70a1$259945c0$1500000a@jrprotable2>
From: "ross@secstan" <ross@secstan.com>
To: <ietf-smime@imc.org>, "John Pawling" <jsp@jgvandyke.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Wed, 17 Mar 1999 18:08:09 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Does this mean that we have come to closure on this? i.e using:
RecipientInfo ::= CHOICE {
>>        ktri KeyTransRecipientInfo,
>>        kari [1] KeyAgreeRecipientInfo,
>>        kekri [2] KEKRecipientInfo,
>>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
management schemes }
>>
>>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>>    keyTypeIdentifier ObjectIdentier,
>>    keyTypeInfo OCTECT STRING --any defined by OID}
>


-----Original Message-----
From: John Pawling <jsp@jgvandyke.com>
To: ross@secstan <ross@secstan.com>; ietf-smime@imc.org <ietf-smime@imc.org>
Date: 16 March 1999 19:50
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS


>John,
>
>Upon further investigation, your proposal (excerpted below) does not cause
>the ASN.1 decoding problems that I thought that it would.  Contrary to what
>I stated in yesterday's message, I agree that your proposal would allow
>general purpose ASN.1 libraries (such as SNACC) to be able to successfully
>decode the RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and
>keyTypeInfo OCTET STRING on the first pass.  The receiving software could
>then examine the keyTypeIdentifier OID to determine if it is able to decode
>the data within the keyTypeInfo OCTET STRING.  If it does not recognize the
>OID, then it could skip the processing of this instance of RecipientInfo
and
>attempt to find another instance that it recognizes.  If it does not find a
>recognized RecipientInfo CHOICE syntax that includes the recipient's
>protected CEK, then the software would return an error.
>
>Also, Darren Harter's comment to change keyTypeInfo to an ANY will allow
>general purpose ASN.1 decode libraries to be able to successfully decode
the
>RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and keyTypeInfo
>ANY on the first pass.  I agree with Darren's comment that the receiving
>software could completely decode the keyTypeInfo ANY as part of the first
>pass if it recognizes the keyTypeIdentifier OID.
>
>> RecipientInfo ::= CHOICE {
>>        ktri KeyTransRecipientInfo,
>>        kari [1] KeyAgreeRecipientInfo,
>>        kekri [2] KEKRecipientInfo,
>>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
>>management schemes }
>>
>>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>>    keyTypeIdentifier ObjectIdentier,
>>    keyTypeInfo OCTECT STRING --any defined by OID}
>
>In summary, I agree that your proposal is technically feasible, but I am
>still not sure that adding kext is the right thing to do.  This strategy
>leads us to yet another S/MIME v3 spec that would define
>ExternallyDefinedKeyAgreement syntaxes.  It seems that another strategy
>would be to develop a new version of the base CMS document when the syntax
>needs to be enhanced.
>
>- John Pawling
>
>
>
>At 05:11 PM 3/16/99 -0000, ross@secstan wrote:
>>John,
>>
>>If the choice includes an OID extension with an OCTET STRING, then the one
>>pass ASN.1 decoding strategy on the entire object works OK. Correct?
>>
>>If the implementation can support an OID extension will  it need to dig
>>deeper into the OCTETSTRING.  Implementations that do not support any OID
>>extension to the choice will just ignore it,  there should be no syntax or
>>decoder failure.   The end result will be that envelopeData will decode
>>correctly.
>>
>>So I favour adding the OID extension to the choice.
>>
>>Regards
>>
>>JR
>>.
>>
>>
>>
>



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA28820 for ietf-smime-bks; Wed, 17 Mar 1999 10:14:46 -0800 (PST)
Received: from postoffice.mr.net (dialup.MR.Net [137.192.180.6]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA28816 for <ietf-smime@imc.org>; Wed, 17 Mar 1999 10:14:36 -0800 (PST)
Received: by postoffice.mr.net (8.8.8/8.8.8) with SMTP id MAA04098 at Wed, 17 Mar 1999 12:21:02 -0600 (CST) SMTP "HELO" = balenson.44ietf.mr.net But _really_ from host167.44IETF.MR.Net [209.32.92.167] SMTP "MAIL FROM" = balenson@tislabs.com SMTP "RCPT TO" = 
Message-Id: <199903171821.MAA04098@postoffice.mr.net>
X-Sender: balenson@pop.hq.tis.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0
Date: Wed, 17 Mar 1999 13:20:14 -0500
To: ietf-smime@imc.org
From: "David M. Balenson" <balenson@tislabs.com>
Subject: CFP: ISOC Year 2000 Network & Distr. System Security (NDSS 2000)
Cc: balenson@tislabs.com
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

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


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

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


IMPORTANT DATES:

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

GOAL: 

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

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

  * Secure Electronic Commerce, e.g., payment, barter, EDI,
    notarization/timestamping, endorsement and licensing.
  * Intellectual Property Protection: protocols, schemas,
    implementations, metering, watermarking, other forms of rights
    management.
  * Implementation, deployment and management of network security
    policies.
  * Integrating Security in Internet protocols: routing, naming,
    TCP/IP, multicast, network management, and, of course, the Web.
  * Attack-resistant protocols and services.
  * Special problems and case studies: e.g. interplay and tradeoffs
    between security and efficiency, usability, reliability and cost.
  * Security for collaborative applications and services: tele- and
    video-conferencing, groupwork, etc.
  * Fundamental services: authentication, data integrity,
    confidentiality, authorization, non-repudiation, and availability.
  * Supporting mechanisms and APIs: key management and certification,
    revocation, audit trails and accountability.
  * Integrating security services with system and application security
    facilities and protocols, e.g., message handling, file
    transport/access, directories, time synchronization, data base

    management, boot services, mobile computing.
  * Security for emerging technologies -- sensor networks, specialized
    testbeds, wireless/mobile (and ad hoc) networks, personal
    communication systems, and large heterogeneous distributed systems.
  * Intrusion Avoidance, Detection, and Response: systems, experiences
    and architectures
  * Network Perimeter Controls: firewalls, packet filters, application
    gateways.

BEST PAPER AWARD:

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

GENERAL CHAIR:
  Stephen Welke, Trusted Computer Solutions

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

TUTORIAL CHAIR:
  Doug Maughan, NSA / DARPA

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

LOCAL ARRANGEMENTS CHAIR:
  Thomas Hutton, San Diego Supercomputer Center

PUBLICATIONS CHAIR:
  John Kochmar, SEI

PUBLICITY CHAIR:
  David Balenson, TIS Labs at Network Associates   

LOGISTICS CHAIR:
  Carla Rosenfeld, Internet Society

REGISTRATIONS CHAIR
  Beth Strait, Internet Society

SUBMISSIONS: 

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

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

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

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

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

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

  Each submission will be acknowledged by e-mail.  If acknowledgment
  is not received within seven days, please contact the program
  chair as indicated above.  Authors and panelists will be notified

  of acceptance by August 17, 1999.  Instructions for preparing
  camera-ready copy for the proceedings will be sent at that time.
  The camera-ready copy must be received by October 15, 1999.


----------------------------------------------------------------------
David M. Balenson, Cryptographic Technologies Group
TIS Labs at Network Associates, Inc.
3060 Washington Road, Suite 100, Glenwood, MD 21738  USA
balenson@tislabs.com; 443-259-2358; fax 301-854-4731
pgp fingerprints FD53 918E 097A 2579 C1A8  34F8 E05D E74F AC1D E184 (DSS/DH)
                 D43B 565B 2C0E 90F4  38BB D9EA 1454 3264 (RSA)



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id AAA21269 for ietf-smime-bks; Wed, 17 Mar 1999 00:34:36 -0800 (PST)
Received: from barbar.esat.kuleuven.ac.be (root@barbar.esat.kuleuven.ac.be [134.58.56.153]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id AAA21263; Wed, 17 Mar 1999 00:34:31 -0800 (PST)
Received: from domus.esat.kuleuven.ac.be (domus.esat.kuleuven.ac.be [134.58.189.68]) by barbar (version 8.8.5)  with ESMTP id JAA17405; Wed, 17 Mar 1999 09:40:04 +0100 (MET)
Organization: ESAT, K.U.Leuven, Belgium
Date: Wed, 17 Mar 1999 09:40:04 +0100 (MET)
From: "CMS'99" <cms99@esat.kuleuven.ac.be>
To: cms99@esat.kuleuven.ac.be
Subject: Communications and Multimedia Security '99
Message-ID: <Pine.HPX.4.05.9903170933330.15612-100000@domus.esat.kuleuven.ac.be>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

[Apologies if you receive this more than once]

NEW DEADLINE FOR THE CMS'99 CONFERENCE: 

April 2nd, 1999

The call for papers can be found at 
http://www.esat.kuleuven.ac.be/cosic/cms99/





Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id VAA15701 for ietf-smime-bks; Tue, 16 Mar 1999 21:19:15 -0800 (PST)
Received: from ns2.walltech.com (ns2.walltech.com [208.195.156.18]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id VAA15694 for <ietf-smime@imc.org>; Tue, 16 Mar 1999 21:19:14 -0800 (PST)
Received: from iris (user47.sj.dialup.innetix.com [209.172.68.110]) by ns2.walltech.com (8.8.7/8.8.7/walltech-1.28h) with SMTP id VAA01258; Tue, 16 Mar 1999 21:25:34 -0800 (PST)
Message-Id: <3.0.6.32.19990316212454.007bd100@pop.walltech.com>
X-Sender: bgreenblatt@pop.walltech.com
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32)
Date: Tue, 16 Mar 1999 21:24:54 -0800
To: Russ Housley <housley@spyrus.com>
From: Bruce Greenblatt <bgreenblatt@directory-applications.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: ietf-smime@imc.org
In-Reply-To: <4.1.19990317000628.009dc750@mail.spyrus.com>
References: <3.0.6.32.19990316094910.007baa30@pop.walltech.com> <4.1.19990313171127.009d8cc0@mail.spyrus.com> <4.2.0.29.19990311134917.0096df00@mail.imc.org> <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 12:07 AM 3/17/99 -0500, Russ Housley wrote:
>No.  The current document meets all of the original requirements.  We are
>considering an enhancement that is beyond the original charter.
>
>Russ
>

Thanks for the clarification.  As long as the enhancement to the protocol
doesn't "break" conformant implementations, I think that you and Paul are
right that the process won't be held up.  I thought that I read that an
extension mechanism was going to be put in between PS and DS that would
change the protocol in such a way that implementations that conformed to
the PS version of CMS might get confused by the DS version of the protocol.
 Obviously, this would be a bad thing.

Bruce
================================================
Bruce Greenblatt             
bgreenblatt@directory-applications.com
http://www.directory-applications.com
================================================


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id VAA14548 for ietf-smime-bks; Tue, 16 Mar 1999 21:08:46 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id VAA14542 for <ietf-smime@imc.org>; Tue, 16 Mar 1999 21:08:45 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (dial03.spyrus.com [207.212.34.123]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id VAA23610; Tue, 16 Mar 1999 21:14:10 -0800 (PST)
Message-Id: <4.1.19990317000628.009dc750@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Wed, 17 Mar 1999 00:07:30 -0500
To: Bruce Greenblatt <bgreenblatt@directory-applications.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: ietf-smime@imc.org
In-Reply-To: <3.0.6.32.19990316094910.007baa30@pop.walltech.com>
References: <4.1.19990313171127.009d8cc0@mail.spyrus.com> <4.2.0.29.19990311134917.0096df00@mail.imc.org> <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

No.  The current document meets all of the original requirements.  We are
considering an enhancement that is beyond the original charter.

Russ

At 09:49 AM 3/16/99 -0800, Bruce Greenblatt wrote:
>At 05:22 PM 3/13/99 -0500, Russ Housley wrote:
>>All:
>>
>>I agree with Paul Hoffman.  We should proceed with CMS so that the S/MIME
>>v3 set of documents can become Proposed Standards.  Using the list, we can
>>discuss the best way to handle password-based key management.  We can do as
>>many Internet-Drafts as necessary to sort this out.  Once we reach
>>concensus, we can add the that technique to CMS when the document
>>progresses from Proposed Standard to Draft Standard.
>>
>
>I have a question about this.  Are you producing a document with a known
>deficiency that you intend to correct later in the standards process?  It
>appears to me that making the change that has been suggested using the
>extension mechanism after it has been released as PS would likely cause CMS
>to move backwards in the standards process, and not forwards.  Thus, the
>whole process would be substantially delayed.  You're better off correcting
>the problem now with the "..." or extension mechanism or whatever as part
>of WG last call, and moving on rather than attempting to correct it later,
>and then being shifted back in the standardization process...
>
>Bruce
>================================================
>Bruce Greenblatt             
>bgreenblatt@directory-applications.com
>http://www.directory-applications.com
>================================================



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id MAA25519 for ietf-smime-bks; Tue, 16 Mar 1999 12:12:40 -0800 (PST)
Received: from aum (ts010d12.min-mn.concentric.net [209.31.113.216]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id MAA25514; Tue, 16 Mar 1999 12:12:30 -0800 (PST)
Message-Id: <4.2.0.25.19990316125239.00cc49e0@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.25 (Beta)
Date: Tue, 16 Mar 1999 12:56:40 -0600
To: Bruce Greenblatt <bgreenblatt@directory-applications.com>, Russ Housley <housley@spyrus.com>, ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
In-Reply-To: <3.0.6.32.19990316094910.007baa30@pop.walltech.com>
References: <4.1.19990313171127.009d8cc0@mail.spyrus.com> <4.2.0.29.19990311134917.0096df00@mail.imc.org> <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

>I have a question about this.  Are you producing a document with a known
>deficiency that you intend to correct later in the standards process?

There is a difference between a deficiency and a security flaw. The desire 
for passwords was brought up very late in the process, an indication that 
there are not pressing market needs for it. It would be nice to have, but 
there are significant technical issues, and thus Peter is proposing an 
extension to CMS.

>  It
>appears to me that making the change that has been suggested using the
>extension mechanism after it has been released as PS would likely cause CMS
>to move backwards in the standards process, and not forwards.

I don't understand why. The separate proposal does not have to be bound to 
CMS. If we want to later bind it to CMS, we can postpone going from 
Proposed Standard to Draft Standard by enough months to let the extension 
catch up. Otherwise, they can independently move to Draft Standard. Both 
are quite common in the IETF.

>  Thus, the
>whole process would be substantially delayed.

Just the opposite: there is no delay at all.

>  You're better off correcting
>the problem now with the "..." or extension mechanism or whatever as part
>of WG last call, and moving on rather than attempting to correct it later,
>and then being shifted back in the standardization process...

I respectfully disagree.


--Paul Hoffman, Director
--Internet Mail Consortium


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id LAA25138 for ietf-smime-bks; Tue, 16 Mar 1999 11:29:08 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA25134 for <ietf-smime@imc.org>; Tue, 16 Mar 1999 11:29:07 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id OAA10530; Tue, 16 Mar 1999 14:41:30 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id OAA13129; Tue, 16 Mar 1999 14:38:49 -0500
Date: Tue, 16 Mar 1999 14:38:49 -0500
Message-Id: <199903161938.OAA13129@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "ross@secstan" <ross@secstan.com>, <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John,

Upon further investigation, your proposal (excerpted below) does not cause
the ASN.1 decoding problems that I thought that it would.  Contrary to what
I stated in yesterday's message, I agree that your proposal would allow
general purpose ASN.1 libraries (such as SNACC) to be able to successfully
decode the RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and
keyTypeInfo OCTET STRING on the first pass.  The receiving software could
then examine the keyTypeIdentifier OID to determine if it is able to decode
the data within the keyTypeInfo OCTET STRING.  If it does not recognize the
OID, then it could skip the processing of this instance of RecipientInfo and
attempt to find another instance that it recognizes.  If it does not find a
recognized RecipientInfo CHOICE syntax that includes the recipient's
protected CEK, then the software would return an error.  

Also, Darren Harter's comment to change keyTypeInfo to an ANY will allow
general purpose ASN.1 decode libraries to be able to successfully decode the
RecipientInfo kext CHOICE down to the keyTypeIdentifier OID and keyTypeInfo
ANY on the first pass.  I agree with Darren's comment that the receiving
software could completely decode the keyTypeInfo ANY as part of the first
pass if it recognizes the keyTypeIdentifier OID. 

> RecipientInfo ::= CHOICE {
>        ktri KeyTransRecipientInfo,
>        kari [1] KeyAgreeRecipientInfo,
>        kekri [2] KEKRecipientInfo,
>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
>management schemes }
>
>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>    keyTypeIdentifier ObjectIdentier,
>    keyTypeInfo OCTECT STRING --any defined by OID}

In summary, I agree that your proposal is technically feasible, but I am
still not sure that adding kext is the right thing to do.  This strategy
leads us to yet another S/MIME v3 spec that would define
ExternallyDefinedKeyAgreement syntaxes.  It seems that another strategy
would be to develop a new version of the base CMS document when the syntax
needs to be enhanced.  

- John Pawling



At 05:11 PM 3/16/99 -0000, ross@secstan wrote:
>John,
>
>If the choice includes an OID extension with an OCTET STRING, then the one
>pass ASN.1 decoding strategy on the entire object works OK. Correct?
>
>If the implementation can support an OID extension will  it need to dig
>deeper into the OCTETSTRING.  Implementations that do not support any OID
>extension to the choice will just ignore it,  there should be no syntax or
>decoder failure.   The end result will be that envelopeData will decode
>correctly.
>
>So I favour adding the OID extension to the choice.
>
>Regards
>
>JR
>.
>
>
>



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA24761 for ietf-smime-bks; Tue, 16 Mar 1999 10:57:33 -0800 (PST)
Received: from smtp2.erols.com (smtp2.erols.com [207.172.3.235]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA24756 for <ietf-smime@imc.org>; Tue, 16 Mar 1999 10:57:24 -0800 (PST)
Received: from fujitsu1.ny.certco.com (207-172-111-51.s51.tnt1.ann.va.dialup.rcn.com [207.172.111.51]) by smtp2.erols.com (8.8.8/8.8.5) with ESMTP id OAA07595; Tue, 16 Mar 1999 14:08:13 -0500 (EST)
Message-Id: <199903161908.OAA07595@smtp2.erols.com>
Reply-To: <rankney@erols.com>
From: "Rich Ankney" <rankney@erols.com>
To: "ross@secstan" <ross@secstan.com>, <ietf-smime@imc.org>, "John Pawling" <jsp@jgvandyke.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Tue, 16 Mar 1999 14:03:58 -0500
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I agree with this approach.  Otherwise I'd like to reserve the version
number 73, for X9.73 with CKM key management :-)

/ Rich

----------
> From: ross@secstan <ross@secstan.com>
> To: ietf-smime@imc.org; John Pawling <jsp@jgvandyke.com>
> Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
> Date: Tuesday, March 16, 1999 12:11 PM
> 
> John,
> 
> If the choice includes an OID extension with an OCTET STRING, then the
one
> pass ASN.1 decoding strategy on the entire object works OK. Correct?
> 
> If the implementation can support an OID extension will  it need to dig
> deeper into the OCTETSTRING.  Implementations that do not support any OID
> extension to the choice will just ignore it,  there should be no syntax
or
> decoder failure.   The end result will be that envelopeData will decode
> correctly.
> 
> So I favour adding the OID extension to the choice.
> 
> Regards
> 
> JR
> .
> 
> 
> 
> -----Original Message-----
> From: John Pawling <jsp@jgvandyke.com>
> To: ietf-smime@imc.org <ietf-smime@imc.org>
> Date: 15 March 1999 16:21
> Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
> 
> 
> >John,
> >
> >You stated:
> >>I agree with Peter, CMS should allow the extension of the Choice syntax
> >> i.e. in text using  the old ASN.1 rules), which gives a good pointer
to
> the
> >>implementors that they should not object if the they receive an
extended
> >>choice.
> >
> >I agree that the CMS RecipientInfo CHOICE syntax could be modified in
> future
> >versions of CMS through the addition of well-defined ASN.1 syntaxes, but
I
> >disagree that adding "..." in the current CMS RecipientInfo syntax adds
any
> >value.  If your use of "extended choice" refers to a RecipientInfo
> including
> >a CHOICE alternative not specified in the CMS document, then I object to
> >your statement that implementors "should not object if the they receive
an
> >extended choice."  Please see my previous message for the explanation of
> why
> >I object to the premise that it is straightforward for recipient
software
> to
> >ignore undefined CHOICE alternatives.
> >
> >- John Pawling
> >


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA23668 for ietf-smime-bks; Tue, 16 Mar 1999 09:43:43 -0800 (PST)
Received: from ns2.walltech.com (ns2.walltech.com [208.195.156.18]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA23664 for <ietf-smime@imc.org>; Tue, 16 Mar 1999 09:43:42 -0800 (PST)
Received: from iris (user51.sj.dialup.innetix.com [209.172.68.114]) by ns2.walltech.com (8.8.7/8.8.7/walltech-1.28h) with SMTP id JAA12013; Tue, 16 Mar 1999 09:49:55 -0800 (PST)
Message-Id: <3.0.6.32.19990316094910.007baa30@pop.walltech.com>
X-Sender: bgreenblatt@pop.walltech.com
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32)
Date: Tue, 16 Mar 1999 09:49:10 -0800
To: Russ Housley <housley@spyrus.com>, ietf-smime@imc.org
From: Bruce Greenblatt <bgreenblatt@directory-applications.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
In-Reply-To: <4.1.19990313171127.009d8cc0@mail.spyrus.com>
References: <4.2.0.29.19990311134917.0096df00@mail.imc.org> <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 05:22 PM 3/13/99 -0500, Russ Housley wrote:
>All:
>
>I agree with Paul Hoffman.  We should proceed with CMS so that the S/MIME
>v3 set of documents can become Proposed Standards.  Using the list, we can
>discuss the best way to handle password-based key management.  We can do as
>many Internet-Drafts as necessary to sort this out.  Once we reach
>concensus, we can add the that technique to CMS when the document
>progresses from Proposed Standard to Draft Standard.
>

I have a question about this.  Are you producing a document with a known
deficiency that you intend to correct later in the standards process?  It
appears to me that making the change that has been suggested using the
extension mechanism after it has been released as PS would likely cause CMS
to move backwards in the standards process, and not forwards.  Thus, the
whole process would be substantially delayed.  You're better off correcting
the problem now with the "..." or extension mechanism or whatever as part
of WG last call, and moving on rather than attempting to correct it later,
and then being shifted back in the standardization process...

Bruce
================================================
Bruce Greenblatt             
bgreenblatt@directory-applications.com
http://www.directory-applications.com
================================================


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA23234 for ietf-smime-bks; Tue, 16 Mar 1999 09:07:32 -0800 (PST)
Received: from gnasher.sol.co.uk (gnasher.sol.co.uk [194.247.65.2]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA23230 for <ietf-smime@imc.org>; Tue, 16 Mar 1999 09:07:30 -0800 (PST)
Received: from jrprotable2 (e1c6p55.scotland.net [148.176.233.119]) by gnasher.sol.co.uk (8.8.5/8.8.5) with SMTP id RAA15391; Tue, 16 Mar 1999 17:13:55 GMT
Message-ID: <000c01be6fd0$0e86f980$1500000a@jrprotable2>
From: "ross@secstan" <ross@secstan.com>
To: <ietf-smime@imc.org>, "John Pawling" <jsp@jgvandyke.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Tue, 16 Mar 1999 17:11:34 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John,

If the choice includes an OID extension with an OCTET STRING, then the one
pass ASN.1 decoding strategy on the entire object works OK. Correct?

If the implementation can support an OID extension will  it need to dig
deeper into the OCTETSTRING.  Implementations that do not support any OID
extension to the choice will just ignore it,  there should be no syntax or
decoder failure.   The end result will be that envelopeData will decode
correctly.

So I favour adding the OID extension to the choice.

Regards

JR
.



-----Original Message-----
From: John Pawling <jsp@jgvandyke.com>
To: ietf-smime@imc.org <ietf-smime@imc.org>
Date: 15 March 1999 16:21
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS


>John,
>
>You stated:
>>I agree with Peter, CMS should allow the extension of the Choice syntax
>> i.e. in text using  the old ASN.1 rules), which gives a good pointer to
the
>>implementors that they should not object if the they receive an extended
>>choice.
>
>I agree that the CMS RecipientInfo CHOICE syntax could be modified in
future
>versions of CMS through the addition of well-defined ASN.1 syntaxes, but I
>disagree that adding "..." in the current CMS RecipientInfo syntax adds any
>value.  If your use of "extended choice" refers to a RecipientInfo
including
>a CHOICE alternative not specified in the CMS document, then I object to
>your statement that implementors "should not object if the they receive an
>extended choice."  Please see my previous message for the explanation of
why
>I object to the premise that it is straightforward for recipient software
to
>ignore undefined CHOICE alternatives.
>
>- John Pawling
>



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA22280 for ietf-smime-bks; Tue, 16 Mar 1999 07:28:53 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA22276 for <ietf-smime@imc.org>; Tue, 16 Mar 1999 07:28:51 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (dial01.spyrus.com [207.212.34.121]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id HAA06021 for <ietf-smime@imc.org>; Tue, 16 Mar 1999 07:34:47 -0800 (PST)
Message-Id: <4.1.19990313171127.009d8cc0@mail.spyrus.com>
Message-Id: <4.1.19990313171127.009d8cc0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Sat, 13 Mar 1999 17:22:21 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
In-Reply-To: <4.2.0.29.19990311134917.0096df00@mail.imc.org>
References: <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All:

I agree with Paul Hoffman.  We should proceed with CMS so that the S/MIME
v3 set of documents can become Proposed Standards.  Using the list, we can
discuss the best way to handle password-based key management.  We can do as
many Internet-Drafts as necessary to sort this out.  Once we reach
concensus, we can add the that technique to CMS when the document
progresses from Proposed Standard to Draft Standard.

Of the suggestions discussed so far, I am leaning toward the one made by
Magnus Nyström.  This seems to provide all of the capability needed for
PKCS#15.

On the other hand, the proposal made by Rich Ankney (and seconded by John
Ross) provides a open solution for new techniques are they are needed.  I
have concerns that this may not be the best solution for interoperability.
Rich can you post the ANSI X9F3 requirements for CKM?  Please start a new
thread for that topic.

Russ


At 01:53 PM 3/11/99 -0800, Paul Hoffman / IMC wrote:
>Folks:
>
>Peter has posted an Internet Draft for an addition to CMS. I think it is 
>very late for us to be adding things for which there is disagreement on how 
>to put it in. We can discuss Peter's draft and decide if we want to pass it 
>out of the working group. If we do, it can be a stand-alone RFC. If it gets 
>two independent implementations, we might fold it into the CMS RFC (if we 
>ever get there.....) when we move from Proposed Standard to Draft Standard.
>
>--Paul Hoffman, Director
>--Internet Mail Consortium


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id UAA23531 for ietf-smime-bks; Mon, 15 Mar 1999 20:20:49 -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 UAA23522 for <ietf-smime@imc.org>; Mon, 15 Mar 1999 20:20:46 -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 RAA32147; Tue, 16 Mar 1999 17:27:07 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <92155842632353>; Tue, 16 Mar 1999 17:27:06 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org, ross@secstan.com
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Tue, 16 Mar 1999 17:27:06 (NZDT)
Message-ID: <92155842632353@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"John Ross" <ross@secstan.com> writes:
 
>I also agree with John Pawling, that any extension must be controlled and
>should only be done when there is a requirement not met by the current syntax.
>As per Peter's comment, control of the choice can be achieved by the normal
>RFC process.  Also, if more control is required on S/MIME for interoperability
>reasons, the S/MIME specification (not the CMS spec) could prohibit the
>expansion of the choice unless a new version number is agreed.
 
This sounds like a good way to handle it, that way MSG can profile the stuff
specifically required for S/MIME leaving CMS able to be extended to handle
things which aren't necessarily useful for S/MIME, but are useful for other
applications (things like protection of stored data, of which PKCS #15 is a
prime example).
 
Peter.
 



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA13690 for ietf-smime-bks; Mon, 15 Mar 1999 07:45:58 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA13686 for <ietf-smime@imc.org>; Mon, 15 Mar 1999 07:45:57 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id KAA03684 for <ietf-smime@imc.org>; Mon, 15 Mar 1999 10:58:17 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id KAA27654; Mon, 15 Mar 1999 10:55:37 -0500
Date: Mon, 15 Mar 1999 10:55:37 -0500
Message-Id: <199903151555.KAA27654@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John,

You stated:
>I agree with Peter, CMS should allow the extension of the Choice syntax
> i.e. in text using  the old ASN.1 rules), which gives a good pointer to the
>implementors that they should not object if the they receive an extended
>choice.

I agree that the CMS RecipientInfo CHOICE syntax could be modified in future
versions of CMS through the addition of well-defined ASN.1 syntaxes, but I
disagree that adding "..." in the current CMS RecipientInfo syntax adds any
value.  If your use of "extended choice" refers to a RecipientInfo including
a CHOICE alternative not specified in the CMS document, then I object to
your statement that implementors "should not object if the they receive an
extended choice."  Please see my previous message for the explanation of why
I object to the premise that it is straightforward for recipient software to
ignore undefined CHOICE alternatives. 

- John Pawling



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA13603 for ietf-smime-bks; Mon, 15 Mar 1999 07:32:29 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id HAA13599 for <ietf-smime@imc.org>; Mon, 15 Mar 1999 07:32:27 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id KAA03353 for <ietf-smime@imc.org>; Mon, 15 Mar 1999 10:44:48 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id KAA27413; Mon, 15 Mar 1999 10:42:07 -0500
Date: Mon, 15 Mar 1999 10:42:07 -0500
Message-Id: <199903151542.KAA27413@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter,

I still oppose the addition of "..." to the CMS RecipientInfo syntax.  IMHO,
"..." does not add any value to the document.  Implementors realize that the
S/MIME v3 documents are subject to enhancements.  If people need to add a
CHOICE to the CMS RecipientInfo syntax, then they need to propose a specific
syntax and accompanying text for inclusion in CMS.  


You stated: "- if you don't recognise a CHOICE alternative, you skip it and
continue." 

If you were talking about v3 cert extensions or signedAttributes, I would
agree with your "skip it and continue" strategy for unrecognized syntaxes.
In the case of a CHOICE syntax, I disagree that it is straightforward to
"skip" an unrecognized CHOICE alternative.  Most S/MIME implementations use
an ASN.1 decoding strategy by which the entire object (i.e. envelopedData,
signedData, etc) is decoded via a single call to an ASN.1 library that
implements general purpose ASN.1 decoding rules.  In this case, there is no
easy way to "skip" an unrecognized CHOICE syntax.  That is an error
condition.  For example, if a RecipientInfo includes a CHOICE alternative
not defined in the CMS standard, then the decoding software returns an error
when attempting to decode the object.  I believe that you will find that the
vast majority of S/MIME implementations work in this fashion.  For example,
the S/MIME Freeware Library calls the freeware SNACC ASN.1 library to decode
objects.  The SNACC ASN.1 library is capable of using general purpose ASN.1
rules to decode the ASN.1 syntaxes included in the ASN.1 modules provided at
compile time (ex: CMS ASN.1 module).  If the SNACC library encounters an
unrecognized CHOICE alternative, it returns an error.  There is no easy way
to add code to handle a special case like "skip an unrecognized CHOICE
alternative in recipientInfo".  


>This is why I asked for '...' (or text to that effect for those still stuck
>with ASN.1:1988) be added to CMS, it means it'll be possible to extend the
>CHOICE in the future with further RFC's without requiring an update to CMS
>itself (I believe this was the same rationale behind X.500's Name CHOICE).

I don't like the idea of splitting a CHOICE syntax definition between
multiple documents.  IMHO, that is OK for defining attributes and
extensions, but not CHOICEs.    

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id BAA08771 for ietf-smime-bks; Mon, 15 Mar 1999 01:16:13 -0800 (PST)
Received: from gnasher.sol.co.uk (gnasher.sol.co.uk [194.247.64.2]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA08767 for <ietf-smime@imc.org>; Mon, 15 Mar 1999 01:16:11 -0800 (PST)
Received: from jrwork (e2c9p51.scotland.net [148.176.238.51]) by gnasher.sol.co.uk (8.8.5/8.8.5) with SMTP id JAA06531; Mon, 15 Mar 1999 09:22:11 GMT
Message-ID: <002c01be6f07$c0709350$0400000a@jrwork>
From: "John Ross" <ross@secstan.com>
To: <pgut001@cs.aucKland.ac.nz>, <ietf-smime@imc.org>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Mon, 15 Mar 1999 09:17:38 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I agree with Peter, CMS should allow the extension of the Choice syntax
 i.e. in text using  the old ASN.1 rules), which gives a good pointer to the
implementors that they should not object if the they receive an extended
choice.

I also agree with John Pawling, that any extension must be controlled and
should only be done when there is a requirement not met by the current
syntax. As per Peter's comment, control of the choice can be achieved by the
normal RFC process.  Also, if more control is required on S/MIME for
interoperability reasons, the S/MIME specification  (not the CMS spec) could
prohibit the expansion of the choice unless a new version number is agreed.


Regards
JR




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA27589 for ietf-smime-bks; Sun, 14 Mar 1999 09:18:17 -0800 (PST)
Received: from darius.concentric.net (darius.concentric.net [207.155.198.79]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA27583 for <ietf-smime@imc.org>; Sun, 14 Mar 1999 09:18:15 -0800 (PST)
Received: from newman.concentric.net (newman [207.155.198.71]) by darius.concentric.net (8.9.1a/(98/12/15 5.12)) id MAA25207; Sun, 14 Mar 1999 12:24:36 -0500 (EST) [1-800-745-2747 The Concentric Network]
Received: from aum (ts007d12.min-mn.concentric.net [209.31.113.72]) by newman.concentric.net (8.9.1a) id MAA28927; Sun, 14 Mar 1999 12:24:35 -0500 (EST)
Message-Id: <4.2.0.25.19990314112145.009f51b0@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.25 (Beta)
Date: Sun, 14 Mar 1999 11:24:13 -0600
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Temporary version of CMS KEA and SKIPJACK conventions
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I've posted a temporary copy of the first draft of the "CMS KEA and 
SKIPJACK Conventions"
Internet-Draft at <http://www.imc.org/ietf-smime/temp-cmskea.txt>. John 
Pawling passes along this information:

This document describes the
conventions for using the CMS EnvelopedData and EncryptedData content types
with the Key Exchange Algorithm (KEA) and SKIPJACK encryption algorithm.
The intent of this document is to promote interoperability between
implementations using the FORTEZZA suite of algorithms with CMS.

This document may be discussed at the IETF meeting this week.

--Paul Hoffman, Director
--Internet Mail Consortium


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA21492 for ietf-smime-bks; Sat, 13 Mar 1999 07:54:40 -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 HAA21488 for <ietf-smime@imc.org>; Sat, 13 Mar 1999 07:54:37 -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 FAA15506 for <ietf-smime@imc.org>; Sun, 14 Mar 1999 05:00:49 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <92134084901635>; Sun, 14 Mar 1999 05:00:49 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Sun, 14 Mar 1999 05:00:49 (NZDT)
Message-ID: <92134084901635@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

>I disagree with adding "..." to the RecipientInfo CHOICE because I believe
>that leads to non-interoperable S/MIME implementations.
 
>Personally I think a new version number is advisable every time the choice is
>extended, as that would make the handing of any extended choice easier to
>handle on reception. But I am happy to follow the general consensus on that
>issue.
 
<grumble>
Why are people trying to manufacture all this unnecessary complexity for 
something so simple?  X.500 has had this capability (the Name CHOICE) for over 
10 years and it's never lead to any problems because the only way to extend it 
is via changes to X.500 (that is, you need to extend the standard to extend 
the CHOICE).  Similarly, someone can't just drop in a new CHOICE option for 
CMS, it'd have to be done via the usual CMS standards process, so that 
resulting implementations would be just as interoperable as, say, ESS 
implementations.
 
Similarly, I don't see why it's necessary to change the version number every 
time the CHOICE is extended - if you don't recognise a CHOICE alternative, you 
skip it and continue.  Since CMS already requires changes from S/MIME v2/PKCS 
#7 (by adding the CHOICE) adding an extra line or two of code to 
implementations to skip unrecognised choices can't be that hard.
</grumble>
 
This is why I asked for '...' (or text to that effect for those still stuck
with ASN.1:1988) be added to CMS, it means it'll be possible to extend the
CHOICE in the future with further RFC's without requiring an update to CMS
itself (I believe this was the same rationale behind X.500's Name CHOICE).
There won't be an uncontrolled explosion of choices since the only way to
extend it would be as a full RFC, which would have to go through the usual
carefully-controlled standards process.
 
Peter.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id LAA17710 for ietf-smime-bks; Fri, 12 Mar 1999 11:02:53 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA17706 for <ietf-smime@imc.org>; Fri, 12 Mar 1999 11:02:52 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id OAA28707; Fri, 12 Mar 1999 14:14:54 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id OAA11293; Fri, 12 Mar 1999 14:12:12 -0500
Date: Fri, 12 Mar 1999 14:12:12 -0500
Message-Id: <199903121912.OAA11293@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "ross@secstan" <ross@secstan.com>, <pgut001@cs.aucKland.ac.nz>, <ietf-smime@imc.org>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

I disagree with adding "..." to the RecipientInfo CHOICE because I believe
that leads to non-interoperable S/MIME implementations.  I believe that the
CMS RecipientInfo syntax should not be changed until it is proven that it does
not meet a valid requirement ("valid" as defined by consensus of the S/MIME
WG).  If that occurs, then we should consider adding a well-defined syntax
as a ReceipientInfo CHOICE (not a wild card).

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================


At 06:52 PM 3/12/99 -0000, ross@secstan wrote:
>I am happy to use '...' in the choice syntax, but unfortunately that is not
>available when using 1988 ASN.1.  So that option is not available.
>
>If there is strong objection to having a "controlled" way of extending the
>choice (i.e the OID route), but there is agreement to specifically allow the
>equivalent of '...' in 88 syntax (i.e. extend the choice), then there is a
>need to add a comment in the ASN.1.   Also it would be a advisable to say
>under what condition the CMSversion needs to change (if any).  Rule are
>needed so that there is no misunderstanding on how to  expansion the choice
>in the future.
>
>Personally I think a new  version number is advisable every time the choice
>is extended, as that  would make the handing of any extended choice easier
>to handle on reception. But I am happy to follow the general consensus on
>that issue.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA17638 for ietf-smime-bks; Fri, 12 Mar 1999 10:48:46 -0800 (PST)
Received: from gnasher.sol.co.uk (gnasher.sol.co.uk [194.247.64.2]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA17634 for <ietf-smime@imc.org>; Fri, 12 Mar 1999 10:48:44 -0800 (PST)
Received: from jrprotable2 (e1c10p28.scotland.net [148.176.234.92]) by gnasher.sol.co.uk (8.8.5/8.8.5) with SMTP id SAA18554; Fri, 12 Mar 1999 18:54:45 GMT
Message-ID: <002701be6cb9$7c6f4890$1500000a@jrprotable2>
From: "ross@secstan" <ross@secstan.com>
To: <pgut001@cs.aucKland.ac.nz>, <ietf-smime@imc.org>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Fri, 12 Mar 1999 18:52:21 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I am happy to use '...' in the choice syntax, but unfortunately that is not
available when using 1988 ASN.1.  So that option is not available.

If there is strong objection to having a "controlled" way of extending the
choice (i.e the OID route), but there is agreement to specifically allow the
equivalent of '...' in 88 syntax (i.e. extend the choice), then there is a
need to add a comment in the ASN.1.   Also it would be a advisable to say
under what condition the CMSversion needs to change (if any).  Rule are
needed so that there is no misunderstanding on how to  expansion the choice
in the future.

Personally I think a new  version number is advisable every time the choice
is extended, as that  would make the handing of any extended choice easier
to handle on reception. But I am happy to follow the general consensus on
that issue.
-----Original Message-----
From: Peter Gutmann <pgut001@cs.aucKland.ac.nz>
To: ietf-smime@imc.org <ietf-smime@imc.org>
Date: 12 March 1999 16:38
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS


>Paul Hoffman / IMC <phoffman@imc.org> writes:
>
>>Peter has posted an Internet Draft for an addition to CMS. I think it is
very
>>late for us to be adding things for which there is disagreement on how to
put
>>it in. We can discuss Peter's draft and decide if we want to pass it out
of
>>the working group. If we do, it can be a stand-alone RFC. If it gets two
>>independent implementations, we might fold it into the CMS RFC (if we ever
>>get there.....) when we move from Proposed Standard to Draft Standard.
>
>The point of making it an independent RFC was that it wouldn't hold up the
CMS
>RFC - that can proceed as usual, and the PWRI RFC could be developed at its
>own pace.
>
>>As an alternative, if the current CMS draft would allow for the 'PBES2'
>>algorithm identifier defined in PKCS #5 v2 in the set of
>>KeyEncryptionAlgorithms, there would be no need for changing the ASN.1 in
>>CMS. Another advantage with this is that it would enable an easy way to
send
>>encrypted email where the key is derived from a previously agreed-upon
>>password.
>
>I don't think this is such a good idea, it's a significant change to the
CMS
>RFC at a late stage (which I was trying to avoid by having an independent
PWRI
>RFC), and it's rather a kludge.  I think it'd be better to leave KEKRI for
>what it was intended for and have a dedicated PWRI which specifically
>addresses the requirements of password-based encryption.
>
>"John Ross" <ross@secstan.com> writes:
>
>>Also, if every extension to the choice needs a new CMSversion number
>>assigned, that may be a lot of CMSversion around in the future.
>
>You don't need to do this though, if you use '...' as I suggested in a
>previous message then implementations will know that there could be further
>types added there and skip any new ones they don't recognise.  Once this is
>done, there's no need to change the version number whenever a new choice is
>added.
>
>Peter.
>
>



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA17242 for ietf-smime-bks; Fri, 12 Mar 1999 09:55:35 -0800 (PST)
Received: from doggate.exchange.microsoft.com (doggate.exchange.microsoft.com [131.107.88.55]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA17235 for <ietf-smime@imc.org>; Fri, 12 Mar 1999 09:55:26 -0800 (PST)
Received: by doggate.exchange.microsoft.com with Internet Mail Service (5.5.2232.9) id <GFNX11MN>; Fri, 12 Mar 1999 10:01:03 -0800
Message-ID: <2FBF98FC7852CF11912A0000000000010ECB5DB0@DINO>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'Russ Housley'" <housley@spyrus.com>, cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca, schneier@counterpane.com, daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov, omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil, carlisle.adams@entrust.com, paulv@entrust.com, Blake.greenlee@greenlee.com, Josh Benaloh <benaloh@microsoft.com>, "Barb Fox (Exchange)" <bfox@EXCHANGE.MICROSOFT.com>, cjwagne@missi.ncsc.mil, jis@mit.edu, TACAR.PRV-7.PROVO@novell.com, merkle@parc.xerox.com, BSnow@radium.ncsc.mil, burt@RSA.COM, ekr@rtfm.com, jlinn@securitydynamics.com, ams@terisa.com, rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu, ietf-smime@imc.org
Subject: RE: New Triple-DES Key Wrap Algorithm Section
Date: Fri, 12 Mar 1999 10:00:21 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain; charset="windows-1252"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

I would like to see some changes to the RC2 key wrap algorithm to make it
easier to implement both the RC2 and 3DES wrapping using the same code.  The
core change is that the formatting and padding are done PRIOR to computing
the ICV value and thus all the code from step 4 on is the same for both the
RC2 Key wrap and the 3DES key wrap.

1.  LENGTH = sizeof(CEK)
2.  PAD = random(8 - (LENGTH + 1) % 8)
3.  TMP1 = LENGHT || CEK || PAD
4.  ICV = SHA_8(TMP1)
5.  TMP2 = ENC(TMP1 || ICV, IV)
6.  TMP3 = IV || TMP2
7.  TMP4 = REVERSE(TMP3)
8.  TMP5 = ENC(TMP4, constantIV)

This means that the KEK wrap routine is on constant data and the padding
also happens to be protected.  I suppose there is a possible attack with the
padding, but if the verification routine checks the pad length I doubt it is
possible.  However this means that I have one method of doing KEK rather
than 2.

jim

-----Original Message-----
From: Russ Housley [mailto:housley@spyrus.com]
Sent: Thursday, March 04, 1999 8:52 AM
To: cme@ACM.ORG; berson@anagram.com; bschanni@BayNetworks.com;
kent@bbn.com; pcain@bbn.com; mhetzel@bell-labs.com; brickell@certco.com;
djohnson@certicom.ca; schneier@counterpane.com; daw@cs.berkeley.edu;
denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
omura@cylink.com; dickie@EMPIRE.eclipse.ncsc.mil;
carlisle.adams@entrust.com; paulv@entrust.com;
Blake.greenlee@greenlee.com; Josh Benaloh; Barb Fox (Exchange);
cjwagne@missi.ncsc.mil; jis@mit.edu; TACAR.PRV-7.PROVO@novell.com;
merkle@parc.xerox.com; BSnow@radium.ncsc.mil; burt@RSA.COM;
ekr@rtfm.com; jlinn@securitydynamics.com; ams@terisa.com;
rivest@theory.lcs.mit.edu; balenson@tis.com; denny@tis.com;
acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil; smatyas@us.ibm.com;
desmedt@uwm.edu; ietf-smime@imc.org
Subject: New Triple-DES Key Wrap Algorithm Section


All:

I greatly appreciate the work that everyone has put into the open debate on
key wrapping.

The 44th IETF meeting is coming up rapidly, and I would like to close this
debate prior to the meeting.  To that end, I selected the double-encryption
algorithm.  An updated CMS document has not been posted yet, so I have
attached the text associated with key wrapping.

Based on the discussion on this list, I believe that the double-encryption
algorithm meet the security requirements, and it is easily implemented with
building blocks that are otherwise needed to implement CMS.

I will gladly facilitate the further discussion of the general wrapping
algorithm if the participants are interested.  I do not think that
discussion should occur on the IETF S/MIME Working Group mail list, but I
will arrange for a separate list to be created if you want to pursue the
general wrap algorithm.

Russ


= = = = = = = = = =

12.6  Triple-DES and RC2 Key Wrap Algorithms

   CMS implementations must include encryption of a Triple-DES content-
   encryption key with a Triple-DES key-encryption key using the
   algorithm specified in Sections 12.6.2 and 12.6.3.  CMS
   implementations should include encryption of a RC2 content-encryption
   key with a RC2 key-encryption key using the algorithm specified in
   Sections 12.6.4 and 12.6.5.  Triple-DES and RC2 content-encryption
   keys are encrypted in Cipher Block Chaining (CBC) mode [MODES].

   Key Transport algorithms allow for the content-encryption key to be
   directly encrypted; however, key agreement and symmetric key-
   encryption key algorithms encrypt the content-encryption key with a
   second symmetric encryption algorithm.  This section describes how
   the Triple-DES or RC2 content-encryption key is formatted and
   encrypted.

   Key agreement algorithms generate a pairwise key-encryption key, and
   a key wrap algorithm is used to encrypt the content-encryption key
   with the pairwise key-encryption key.  Similarly, a key wrap
   algorithm is used to encrypt the content-encryption key in a
   previously distributed key-encryption key.

   The key-encryption key is generated by the key agreement algorithm or
   distributed out of band.  For key agreement of RC2 key-encryption
   keys, 128 bits must be generated as input to the key expansion
   process used to compute the RC2 effective key [RC2].

   The same algorithm identifier is used for both 2-key and 3-key
   Triple-DES.  When the length of the content-encryption key to be
   wrapped is a 2-key Triple-DES key, a third key with the same value as
   the first key is created.  Thus, all Triple-DES content-encryption
   keys are wrapped like 3-key Triple-DES keys.

12.6.1  Key Checksum

   The CMS Checksum Algorithm is used to provide a content-encryption
   key integrity check value.  The algorithm is:

   1.  Compute a 20 octet SHA-1 [SHA1] message digest on the
       content-encryption key.
   2.  Use the most significant (first) eight octets of the message
       digest value as the checksum value.

12.6.2  Triple-DES Key Wrap

   The Triple-DES key wrap algorithm encrypts a Triple-DES content-
   encryption key with a Triple-DES key-encryption key.  The Triple-DES
   key wrap algorithm is:

   1.  Set odd parity for each of the DES key octets comprising
       the content-encryption key, call the result CEK.
   2.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1, call the result ICV.
   3.  Let CEKICV = CEK || ICV.
   4.  Generate 8 octets at random, call the result IV.
   5.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
       the random value generated in the previous step as the
       initialization vector (IV).  Call the ciphertext TEMP1.
   6.  Let TEMP2 = IV || TEMP1.
   7.  Reverse the order of the octets in TEMP2.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP3.
   8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
       an initialization vector (IV) of 0x4adda22c79e82105.
       The ciphertext is 40 octets long.

   Note:  When the same content-encryption key is wrapped in different
   key-encryption keys, a fresh initialization vector (IV) must be
   generated for each invocation of the key wrap algorithm.

12.6.3  Triple-DES Key Unwrap

   The Triple-DES key unwrap algorithm decrypts a Triple-DES content-
   encryption key using a Triple-DES key-encryption key.  The Triple-DES
   key unwrap algorithm is:

   1.  If the wrapped content-encryption key is not 40 octets, then
       error.
   2.  Decrypt the wrapped content-encryption key in CBC mode using
       the key-encryption key.  Use an initialization vector (IV)
       of 0x4adda22c79e82105.  Call the output TEMP3.
   3.  Reverse the order of the octets in TEMP3.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP2.
   4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
       significant (first) 8 octets, and TEMP1 is the least significant
       (last) 32 octets.
   5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
       the IV value from the previous step as the initialization vector.
       Call the ciphertext CEKICV.
   6.  Decompose the CEKICV into CEK and ICV. CEK is the most significant
       (first) 24 octets, and ICV is the least significant (last) 8 octets.
   7.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1.  If the computed key checksum value does not
       match the decrypted key checksum value, ICV, then error.
   8.  Check for odd parity each of the DES key octets comprising CEK.
       If parity is incorrect, then there is an error.
   9. Use CEK as the content-encryption key.

12.6.4  RC2 Key Wrap

   The RC2 key wrap algorithm encrypts a RC2 content-encryption key with a 
   RC2 key-encryption key.  The RC2 key wrap algorithm is:

   1.  Let the content-encryption key be called CEK, and let the length
       of the content-encryption key in octets be called LENGTH.
   2.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1, call the result ICV.
   3.  Let CEKICV = LENGTH || CEK || ICV.  LENGTH is a single octet.
   4.  Let CEKICVPAD = CEKICV || PAD.  If the length of CEKICV is a
       multiple of 8, the PAD has a length of zero.  If the length of
       CEKICV is not a multiple of 8, then PAD contains the fewest
       number of random octets to make CEKICVPAD a multiple of 8.
   5.  Generate 8 octets at random, call the result IV.
   5.  Encrypt CEKICVPAD in CBC mode using the key-encryption key.
       Use the random value generated in the previous step as the
       initialization vector (IV).  Call the ciphertext TEMP1.
   6.  Let TEMP2 = IV || TEMP1.
   7.  Reverse the order of the octets in TEMP2.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP3.
   8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
       an initialization vector (IV) of 0x4adda22c79e82105.

   Note:  When the same content-encryption key is wrapped in different
   key-encryption keys, a fresh initialization vector (IV) must be
   generated for each invocation of the key wrap algorithm.

12.6.5  RC2 Key Unwrap

   The RC2 key unwrap algorithm decrypts a RC2 content-encryption key
   using a RC2 key-encryption key.  The RC2 key unwrap algorithm is:

   1.  If the wrapped content-encryption key is not a multiple of 8
       octets, then error.
   2.  Decrypt the wrapped content-encryption key in CBC mode using
       the key-encryption key.  Use an initialization vector (IV)
       of 0x4adda22c79e82105.  Call the output TEMP3.
   3.  Reverse the order of the octets in TEMP3.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP2.
   4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
       significant (first) 8 octets, and TEMP1 is the remaining octets.
   5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
       the IV value from the previous step as the initialization vector.
       Call the ciphertext CEKICVPAD.
   6.  Decompose the CEKICVPAD into LENGTH, CEK, ICV, and PAD.  LENGTH is
       the most significant (first) octet.  CEK is the following LENGTH
       octets.  ICV is the following 8 octets.  PAD is the remaining
       octets, if any.
   7.  If PAD is more than 7 octets, then error.
   8.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1.  If the computed key checksum value does not
       match the decrypted key checksum value, ICV, then error.
   9.  Use CEK as the content-encryption key.

Security Considerations

   Section 12.6 specifies key wrap algorithms used to encrypt a Triple-
   DES [3DES] content-encryption key with a Triple-DES key-encryption
   key or to encrypt a RC2 [RC2] content-encryption key with a RC2 key-
   encryption key.  The key wrap algorithms make use of CBC mode
   [MODES].  These key wrap algorithms have been reviewed for use with
   Triple and RC2.  They have not been reviewed for use with other
   cryptographic modes or other encryption algorithms.  Therefore, if a
   CMS implementation wishes to support ciphers in addition to Triple-
   DES or RC2, then additional key wrap algorithms need to be defined to
   support the additional ciphers.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA16501 for ietf-smime-bks; Fri, 12 Mar 1999 08:10:21 -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 IAA16497 for <ietf-smime@imc.org>; Fri, 12 Mar 1999 08:10:18 -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 FAA23514 for <ietf-smime@imc.org>; Sat, 13 Mar 1999 05:16:24 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <92125538404998>; Sat, 13 Mar 1999 05:16:24 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Sat, 13 Mar 1999 05:16:24 (NZDT)
Message-ID: <92125538404998@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Paul Hoffman / IMC <phoffman@imc.org> writes:
 
>Peter has posted an Internet Draft for an addition to CMS. I think it is very 
>late for us to be adding things for which there is disagreement on how to put 
>it in. We can discuss Peter's draft and decide if we want to pass it out of 
>the working group. If we do, it can be a stand-alone RFC. If it gets two 
>independent implementations, we might fold it into the CMS RFC (if we ever 
>get there.....) when we move from Proposed Standard to Draft Standard.
 
The point of making it an independent RFC was that it wouldn't hold up the CMS 
RFC - that can proceed as usual, and the PWRI RFC could be developed at its 
own pace.
 
>As an alternative, if the current CMS draft would allow for the 'PBES2' 
>algorithm identifier defined in PKCS #5 v2 in the set of 
>KeyEncryptionAlgorithms, there would be no need for changing the ASN.1 in 
>CMS. Another advantage with this is that it would enable an easy way to send 
>encrypted email where the key is derived from a previously agreed-upon 
>password.
 
I don't think this is such a good idea, it's a significant change to the CMS 
RFC at a late stage (which I was trying to avoid by having an independent PWRI 
RFC), and it's rather a kludge.  I think it'd be better to leave KEKRI for 
what it was intended for and have a dedicated PWRI which specifically 
addresses the requirements of password-based encryption.
 
"John Ross" <ross@secstan.com> writes:
 
>Also, if every extension to the choice needs a new CMSversion number 
>assigned, that may be a lot of CMSversion around in the future.
 
You don't need to do this though, if you use '...' as I suggested in a 
previous message then implementations will know that there could be further 
types added there and skip any new ones they don't recognise.  Once this is 
done, there's no need to change the version number whenever a new choice is 
added.
 
Peter.
 



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA15863 for ietf-smime-bks; Fri, 12 Mar 1999 06:54:31 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA15859 for <ietf-smime@imc.org>; Fri, 12 Mar 1999 06:54:30 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id KAA22703; Fri, 12 Mar 1999 10:06:32 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id KAA07921; Fri, 12 Mar 1999 10:03:48 -0500
Date: Fri, 12 Mar 1999 10:03:48 -0500
Message-Id: <199903121503.KAA07921@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: "John Ross" <ross@secstan.com>, <rankney@erols.com>, <pgut001@cs.aucKland.ac.nz>, "Russ Housley" <housley@spyrus.com>
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: <ietf-smime@imc.org>, <burt@RSA.COM>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All,

I believe that this proposal leads to non-interoperable S/MIME
implementations, so I oppose it.  If the originator chooses a kext syntax
that the recipient's software does not understand, then the recipient will
not be able to decrypt the EnvelopedData content.  I believe that the CMS
RecipientInfo syntax should not be changed until it is proven that it does
not meet a valid requirement ("valid" as defined by consensus of the S/MIME
WG).  If that occurs, then we should consider adding a well-defined syntax
as a ReceipientInfo CHOICE (not a wild card).

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
=========================================================


At 05:51 PM 3/11/99 -0800, John Ross wrote:
>If you are going to allow the choice to be extended, I agree with Rick that
>it should be controlled.  Just extending the choice with a new tag (and by
>the way it also then needs a new version number), will give problems in the
>future, as it is not a unique identifier.  What if a private extensions has
>been defined already and used tag 3?  Also, if every extension to the choice
>needs a new CMSversion number assigned, that may be a lot of CMSversion
>around in the future. A while back I proposed to have an extensible "choice"
>using octet string, it would be better using OID and any defined by as
>follows:.
>
>
> The following is an example ASN.1:
>
> RecipientInfo ::= CHOICE {
>        ktri KeyTransRecipientInfo,
>        kari [1] KeyAgreeRecipientInfo,
>        kekri [2] KEKRecipientInfo,
>        kext [3] ExternalyDefinedKeyAgreement --for future or private key
>management schemes }
>
>
>
>ExternalyDefinedKeyAgreement :: = SEQUENCE {
>    keyTypeIdentifier ObjectIdentier,
>    keyTypeInfo OCTECT STRING --any defined by OID}
>
>This will at lease make sure that there is unique identifiers for all the
>extensions to recipient info.
>
>Regards
>
>John Ross
>



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA15718 for ietf-smime-bks; Fri, 12 Mar 1999 06:40:51 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA15714 for <ietf-smime@imc.org>; Fri, 12 Mar 1999 06:40:50 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id JAA22316; Fri, 12 Mar 1999 09:52:52 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id JAA07743; Fri, 12 Mar 1999 09:50:11 -0500
Date: Fri, 12 Mar 1999 09:50:11 -0500
Message-Id: <199903121450.JAA07743@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: RE: More on KEKIdentifiers, and a suggested addition to CMS
Cc: burt@RSA.COM
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Jim and Friends,

I agree with Jim's message.  When I expressed support for Peter's proposal
to enhance the CMS RecipientInfo syntax, I assumed that there was consensus
in the PKCS-15 community regarding the proposal.  Based on subsequent e-mail
traffic, that assumption has been proved to be false.  Therefore, I agree
with Jim that the CMS RecipientInfo syntax should remain unchanged.

- John Pawling 


At 10:20 AM 3/10/99 -0800, Jim Schaad (Exchange) wrote:
>John & Peter,
>
>At this point in time I am not willing to support this. I have two reasons
>for this
>
>1.  I want to get CMS approved, and there are other options for how to
>approach this (such as a new I-D) and we know a new version of CMS is coming
>soon to deal with OEAP
>
>2.  I don't think this is the correct set of items that are needed.  You
>have not proposed an appropriate set of text for section 12.  I don't
>understand why the Content Encrytion Alg should be encoded twice.  I don't
>understand why the KEK Wrap algorithm is not specified.  I just don't think
>this is complete yet.
>
>jim
>
>



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id DAA14702 for ietf-smime-bks; Fri, 12 Mar 1999 03:59:51 -0800 (PST)
Received: from hinge.mistral.co.uk (hinge.mistral.co.uk [195.184.228.15]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id DAA14698 for <ietf-smime@imc.org>; Fri, 12 Mar 1999 03:59:49 -0800 (PST)
Received: from d3-s5-161-telehouse.mistral.co.uk (d3-s5-161-telehouse.mistral.co.uk [195.184.228.161]) by hinge.mistral.co.uk (8.8.5/8.6.9) with SMTP id MAA17608; Fri, 12 Mar 1999 12:05:53 GMT
Received: by d3-s5-161-telehouse.mistral.co.uk with Microsoft Mail id <01BE6C80.43FE1010@d3-s5-161-telehouse.mistral.co.uk>; Fri, 12 Mar 1999 12:02:56 -0000
Message-ID: <01BE6C80.43FE1010@d3-s5-161-telehouse.mistral.co.uk>
From: Darren Harter <darren@sapher.com>
To: "'John Ross'" <ross@secstan.com>, "rankney@erols.com" <rankney@erols.com>, "pgut001@cs.aucKland.ac.nz" <pgut001@cs.aucKland.ac.nz>, Russ Housley <housley@spyrus.com>
Cc: "ietf-smime@imc.org" <ietf-smime@imc.org>, "burt@RSA.COM" <burt@RSA.COM>
Subject: RE: More on KEKIdentifiers, and a suggested addition to CMS
Date: Fri, 12 Mar 1999 09:16:54 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id DAA14699
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John,

I agree in general with what you propose.  I understand the benefit of using an OCTET STRING to ensure easy decoding for recipients that do not understand the syntax of the data associated with keyTypeIdentifier.  However, I believe that a true ANY would be better than an OCTET STRING in this case.

Applications that support CMS already have to deal with a lot of ANY's, so one more is not going to add much complexity.  Also, using an ANY rather than an OCTET STRING allows for a single pass decode process, which an embedded OCTET STRING encoding does not.

The amended part of your syntax would be:

ExternalyDefinedKeyAgreement :: = SEQUENCE {
    keyTypeIdentifier OBJECT IDENTIFIER,
    keyTypeInfo ANY DEFINED BY keyTypeIdentifier }


Regards,

Darren

------------------------------------------------------------------------
Darren Harter BSc (Hons) CEng MBCS
Entegrity Solutions Corp
http://www.entegrity.co.uk
+44 (0) 1452 371383
Email: mailto:darren@sapher.com



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id BAA08307 for ietf-smime-bks; Fri, 12 Mar 1999 01:20:42 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id BAA08299 for <ietf-smime@imc.org>; Fri, 12 Mar 1999 01:20:38 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (hil-qbu-ppu-vty45.as.wcom.net [209.154.55.45]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id BAA11224; Fri, 12 Mar 1999 01:26:01 -0800 (PST)
Message-Id: <4.1.19990311161546.00988e70@mail.spyrus.com>
Message-Id: <4.1.19990311161546.00988e70@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 11 Mar 1999 16:19:48 -0500
To: Burt Kaliski <burt@RSA.COM>
From: Russ Housley <housley@spyrus.com>
Subject: RE: Comments on x942-05 draft 
Cc: ekr@rtfm.com, jlinn@securitydynamics.com, ietf-smime@imc.org
In-Reply-To: <7DE9F929113DD11181C900805F85C1AA6FDF94@geoduck.rsa.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Burt:

You are correct.  The corrent write-up does specify the content-encryption
algorithm OID.  I agree that we should replace the content-encryption
algorithm OID with the key-wrap algorithm OID.

Russ


At 01:07 PM 3/10/99 -0800, Burt Kaliski wrote:
>Dear Russ --
>
>Thanks for the CMS excerpt.
>
>My question is about the parameters to the X9.42 KDF, specifically the OID
>associated with the derived key. The field is defined as follows:
>
>	algorithm is the ASN.1 algorithm OID of the symmetric algorithm with
>which
>	     this KEK will be used. 
>
>I'm assuming that within CMS, the OID would be id-alg-CMS3DESwrap or
>id-alg-CMSRC2wrap.
>
>x942-05 is unclear about this, as "symmetric algorithm" might be interpreted
>as the OID for RC2 or triple-DES, not the key wrapping mechanism. I think
>it's better to identify the key wrapping mechanism, in case there's more
>than one with the same underlying symmetric algorithm. One risk, of course,
>is that the OID for the key wrapping mechansim might be too generic -- so
>there should be some way to include parameters (if any) to the key wrapping
>OID as input to the KDF.
>
>-- Burt
>
>
>> ----------
>> From: 	Russ Housley[SMTP:housley@spyrus.com]
>> Sent: 	Friday, March 05, 1999 10:05 AM
>> To: 	Burt Kaliski
>> Cc: 	Eric Rescorla; jlinn@securitydynamics.com
>> Subject: 	RE: Comments on x942-05 draft 
>> 
>> Burt:
>> 
>> Please take a look at CMS for this answer.  The AlgorithmIdentifier used
>> to
>> name Ephemeral-Static Diffie-Hellman has a parameter, and that parameter
>> specifies the key wrap algorithm.
>> 
>> Russ
>> 


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id NAA13568 for ietf-smime-bks; Thu, 11 Mar 1999 13:48:00 -0800 (PST)
Received: from aum (ip11.proper.com [165.227.249.11]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id NAA13564 for <ietf-smime@imc.org>; Thu, 11 Mar 1999 13:47:59 -0800 (PST)
Message-Id: <4.2.0.29.19990311134917.0096df00@mail.imc.org>
X-Sender: phoffman@mail.imc.org (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.29 (Beta)
Date: Thu, 11 Mar 1999 13:53:03 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
In-Reply-To: <00e901be6c2a$ded01e40$0400000a@jrwork>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Folks:

Peter has posted an Internet Draft for an addition to CMS. I think it is 
very late for us to be adding things for which there is disagreement on how 
to put it in. We can discuss Peter's draft and decide if we want to pass it 
out of the working group. If we do, it can be a stand-alone RFC. If it gets 
two independent implementations, we might fold it into the CMS RFC (if we 
ever get there.....) when we move from Proposed Standard to Draft Standard.

--Paul Hoffman, Director
--Internet Mail Consortium


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA11182 for ietf-smime-bks; Thu, 11 Mar 1999 09:50:24 -0800 (PST)
Received: from gnasher.sol.co.uk (gnasher.sol.co.uk [194.247.64.2]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA11178 for <ietf-smime@imc.org>; Thu, 11 Mar 1999 09:50:22 -0800 (PST)
Received: from jrwork (e1c6p45.scotland.net [148.176.233.109]) by gnasher.sol.co.uk (8.8.5/8.8.5) with SMTP id RAA14355; Thu, 11 Mar 1999 17:55:57 GMT
Message-ID: <00e901be6c2a$ded01e40$0400000a@jrwork>
From: "John Ross" <ross@secstan.com>
To: <rankney@erols.com>, <pgut001@cs.aucKland.ac.nz>, "Russ Housley" <housley@spyrus.com>
Cc: <ietf-smime@imc.org>, <burt@RSA.COM>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Thu, 11 Mar 1999 17:51:28 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

If you are going to allow the choice to be extended, I agree with Rick that
it should be controlled.  Just extending the choice with a new tag (and by
the way it also then needs a new version number), will give problems in the
future, as it is not a unique identifier.  What if a private extensions has
been defined already and used tag 3?  Also, if every extension to the choice
needs a new CMSversion number assigned, that may be a lot of CMSversion
around in the future. A while back I proposed to have an extensible "choice"
using octet string, it would be better using OID and any defined by as
follows:.


 The following is an example ASN.1:

 RecipientInfo ::= CHOICE {
        ktri KeyTransRecipientInfo,
        kari [1] KeyAgreeRecipientInfo,
        kekri [2] KEKRecipientInfo,
        kext [3] ExternalyDefinedKeyAgreement --for future or private key
management schemes }



ExternalyDefinedKeyAgreement :: = SEQUENCE {
    keyTypeIdentifier ObjectIdentier,
    keyTypeInfo OCTECT STRING --any defined by OID}

This will at lease make sure that there is unique identifiers for all the
extensions to recipient info.

Regards

John Ross

-----Original Message-----
From: Rich Ankney <rankney@erols.com>
To: pgut001@cs.aucKland.ac.nz <pgut001@cs.aucKland.ac.nz>; Russ Housley
<housley@spyrus.com>
Cc: ietf-smime@imc.org <ietf-smime@imc.org>; burt@RSA.COM <burt@RSA.COM>
Date: Wednesday, March 10, 1999 10:39 AM
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS


>If we're going to add another recipient type, I'd like to see it be an
>open type (OID and ANY DEFINED BY), of which this would be
>the first case.  ANSI X9F3 would like to add another recipient type,
>as well (the Tecsec CKM stuff from X9.69).  So we would have:
>
>Key transport
>KEK
>Key agreement
>Other
> Password-based
> CKM
>
>Regards,
>Rich
>
>----------
>> From: Russ Housley <housley@spyrus.com>
>> To: pgut001@cs.aucKland.ac.nz
>> Cc: ietf-smime@imc.org; burt@RSA.COM
>> Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
>> Date: Monday, March 08, 1999 4:43 AM
>>
>> Peter:
>>
>> I stayed silent to see if anyone would support your suggestion.  No one
>> spoke for it, but no one spke against it either.  I would like to heard
>> from the list members regarding this suggestion.  I do not consider
>silence
>> a reason to make an additional recipient type....
>>
>> Russ
>>
>> At 04:19 AM 2/21/99 +0000, Peter Gutmann wrote:
>> >I don't know what the final resolution on optional vs mandatory
>> KEKIdentifiers
>> >was, but I note that PKCS #15, which AFAIK is the first non-S/MIME use
>of CMS
>> >KEK encryption, already has to explicitly state that KEKIdentifiers are
>null
>> >strings wherever they occur because they're not useful for anything
>(actually
>> >there's a "not recommended" special-case use for them, see below).  I
>think
>> >this proves my earlier point that there's going to be very little use
>for a
>> >KEKIdentifier outside S/MIME, so that making it optional would be a good
>idea.
>> >
>> >Looking at the way KEKRecipientInfo is being used in PKCS #15, there's a
>
>> >rather obvious recipient type missing from CMS: Password-based
>encryption.
>> >PKCS #15 has a hack for this which puts the key derivation information
>into
>> >the KEKIdentifier (this being the special-case use mentioned above), but
>I'm
>> >sure this isn't what it was intended for because it isn't a key
>identifier at
>> >all but contains the AlgorithmIdentifier for the password processing.
>What's
>> >really needed is a new recipient type, PasswordRecipientInfo.  Included
>below
>> >is a suggestion for this which could drop directly into the CMS draft.
>> >
>> >Peter.
>> >
>> >-- Snip --
>> >
>> >6.2.4  PasswordRecipientInfo Type
>> >
>> >   Recipient information using a user-supplied password is represented
>in the
>> >   type PasswordRecipientInfo.  Each instance of PasswordRecipientInfo
>will
>> >   transfer the content-encryption key to one or more recipients who
>have the
>> >   previously agreed-upon password.
>> >
>> >      PasswordRecipientInfo ::= SEQUENCE {
>> >        version CMSVersion,  -- always set to 0
>> >        keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
>> >        keyEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
>> >        encryptedKey EncryptedKey }
>> >
>> >   The fields of type PasswordRecipientInfo have the following meanings:
>> >
>> >      version is the syntax version number.  It shall always be 0.
>> >
>> >      keyDerivationAlgorithm identifies the key-derivation algorithm,
>and any
>> >      associated parameters, used to derive the key-encryption key from
>the
>> >      user-supplied password.
>> >
>> >      keyEncryptionAlgorithm identifies the content-encryption
>algorithm, and
>> >      any associated parameters, used to encrypt the content-encryption
>key
>> >      with the password-derived key-encryption key.
>> >
>> >      encryptedKey is the result of encrypting the content-encryption
>key with
>> >      the password-derived key-encryption key.
>> >
>> >   The key derivation algorithms are:
>> >
>> >      KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
>> >        { IDENTIFIED BY id-PBKDF2 },
>> >        ...
>> >        }
>> >
>> >    For key derivation, CMS implementations must include PBKDF2
>[PKCS5v2].
>> >
>> >    For content (= key) encryption, CMS implementations must include
>> >Triple-DES
>> >    in CBC mode, should include RC2 in CBC mode, and may include other
>> >    algorithms (CAST-128, RC5, IDEA, Skipjack) and modes as required.
>CMS
>> >    implementations should not include any KSG ciphers such as RC4.
>> >
>> >-- Snip --
>> >
>> >Comments:
>> >
>> >The ContentEncryptionAlgorithmIdentifier is something like:
>> >
>> >      ContentEncryptionAlgorithmIdentifier ::= {
>> >        { IDENTIFIED BY des-ede3-cbc },
>> >        { IDENTIFIED BY rc2CBC },
>> >        { IDENTIFIED BY cast5CBC },
>> >        { IDENTIFIED BY rc5CBC },
>> >        { IDENTIFIED BY ideaCBC },
>> >        { IDENTIFIED BY desCBC },
>> >        ... -- ... and anything else you can think of, eg Skipjack
>> >        }
>> >
>> >but enumerating every possible one is superfluous as they're specified
>> >elsewhere.
>> >
>> >The content is encrypted is as per the KEK algorithm, but using the IV
>given
>> >in the ContentEncryptionAlgorithmIdentifier instead of a fixed IV - this
>is
>> >just standard CMS content encryption.  The advantage of using standard
>> OIDs is
>> >that it doesn't require defining a completely new set of OIDs which
>parallel
>> >all of the existing ones just to show that you're encrypting a key.
>Another
>> >way to handle this is as EncryptedContentInfo (which just adds an extra
>> >SEQUENCE around the existing ContentEncryptionAlgorithmIdentifier +
>> >EncryptedContent (=EncryptedKey)), but this is probably going overboard.
>> >
>> >(I'm prepared to accept a 'kekid [0] KEKIdentifier OPTIONAL' after the
>> version
>> > number if that's what's required to get people's grunt of approval for
>the
>> > thing).
>> >
>> >(Before people complain that you can't change the key wrap algorithm, if
>it
>> > ever does become necessary to change it (and I thought the point of the
>
>> > current key wrap design process was to build a solution once and for
>all),
>> > all you need to do is increment the RecipientInfo version number and
>add
>> > whatever you feel like).
>> >
>> >Peter.
>> >
>> >



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id FAA08661 for ietf-smime-bks; Thu, 11 Mar 1999 05:24:31 -0800 (PST)
Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by mail.proper.com (8.8.8/8.8.5) with SMTP id FAA08657 for <ietf-smime@imc.org>; Thu, 11 Mar 1999 05:24:28 -0800 (PST)
Received: (qmail 1572 invoked from network); 11 Mar 1999 13:30:26 -0000
Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by karon.dynas.se with SMTP; 11 Mar 1999 13:30:26 -0000
Received: from reyzin_pc.securitydynamics.com by spirit.dynas.se with smtp (Smail3.1.28.1 #32) id m10L5Xd-000iSCC; Thu, 11 Mar 99 14:30:25 +0100
Date: Thu, 11 Mar 1999 08:29:47 -0500 (Eastern Standard Time)
From: Magnus Nystrom <magnus@RSA.COM>
To: Peter Gutmann <pgut001@cs.aucKland.ac.nz>
cc: ietf-smime@imc.org
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
In-Reply-To: <92114393229012@cs26.cs.auckland.ac.nz>
Message-ID: <Pine.WNT.4.05.9903110813320.236-100000@reyzin_pc.securitydynamics.com>
X-X-Sender: magnus@spirit.dynas.se
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by mail.proper.com id FAA08658
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

As an alternative, if the current CMS draft would allow for the 'PBES2'
algorithm identifier defined in PKCS #5 v2 in the set of
KeyEncryptionAlgorithms, there would be no need for changing the ASN.1 in
CMS. Another advantage with this is that it would enable an easy way to
send encrypted email where the key is derived from a previously
agreed-upon password.

I realize that this may require PKCS #5 v2 to be published as an
informational RFC.

-- Magnus

Magnus Nyström            Email: magnus@rsa.com
RSA Laboratories          Phone: (781) 687-7000

On Thu, 11 Mar 1999, Peter Gutmann wrote:

> I think the way to avoid the "too late for CMS" problem is to publish
> PasswordRecipientInfo as its own draft which can follow on to CMS at a
> later date.  To handle this all you need to do is add a '...' at the 
> end of the RecipientInfo types in CMS (I think the '...' is implied 
> anyway, since presumably there'll be more than three different types 
> defined at some point).  I submitted a proposed draft covering this a 
> few days ago, I guess I'll jump the gun a bit and post it here (it's 
> fairly short) to give people a better idea of what it could look like.
> 
> Peter
> 
> -- Snip --
> 
> Internet Draft                                      Editor: Peter Gutmann
> draft-ietf-smime-password-00.txt                    University of Auckland
> February 26, 1999
> Expires in six months
> 
>                     Password-based Encryption for S/MIME
> 
> 1. Introduction
> 
> This document describes a password-based content encryption mechanism for
> S/MIME.  This is implemented as a new RecipientInfo type and is an extension to
> the RecipientInfo types currently defined in CMS [CMS].
> 
> The format of the messages are described in ASN.1:1994 [ASN1].
> 
> The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD", "SHOULD NOT",
> "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as
> described in [RFC2119].
> 
> This draft is being discussed on the 'ietf-smime' mailing list.  To
> subscribe, send a message to:
>      ietf-smime-request@imc.org
> with the single word
>      subscribe
> in the body of the message. There is a Web site for the mailing list at
> <http://www.imc.org/ietf-smime/>.
> 
> 1.1 Password-based Content Encryption
> 
> CMS currently defineds three recipient information types for public-key key
> wrapping (KeyTransRecipientInfo), conventional key wrapping (KEKRecipientInfo),
> and key agreement (KeyAgreeRecipientInfo).  The recipient information described
> here adds a fourth type, PasswordRecipientInfo, which provides for
> password-based key wrapping.
> 
> 1.2 RecipientInfo Types
> 
> The new recipient information type is an extension to the RecipientInfo type
> defined in section 6.2 of CMS, extending the types to:
> 
>     RecipientInfo ::= CHOICE {
>       ktri KeyTransRecipientInfo,
>       kari [1] KeyAgreeRecipientInfo,
>       kekri [2] KEKRecipientInfo,
>       pwri [3] PasswordRecipientinfo   -- New RecipientInfo type
>       }
> 
> Although the recipient information generation process is described in terms of
> a password-based operation (since this will be its most common use), the
> transformation employed is a general-purpose key derivation one which allows
> any type of keying material to be converted into a key specific to a particular
> content-encryption algorithm.
> 
> 1.2.1  PasswordRecipientInfo Type
> 
> Recipient information using a user-supplied password is represented in the type
> PasswordRecipientInfo.  Each instance of PasswordRecipientInfo will transfer
> the content-encryption key to one or more recipients who have the previously
> agreed-upon password.
> 
>     PasswordRecipientInfo ::= SEQUENCE {
>       version CMSVersion,  -- always set to 0
>       keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
>       keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
>       encryptedKey EncryptedKey }
> 
> The fields of type PasswordRecipientInfo have the following meanings:
> 
>   version is the syntax version number.  It shall always be 0.
> 
>   keyDerivationAlgorithm identifies the key-derivation algorithm, and any
>   associated parameters, used to derive the key-encryption key (KEK) from the
>   user-supplied password.
> 
>   keyEncryptionAlgorithm identifies the content-encryption algorithm, and any
>   associated parameters, used to encrypt the content-encryption key with the
>   password-derived KEK.
> 
>   encryptedKey is the result of encrypting the content-encryption key with the
>   password-derived KEK.
> 
> 1.2.2 Rationale
> 
> Password-based key wrapping is a two-stage process, a first stage in which the
> user-supplied password is converted into a KEK, and a second stage in which the
> KEK is used to encrypt a content-encryption key.  These two stages are
> identified by the two algorithm identifiers.  Although the PKCS #5 standard
> wraps these up into a single AlgorithmIdentifier, this design is particular to
> that standard and may not be applicable for other password-based key wrapping
> standards.  For this reason the two steps are specified separately.
> 
> 2 Supported Algorithms
> 
> This section lists the algorithms that must be implemented.  Additional
> algorithms that should be implemented are also included.
> 
> 2.1 Key Derivation Algorithms
> 
> These algorithms are used to convert the password into a KEK.  The key
> derivation algorithms are:
> 
>     KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
>       { SYNTAX PBKDF2-params IDENTIFIED BY id-PBKDF2 },
>       ...
>       }
> 
> CMS implementations must include PBKDF2 [PKCS5v2].
> 
> 2.2 Key Encryption Algorithms
> 
> These algorithms are used to encrypt the content (the key) using the derived
> KEK.  The content encryption algorithms are:
> 
>     KeyEncryptionAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= PBES2-Encs
> 
> CMS implementations must include Triple-DES in CBC mode, should include RC2 in
> CBC mode, and may include other algorithms (CAST-128, RC5, IDEA, Skipjack) and
> modes as required.  CMS implementations should not include any KSG ciphers such
> as RC4.
> 
> 2.3 Symmetric Key Encryption Algorithms
> 
> <<Align with CMS KEK algorithm when it's stable.  The content is encrypted is
>   as per the KEK algorithm, but using the IV given in the
>   KeyEncryptionAlgorithmIdentifier instead of a fixed IV - this is just
>   standard CMS content encryption.  The latest CMS KEK stuff looked like it was
>   moving in this direction anyway>>
> 
> 3. Security Considerations
> 
> The security of this recipient information type rests on the security of the
> underlying mechanisms employed, for which further information can be found in
> CMS and PKCS5v2.
> 
> Appendix A: ASN.1 Module
> 
> PasswordRecipientInfo
>     { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
>       modules(0) pwri(n+1) }
> 
> DEFINITIONS IMPLICIT TAGS ::=
> BEGIN
> 
> IMPORTS
> 
>   FROM PKCS5 { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-5(5) }
>        PBKDF2-params, PBES2-Encs;
> 
> PasswordRecipientInfo ::= SEQUENCE {
>   version CMSVersion,  -- always set to 0
>   keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
>   keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
>   encryptedKey EncryptedKey }
> 
> KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
>   { SYNTAX PBKDF2-params IDENTIFIED BY id-PBKDF2 },
>   ...
>   }
> 
> KeyEncryptionAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= PBES2-Encs
> 
> END
> 
> References
> 
>   ASN1  Recommendation X.680: Specification of Abstract Syntax Notation One
>         (ASN.1), 1994.
> 
>   CMS   Cryptographic Message Syntax, draft-ietf-smime-cms-10.txt, Russ
>         Housley, December 1998.
> 
>   PKCS5v2 PKCS #5 v2.0: Password-Based Cryptography Standard, Third Draft, RSA
>         Laboratories, February 1999.
>         <<Presumably this will become an RFC as soon as it's finalised, include
>           this as the actual reference>>
> 
>   RFC2119 Key Words for Use in RFC's to Indicate Requirement Levels, S.Bradner,
>         March 1997.
> 
> 



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id BAA02611 for ietf-smime-bks; Thu, 11 Mar 1999 01:12:55 -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 BAA02607 for <ietf-smime@imc.org>; Thu, 11 Mar 1999 01:12:52 -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 WAA16095 for <ietf-smime@imc.org>; Thu, 11 Mar 1999 22:18:52 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <92114393229012>; Thu, 11 Mar 1999 22:18:52 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Thu, 11 Mar 1999 22:18:52 (NZDT)
Message-ID: <92114393229012@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I think the way to avoid the "too late for CMS" problem is to publish
PasswordRecipientInfo as its own draft which can follow on to CMS at a
later date.  To handle this all you need to do is add a '...' at the 
end of the RecipientInfo types in CMS (I think the '...' is implied 
anyway, since presumably there'll be more than three different types 
defined at some point).  I submitted a proposed draft covering this a 
few days ago, I guess I'll jump the gun a bit and post it here (it's 
fairly short) to give people a better idea of what it could look like.

Peter

-- Snip --

Internet Draft                                      Editor: Peter Gutmann
draft-ietf-smime-password-00.txt                    University of Auckland
February 26, 1999
Expires in six months

                    Password-based Encryption for S/MIME

1. Introduction

This document describes a password-based content encryption mechanism for
S/MIME.  This is implemented as a new RecipientInfo type and is an extension to
the RecipientInfo types currently defined in CMS [CMS].

The format of the messages are described in ASN.1:1994 [ASN1].

The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD", "SHOULD NOT",
"RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as
described in [RFC2119].

This draft is being discussed on the 'ietf-smime' mailing list.  To
subscribe, send a message to:
     ietf-smime-request@imc.org
with the single word
     subscribe
in the body of the message. There is a Web site for the mailing list at
<http://www.imc.org/ietf-smime/>.

1.1 Password-based Content Encryption

CMS currently defineds three recipient information types for public-key key
wrapping (KeyTransRecipientInfo), conventional key wrapping (KEKRecipientInfo),
and key agreement (KeyAgreeRecipientInfo).  The recipient information described
here adds a fourth type, PasswordRecipientInfo, which provides for
password-based key wrapping.

1.2 RecipientInfo Types

The new recipient information type is an extension to the RecipientInfo type
defined in section 6.2 of CMS, extending the types to:

    RecipientInfo ::= CHOICE {
      ktri KeyTransRecipientInfo,
      kari [1] KeyAgreeRecipientInfo,
      kekri [2] KEKRecipientInfo,
      pwri [3] PasswordRecipientinfo   -- New RecipientInfo type
      }

Although the recipient information generation process is described in terms of
a password-based operation (since this will be its most common use), the
transformation employed is a general-purpose key derivation one which allows
any type of keying material to be converted into a key specific to a particular
content-encryption algorithm.

1.2.1  PasswordRecipientInfo Type

Recipient information using a user-supplied password is represented in the type
PasswordRecipientInfo.  Each instance of PasswordRecipientInfo will transfer
the content-encryption key to one or more recipients who have the previously
agreed-upon password.

    PasswordRecipientInfo ::= SEQUENCE {
      version CMSVersion,  -- always set to 0
      keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
      keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
      encryptedKey EncryptedKey }

The fields of type PasswordRecipientInfo have the following meanings:

  version is the syntax version number.  It shall always be 0.

  keyDerivationAlgorithm identifies the key-derivation algorithm, and any
  associated parameters, used to derive the key-encryption key (KEK) from the
  user-supplied password.

  keyEncryptionAlgorithm identifies the content-encryption algorithm, and any
  associated parameters, used to encrypt the content-encryption key with the
  password-derived KEK.

  encryptedKey is the result of encrypting the content-encryption key with the
  password-derived KEK.

1.2.2 Rationale

Password-based key wrapping is a two-stage process, a first stage in which the
user-supplied password is converted into a KEK, and a second stage in which the
KEK is used to encrypt a content-encryption key.  These two stages are
identified by the two algorithm identifiers.  Although the PKCS #5 standard
wraps these up into a single AlgorithmIdentifier, this design is particular to
that standard and may not be applicable for other password-based key wrapping
standards.  For this reason the two steps are specified separately.

2 Supported Algorithms

This section lists the algorithms that must be implemented.  Additional
algorithms that should be implemented are also included.

2.1 Key Derivation Algorithms

These algorithms are used to convert the password into a KEK.  The key
derivation algorithms are:

    KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
      { SYNTAX PBKDF2-params IDENTIFIED BY id-PBKDF2 },
      ...
      }

CMS implementations must include PBKDF2 [PKCS5v2].

2.2 Key Encryption Algorithms

These algorithms are used to encrypt the content (the key) using the derived
KEK.  The content encryption algorithms are:

    KeyEncryptionAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= PBES2-Encs

CMS implementations must include Triple-DES in CBC mode, should include RC2 in
CBC mode, and may include other algorithms (CAST-128, RC5, IDEA, Skipjack) and
modes as required.  CMS implementations should not include any KSG ciphers such
as RC4.

2.3 Symmetric Key Encryption Algorithms

<<Align with CMS KEK algorithm when it's stable.  The content is encrypted is
  as per the KEK algorithm, but using the IV given in the
  KeyEncryptionAlgorithmIdentifier instead of a fixed IV - this is just
  standard CMS content encryption.  The latest CMS KEK stuff looked like it was
  moving in this direction anyway>>

3. Security Considerations

The security of this recipient information type rests on the security of the
underlying mechanisms employed, for which further information can be found in
CMS and PKCS5v2.

Appendix A: ASN.1 Module

PasswordRecipientInfo
    { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
      modules(0) pwri(n+1) }

DEFINITIONS IMPLICIT TAGS ::=
BEGIN

IMPORTS

  FROM PKCS5 { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-5(5) }
       PBKDF2-params, PBES2-Encs;

PasswordRecipientInfo ::= SEQUENCE {
  version CMSVersion,  -- always set to 0
  keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
  keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
  encryptedKey EncryptedKey }

KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
  { SYNTAX PBKDF2-params IDENTIFIED BY id-PBKDF2 },
  ...
  }

KeyEncryptionAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= PBES2-Encs

END

References

  ASN1  Recommendation X.680: Specification of Abstract Syntax Notation One
        (ASN.1), 1994.

  CMS   Cryptographic Message Syntax, draft-ietf-smime-cms-10.txt, Russ
        Housley, December 1998.

  PKCS5v2 PKCS #5 v2.0: Password-Based Cryptography Standard, Third Draft, RSA
        Laboratories, February 1999.
        <<Presumably this will become an RFC as soon as it's finalised, include
          this as the actual reference>>

  RFC2119 Key Words for Use in RFC's to Indicate Requirement Levels, S.Bradner,
        March 1997.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id UAA07449 for ietf-smime-bks; Wed, 10 Mar 1999 20:13:27 -0800 (PST)
Received: from tnt.isi.edu (tnt.isi.edu [128.9.128.128]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA07444; Wed, 10 Mar 1999 20:13:26 -0800 (PST)
Received: from cayman-islands.isi.edu (cayman-islands.isi.edu [128.9.160.140]) by tnt.isi.edu (8.8.7/8.8.6) with ESMTP id UAA27909; Wed, 10 Mar 1999 20:18:56 -0800 (PST)
Received: (from bcn@localhost) by cayman-islands.isi.edu (8.8.7/8.8.6) id UAA15042; Wed, 10 Mar 1999 20:18:55 -0800 (PST)
Date: Wed, 10 Mar 1999 20:18:55 -0800 (PST)
Message-Id: <199903110418.UAA15042@cayman-islands.isi.edu>
From: Clifford Neuman <bcn@ISI.EDU>
To: the-computer-security-community@ISI.EDU
Subject: Workshop on Countering Cyber-Terrorism
Reply-to: bcn@ISI.EDU
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

		      Countering Cyber-Terrorism
			      June 22-23
		      Marina del Rey, California
      A workshop sponsored by the Information Sciences Institute
	       of the University of Southern California

			Call for Participation

Recent studies warn of Cyber-Terrorism and the vulnerability of our
computer systems and infrastructure to attack. These reports identify
damage that determined, knowledgeable, and well-financed adversaries
could inflict on commercial, government, and military systems.  Such
attacks would have severe consequences for the public, and in
particular the economy, which has become dependant on computers and
communications infrastructure.

The objective of this workshop is to identify things that should be
done to improve our ability to detect, protect against, contain,
neutralize, mitigate the effects of, and recover from cyber-terrorist
attacks.  Participants are sought from the computer security,
electronic commerce and banking, network infrastructure, military, and
counter-terrorism communities, as well as those with experience of
cyber-terrorist attacks.  Recommendations may suggest research and
development or operational measures that can be taken.  The workshop
is NOT a forum for presentation of the latest security systems,
protocols or algorithms.  The workshop will address the strategies,
framework, and infrastructure required to combine and incrementally
deploy such technologies to counter the cyber-terrorist threat.

Attendance will be limited to approximately 25 participants.
Participants will be selected on the basis of submitted position
papers that raise issues for the workshop to discuss, identify threats
or countermeasures, or propose strategies or infrastructure to counter
the threat of cyber-terrorism. Position papers should be four pages or
less in length.  Submissions should be sent in e-mail in Word or PDF
format, or as ASCII text to cyber-terrorism-ws@isi.edu.

Please check the web page http://www.isi.edu/cctws for more
information, including a position paper from the organizers which will
be available two weeks prior to the submission deadline.

Important Dates:

  Organizer's Paper Available              April  5, 1999
  Position Papers Due                      April 19, 1999
  Notification of Acceptance               May 1, 1999
  Revised Position Papers Due              May 28, 1999
  Position Papers Available on Web         June 9
  Workshop Dates                           June 22-23

Organizing Committee:

   Bob Balzer, Information Sciences Institute, Balzer@isi.edu
   Thomas Longstaff, CERT Coordination Center, tal@cert.org
   Don Faatz, the MITRE Corporation, dfaatz@mitre.org 
   Clifford Neuman, Information Sciences Institute, bcn@isi.edu


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA03547 for ietf-smime-bks; Wed, 10 Mar 1999 10:20:04 -0800 (PST)
Received: from dylithium.adga.ca (dylithium.adga.ca [207.112.67.34]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA03543 for <ietf-smime@imc.org>; Wed, 10 Mar 1999 10:20:03 -0800 (PST)
Received: from xfile ([207.112.70.165]) by dylithium.adga.ca (980427.SGI.8.8.8/8.8.8-ajr) with SMTP id NAA25572; Wed, 10 Mar 1999 13:24:15 -0500 (EST)
Message-Id: <3.0.1.32.19990310132538.00a0ccd0@adga.ca>
X-Sender: frousseau@adga.ca
X-Mailer: Windows Eudora Pro Version 3.0.1 (32)
Date: Wed, 10 Mar 1999 13:25:38 -0500
To: Russ Housley <housley@spyrus.com>
From: Francois Rousseau <f.rousseau@adga.ca>
Subject: Comment on CMS-11 (Temporary Version)
Cc: ietf-smime@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

I had not noticed this one before but throughout Sections 12.3 various
things (e.g. key agreement algorithm identifiers, key transport algorithm
identifiers, key wrap algorithm identifiers, etc.) are referred as being
located or used from the "EnvelopedData RecipientInfo...", however they
could also be located or used from the "AuthenticatedData RecipientInfo..."

Francois Rousseau
AEPOS Technologies


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA03499 for ietf-smime-bks; Wed, 10 Mar 1999 10:15:17 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA03495 for <ietf-smime@imc.org>; Wed, 10 Mar 1999 10:15:16 -0800 (PST)
Received: by dfssl.dns.microsoft.com with Internet Mail Service (5.5.2448.0) id <GM1BP88Q>; Wed, 10 Mar 1999 10:20:47 -0800
Message-ID: <2FBF98FC7852CF11912A0000000000010ECB5D9E@DINO>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'jsp@jgvandyke.com'" <jsp@jgvandyke.com>, ietf-smime@imc.org
Cc: burt@RSA.COM
Subject: RE: More on KEKIdentifiers, and a suggested addition to CMS
Date: Wed, 10 Mar 1999 10:20:40 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain; charset="windows-1252"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John & Peter,

At this point in time I am not willing to support this. I have two reasons
for this

1.  I want to get CMS approved, and there are other options for how to
approach this (such as a new I-D) and we know a new version of CMS is coming
soon to deal with OEAP

2.  I don't think this is the correct set of items that are needed.  You
have not proposed an appropriate set of text for section 12.  I don't
understand why the Content Encrytion Alg should be encoded twice.  I don't
understand why the KEK Wrap algorithm is not specified.  I just don't think
this is complete yet.

jim


-----Original Message-----
From: jsp@jgvandyke.com [mailto:jsp@jgvandyke.com]
Sent: Wednesday, March 10, 1999 6:34 AM
To: ietf-smime@imc.org
Cc: burt@RSA.COM
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS


Peter, Russ and friends,

Initially, I was opposed to this proposal because it adds yet more
complexity to CMS.  However, I agree with Peter that it is better to have a
clearly defined, meaningful ASN.1 syntax rather than to kludge data into an
existing syntax.  I assume that PKCS #15 is going to be widely used, so it
is worthwhile to enhance the CMS RecipientInfo syntax to include Peter's
proposed PasswordRecipientInfo CHOICE.   

I have a few comments to Peter's proposed additions to CMS:

1) Peter's proposal uses the ALGORITHM-IDENTIFIER syntax which is not part
of the 1988 ASN.1 grammar.  Many moons ago the S/MIME WG decided that the
S/MIME v3 set of specs will only use the 1988 ASN.1 grammar, so I believe
that Peter's proposal should be re-worded to eliminate use of the
ALGORITHM-IDENTIFIER syntax.

2) Recommend that "KSG" be spelled.  

3) Also, please reword the following to use 1988 ASN.1 syntax:
>>The ContentEncryptionAlgorithmIdentifier is something like:
>> 
>>      ContentEncryptionAlgorithmIdentifier ::= {
>>        { IDENTIFIED BY des-ede3-cbc },
>>        { IDENTIFIED BY rc2CBC },
>>        { IDENTIFIED BY cast5CBC },
>>        { IDENTIFIED BY rc5CBC },
>>        { IDENTIFIED BY ideaCBC },
>>        { IDENTIFIED BY desCBC },
>>        ... -- ... and anything else you can think of, eg Skipjack
>>        }


Assuming that CMS is changed to include PasswordRecipientInfo, I don't
believe that the KEKRecipientInfo kekid needs to be changed to be OPTIONAL
(as Peter also proposed) because PKCS #15 will no longer use the
KEKRecipientInfo syntax.

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
========================================================


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA03489 for ietf-smime-bks; Wed, 10 Mar 1999 10:14:17 -0800 (PST)
Received: from smtp3.erols.com (smtp3.erols.com [207.172.3.236]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA03485 for <ietf-smime@imc.org>; Wed, 10 Mar 1999 10:14:12 -0800 (PST)
Received: from fujitsu1.ny.certco.com (207-172-46-41.s41.tnt9.ann.va.dialup.rcn.com [207.172.46.41]) by smtp3.erols.com (8.8.8/8.8.5) with ESMTP id NAA08982; Wed, 10 Mar 1999 13:19:30 -0500 (EST)
Message-Id: <199903101819.NAA08982@smtp3.erols.com>
Reply-To: <rankney@erols.com>
From: "Rich Ankney" <rankney@erols.com>
To: <pgut001@cs.aucKland.ac.nz>, "Russ Housley" <housley@spyrus.com>
Cc: <ietf-smime@imc.org>, <burt@RSA.COM>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Date: Wed, 10 Mar 1999 13:16:52 -0500
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

If we're going to add another recipient type, I'd like to see it be an
open type (OID and ANY DEFINED BY), of which this would be
the first case.  ANSI X9F3 would like to add another recipient type,
as well (the Tecsec CKM stuff from X9.69).  So we would have:

Key transport
KEK
Key agreement
Other
	Password-based
	CKM

Regards,
Rich

----------
> From: Russ Housley <housley@spyrus.com>
> To: pgut001@cs.aucKland.ac.nz
> Cc: ietf-smime@imc.org; burt@RSA.COM
> Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
> Date: Monday, March 08, 1999 4:43 AM
> 
> Peter:
> 
> I stayed silent to see if anyone would support your suggestion.  No one
> spoke for it, but no one spke against it either.  I would like to heard
> from the list members regarding this suggestion.  I do not consider
silence
> a reason to make an additional recipient type....
> 
> Russ
> 
> At 04:19 AM 2/21/99 +0000, Peter Gutmann wrote:
> >I don't know what the final resolution on optional vs mandatory
> KEKIdentifiers 
> >was, but I note that PKCS #15, which AFAIK is the first non-S/MIME use
of CMS 
> >KEK encryption, already has to explicitly state that KEKIdentifiers are
null 
> >strings wherever they occur because they're not useful for anything
(actually 
> >there's a "not recommended" special-case use for them, see below).  I
think 
> >this proves my earlier point that there's going to be very little use
for a 
> >KEKIdentifier outside S/MIME, so that making it optional would be a good
idea.
> > 
> >Looking at the way KEKRecipientInfo is being used in PKCS #15, there's a

> >rather obvious recipient type missing from CMS: Password-based
encryption.  
> >PKCS #15 has a hack for this which puts the key derivation information
into 
> >the KEKIdentifier (this being the special-case use mentioned above), but
I'm 
> >sure this isn't what it was intended for because it isn't a key
identifier at 
> >all but contains the AlgorithmIdentifier for the password processing. 
What's 
> >really needed is a new recipient type, PasswordRecipientInfo.  Included
below 
> >is a suggestion for this which could drop directly into the CMS draft.
> > 
> >Peter.
> > 
> >-- Snip --
> > 
> >6.2.4  PasswordRecipientInfo Type
> > 
> >   Recipient information using a user-supplied password is represented
in the
> >   type PasswordRecipientInfo.  Each instance of PasswordRecipientInfo
will
> >   transfer the content-encryption key to one or more recipients who
have the
> >   previously agreed-upon password.
> > 
> >      PasswordRecipientInfo ::= SEQUENCE {
> >        version CMSVersion,  -- always set to 0
> >        keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
> >        keyEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
> >        encryptedKey EncryptedKey }
> > 
> >   The fields of type PasswordRecipientInfo have the following meanings:
> > 
> >      version is the syntax version number.  It shall always be 0.
> > 
> >      keyDerivationAlgorithm identifies the key-derivation algorithm,
and any
> >      associated parameters, used to derive the key-encryption key from
the
> >      user-supplied password.
> > 
> >      keyEncryptionAlgorithm identifies the content-encryption
algorithm, and
> >      any associated parameters, used to encrypt the content-encryption
key
> >      with the password-derived key-encryption key.
> > 
> >      encryptedKey is the result of encrypting the content-encryption
key with
> >      the password-derived key-encryption key.
> > 
> >   The key derivation algorithms are:
> > 
> >      KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
> >        { IDENTIFIED BY id-PBKDF2 },
> >        ...
> >        }
> > 
> >    For key derivation, CMS implementations must include PBKDF2
[PKCS5v2].
> >                        
> >    For content (= key) encryption, CMS implementations must include 
> >Triple-DES 
> >    in CBC mode, should include RC2 in CBC mode, and may include other 
> >    algorithms (CAST-128, RC5, IDEA, Skipjack) and modes as required. 
CMS 
> >    implementations should not include any KSG ciphers such as RC4.
> > 
> >-- Snip --
> > 
> >Comments:
> > 
> >The ContentEncryptionAlgorithmIdentifier is something like:
> > 
> >      ContentEncryptionAlgorithmIdentifier ::= {
> >        { IDENTIFIED BY des-ede3-cbc },
> >        { IDENTIFIED BY rc2CBC },
> >        { IDENTIFIED BY cast5CBC },
> >        { IDENTIFIED BY rc5CBC },
> >        { IDENTIFIED BY ideaCBC },
> >        { IDENTIFIED BY desCBC },
> >        ... -- ... and anything else you can think of, eg Skipjack
> >        }
> > 
> >but enumerating every possible one is superfluous as they're specified 
> >elsewhere.
> > 
> >The content is encrypted is as per the KEK algorithm, but using the IV
given 
> >in the ContentEncryptionAlgorithmIdentifier instead of a fixed IV - this
is 
> >just standard CMS content encryption.  The advantage of using standard
> OIDs is 
> >that it doesn't require defining a completely new set of OIDs which
parallel 
> >all of the existing ones just to show that you're encrypting a key. 
Another 
> >way to handle this is as EncryptedContentInfo (which just adds an extra 
> >SEQUENCE around the existing ContentEncryptionAlgorithmIdentifier + 
> >EncryptedContent (=EncryptedKey)), but this is probably going overboard.
> > 
> >(I'm prepared to accept a 'kekid [0] KEKIdentifier OPTIONAL' after the
> version 
> > number if that's what's required to get people's grunt of approval for
the 
> > thing).
> > 
> >(Before people complain that you can't change the key wrap algorithm, if
it 
> > ever does become necessary to change it (and I thought the point of the

> > current key wrap design process was to build a solution once and for
all), 
> > all you need to do is increment the RecipientInfo version number and
add 
> > whatever you feel like).
> > 
> >Peter.
> > 
> >


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA02236 for ietf-smime-bks; Wed, 10 Mar 1999 08:15:37 -0800 (PST)
Received: from dylithium.adga.ca (dylithium.adga.ca [207.112.67.34]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA02231; Wed, 10 Mar 1999 08:15:34 -0800 (PST)
Received: from xfile ([207.112.70.165]) by dylithium.adga.ca (980427.SGI.8.8.8/8.8.8-ajr) with SMTP id LAA23921; Wed, 10 Mar 1999 11:19:56 -0500 (EST)
Message-Id: <3.0.1.32.19990310112112.009fc180@adga.ca>
X-Sender: frousseau@adga.ca
X-Mailer: Windows Eudora Pro Version 3.0.1 (32)
Date: Wed, 10 Mar 1999 11:21:12 -0500
To: phoffman@imc.org
From: Francois Rousseau <f.rousseau@adga.ca>
Subject: Re: I-D ACTION:draft-ietf-smime-ess-11.txt
Cc: ietf-smime@imc.org, jsp@jgvandyke.com
In-Reply-To: <199903050139.UAA20829@ietf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Paul,

After reviewing version 11 of ESS I have noticed that you did include Jim's
proposal to expand the use of the signingCertificate attribute in Section
5.4 such that authorization certificates can be either attribute
certificates or normal certificates (e.g. encryption certificate).

However, you did not include the related comments that I had made on 05 Feb
1999 about Jim's proposal that were also supported by John Pawling.

Francois Rousseau
AEPOS Technologies 




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA01507 for ietf-smime-bks; Wed, 10 Mar 1999 06:57:05 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA01501 for <ietf-smime@imc.org>; Wed, 10 Mar 1999 06:57:03 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id KAA06957 for <ietf-smime@imc.org>; Wed, 10 Mar 1999 10:08:55 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id KAA14766; Wed, 10 Mar 1999 10:06:15 -0500
Date: Wed, 10 Mar 1999 10:06:15 -0500
Message-Id: <199903101506.KAA14766@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: Whither SignerInfo content-type?
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter,

I agree with your proposal, but "contentInfo" msut be changed to
"encapContentInfo".

- John Pawling



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA01336 for ietf-smime-bks; Wed, 10 Mar 1999 06:35:08 -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 GAA01331 for <ietf-smime@imc.org>; Wed, 10 Mar 1999 06:35:05 -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 DAA31315 for <ietf-smime@imc.org>; Thu, 11 Mar 1999 03:41:01 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <92107686005906>; Thu, 11 Mar 1999 03:41:00 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Whither SignerInfo content-type?
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Thu, 11 Mar 1999 03:41:00 (NZDT)
Message-ID: <92107686005906@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I've just noticed that there doesn't appear to be anything in CMS which says
what you're supposed to do with the content-type attribute when it's present in
the signedAttributes.  11.1 says "The content-type attribute specifies the
content type of the ContentInfo value being signed in signed-data", but there
doesn't appear to be any clear indication of how to apply this when you verify
the signature.  I know it's obvious, but it'd be a good idea to mention it
explicitly, perhaps add to the content-type description or maybe 11.1 something
like "Where this field is present, implementations must verify during the
signature validation process that it matches the type of the ContentInfo being
signed".
 
Peter.
 



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA01265 for ietf-smime-bks; Wed, 10 Mar 1999 06:25:16 -0800 (PST)
Received: from apollo.jgvandyke.com (apollo.jgvandyke.com [158.189.10.100]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA01261 for <ietf-smime@imc.org>; Wed, 10 Mar 1999 06:25:15 -0800 (PST)
Received: from ajsn101.jgvandyke.com (ajsn101.jgvandyke.com [158.189.2.101]) by apollo.jgvandyke.com (8.8.8/8.8.8) with SMTP id JAA06051; Wed, 10 Mar 1999 09:37:05 -0500 (EST)
Received: from ajpc81 by ajsn101.jgvandyke.com (SMI-8.6/SMI-SVR4) id JAA14386; Wed, 10 Mar 1999 09:34:25 -0500
Date: Wed, 10 Mar 1999 09:34:25 -0500
Message-Id: <199903101434.JAA14386@ajsn101.jgvandyke.com>
X-Sender: jsp@ajsn101
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: ietf-smime@imc.org
From: jsp@jgvandyke.com (John Pawling)
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: burt@RSA.COM
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter, Russ and friends,

Initially, I was opposed to this proposal because it adds yet more
complexity to CMS.  However, I agree with Peter that it is better to have a
clearly defined, meaningful ASN.1 syntax rather than to kludge data into an
existing syntax.  I assume that PKCS #15 is going to be widely used, so it
is worthwhile to enhance the CMS RecipientInfo syntax to include Peter's
proposed PasswordRecipientInfo CHOICE.   

I have a few comments to Peter's proposed additions to CMS:

1) Peter's proposal uses the ALGORITHM-IDENTIFIER syntax which is not part
of the 1988 ASN.1 grammar.  Many moons ago the S/MIME WG decided that the
S/MIME v3 set of specs will only use the 1988 ASN.1 grammar, so I believe
that Peter's proposal should be re-worded to eliminate use of the
ALGORITHM-IDENTIFIER syntax.

2) Recommend that "KSG" be spelled.  

3) Also, please reword the following to use 1988 ASN.1 syntax:
>>The ContentEncryptionAlgorithmIdentifier is something like:
>> 
>>      ContentEncryptionAlgorithmIdentifier ::= {
>>        { IDENTIFIED BY des-ede3-cbc },
>>        { IDENTIFIED BY rc2CBC },
>>        { IDENTIFIED BY cast5CBC },
>>        { IDENTIFIED BY rc5CBC },
>>        { IDENTIFIED BY ideaCBC },
>>        { IDENTIFIED BY desCBC },
>>        ... -- ... and anything else you can think of, eg Skipjack
>>        }


Assuming that CMS is changed to include PasswordRecipientInfo, I don't
believe that the KEKRecipientInfo kekid needs to be changed to be OPTIONAL
(as Peter also proposed) because PKCS #15 will no longer use the
KEKRecipientInfo syntax.

=========================================================
John Pawling,  Director - Systems Engineering
J.G. Van Dyke & Associates, Inc., a Wang Global Company
========================================================



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id UAA10423 for ietf-smime-bks; Tue, 9 Mar 1999 20:29:27 -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 UAA10418 for <ietf-smime@imc.org>; Tue, 9 Mar 1999 20:29:24 -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 RAA14290; Wed, 10 Mar 1999 17:35:07 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <92104050600771>; Wed, 10 Mar 1999 17:35:06 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: housley@spyrus.com
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: ietf-smime@imc.org
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Wed, 10 Mar 1999 17:35:06 (NZDT)
Message-ID: <92104050600771@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

 
>I stayed silent to see if anyone would support your suggestion.  No one spoke
>for it, but no one spke against it either.  I would like to heard from the
>list members regarding this suggestion.  I do not consider silence a reason to
>make an additional recipient type....
 
The maxim of the law is that silence gives consent.  Obviously everyone agrees
with me :-).
 
Peter.
 
>I stayed silent to see if anyone would support your suggestion.  No one spoke
>for it, but no one spke against it either.  I would like to heard from the
>list members regarding this suggestion.  I do not consider silence a reason to
>make an additional recipient type....
 
The maxim of the law is that silence gives consent.  Obviously everyone agrees
with me :-).
 
Peter.
 



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id UAA08544 for ietf-smime-bks; Tue, 9 Mar 1999 20:03:25 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA08537 for <ietf-smime@imc.org>; Tue, 9 Mar 1999 20:03:24 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (hil-qbu-ppu-vty35.as.wcom.net [209.154.55.35]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id UAA22751; Tue, 9 Mar 1999 20:08:14 -0800 (PST)
Message-Id: <4.1.19990308045615.009c0100@209.172.119.123>
Message-Id: <4.1.19990308045615.009c0100@209.172.119.123>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 08 Mar 1999 04:58:27 -0500
To: agenda@ietf.org, ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: 44th IETF - S/MIME Working Group Agenda
In-Reply-To: <199903031902.OAA16356@ietf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

      S/MIME Mail Security WG Agenda

Introductions                   Russ Housley
CMS Draft Discussion            Russ Housley
X9.42 Draft Discussion          Eric Rescorla
Avoiding Small Subgroups        Robert Zuccherato
MSG Draft Discussion            Blake Ramsdell
CERT Draft Discussion           Blake Ramsdell
ESS Draft Discussion            Paul Hoffman
CERTDIST Draft Discussion       Jim Schaad
DOMSEC Draft Discussion         Bill Ottaway
S/MIME v3 Examples              Paul Hoffman
Security Policies and Labels    Russ Housley
Wrap up                         Russ Housley



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id UAA08462 for ietf-smime-bks; Tue, 9 Mar 1999 20:02:46 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA08456 for <ietf-smime@imc.org>; Tue, 9 Mar 1999 20:02:45 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (hil-qbu-ppu-vty35.as.wcom.net [209.154.55.35]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id UAA22724; Tue, 9 Mar 1999 20:07:51 -0800 (PST)
Message-Id: <4.1.19990308044018.009c2e60@209.172.119.123>
Message-Id: <4.1.19990308044018.009c2e60@209.172.119.123>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 08 Mar 1999 04:43:31 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: More on KEKIdentifiers, and a suggested addition to CMS
Cc: ietf-smime@imc.org, burt@RSA.COM
In-Reply-To: <91952395831984@cs26.cs.auckland.ac.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter:

I stayed silent to see if anyone would support your suggestion.  No one
spoke for it, but no one spke against it either.  I would like to heard
from the list members regarding this suggestion.  I do not consider silence
a reason to make an additional recipient type....

Russ

At 04:19 AM 2/21/99 +0000, Peter Gutmann wrote:
>I don't know what the final resolution on optional vs mandatory
KEKIdentifiers 
>was, but I note that PKCS #15, which AFAIK is the first non-S/MIME use of CMS 
>KEK encryption, already has to explicitly state that KEKIdentifiers are null 
>strings wherever they occur because they're not useful for anything (actually 
>there's a "not recommended" special-case use for them, see below).  I think 
>this proves my earlier point that there's going to be very little use for a 
>KEKIdentifier outside S/MIME, so that making it optional would be a good idea.
> 
>Looking at the way KEKRecipientInfo is being used in PKCS #15, there's a 
>rather obvious recipient type missing from CMS: Password-based encryption.  
>PKCS #15 has a hack for this which puts the key derivation information into 
>the KEKIdentifier (this being the special-case use mentioned above), but I'm 
>sure this isn't what it was intended for because it isn't a key identifier at 
>all but contains the AlgorithmIdentifier for the password processing.  What's 
>really needed is a new recipient type, PasswordRecipientInfo.  Included below 
>is a suggestion for this which could drop directly into the CMS draft.
> 
>Peter.
> 
>-- Snip --
> 
>6.2.4  PasswordRecipientInfo Type
> 
>   Recipient information using a user-supplied password is represented in the
>   type PasswordRecipientInfo.  Each instance of PasswordRecipientInfo will
>   transfer the content-encryption key to one or more recipients who have the
>   previously agreed-upon password.
> 
>      PasswordRecipientInfo ::= SEQUENCE {
>        version CMSVersion,  -- always set to 0
>        keyDerivationAlgorithm KeyDerivationAlgorithmIdentifier,
>        keyEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
>        encryptedKey EncryptedKey }
> 
>   The fields of type PasswordRecipientInfo have the following meanings:
> 
>      version is the syntax version number.  It shall always be 0.
> 
>      keyDerivationAlgorithm identifies the key-derivation algorithm, and any
>      associated parameters, used to derive the key-encryption key from the
>      user-supplied password.
> 
>      keyEncryptionAlgorithm identifies the content-encryption algorithm, and
>      any associated parameters, used to encrypt the content-encryption key
>      with the password-derived key-encryption key.
> 
>      encryptedKey is the result of encrypting the content-encryption key with
>      the password-derived key-encryption key.
> 
>   The key derivation algorithms are:
> 
>      KeyDerivationAlgorithmIdentifer ALGORITHM-IDENTIFIER ::= {
>        { IDENTIFIED BY id-PBKDF2 },
>        ...
>        }
> 
>    For key derivation, CMS implementations must include PBKDF2 [PKCS5v2].
>                        
>    For content (= key) encryption, CMS implementations must include 
>Triple-DES 
>    in CBC mode, should include RC2 in CBC mode, and may include other 
>    algorithms (CAST-128, RC5, IDEA, Skipjack) and modes as required.  CMS 
>    implementations should not include any KSG ciphers such as RC4.
> 
>-- Snip --
> 
>Comments:
> 
>The ContentEncryptionAlgorithmIdentifier is something like:
> 
>      ContentEncryptionAlgorithmIdentifier ::= {
>        { IDENTIFIED BY des-ede3-cbc },
>        { IDENTIFIED BY rc2CBC },
>        { IDENTIFIED BY cast5CBC },
>        { IDENTIFIED BY rc5CBC },
>        { IDENTIFIED BY ideaCBC },
>        { IDENTIFIED BY desCBC },
>        ... -- ... and anything else you can think of, eg Skipjack
>        }
> 
>but enumerating every possible one is superfluous as they're specified 
>elsewhere.
> 
>The content is encrypted is as per the KEK algorithm, but using the IV given 
>in the ContentEncryptionAlgorithmIdentifier instead of a fixed IV - this is 
>just standard CMS content encryption.  The advantage of using standard
OIDs is 
>that it doesn't require defining a completely new set of OIDs which parallel 
>all of the existing ones just to show that you're encrypting a key.  Another 
>way to handle this is as EncryptedContentInfo (which just adds an extra 
>SEQUENCE around the existing ContentEncryptionAlgorithmIdentifier + 
>EncryptedContent (=EncryptedKey)), but this is probably going overboard.
> 
>(I'm prepared to accept a 'kekid [0] KEKIdentifier OPTIONAL' after the
version 
> number if that's what's required to get people's grunt of approval for the 
> thing).
> 
>(Before people complain that you can't change the key wrap algorithm, if it 
> ever does become necessary to change it (and I thought the point of the 
> current key wrap design process was to build a solution once and for all), 
> all you need to do is increment the RecipientInfo version number and add 
> whatever you feel like).
> 
>Peter.
> 
>


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id UAA08422 for ietf-smime-bks; Tue, 9 Mar 1999 20:02:30 -0800 (PST)
Received: from spyrus.com (mail.spyrus.com [207.212.34.30]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA08415 for <ietf-smime@imc.org>; Tue, 9 Mar 1999 20:02:29 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (hil-qbu-ppu-vty35.as.wcom.net [209.154.55.35]) by spyrus.com (8.7.6/8.7.3/arc) with SMTP id UAA22701; Tue, 9 Mar 1999 20:07:32 -0800 (PST)
Message-Id: <4.1.19990308043637.009ade70@209.172.119.123>
Message-Id: <4.1.19990308043637.009ade70@209.172.119.123>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Mon, 08 Mar 1999 04:37:29 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: Correct definition of ContentInfo in CMS-10
Cc: ietf-smime@imc.org, ross@jgross.demon.co.uk
In-Reply-To: <91969478808191@cs26.cs.auckland.ac.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter:

Thanks for pointing out the error in the Appendix.  You are correct,
content is NOT OPTIONAL.

Russ


At 03:46 AM 2/23/99 +0000, Peter Gutmann wrote:
>>>Within the body of CMS 10 ContentInfo is defined as : -
>>>
>>>ContentInfo ::= SEQUENCE {
>>>        contentType ContentType,
>>>        content [0] EXPLICIT ANY DEFINED BY contentType }
>>>
>>>However, in the appendix ContentInfo is defined as : -
>>>
>>>ContentInfo ::= SEQUENCE {
>>>     contentType ContentType,
>>>     content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>>>
>>>I assume the one within the body (i.e. content not optional) is correct.
> 
>>I assume that content is not optional
> 
>The content is optional.  Think about how detached sigs work.
> 
>Peter.
>


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id UAA27010 for ietf-smime-bks; Sat, 6 Mar 1999 20:09:21 -0800 (PST)
Received: from aum (ip11.proper.com [165.227.249.11]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id UAA27003 for <ietf-smime@imc.org>; Sat, 6 Mar 1999 20:09:19 -0800 (PST)
Message-Id: <4.2.0.25.19990306200136.00ad0280@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.25 (Beta)
Date: Sat, 06 Mar 1999 20:07:17 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Temporary versions of new drafts
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Greetings. Blake and Russ missed the cutoff for turning in draft by a tiny 
bit and were not able to get them into the drafts directory. I've posted 
the -msg, -cert, and -cms drafts on the WG's web site at 
<http://www.imc.org/ietf-smime/>. That site also has the recent versions of 
the -ess and -certdist drafts.

--Paul Hoffman, Director
--Internet Mail Consortium


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id KAA06453 for ietf-smime-bks; Fri, 5 Mar 1999 10:37:04 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id KAA06449 for <ietf-smime@imc.org>; Fri, 5 Mar 1999 10:37:00 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194]) by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id NAA26228; Fri, 5 Mar 1999 13:38:59 -0500
Message-Id: <4.1.19990305132922.009ea680@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Fri, 05 Mar 1999 13:38:45 -0500
To: Paul Van Oorschot <paul.vanoorschot@entrust.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: New Triple-DES Key Wrap Algorithm Section
Cc: cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca, schneier@counterpane.com, daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov, omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil, carlisle.adams@entrust.com, paulv@entrust.com, Blake.greenlee@greenlee.com, benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil, jis@mit.edu, TACAR.PRV-7.PROVO@novell.com, merkle@parc.xerox.com, BSnow@radium.ncsc.mil, burt@RSA.COM, ekr@rtfm.com, jlinn@securitydynamics.com, ams@terisa.com, rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu, ietf-smime@imc.org
In-Reply-To: <91AE69321799D211AEC500105A9C4696894D69@sothmxs05.entrust.c om>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Paul:

I would not be going through this effort at all if there was a standard way
to encrypt one Triple-DES key with another.  This effort is defining the
standard....

Russ

At 10:50 AM 3/5/99 -0500, Paul Van Oorschot wrote:
>Russ - does this mean that you have chosen a new, non-standard algorithm?
>
>Paul.



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA05191 for ietf-smime-bks; Fri, 5 Mar 1999 08:00:33 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170]) by mail.proper.com (8.8.8/8.8.5) with SMTP id HAA05171 for <ietf-smime@imc.org>; Fri, 5 Mar 1999 07:57:48 -0800 (PST)
Received: 	id KAA01606; Fri, 5 Mar 1999 10:53:28 -0500
Received: by gateway id <FR0Z4CNN>; Fri, 5 Mar 1999 10:55:38 -0500
Message-ID: <91AE69321799D211AEC500105A9C4696894D69@sothmxs05.entrust.com>
From: Paul Van Oorschot <paul.vanoorschot@entrust.com>
To: cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca, schneier@counterpane.com, daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov, omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil, carlisle.adams@entrust.com, paulv@entrust.com, Blake.greenlee@greenlee.com, benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil, jis@mit.edu, TACAR.PRV-7.PROVO@novell.com, merkle@parc.xerox.com, BSnow@radium.ncsc.mil, burt@RSA.COM, ekr@rtfm.com, jlinn@securitydynamics.com, ams@terisa.com, rivest@theory.lcs.mit.edu, balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu, ietf-smime@imc.org, "'Russ Housley'" <housley@spyrus.com>
Subject: RE: New Triple-DES Key Wrap Algorithm Section
Date: Fri, 5 Mar 1999 10:50:48 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.1960.3)
Content-Type: text/plain; charset="iso-8859-1"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ - does this mean that you have chosen a new, non-standard algorithm?

Paul.

> ----------
> From: 	Russ Housley[SMTP:housley@spyrus.com]
> Sent: 	Thursday, March 04, 1999 11:51 AM
> To: 	cme@ACM.ORG; berson@anagram.com; bschanni@BayNetworks.com;
> kent@bbn.com; pcain@bbn.com; mhetzel@bell-labs.com; brickell@certco.com;
> djohnson@certicom.ca; schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com; dickie@EMPIRE.eclipse.ncsc.mil;
> carlisle.adams@entrust.com; paulv@entrust.com;
> Blake.greenlee@greenlee.com; benaloh@microsoft.com; bfox@microsoft.com;
> cjwagne@missi.ncsc.mil; jis@mit.edu; TACAR.PRV-7.PROVO@novell.com;
> merkle@parc.xerox.com; BSnow@radium.ncsc.mil; burt@RSA.COM; ekr@rtfm.com;
> jlinn@securitydynamics.com; ams@terisa.com; rivest@theory.lcs.mit.edu;
> balenson@tis.com; denny@tis.com; acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil;
> smatyas@us.ibm.com; desmedt@uwm.edu; ietf-smime@imc.org
> Subject: 	New Triple-DES Key Wrap Algorithm Section
> 
> All:
> 
> I greatly appreciate the work that everyone has put into the open debate
> on
> key wrapping.
> 
> The 44th IETF meeting is coming up rapidly, and I would like to close this
> debate prior to the meeting.  To that end, I selected the
> double-encryption
> algorithm.  An updated CMS document has not been posted yet, so I have
> attached the text associated with key wrapping.
> 
> Based on the discussion on this list, I believe that the double-encryption
> algorithm meet the security requirements, and it is easily implemented
> with
> building blocks that are otherwise needed to implement CMS.
> 
> I will gladly facilitate the further discussion of the general wrapping
> algorithm if the participants are interested.  I do not think that
> discussion should occur on the IETF S/MIME Working Group mail list, but I
> will arrange for a separate list to be created if you want to pursue the
> general wrap algorithm.
> 
> Russ
> 
> 
> = = = = = = = = = =
> 
> 12.6  Triple-DES and RC2 Key Wrap Algorithms
> 
>    CMS implementations must include encryption of a Triple-DES content-
>    encryption key with a Triple-DES key-encryption key using the
>    algorithm specified in Sections 12.6.2 and 12.6.3.  CMS
>    implementations should include encryption of a RC2 content-encryption
>    key with a RC2 key-encryption key using the algorithm specified in
>    Sections 12.6.4 and 12.6.5.  Triple-DES and RC2 content-encryption
>    keys are encrypted in Cipher Block Chaining (CBC) mode [MODES].
> 
>    Key Transport algorithms allow for the content-encryption key to be
>    directly encrypted; however, key agreement and symmetric key-
>    encryption key algorithms encrypt the content-encryption key with a
>    second symmetric encryption algorithm.  This section describes how
>    the Triple-DES or RC2 content-encryption key is formatted and
>    encrypted.
> 
>    Key agreement algorithms generate a pairwise key-encryption key, and
>    a key wrap algorithm is used to encrypt the content-encryption key
>    with the pairwise key-encryption key.  Similarly, a key wrap
>    algorithm is used to encrypt the content-encryption key in a
>    previously distributed key-encryption key.
> 
>    The key-encryption key is generated by the key agreement algorithm or
>    distributed out of band.  For key agreement of RC2 key-encryption
>    keys, 128 bits must be generated as input to the key expansion
>    process used to compute the RC2 effective key [RC2].
> 
>    The same algorithm identifier is used for both 2-key and 3-key
>    Triple-DES.  When the length of the content-encryption key to be
>    wrapped is a 2-key Triple-DES key, a third key with the same value as
>    the first key is created.  Thus, all Triple-DES content-encryption
>    keys are wrapped like 3-key Triple-DES keys.
> 
> 12.6.1  Key Checksum
> 
>    The CMS Checksum Algorithm is used to provide a content-encryption
>    key integrity check value.  The algorithm is:
> 
>    1.  Compute a 20 octet SHA-1 [SHA1] message digest on the
>        content-encryption key.
>    2.  Use the most significant (first) eight octets of the message
>        digest value as the checksum value.
> 
> 12.6.2  Triple-DES Key Wrap
> 
>    The Triple-DES key wrap algorithm encrypts a Triple-DES content-
>    encryption key with a Triple-DES key-encryption key.  The Triple-DES
>    key wrap algorithm is:
> 
>    1.  Set odd parity for each of the DES key octets comprising
>        the content-encryption key, call the result CEK.
>    2.  Compute an 8 octet key checksum value on CEK as described above
>        in Section 12.6.1, call the result ICV.
>    3.  Let CEKICV = CEK || ICV.
>    4.  Generate 8 octets at random, call the result IV.
>    5.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
>        the random value generated in the previous step as the
>        initialization vector (IV).  Call the ciphertext TEMP1.
>    6.  Let TEMP2 = IV || TEMP1.
>    7.  Reverse the order of the octets in TEMP2.  That is, the most
>        significant (first) octet is swapped with the least significant
>        (last) octet, and so on.  Call the result TEMP3.
>    8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
>        an initialization vector (IV) of 0x4adda22c79e82105.
>        The ciphertext is 40 octets long.
> 
>    Note:  When the same content-encryption key is wrapped in different
>    key-encryption keys, a fresh initialization vector (IV) must be
>    generated for each invocation of the key wrap algorithm.
> 
> 12.6.3  Triple-DES Key Unwrap
> 
>    The Triple-DES key unwrap algorithm decrypts a Triple-DES content-
>    encryption key using a Triple-DES key-encryption key.  The Triple-DES
>    key unwrap algorithm is:
> 
>    1.  If the wrapped content-encryption key is not 40 octets, then
>        error.
>    2.  Decrypt the wrapped content-encryption key in CBC mode using
>        the key-encryption key.  Use an initialization vector (IV)
>        of 0x4adda22c79e82105.  Call the output TEMP3.
>    3.  Reverse the order of the octets in TEMP3.  That is, the most
>        significant (first) octet is swapped with the least significant
>        (last) octet, and so on.  Call the result TEMP2.
>    4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
>        significant (first) 8 octets, and TEMP1 is the least significant
>        (last) 32 octets.
>    5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
>        the IV value from the previous step as the initialization vector.
>        Call the ciphertext CEKICV.
>    6.  Decompose the CEKICV into CEK and ICV. CEK is the most significant
>        (first) 24 octets, and ICV is the least significant (last) 8
> octets.
>    7.  Compute an 8 octet key checksum value on CEK as described above
>        in Section 12.6.1.  If the computed key checksum value does not
>        match the decrypted key checksum value, ICV, then error.
>    8.  Check for odd parity each of the DES key octets comprising CEK.
>        If parity is incorrect, then there is an error.
>    9. Use CEK as the content-encryption key.
> 
> 12.6.4  RC2 Key Wrap
> 
>    The RC2 key wrap algorithm encrypts a RC2 content-encryption key with a
> 
>    RC2 key-encryption key.  The RC2 key wrap algorithm is:
> 
>    1.  Let the content-encryption key be called CEK, and let the length
>        of the content-encryption key in octets be called LENGTH.
>    2.  Compute an 8 octet key checksum value on CEK as described above
>        in Section 12.6.1, call the result ICV.
>    3.  Let CEKICV = LENGTH || CEK || ICV.  LENGTH is a single octet.
>    4.  Let CEKICVPAD = CEKICV || PAD.  If the length of CEKICV is a
>        multiple of 8, the PAD has a length of zero.  If the length of
>        CEKICV is not a multiple of 8, then PAD contains the fewest
>        number of random octets to make CEKICVPAD a multiple of 8.
>    5.  Generate 8 octets at random, call the result IV.
>    5.  Encrypt CEKICVPAD in CBC mode using the key-encryption key.
>        Use the random value generated in the previous step as the
>        initialization vector (IV).  Call the ciphertext TEMP1.
>    6.  Let TEMP2 = IV || TEMP1.
>    7.  Reverse the order of the octets in TEMP2.  That is, the most
>        significant (first) octet is swapped with the least significant
>        (last) octet, and so on.  Call the result TEMP3.
>    8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
>        an initialization vector (IV) of 0x4adda22c79e82105.
> 
>    Note:  When the same content-encryption key is wrapped in different
>    key-encryption keys, a fresh initialization vector (IV) must be
>    generated for each invocation of the key wrap algorithm.
> 
> 12.6.5  RC2 Key Unwrap
> 
>    The RC2 key unwrap algorithm decrypts a RC2 content-encryption key
>    using a RC2 key-encryption key.  The RC2 key unwrap algorithm is:
> 
>    1.  If the wrapped content-encryption key is not a multiple of 8
>        octets, then error.
>    2.  Decrypt the wrapped content-encryption key in CBC mode using
>        the key-encryption key.  Use an initialization vector (IV)
>        of 0x4adda22c79e82105.  Call the output TEMP3.
>    3.  Reverse the order of the octets in TEMP3.  That is, the most
>        significant (first) octet is swapped with the least significant
>        (last) octet, and so on.  Call the result TEMP2.
>    4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
>        significant (first) 8 octets, and TEMP1 is the remaining octets.
>    5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
>        the IV value from the previous step as the initialization vector.
>        Call the ciphertext CEKICVPAD.
>    6.  Decompose the CEKICVPAD into LENGTH, CEK, ICV, and PAD.  LENGTH is
>        the most significant (first) octet.  CEK is the following LENGTH
>        octets.  ICV is the following 8 octets.  PAD is the remaining
>        octets, if any.
>    7.  If PAD is more than 7 octets, then error.
>    8.  Compute an 8 octet key checksum value on CEK as described above
>        in Section 12.6.1.  If the computed key checksum value does not
>        match the decrypted key checksum value, ICV, then error.
>    9.  Use CEK as the content-encryption key.
> 
> Security Considerations
> 
>    Section 12.6 specifies key wrap algorithms used to encrypt a Triple-
>    DES [3DES] content-encryption key with a Triple-DES key-encryption
>    key or to encrypt a RC2 [RC2] content-encryption key with a RC2 key-
>    encryption key.  The key wrap algorithms make use of CBC mode
>    [MODES].  These key wrap algorithms have been reviewed for use with
>    Triple and RC2.  They have not been reviewed for use with other
>    cryptographic modes or other encryption algorithms.  Therefore, if a
>    CMS implementation wishes to support ciphers in addition to Triple-
>    DES or RC2, then additional key wrap algorithms need to be defined to
>    support the additional ciphers.
> 
> 


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id RAA20384 for ietf-smime-bks; Thu, 4 Mar 1999 17:34: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 RAA20380 for <ietf-smime@imc.org>; Thu, 4 Mar 1999 17:34:30 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA20829; Thu, 4 Mar 1999 20:39:30 -0500 (EST)
Message-Id: <199903050139.UAA20829@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-ess-11.txt
Date: Thu, 04 Mar 1999 20:39:29 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

Note: This revision reflects comments received during the last call period.

	Title		: Enhanced Security Services for S/MIME
	Author(s)	: P. Hoffman
	Filename	: draft-ietf-smime-ess-11.txt
	Pages		: 37
	Date		: 03-Mar-99
	
This document describes four optional security service extensions for
S/MIME. The services are:
 - signed receipts
 - security labels
 - secure mailing lists
 - signing certificates
The first three of these services provide functionality that is similar to
the Message Security Protocol [MSP4], but are useful in many other
environments, particularly business and finance. Signing certificates are
useful in any environment where certificates might be transmitted with
signed messages.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-ess-11.txt

Internet-Drafts are also 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-ietf-smime-ess-11.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-ess-11.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:	<19990303155457.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-ess-11.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-ess-11.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id LAA17270 for ietf-smime-bks; Thu, 4 Mar 1999 11:48:49 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA17266 for <ietf-smime@imc.org>; Thu, 4 Mar 1999 11:48:48 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194]) by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id OAA21876; Thu, 4 Mar 1999 14:54:14 -0500
Message-Id: <4.1.19990304125831.00924540@209.172.119.123>
Message-Id: <4.1.19990304125831.00924540@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123 (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 13:07:45 -0500
To: "Bonatti, Chris" <bonattic@ieca.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Correct definition of ContentInfo in CMS-10
Cc: William Ottaway <w.ottaway@eris.dera.gov.uk>, "'ietf-smime@imc.org'" <ietf-smime@imc.org>
In-Reply-To: <36D16CC0.5B442494@ieca.com>
References: <01BE5E63.4E934480.w.ottaway@eris.dera.gov.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Agree.  The OID in ContentInfo should not be OPTIONAL.


At 09:42 AM 2/22/99 -0500, Bonatti, Chris wrote:
>    I would submit that the 'content' field in the General Syntax section is
>correct.  The instance of OPTIONAL in the appendix must be a copy artifact
>from the 'EncapsulatedContentInfo', in which the 'content' field is
>correctly optional.  I can see no legitimate use of CMS in which you would
>send only a 'contentType' OID.  Even if someone were sending a "detached
>content" in a separate body part, either MIME or X.400 mail systems are
>perfectly capable of attaching a content types for that information without
>utilizing this structure.
>
>Russ,
>
>    Browsing through my historical archive of now "non-existent" I-Ds, I see
>that the OPTIONAL tag seems to have fallen out of the General Syntax
>starting in version 3 of CMS.  Do you remember the reasoning behind the
>change?
>
>Chris
>
>
>
> ---------------------------------------------------------------
> |  International Electronic Communication Analysts, Inc.      |
> |  Christopher D. Bonatti             15309 Turkey Foot Road  |
> |  Principal Engineer              Darnestown, Md 20878-3640  |
> |  bonattic@ieca.com   Tel: 301-208-2349   Fax: 301-208-2379  |
> ---------------------------------------------------------------
>
>
>
>____________________
>
>William Ottaway wrote:
>
>> Within the body of CMS 10 ContentInfo is defined as : -
>>
>> ContentInfo ::= SEQUENCE {
>>         contentType ContentType,
>>         content [0] EXPLICIT ANY DEFINED BY contentType }
>>
>> However, in the appendix ContentInfo is defined as : -
>>
>> ContentInfo ::= SEQUENCE {
>>      contentType ContentType,
>>      content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
>>
>> I assume the one within the body (i.e. content not optional) is correct.
>>
>> Bill.
>>
>> "The Information contained in this E-Mail and any subsequent
>> correspondence is private and is intended solely for the intended
>> recipient(s).  For those other than the intended recipient any
>> disclosure, copying, distribution, or any action taken or omitted to
>> be taken in reliance on such information is prohibited and may be
>> unlawful."
>> ____________________________________________________
>> William Ottaway BSc Hons CEng MBCS,
>> L323,                        Tel: +44 (0) 1684 894079
>> DERA Malvern,                Fax: +44 (0) 1684 896113
>> St. Andrews Road,            email: w.ottaway@eris.dera.gov.uk
>> Malvern,
>> Worcs,
>> WR14 3PS
>>
>> All opinions are my own.
>
>
>


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id LAA17260 for ietf-smime-bks; Thu, 4 Mar 1999 11:48:45 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id LAA17256 for <ietf-smime@imc.org>; Thu, 4 Mar 1999 11:48:44 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194]) by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id OAA21872; Thu, 4 Mar 1999 14:54:12 -0500
Message-Id: <4.1.19990304124721.00985440@209.172.119.123>
Message-Id: <4.1.19990304124721.00985440@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123 (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 12:57:26 -0500
To: Eric Rescorla <ekr@rtfm.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: Comments on x942-05 draft 
Cc: jlinn@securitydynamics.com, ietf-smime@imc.org, burt@RSA.COM
In-Reply-To: <199902221714.JAA26885@speedy.rtfm.com>
References: <Your message of "Fri, 19 Feb 1999 08:50:30 EST."             <D104150098E6D111B7830000F8D90AE845A4B4@exna02.securitydynamics.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Eric:

I am comfortable mandating the effective and real key lengths are the same
for the calculation of the key-encrypting key.  If some policy wants to use
a reduced effective key length for the content-encryption key, thsi can
still be accomodated.

Russ


At 09:14 AM 2/22/99 -0800, Eric Rescorla wrote:
>> Here's some analysis on the RC2 effective key issue, thanks to Burt Kaliski.
>[...]
>Clearly we do have to defend against the partition attack on effective
>key lengths. 
>
>As John suggests, I propose that we place the RC2 effective key 
>length into the the suppPubInfo. However, this leaves us with
>an unfortunate inconsistency, in that for some algorithms it's
>the length and some it's the effective length. One solution
>to this would be to revert to what Stephen Henson has termed
>the X/8 strategy. I.e. make the effective and real lengths
>the same for RC2. This is slightly more tasteful than having
>a bunch of special case language.
>
>Comments? I'd like to get this settled quickly.
>
>-Ekr
>[Eric Rescorla                                   ekr@rtfm.com]
>


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA16064 for ietf-smime-bks; Thu, 4 Mar 1999 09:39:39 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA16060 for <ietf-smime@imc.org>; Thu, 4 Mar 1999 09:39:38 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194]) by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id MAA16283 for <ietf-smime@imc.org>; Thu, 4 Mar 1999 12:45:09 -0500
Message-Id: <4.1.19990304115333.00980100@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 11:54:50 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: I-D ACTION:draft-ietf-pkix-dhpop-00.txt
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Since Ephemeral-Static Diffie-Hemman is a mandatory to implement CMS
algorithm, this document may be of interest to S/MIME WG members.

Russ


>To: IETF-Announce: ;
>Cc: ietf-pkix@imc.org
>From: Internet-Drafts@ietf.org
>Reply-to: Internet-Drafts@ietf.org
>Subject: I-D ACTION:draft-ietf-pkix-dhpop-00.txt
>Date: Tue, 02 Mar 1999 18:15:32 -0500
>Sender: owner-ietf-pkix@imc.org
>List-Archive: <http://www.imc.org/ietf-pkix/mail-archive/>
>List-Unsubscribe: <mailto:ietf-pkix-request@imc.org?body=unsubscribe>
>
>A New Internet-Draft is available from the on-line Internet-Drafts
directories.
>This draft is a work item of the Public-Key Infrastructure (X.509) Working 
>Group 
>of the IETF.
>
>	Title		: Diffie-Hellman Proof-of-Possession Algorithms
>	Author(s)	: H. Prafullchandra, J. Schaad
>	Filename	: draft-ietf-pkix-dhpop-00.txt
>	Pages		: 9
>	Date		: 01-Mar-99
>	
>  This document describes two methods for producing a signature from a
>  Diffie-Hellman key pair.  This behavior is needed for such operations
>  as creating a signature of a PKCS #10 certification request.  These
>  algorithms are designed to provide a proof-of-possession rather than
>  general purpose signing.
>
>
>A URL for this Internet-Draft is:
>http://www.ietf.org/internet-drafts/draft-ietf-pkix-dhpop-00.txt
>
>Internet-Drafts are also 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-ietf-pkix-dhpop-00.txt".
>
>A list of Internet-Drafts directories can be found in
>http://www.ietf.org/shadow.html 
>or ftp://ftp.ietf.org/ietf/1shadow-sites.txt
>
>
>Internet-Drafts can also be obtained by e-mail.
>
>Send a message to:
>	mailserv@ietf.org.
>In the body type:
>	"FILE /internet-drafts/draft-ietf-pkix-dhpop-00.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.
>Content-Type: text/plain
>Content-ID:	<19990301140219.I-D@ietf.org>
>
>ENCODING mime
>FILE /internet-drafts/draft-ietf-pkix-dhpop-00.txt
>
><ftp://ftp.ietf.org/internet-drafts/draft-ietf-pkix-dhpop-00.txt>



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id JAA15642 for ietf-smime-bks; Thu, 4 Mar 1999 09:01:06 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id JAA15638 for <ietf-smime@imc.org>; Thu, 4 Mar 1999 09:01:05 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194]) by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id LAA14187; Thu, 4 Mar 1999 11:52:06 -0500
Message-Id: <4.1.19990304110718.009ac2a0@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 11:51:57 -0500
To: <cme@ACM.ORG>, <berson@anagram.com>, <bschanni@BayNetworks.com>, <kent@bbn.com>, <pcain@bbn.com>, <mhetzel@bell-labs.com>, <brickell@certco.com>, <djohnson@certicom.ca>, <schneier@counterpane.com>, <daw@cs.berkeley.edu>, <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>, <omura@cylink.com>, <dickie@EMPIRE.eclipse.ncsc.mil>, <carlisle.adams@entrust.com>, <paulv@entrust.com>, <Blake.greenlee@greenlee.com>, <benaloh@microsoft.com>, <bfox@microsoft.com>, <cjwagne@missi.ncsc.mil>, <jis@mit.edu>, <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>, <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>, <jlinn@securitydynamics.com>, <ams@terisa.com>, <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>, <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>, <desmedt@uwm.edu>, ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: New Triple-DES Key Wrap Algorithm Section
In-Reply-To: <s6d687be.038@prv-mail20.provo.novell.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

All:

I greatly appreciate the work that everyone has put into the open debate on
key wrapping.

The 44th IETF meeting is coming up rapidly, and I would like to close this
debate prior to the meeting.  To that end, I selected the double-encryption
algorithm.  An updated CMS document has not been posted yet, so I have
attached the text associated with key wrapping.

Based on the discussion on this list, I believe that the double-encryption
algorithm meet the security requirements, and it is easily implemented with
building blocks that are otherwise needed to implement CMS.

I will gladly facilitate the further discussion of the general wrapping
algorithm if the participants are interested.  I do not think that
discussion should occur on the IETF S/MIME Working Group mail list, but I
will arrange for a separate list to be created if you want to pursue the
general wrap algorithm.

Russ


= = = = = = = = = =

12.6  Triple-DES and RC2 Key Wrap Algorithms

   CMS implementations must include encryption of a Triple-DES content-
   encryption key with a Triple-DES key-encryption key using the
   algorithm specified in Sections 12.6.2 and 12.6.3.  CMS
   implementations should include encryption of a RC2 content-encryption
   key with a RC2 key-encryption key using the algorithm specified in
   Sections 12.6.4 and 12.6.5.  Triple-DES and RC2 content-encryption
   keys are encrypted in Cipher Block Chaining (CBC) mode [MODES].

   Key Transport algorithms allow for the content-encryption key to be
   directly encrypted; however, key agreement and symmetric key-
   encryption key algorithms encrypt the content-encryption key with a
   second symmetric encryption algorithm.  This section describes how
   the Triple-DES or RC2 content-encryption key is formatted and
   encrypted.

   Key agreement algorithms generate a pairwise key-encryption key, and
   a key wrap algorithm is used to encrypt the content-encryption key
   with the pairwise key-encryption key.  Similarly, a key wrap
   algorithm is used to encrypt the content-encryption key in a
   previously distributed key-encryption key.

   The key-encryption key is generated by the key agreement algorithm or
   distributed out of band.  For key agreement of RC2 key-encryption
   keys, 128 bits must be generated as input to the key expansion
   process used to compute the RC2 effective key [RC2].

   The same algorithm identifier is used for both 2-key and 3-key
   Triple-DES.  When the length of the content-encryption key to be
   wrapped is a 2-key Triple-DES key, a third key with the same value as
   the first key is created.  Thus, all Triple-DES content-encryption
   keys are wrapped like 3-key Triple-DES keys.

12.6.1  Key Checksum

   The CMS Checksum Algorithm is used to provide a content-encryption
   key integrity check value.  The algorithm is:

   1.  Compute a 20 octet SHA-1 [SHA1] message digest on the
       content-encryption key.
   2.  Use the most significant (first) eight octets of the message
       digest value as the checksum value.

12.6.2  Triple-DES Key Wrap

   The Triple-DES key wrap algorithm encrypts a Triple-DES content-
   encryption key with a Triple-DES key-encryption key.  The Triple-DES
   key wrap algorithm is:

   1.  Set odd parity for each of the DES key octets comprising
       the content-encryption key, call the result CEK.
   2.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1, call the result ICV.
   3.  Let CEKICV = CEK || ICV.
   4.  Generate 8 octets at random, call the result IV.
   5.  Encrypt CEKICV in CBC mode using the key-encryption key.  Use
       the random value generated in the previous step as the
       initialization vector (IV).  Call the ciphertext TEMP1.
   6.  Let TEMP2 = IV || TEMP1.
   7.  Reverse the order of the octets in TEMP2.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP3.
   8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
       an initialization vector (IV) of 0x4adda22c79e82105.
       The ciphertext is 40 octets long.

   Note:  When the same content-encryption key is wrapped in different
   key-encryption keys, a fresh initialization vector (IV) must be
   generated for each invocation of the key wrap algorithm.

12.6.3  Triple-DES Key Unwrap

   The Triple-DES key unwrap algorithm decrypts a Triple-DES content-
   encryption key using a Triple-DES key-encryption key.  The Triple-DES
   key unwrap algorithm is:

   1.  If the wrapped content-encryption key is not 40 octets, then
       error.
   2.  Decrypt the wrapped content-encryption key in CBC mode using
       the key-encryption key.  Use an initialization vector (IV)
       of 0x4adda22c79e82105.  Call the output TEMP3.
   3.  Reverse the order of the octets in TEMP3.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP2.
   4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
       significant (first) 8 octets, and TEMP1 is the least significant
       (last) 32 octets.
   5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
       the IV value from the previous step as the initialization vector.
       Call the ciphertext CEKICV.
   6.  Decompose the CEKICV into CEK and ICV. CEK is the most significant
       (first) 24 octets, and ICV is the least significant (last) 8 octets.
   7.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1.  If the computed key checksum value does not
       match the decrypted key checksum value, ICV, then error.
   8.  Check for odd parity each of the DES key octets comprising CEK.
       If parity is incorrect, then there is an error.
   9. Use CEK as the content-encryption key.

12.6.4  RC2 Key Wrap

   The RC2 key wrap algorithm encrypts a RC2 content-encryption key with a 
   RC2 key-encryption key.  The RC2 key wrap algorithm is:

   1.  Let the content-encryption key be called CEK, and let the length
       of the content-encryption key in octets be called LENGTH.
   2.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1, call the result ICV.
   3.  Let CEKICV = LENGTH || CEK || ICV.  LENGTH is a single octet.
   4.  Let CEKICVPAD = CEKICV || PAD.  If the length of CEKICV is a
       multiple of 8, the PAD has a length of zero.  If the length of
       CEKICV is not a multiple of 8, then PAD contains the fewest
       number of random octets to make CEKICVPAD a multiple of 8.
   5.  Generate 8 octets at random, call the result IV.
   5.  Encrypt CEKICVPAD in CBC mode using the key-encryption key.
       Use the random value generated in the previous step as the
       initialization vector (IV).  Call the ciphertext TEMP1.
   6.  Let TEMP2 = IV || TEMP1.
   7.  Reverse the order of the octets in TEMP2.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP3.
   8.  Encrypt TEMP3 in CBC mode using the key-encryption key.  Use
       an initialization vector (IV) of 0x4adda22c79e82105.

   Note:  When the same content-encryption key is wrapped in different
   key-encryption keys, a fresh initialization vector (IV) must be
   generated for each invocation of the key wrap algorithm.

12.6.5  RC2 Key Unwrap

   The RC2 key unwrap algorithm decrypts a RC2 content-encryption key
   using a RC2 key-encryption key.  The RC2 key unwrap algorithm is:

   1.  If the wrapped content-encryption key is not a multiple of 8
       octets, then error.
   2.  Decrypt the wrapped content-encryption key in CBC mode using
       the key-encryption key.  Use an initialization vector (IV)
       of 0x4adda22c79e82105.  Call the output TEMP3.
   3.  Reverse the order of the octets in TEMP3.  That is, the most
       significant (first) octet is swapped with the least significant
       (last) octet, and so on.  Call the result TEMP2.
   4.  Decompose the TEMP2 into IV and TEMP1.  IV is the most
       significant (first) 8 octets, and TEMP1 is the remaining octets.
   5.  Decrypt TEMP1 in CBC mode using the key-encryption key.  Use
       the IV value from the previous step as the initialization vector.
       Call the ciphertext CEKICVPAD.
   6.  Decompose the CEKICVPAD into LENGTH, CEK, ICV, and PAD.  LENGTH is
       the most significant (first) octet.  CEK is the following LENGTH
       octets.  ICV is the following 8 octets.  PAD is the remaining
       octets, if any.
   7.  If PAD is more than 7 octets, then error.
   8.  Compute an 8 octet key checksum value on CEK as described above
       in Section 12.6.1.  If the computed key checksum value does not
       match the decrypted key checksum value, ICV, then error.
   9.  Use CEK as the content-encryption key.

Security Considerations

   Section 12.6 specifies key wrap algorithms used to encrypt a Triple-
   DES [3DES] content-encryption key with a Triple-DES key-encryption
   key or to encrypt a RC2 [RC2] content-encryption key with a RC2 key-
   encryption key.  The key wrap algorithms make use of CBC mode
   [MODES].  These key wrap algorithms have been reviewed for use with
   Triple and RC2.  They have not been reviewed for use with other
   cryptographic modes or other encryption algorithms.  Therefore, if a
   CMS implementation wishes to support ciphers in addition to Triple-
   DES or RC2, then additional key wrap algorithms need to be defined to
   support the additional ciphers.




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id IAA15076 for ietf-smime-bks; Thu, 4 Mar 1999 08:01:23 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id IAA15071 for <ietf-smime@imc.org>; Thu, 4 Mar 1999 08:01:22 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194]) by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id LAA12181; Thu, 4 Mar 1999 11:06:52 -0500
Message-Id: <4.1.19990304110332.009dca80@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 11:03:52 -0500
To: "Blake Ramsdell" <BlakeR@deming.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: CERT changes in IETF last call -- please review
Cc: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
In-Reply-To: <01FF24001403D011AD7B00A024BC53C563DD40@mail.deming.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Ooops.  I still do not see CERT-07 on the server.....

Russ


At 04:27 PM 1/28/99 -0800, Blake Ramsdell wrote:
>> -----Original Message-----
>> From: Blake Ramsdell 
>> Sent: Thursday, January 28, 1999 3:59 PM
>> To: 'ietf-smime@imc.org'
>> Subject: CERT changes in IETF last call -- please review
>> 
>> These are the changes that I am making in MSG-07 that were 
>> requested during
>> IETF last call.
>
>Uh, I mean CERT-07 if you didn't already figure that out.
>
>Blake
>--
>Blake C. Ramsdell
>Worldtalk Corporation
>For current info, check http://www.deming.com/users/blaker
>Voice +1 425 882 8861 x103  Fax +1 425 882 8060
>



Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id GAA14088 for ietf-smime-bks; Thu, 4 Mar 1999 06:04:10 -0800 (PST)
Received: from thehub.knight-hub.com (root@thehub.knight-hub.com [205.177.16.3]) by mail.proper.com (8.8.8/8.8.5) with ESMTP id GAA14081 for <ietf-smime@imc.org>; Thu, 4 Mar 1999 06:03:57 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([205.177.169.194]) by thehub.knight-hub.com (8.8.8/8.8.8) with SMTP id JAA07342; Thu, 4 Mar 1999 09:08:41 -0500
Message-Id: <4.1.19990304085554.009f7930@209.172.119.123>
X-Sender: rhousley#207.212.34.30@209.172.119.123
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 
Date: Thu, 04 Mar 1999 09:08:40 -0500
To: "Bob Jueneman" <BJUENEMAN@novell.com>
From: Russ Housley <housley@spyrus.com>
Subject: Re: A New Triple-DES Key Wrap Algorithm
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <bschanni@BayNetworks.com>, <kent@bbn.com>, <pcain@bbn.com>, <mhetzel@bell-labs.com>, <brickell@certco.com>, <djohnson@certicom.ca>, <schneier@counterpane.com>, <daw@cs.berkeley.edu>, <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>, <omura@cylink.com>, <dickie@EMPIRE.eclipse.ncsc.mil>, <carlisle.adams@entrust.com>, <paulv@entrust.com>, <Blake.greenlee@greenlee.com>, <ietf-smime@imc.org>, <benaloh@microsoft.com>, <bfox@microsoft.com>, <cjwagne@missi.ncsc.mil>, <jis@mit.edu>, "Tolga Acar" <TACAR.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>, <BSnow@radium.ncsc.mil>, <burt@RSA.COM>, <ekr@rtfm.com>, <jlinn@securitydynamics.com>, <ams@terisa.com>, <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>, <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>, <desmedt@uwm.edu>
In-Reply-To: <s6d687be.038@prv-mail20.provo.novell.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Bob:

>You are correct, of course.  The question, then, is whether
>we should just go to the OAEP-type wrapping and not have
>to worry about changing IV's and how to convey them.
>That would be my recommendation.

I think that OAEP has the same issue.  Each time a key is wrapped, a
different random number must be used.  This is the same a generating a new
IV for the first encryption.


>On a slightly different issue, several times I have strongly urged
>that in order to avoid the problem of having N-squared algorithm
>IDs for all of the various combinations of CEK and KEK algorithms,
>key lengths, and other miscellaneous data, that we first wrap
>the CEK in a descriptive ASN.1 structure that describes the 
>the CEK algorithm/key, and then do the wrapping operation.
>
>However, although I've raised this issue several times and indicated
>our strong desire to solve the key wrapping issue once and for all,
>you have neither incorporated the idea or argued against it,
>so I don't know where you stand.

I think I was clear on this point in an earlier posting.  My first priority
is to finish S/MIME v3.  If the general key wrapping problem is solved at
the same time, fine.  The S/MIME v3 structure includes an
AlgorithmIdentifier for the key wrapping algorithm, so if a secure solution
is included in the documents today, it can be aougmented with a general
solution when it is fully vetted.


>Obviously anyone who is processing certificates is going to have to 
>have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures 
>me that the performance implications would be negligible compared to
>almost any encryption operation.
>
>Assuming that is the case, the only reason I could see for not doing 
>it would be concern about the increase in wrapped key size,
>or some lingering not-invented-here bias against ISO/ITU/X.500
>mechanisms.  I certainly hope it isn't the later.

In general, ASN.1 is a good tool.  However, Burt Kaliski's attack against
the original key wrap algorithm was due to known structure in the
plaintext.  ASN.1 intruduces significant structure.  While ASN.1 or some
other encoding might be part of the general key wrap solution, I am will
avoid it in the near term.


>Is there anything in the existing protocol that is rigidly sensitive to 
>the size of the wrapped key?  If so, then that is a problem that 
>probably ought to be addressed.

No.  However, every user is concerned with overhead.  Since the
content-encryption key is wrapped once for each recipient, I am sensitive
to the multiplier.


Russ


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id HAA07232 for ietf-smime-bks; Wed, 3 Mar 1999 07:09:25 -0800 (PST)
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) by mail.proper.com (8.8.8/8.8.5) with SMTP id HAA07228; Wed, 3 Mar 1999 07:09:24 -0800 (PST)
Received: from Eng.Sun.COM (engmail4 [129.144.134.6]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id HAB19668; Wed, 3 Mar 1999 07:14:20 -0800
Received: from basilisk.Eng.Sun.COM (basilisk.Eng.Sun.COM [129.144.153.121]) by Eng.Sun.COM (8.8.8+Sun/SMI-5.3) with SMTP id HAA13412; Wed, 3 Mar 1999 07:14:18 -0800 (PST)
Received: from JaffaGate by basilisk.Eng.Sun.COM (SMI-8.6/SMI-SVR4) id HAA03755; Wed, 3 Mar 1999 07:14:06 -0800
Message-ID: <003301be6589$67bb36c0$e83c9c81@JaffaGate>
Reply-To: "Yahya Al-Salqan" <alsalqan@Eng.Sun.COM>
From: "Yahya Al-Salqan" <alsalqan@Eng.Sun.COM>
To: <ietf-pkix@imc.org>, <ietf-smime@imc.org>, <ietf-ssh@clinet.fi>, <spki@c2.net>
Cc: <www-security@ns2.Rutgers.EDU>
Subject: Fw: 1999 WET-ICE Enterprise Security Workshop
Date: Wed, 3 Mar 1999 07:20:34 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.0518.4
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0518.4
X-MIME-Autoconverted: from 8bit to quoted-printable by Eng.Sun.COM id HAA13412
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id HAB07229
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Dear Colleague,

This mail is to remind you of the upcomming deadline for submissions
the Fourth International Workshop on Enterprise Security, to be held
as a part of IEEE WET-ICE '99 on June 16-18, 1999 at Stanford
University, California, USA. Deadline for paper submissions is March
22, 1999.

Electronic submissions are accepted. Please see the workshop web
page http://www.ida.liu.se/conferences/WETICE/SECWK/ for more
details.

Please accept my apologies if you receive this message more than once.

Enclosed is the Call For Papers. Your help in distributing the
CFP to interested parties would be greatly appreciated.


Sincerely,

Nahid Shahmehri
Program Co-Chair

Dept. of Computer and Information Science
Linköping University
SE-581 83 Linköping
Sweden

-Cut here--------------------------------------------------------------

     FINAL CALL FOR  PAPERS

      Submission deadline: March 22, 1999

      Fourth International Workshop on Enterprise Security
     a WET-ICE '99 workshop
June 16-18, 1999
      Stanford University, California, USA

    Sponsored by the IEEE Computer Society and CERC at West
Virginia University. Hosted by the Center for Design Research,
      Stanford University.


    This document is also available in HTML,
PostScript and PDF formats from

http://www.ida.liu.se/conferences/WETICE/SECWK/




Enterprises are becoming increasingly dependent on their information
systems to support their business and workflow activities.  There is a
need for universal electronic connectivity to support interaction and
cooperation between multiple organizations. This makes enterprise
security and confidentiality more important but at the same time more
difficult to achieve, as the multiple organizations may have
differences in their security policies and may have to interact via an
insecure Internet.

These inter-organizational enterprise systems may be very large.
Efficient tools, techniques and methodologies are therefore needed to
support the specification, analysis and implementation of security.

This workshop will focus on the problems and challenges relating to
enterprise security in inter-organizational systems. We aim to bring
together principal players from both the internetwork and the
enterprise security community and will provide plenty of time for
discussion.

Topics to be discussed include:
-------------------------------
Internet security:
* Security protocols for the Internet
* The work and efforts of IETF security groups
* Global key infrastructures

Distribution:
* Distributed database security
* Secure transactions
* Inter- and intra-organizational security
* Security of collaborative applications

Secure infrastructures:
* Secure applications and environments
* Object-oriented and CORBA Security
* Secure enterprise infrastructures
* Security algorithms
* Public key infrastructures

Security management:
* Role-based access control
* Enterprise security policies
* Security in workflow processes

The program committee welcomes both papers and panel proposals
covering these topics.


SUBMISSIONS
-----------

Authors should submit six copies of an original paper (not submitted
or published elsewhere) to one of the Program Co-Chairs. Electronic
submissions are also accepted via the World Wide Web. Instructions
and forms are available at http://mir7.ida.liu.se:8080/SECWK/ .

Submissions should include the title of the paper, the name and
affiliation of each author, a 150-word abstract, and no more than 8
keywords. Submissions should not exceed 3000 words in length.  The
name, position, address, telephone number, and if possible, fax number
and e-mail address of the author responsible for correspondence must
be included.

A representative selection of accepted papers will published in the
workshop post-proceedings. Papers accepted for publication in the
proceedings are limited to six pages (about 2000-2500 words) in IEEE
format (two columns, single spaced, 10pt Times). Authors are strongly
encouraged to adhere to this format also when submitting
papers. Detailed information on the IEEE format (together with some
templates) is available at http://www.computer.org/cspress/instruct.htm


PANEL PROPOSALS
---------------

Send six copies of panel proposals to the General Chair. Include a
title, a 150-word scope statement, proposed session chair and
panelists and their affiliations, the organizer's affiliation,
address, telephone and fax number, and e-mail address.


GENERAL CHAIR
-------------

Yahya Al-Salqan
Sun Microsystems
901 San Antonio Rd
Palo Alto, CA 94303
USA
E-mail: alsalqan@eng.sun.com


PROGRAM CO-CHAIRS
-----------------

Nahid Shahmehri
Dept. of Computer Science
Linköping University
S-581 83 Linköping
SWEDEN
E-mail: nahsh@ida.liu.se

Mourad Debbabi
Computer Science Department
Laval University
Ste-Foy, Quebec, G1K 7P4
CANADA
E-mail: debabi@ift.ulaval.ca




WORKSHOP PROGRAM COMMITTEE
--------------------------

Dominique Bolignano, INRIA, France
Germano Caronni, ETH-Zentrum, Switzerland
Michael Geva, Java Security Group, USA
Jean Goubault, Gie Dyade, France
Dima Hamad, Birzeit University, West Bank
Douglas Maughan, National Security Agency, USA
Steve Lloyd, Entrust, Canada
Gary McGraw, Reliable Software Technologies Inc., USA
Aravindan Ranganathan, Sun Microsystems, USA
Sumitra Reddy, CERC, West Virginia University, USA
Vipin Samar, Oracle, USA
Bill Soley, Sun Microsystems, USA
Robert Thomys, BSI, Germany
Mark Vandenwauver, K.U. Leuven, Belgium
Wu Wen, NASA Ames Research Center, USA
Tatu Ylönen, SSH Communications Security, Finland
Nick Zhang, Trans Enterprise Technologies Inc., USA
Qun Zhong, HP Extend Enterprise Lab, USA



IMPORTANT DATES
---------------

Papers and panel proposals due  March 22, 1999
Authors notified of acceptance  April 26, 1999
Workshop                        June 16-18, 1999
Camera ready manuscripts due    June 30, 1999



INQUIRIES
---------

For further information, please contact one of the Chairs,
or visit the workshop web pages:
  http://www.ida.liu.se/conferences/WETICE/SECWK/

For inquires regarding WET ICE in general, contact
wetice@cerc.wvu.edu or call (U.S.) +1-304-293-7226, or
visit
  http://www.ida.liu.se/conferences/WETICE/










Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id VAA01691 for ietf-smime-bks; Tue, 2 Mar 1999 21:23:45 -0800 (PST)
Received: from mailserver ([202.54.106.237]) by mail.proper.com (8.8.8/8.8.5) with SMTP id VAA01687 for <ietf-smime@imc.org>; Tue, 2 Mar 1999 21:23:39 -0800 (PST)
Received: by mailserver with XtraMail-SMTP/POP3-Server (v1.10 58210006074) for <ietf-smime@imc.org> at Wed, 3 Mar 99  10:49:12 +0530
Received: from proxy1.ba.best.com (root@proxy1.ba.best.com [206.184.139.12]) by fpage1.ba.best.com (8.9.2/8.9.2/best.sh) with ESMTP id TAA18218 for <ravibaid+XRCPT.61616c6f6b4042495351554152452e434f4d@fpage1.ba.best.com>; Tue, 2 Mar 1999 19:41:52 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by proxy1.ba.best.com (8.9.3/8.9.2/best.in) with ESMTP id TAA25615; Tue, 2 Mar 1999 19:39:26 -0800 (PST)
Received: by ietf.org (8.9.1a/8.9.1a) id WAA03090 for ietf-123-outbound.02@ietf.org; Tue, 2 Mar 1999 22:35:19 -0500 (EST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA16442; Tue, 2 Mar 1999 18:17:31 -0500 (EST)
Message-Id: <199903022317.SAA16442@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-certdist-03.txt
Date: Tue, 02 Mar 1999 18:17:30 -0500
X-Rcpt-To: aalok@bisquare.com
X-UIDL: cad93a4638e297b36b10f1e656580a47
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Certificate Distribution Specification
	Author(s)	: J. Schaad
	Filename	: draft-ietf-smime-certdist-03.txt
	Pages		: 7
	Date		: 01-Mar-99
	
  Current methods of publishing certificates in directory services are
  restricted to just certificates.  This document provides a method of
  publishing certificates with secondary support information such as the
  SMimeCapabilities attribute (containing bulk algorithm support) in a
  way that is both authenticated and bound to a given certificate.
 
  This draft is being discussed on the 'ietf-smime' mailing list.  To
  join the list, send a message to <ietf-smime-request@imc.org> with the
  single word 'subscribe' in the body of the message.  Also, there is a
  Web site for the mailing list at <http://www.imc.org/ietf-smime>.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-certdist-03.txt

Internet-Drafts are also 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-ietf-smime-certdist-03.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-certdist-03.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:	<19990301144435.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-certdist-03.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-certdist-03.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--






Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id VAA01490 for ietf-smime-bks; Tue, 2 Mar 1999 21:08:05 -0800 (PST)
Received: from mailserver ([202.54.106.237]) by mail.proper.com (8.8.8/8.8.5) with SMTP id VAA01484 for <ietf-smime@imc.org>; Tue, 2 Mar 1999 21:08:00 -0800 (PST)
Received: by mailserver with XtraMail-SMTP/POP3-Server (v1.10 58210006074) for <ietf-smime@imc.org> at Wed, 3 Mar 99  10:29:09 +0570
Received: from proxy1.ba.best.com (root@proxy1.ba.best.com [206.184.139.12]) by fpage1.ba.best.com (8.9.2/8.9.2/best.sh) with ESMTP id VAA14793 for <ravibaid+XRCPT.61616c6f6b4042495351554152452e434f4d@fpage1.ba.best.com>; Mon, 1 Mar 1999 21:43:54 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by proxy1.ba.best.com (8.9.3/8.9.2/best.in) with ESMTP id VAA12273; Mon, 1 Mar 1999 21:42:33 -0800 (PST)
Received: by ietf.org (8.9.1a/8.9.1a) id AAA28518 for ietf-123-outbound.02@ietf.org; Tue, 2 Mar 1999 00:35:03 -0500 (EST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA06772; Mon, 1 Mar 1999 19:21:07 -0500 (EST)
Message-Id: <199903020021.TAA06772@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-examples-00.txt
Date: Mon, 01 Mar 1999 19:21:06 -0500
X-Rcpt-To: aalok@bisquare.com
X-UIDL: 2d2549e84e07656204c94359c570d331
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Examples of CMS Message Bodies
	Author(s)	: P. Hoffman
	Filename	: draft-ietf-smime-examples-00.txt
	Pages		: 8
	Date		: 26-Feb-99
	
This document gives examples of message bodies formatted using the
Cryptographic Message Syntax (CMS). It includes examples of most or all
common formats; in addition, it gives examples that show common pitfalls in
implementing CMS. The purpose of this document is to help increase
interoperability for S/MIME and other protocols that rely on CMS.
 
This draft is being discussed on the 'ietf-smime' mailing list.  To join
the list, send a message to <ietf-smime-request@imc.org> with the single
word 'subscribe' in the body of the message.  Also, there is a Web site for
the mailing list at <http://www.imc.org/ietf-smime/>.


A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-examples-00.txt

Internet-Drafts are also 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-ietf-smime-examples-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-examples-00.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:	<19990226104213.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-examples-00.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-examples-00.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--






Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id PAA24956 for ietf-smime-bks; Tue, 2 Mar 1999 15:12:43 -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 PAA24952 for <ietf-smime@imc.org>; Tue, 2 Mar 1999 15:12:42 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA16442; Tue, 2 Mar 1999 18:17:31 -0500 (EST)
Message-Id: <199903022317.SAA16442@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-certdist-03.txt
Date: Tue, 02 Mar 1999 18:17:30 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Certificate Distribution Specification
	Author(s)	: J. Schaad
	Filename	: draft-ietf-smime-certdist-03.txt
	Pages		: 7
	Date		: 01-Mar-99
	
  Current methods of publishing certificates in directory services are
  restricted to just certificates.  This document provides a method of
  publishing certificates with secondary support information such as the
  SMimeCapabilities attribute (containing bulk algorithm support) in a
  way that is both authenticated and bound to a given certificate.
 
  This draft is being discussed on the 'ietf-smime' mailing list.  To
  join the list, send a message to <ietf-smime-request@imc.org> with the
  single word 'subscribe' in the body of the message.  Also, there is a
  Web site for the mailing list at <http://www.imc.org/ietf-smime>.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-certdist-03.txt

Internet-Drafts are also 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-ietf-smime-certdist-03.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-certdist-03.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:	<19990301144435.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-certdist-03.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-certdist-03.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id QAA15688 for ietf-smime-bks; Mon, 1 Mar 1999 16:16:22 -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 QAA15684 for <ietf-smime@imc.org>; Mon, 1 Mar 1999 16:16:20 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA06772; Mon, 1 Mar 1999 19:21:07 -0500 (EST)
Message-Id: <199903020021.TAA06772@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-smime@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-smime-examples-00.txt
Date: Mon, 01 Mar 1999 19:21:06 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the S/MIME Mail Security Working Group of the IETF.

	Title		: Examples of CMS Message Bodies
	Author(s)	: P. Hoffman
	Filename	: draft-ietf-smime-examples-00.txt
	Pages		: 8
	Date		: 26-Feb-99
	
This document gives examples of message bodies formatted using the
Cryptographic Message Syntax (CMS). It includes examples of most or all
common formats; in addition, it gives examples that show common pitfalls in
implementing CMS. The purpose of this document is to help increase
interoperability for S/MIME and other protocols that rely on CMS.
 
This draft is being discussed on the 'ietf-smime' mailing list.  To join
the list, send a message to <ietf-smime-request@imc.org> with the single
word 'subscribe' in the body of the message.  Also, there is a Web site for
the mailing list at <http://www.imc.org/ietf-smime/>.


A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-examples-00.txt

Internet-Drafts are also 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-ietf-smime-examples-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-smime-examples-00.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:	<19990226104213.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-examples-00.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-smime-examples-00.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

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

--OtherAccess--

--NextPart--




Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id NAA14657 for ietf-smime-bks; Mon, 1 Mar 1999 13:44:31 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4]) by mail.proper.com (8.8.8/8.8.5) with SMTP id NAA14651 for <ietf-smime@imc.org>; Mon, 1 Mar 1999 13:44:29 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com with Novell_GroupWise; Mon, 01 Mar 1999 14:39:32 -0700
Message-Id: <s6daa6a4.057@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise 5.5
Date: Mon, 01 Mar 1999 14:39:08 -0700
From: "Tolga Acar" <TACAR@novell.com>
To: <djohnson@certicom.com>, <burt@RSA.COM>, <kevin@RSA.COM>
Cc: <cme@ACM.ORG>, <berson@anagram.com>, <bschanni@BayNetworks.com>, <kent@bbn.com>, <pcain@bbn.com>, <mhetzel@bell-labs.com>, <brickell@certco.com>, <djohnson@certicom.ca>, <schneier@counterpane.com>, <daw@cs.berkeley.edu>, <denning@cs.cosc.georgetown.edu>, <smid@csmes.ncsl.nist.gov>, <omura@cylink.com>, <dickie@EMPIRE.eclipse.ncsc.mil>, <carlisle.adams@entrust.com>, <paulv@entrust.com>, <Blake.greenlee@greenlee.com>, <ietf-smime@imc.org>, <benaloh@microsoft.com>, <bfox@microsoft.com>, <cjwagne@missi.ncsc.mil>, <jis@mit.edu>, "Bob Jueneman" <BJUENEMAN.PRV-7.PROVO@novell.com>, <merkle@parc.xerox.com>, <BSnow@radium.ncsc.mil>, <ekr@rtfm.com>, <jlinn@securitydynamics.com>, <housley@spyrus.com>, <ams@terisa.com>, <rivest@theory.lcs.mit.edu>, <balenson@tis.com>, <denny@tis.com>, <acc@tycho.ncsc.mil>, <jhs@tycho.ncsc.mil>, <smatyas@us.ibm.com>, <desmedt@uwm.edu>
Subject: RE: A New Triple-DES Key Wrap Algorithm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.proper.com id NAA14653
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I don't see how a random/different IV suddenly makes it all work, because it is away from being a general solution to the problem. And the problem is twofold, and more general than encrypting a DES key with TripleDES.

1. Diffusion:
Transition of the known plaintext patterns to the ciphertext in block ciphers. A very similar problem exists in image processing where the image is processed block-by-block and then you see the so-called blocking effects. The known-plaintext and birthday attack utilizes this deficiency in block-ciphers. Thus, the analysis should be done on the whole message rather than on blocks; or do "overlapped" processing on block boundaries (which isn't suitable for encryption purpose).

Another way of looking at this aould be to consider the message as the input "block", not necessarily partitioned into sub-blocks to accomodate the requirements of the underlying cipher. Longer the input message (say, ASN.1 encoded key), harder the birthday attacks. So, simply isolate the underlying block cipher details from the key wrapping, i.e., make the input size = block size. 

OAEP is a solution to this problem: a variable block-size algorithm in which it is hard to find the input unless all of the output is known. It adds "integrity" to the message - like a digital signature with message recovery.

Besides, I don't see why the key encryption algorithm has to be a block cipher, let alone a cipher requiring an IV.


2. Block encryption:
Why are we concerned so much about the known plaintext patterns in key wrapping, and not in any (data) encryption where known patterns in the plaintext may be far more common. Isn't it prudent to use OAEP (maybe with different parameters) in regular encryption?

- Tolga


>>> Burt Kaliski <burt@rsa.com> 3/1/99 12:35:06 >>>
Recall that OAEP (in general) has two arguments: message and parameters.

OAEP provides confidentiality to the message and integrity to the
parameters. It also binds the parameters and the message cryptographically.
It the parameters are modified, the OAEP decoding operation will detect the
change.

The set of parameters can be null, or it may contain information about the
message such as key type in the case that the message is the key.

Thus the conflict between ASN.1 and confidentiality is easily resolved: let
the message be the secret key, and let the parameters specify the type of
key, length, usage, etc. with ASN.1. This is one of the nice features of
OAEP: it is easy to carry non-confidential attributes about a message.

-- Burt 

> ----------
> From: 	Don Johnson[SMTP:djohnson@certicom.com] 
> Sent: 	Friday, February 26, 1999 4:46 PM
> To: 	Kevin Kingdon
> Cc: 	Bob Jueneman; housley@spyrus.com; cme@ACM.ORG; berson@anagram.com;
> bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com; dickie@EMPIRE.eclipse.ncsc.mil;
> carlisle.adams@entrust.com; paulv@entrust.com;
> Blake.greenlee@greenlee.com; ietf-smime@imc.org; benaloh@microsoft.com;
> bfox@microsoft.com; cjwagne@missi.ncsc.mil; jis@mit.edu; Tolga Acar;
> merkle@parc.xerox.com; BSnow@radium.ncsc.mil; Burt Kaliski; ekr@rtfm.com;
> jlinn@securitydynamics.com; ams@terisa.com; Ron Rivest; balenson@tis.com;
> denny@tis.com; acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil; smatyas@us.ibm.com;
> desmedt@uwm.edu 
> Subject: 	RE: A New Triple-DES Key Wrap Algorithm
> 
> Kevin,
> 
> Here is what I am saying, I do not think it is not controversial.
> 
> 1. For any confidentiality method, such as encryption, adding in known
> quantities: A) does not keep them confidential, as they are known, and B)
> may give an adversary a toehold he would not otherwise have, for example,
> with encryption he will know some plaintext and resulting ciphertext (in
> the worst case some blocks of known plaintext/ciphertext).
> 
> 2. For that reason, I resist adding in known data to data that is intended
> to be kept confidential.  It is not forbidden to add in known data, I just
> want to believe that the cost/benefit tradeoff makes it worthwhile.  And I
> try to keep down the amount of known data if possible.
> 
> Don Johnson
> 
> 
> 
> 
> 
> Kevin Kingdon <kevin@rsa.com> on 02/26/99 02:57:22 PM
> 
> To:   Don Johnson/Certicom, Bob Jueneman <BJUENEMAN@novell.com>
> cc:   housley@spyrus.com, cme@ACM.ORG, berson@anagram.com,
>       bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
>       mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
>       schneier@counterpane.com, daw@cs.berkeley.edu,
>       denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
>       omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
>       carlisle.adams@entrust.com, paulv@entrust.com,
>       Blake.greenlee@greenlee.com, ietf-smime@imc.org,
>       benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil,
>       jis@mit.edu, Tolga Acar <TACAR.PRV-7.PROVO@novell.com>,
>       merkle@parc.xerox.com, BSnow@radium.ncsc.mil, Burt Kaliski
>       <burt@rsa.com>, ekr@rtfm.com, jlinn@securitydynamics.com,
>       ams@terisa.com, Ron Rivest <rivest@theory.lcs.mit.edu>,
>       balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
>       jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu 
> Subject:  RE: A New Triple-DES Key Wrap Algorithm
> 
> 
> 
> 
> Don,
> 
> Are you saying that the input (plaintext) to an encryption operation must
> not be structured? I thought that was what encryption was all about -
> hiding
> the structure / information content of the plaintext. In any case, doesn't
> using OAEP as a part of an encryption scheme mask the plaintext structure
> just in case the encryption primitive is vulnerable to attacks that take
> advantage of that structure?
> 
> Kevin
>           -----Original Message-----
>           From:     Don Johnson [mailto:djohnson@certicom.com] 
>           Sent:     Friday, February 26, 1999 11:25 AM
>           To:  Bob Jueneman
>           Cc:  housley@spyrus.com; cme@ACM.ORG; berson@anagram.com;
> bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com;
> dickie@EMPIRE.eclipse.ncsc.mil; carlisle.adams@entrust.com;
> paulv@entrust.com; Blake.greenlee@greenlee.com; ietf-smime@imc.org;
> benaloh@microsoft.com; bfox@microsoft.com; cjwagne@missi.ncsc.mil;
> jis@mit.edu; Tolga Acar; merkle@parc.xerox.com; BSnow@radium.ncsc.mil;
> Burt
> Kaliski; ekr@rtfm.com; jlinn@securitydynamics.com; ams@terisa.com; Ron
> Rivest; balenson@tis.com; denny@tis.com; acc@tycho.ncsc.mil;
> jhs@tycho.ncsc.mil; smatyas@us.ibm.com; desmedt@uwm.edu 
>           Subject:  Re: A New Triple-DES Key Wrap Algorithm
> 
>           Bob, Russ,
> 
>           ASN.1 is very structured and can be considered to have many
> known values.
>           As such, strictly from an info theory viewpoint, use of
> ASN.1 and
>           confidentiality are are in opposition.  This does not mean
> it should be
>           forbidden, just that we would want to have very strong
> assurances about the
>           properties provided by the encryption to use ASN.1 or
> similar highly
>           structured formats.
> 
>           Don Johnson
> 
> 
> 
> 
> 
>           "Bob Jueneman" <BJUENEMAN@novell.com> on 02/26/99 01:38:19
> PM
> 
>           To:   housley@spyrus.com 
>           cc:   cme@ACM.ORG, berson@anagram.com,
> bschanni@BayNetworks.com,
>                 kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
>                 brickell@certco.com, djohnson@certicom.ca,
> schneier@counterpane.com,
>                 daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu,
>                 smid@csmes.ncsl.nist.gov, omura@cylink.com,
>                 dickie@EMPIRE.eclipse.ncsc.mil,
> carlisle.adams@entrust.com,
>                 paulv@entrust.com, Blake.greenlee@greenlee.com,
> ietf-smime@imc.org,
>                 benaloh@microsoft.com, bfox@microsoft.com,
> cjwagne@missi.ncsc.mil,
>                 jis@mit.edu, "Tolga Acar"
> <TACAR.PRV-7.PROVO@novell.com>,
>                 merkle@parc.xerox.com, BSnow@radium.ncsc.mil,
> burt@RSA.COM,
>                 ekr@rtfm.com, jlinn@securitydynamics.com,
> ams@terisa.com,
>                 rivest@theory.lcs.mit.edu, balenson@tis.com,
> denny@tis.com,
>                 acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
> smatyas@us.ibm.com,
>                 desmedt@uwm.edu (bcc: Don Johnson/Certicom)
>           Subject:  Re: A New Triple-DES Key Wrap Algorithm
> 
> 
> 
> 
>           Russ:
> 
>           You are correct, of course.  The question, then, is whether
>           we should just go to the OAEP-type wrapping and not have
>           to worry about changing IV's and how to convey them.
>           That would be my recommendation.
> 
>           On a slightly different issue, several times I have strongly
> urged
>           that in order to avoid the problem of having N-squared
> algorithm
>           IDs for all of the various combinations of CEK and KEK
> algorithms,
>           key lengths, and other miscellaneous data, that we first
> wrap
>           the CEK in a descriptive ASN.1 structure that describes the
>           the CEK algorithm/key, and then do the wrapping operation.
> 
>           However, although I've raised this issue several times and
> indicated
>           our strong desire to solve the key wrapping issue once and
> for all,
>           you have neither incorporated the idea or argued against it,
>           so I don't know where you stand.
> 
>           Obviously anyone who is processing certificates is going to
> have to
>           have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures
>           me that the performance implications would be negligible
> compared to
>           almost any encryption operation.
> 
>           Assuming that is the case, the only reason I could see for
> not doing
>           it would be concern about the increase in wrapped key size,
>           or some lingering not-invented-here bias against
> ISO/ITU/X.500
>           mechanisms.  I certainly hope it isn't the later.
> 
>           Is there anything in the existing protocol that is rigidly
> sensitive to
>           the size of the wrapped key?  If so, then that is a problem
> that
>           probably ought to be addressed.
> 
>           If not, then I believe the architectural benefits would far
> outweigh
>           any increase in the size of the wrapped key.
> 
>           Bob
> 
>           >>> Russ Housley <housley@spyrus.com> 02/26/99 10:51AM >>>
>           Bob:
> 
>           You raise an interesting point, but I think it can be easily
> solved by a
>           random IV for the first encryption. Of course, this makes
> the result one
>           block longer.  And, we would need a different IV for each
> wrapping.
> 
>           Russ
> 
> 
>           At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
>           >Russ,
>           >
>           >There is a possible attack on the double encryption wrap
> algorithm
>           >that is a result of the constant IV construction. For that
> reason, I would
>           >strongly prefer the OAEP construction. Although it may look
> complicated
>           >because there are more steps, the number of line of code is
> really of no
>           >consequence at all, but the execution time is important for
> performance.
>           >
>           >Also, I continue to insist that we should not invent
> n-squared algorithm
>           >IDs for every possible combination of CEK algorithm and key
> length
>           >plus KEK algorithm and key length. Instead, I would
> _greatly_ prefer to
>           >first wrap the CEK in a ASN.1 structure that defines the
> CEK algorithm
>           >and key length, then whiten that structure with OAEP,
> encrypt the
>           resulting
>           >string with the KEK algorithm, and then provide generic
> instructions as
>           >to how to decode the result, either by wrapping the entire
> wrapped key
>           >blob in ASN.1 (preferably) or some other way.
>           >
>           >Here's the attack on the double-encryption wrapping:
>           >
>           >Although most exhaustive search engines divide up the
> search process
>           >across multiple machines in order to find a single key as
> quickly as
>           possible
>           >(e.g., the series of RSA challenge ciphers), there is
> another approach
>           >based on the use of an associative memory that I wrote up
> back
>           >in the '70's but never published.  I call it my
> "vacuum-cleaner" attack.
>           >
>           >Assume for the sake or argument that there are lots and
> lots of keys
>           >that have been or will be used to encrypt a known plaintext
> or
>           >stereotyped message.  (This is a standard assumption in
> cryptanalysis.)
>           >Actually, the attack will succeed with a somewhat weaker
> condition --
>           >it isn't necessary to actually know the plaintext -- it is
> sufficient that
>           >the plaintext be unvarying.
>           >
>           >Let's also assume that each key is used for some
> interesting purpose --
>           >sufficiently interesting that it may not be necessary to
> crack each and
>           every
>           >key -- just a few would be useful.  For example, if I were
> trying to carry
>           on
>           >a credit card attack, I don't have to find the key for Bill
> Gates' or
>           >Donald Trump's credit card -- just about anyone's will do,
> and the more
>           >the merrier.
>           >
>           >So for every new key that I have the engine try, I contrive
> to compare
>           >the result of encrypting the known plaintext against
> millions of valid
>           >ciphertexts that have been intercepted, looking for a
> match.  Assuming
>           >an effectively inexhaustible supply of ciphertexts is
> available, this
>           attack
>           >multiplies the effectiveness of the key search engine by an
> order of a
>           million
>           >or more, depending on the size of the associative memory
> that is
>           available.
>           >
>           >(The use of an associative memory isn't essential -- it was
> just a
>           gedanken
>           >experiment to speed up the comparison process without
> requiring sorting.)
>           >
>           >Two things should be noted.  First, this attack is
> independent of the KEK
>           >encryption algorithm used, assuming a fixed block size.  In
> other words,
>           >this would apply to single-DES, triple-DES, umpty-DES,
> 2048-bit RSA,
>           >or whatever, assuming a constant session key and constant
> padding.
>           >
>           >Second, the attack is also independent of the length or
> type of session
>           >key that is used, except that the yield is a Birthday
> Problem function of
>           the
>           >length of the key.  But given a fixed input, i.e., no
> random whitening or
>           >changing IV, then two or more matching outputs must imply a
> matching
>           >session key.
>           >
>           >This leads to a rather surprising result -- even if the KEK
> performs
>           double
>           >encryption using triple-DES (or any other algorithm without
> whitening)
>           >to wrap a 40 bit key, two matching session keys can be
> found with
>           >approximately 50% probability after only 2^20 or a million
> or so session
>           >keys have been generated.
>           >
>           >Perhaps more surprisingly, at least to people who haven't
> been down this
>           path,
>           >changing session keys more rapidly may hurt more than it
> helps -- it just
>           >exposes that many more keys to attack. Changing the session
> key often
>           >in the middle of a session may help limit the ability of
> the attacker to
>           >access the entire message, and hence limits the attacker's
> "take," but it
>           >increases the chances that a potentially interesting
> fragment of text
>           >may be exposed.
>           >
>           >I'm sure that someone would observe that sending even a
> million content
>           >encryption key encrypted in a constant KEK would be
> extremely unlikely
>           >in an S/MIME context, but whether that would really be true
> would require
>           >a more subtle, protocol-dependent analysis than I would
> care to make,
>           >and in addition I very much want to standardize on one key
> wrapping
>           >algorithm that is protocol independent, and not just for
> S/MIME.
>           >
>           >Obviously the above attack can be defeated by prepending
> some
>           >additional randomness or by changing the IV. But is also
> what the OAEP
>           >approach does, and rather more elegantly.  By the time we
> have to add
>           >either a changing IV or some additional randomness (how
> much would be
>           >required would have to be decided) the length would
> probably be close
>           >to that required for OAEP, which is a much more general
> solution.
>           >
>           >In my mind, at least, some extra bytes in the wrapped key
> is no big deal,
>           >but I would like the efficiency to be a good as possible.
> Triple-DES is
>           >expensive enough in terms of computational efficiency in
> software,
>           >especially in terms of the initial key expansion, and doing
> it twice
>           >would be worse yet.
>           >
>           >Because the new export regulations permit the use of double
> the key length
>           >used for data encryption to be used for key encryption, we
> are going to be
>           >using triple-DES in encrypt-decrypt-encrypt mode with only
> two keys
>           (A-B-A) for
>           >key wrapping of all export-grade CEK keys.
>           >
>           >This can be optimized by saving the key expansion of the
> first encryption,
>           and
>           >then reusing it for the final encryption.  This technique
> could
>           potentially be
>           >extended to the double encryption wrapping algorithm, by
> saving the key
>           >expansion used for all three steps, but in order to do that
> the
>           >"double-triple-DES"
>           >algorithm would probably have to be a single algorithm that
> is invoked --
>           >it would be quite difficult to securely save state across
> two separate
>           >encryption
>           >operations.
>           >
>           >So my preference, as I said earlier, would be to wrap the
> CEK in ASN.1,
>           >whiten with OAEP, and then encrypt using whatever KEK
> algorithm and
>           >key length is required, so we don't have to keep
> re-analyzing this problem
>           >for every new CEK or KEK algorithm or key length.
>           >
>           >If we can define appropriate algorithm IDs, I'm willing and
> eager to adopt
>           such
>           >a standard for  _all_ wrapped keys generated and used
> within our Novell
>           >International Cryptographic Infrastructure (NICI), even
> before S/MIME v3
>           >progresses to a full standard.  I'd be willing to assign an
> algorithm OID
>           >from the
>           >Novell tree, or we could probably get one from PKCS if
> there would be any
>           >problem getting one assigned by the IANA.
>           >
>           >Regards,
>           >
>           >Bob
>           >
>           >
>           >> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
>           >All:
>           >
>           >Right now, I am leaning toward the double encryption wrap
> algorithm.  I
>           >think it will be easy to implement, and it yeilds a shorter
> result that
>           the
>           >OAEP method.  To convince myself that it was easy to
> implement, I did an
>           >implementation.  It took me about two hours while watching
> an old Jimmy
>           >Stewart movie.  Of course, I already have SHA-1 and
> Triple-DES CBC
>           >routines.  S/MIME v3 will require these algorithms for
> other capabilities
>           >besides key wrapping.
>           >
>           >If someone else is willing to do an implementation, I would
> like to
>           compare
>           >results.  This will allow a test vector to be included with
> the algorithm
>           >description.
>           >
>           >Does anyone have any strong objections to the double
> encryption wrap
>           >algorithm being selected?
>           >
>           >Russ
>           >
>           >
>           >>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>           >>
>           >>Key Checksum
>           >>
>           >>The CMS Checksum Algorithm is used to provide an
> content-encryption key
>           >>integrity check value.  The algorithm is:
>           >>
>           >>1.  Compute a 20 octet SHA-1 message digest on the
>           >>    content-encryption key.
>           >>2.  Use the most significant (first) eight octets of the
>           >>    message digest value as the checksum value.
>           >>
>           >>Triple-DES Key Wrap
>           >>
>           >>1.  Set odd parity for each of the DES key octets
> comprising
>           >>    the content-encryption key, call the result CEK.
>           >>2.  Compute a 8 octet key checksum value on CEK as
> described above,
>           >>    call the result ICV.
>           >>3.  Let CEKICV = CEK || ICV.
>           >>4.  Encrypt CEKICV in CBC mode using the key-encryption
> key.  Use
>           >>    an IV of 0xc302e3c1ad8bb738.
>           >>5.  Reverse the order of the ciphertext octets.  That is,
> the most
>           >>    significant (first) octet is swapped with the least
> significant
>           >>    (last) octet, and so on.  Call the result TEMP.
>           >>6.  Encrypt TEMP in CBC mode using the key-encryption key.
> Use
>           >>    an IV of 0x61a197e5b132e196.  The ciphertext is 32
> octets long.
>           >
>           >Robert R. Jueneman
>           >Security Architect
>           >Network Security Development
>           >Novell, Inc.
>           >122 East 1700 South
>           >Provo, UT 84606
>           >bjueneman@novell.com 
>           >1-801-861-7387
> 
> 
> 
> 
> 
> 
> 
> 


Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.8.5) id LAA13275 for ietf-smime-bks; Mon, 1 Mar 1999 11:30:57 -0800 (PST)
Received: from eagle.rsa.com (eagle.rsa.com [192.80.211.35] (may be forged)) by mail.proper.com (8.8.8/8.8.5) with SMTP id LAA13271 for <ietf-smime@imc.org>; Mon, 1 Mar 1999 11:30:49 -0800 (PST)
Received: from [10.81.217.217] by eagle.rsa.com via smtpd (for imc.org [206.184.129.134]) with SMTP; 1 Mar 1999 19:55:22 UT
Received: by lobester.rsa.com with Internet Mail Service (5.5.2232.9) id <ZNLARGRH>; Mon, 1 Mar 1999 11:40:30 -0800
Message-ID: <7DE9F929113DD11181C900805F85C1AA6FDEE1@geoduck.rsa.com>
From: Burt Kaliski <burt@RSA.COM>
To: Kevin Kingdon <kevin@RSA.COM>, "'Don Johnson'" <djohnson@certicom.com>
Cc: Bob Jueneman <BJUENEMAN@novell.com>, housley@spyrus.com, cme@ACM.ORG, berson@anagram.com, bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca, schneier@counterpane.com, daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov, omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil, carlisle.adams@entrust.com, paulv@entrust.com, Blake.greenlee@greenlee.com, ietf-smime@imc.org, benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil, jis@mit.edu, Tolga Acar <TACAR.PRV-7.PROVO@novell.com>, merkle@parc.xerox.com, BSnow@radium.ncsc.mil, ekr@rtfm.com, jlinn@securitydynamics.com, ams@terisa.com, Ron Rivest <rivest@theory.lcs.mit.edu>, balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu
Subject: RE: A New Triple-DES Key Wrap Algorithm
Date: Mon, 1 Mar 1999 11:35:06 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain; charset="iso-8859-1"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Recall that OAEP (in general) has two arguments: message and parameters.

OAEP provides confidentiality to the message and integrity to the
parameters. It also binds the parameters and the message cryptographically.
It the parameters are modified, the OAEP decoding operation will detect the
change.

The set of parameters can be null, or it may contain information about the
message such as key type in the case that the message is the key.

Thus the conflict between ASN.1 and confidentiality is easily resolved: let
the message be the secret key, and let the parameters specify the type of
key, length, usage, etc. with ASN.1. This is one of the nice features of
OAEP: it is easy to carry non-confidential attributes about a message.

-- Burt 

> ----------
> From: 	Don Johnson[SMTP:djohnson@certicom.com]
> Sent: 	Friday, February 26, 1999 4:46 PM
> To: 	Kevin Kingdon
> Cc: 	Bob Jueneman; housley@spyrus.com; cme@ACM.ORG; berson@anagram.com;
> bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com; dickie@EMPIRE.eclipse.ncsc.mil;
> carlisle.adams@entrust.com; paulv@entrust.com;
> Blake.greenlee@greenlee.com; ietf-smime@imc.org; benaloh@microsoft.com;
> bfox@microsoft.com; cjwagne@missi.ncsc.mil; jis@mit.edu; Tolga Acar;
> merkle@parc.xerox.com; BSnow@radium.ncsc.mil; Burt Kaliski; ekr@rtfm.com;
> jlinn@securitydynamics.com; ams@terisa.com; Ron Rivest; balenson@tis.com;
> denny@tis.com; acc@tycho.ncsc.mil; jhs@tycho.ncsc.mil; smatyas@us.ibm.com;
> desmedt@uwm.edu
> Subject: 	RE: A New Triple-DES Key Wrap Algorithm
> 
> Kevin,
> 
> Here is what I am saying, I do not think it is not controversial.
> 
> 1. For any confidentiality method, such as encryption, adding in known
> quantities: A) does not keep them confidential, as they are known, and B)
> may give an adversary a toehold he would not otherwise have, for example,
> with encryption he will know some plaintext and resulting ciphertext (in
> the worst case some blocks of known plaintext/ciphertext).
> 
> 2. For that reason, I resist adding in known data to data that is intended
> to be kept confidential.  It is not forbidden to add in known data, I just
> want to believe that the cost/benefit tradeoff makes it worthwhile.  And I
> try to keep down the amount of known data if possible.
> 
> Don Johnson
> 
> 
> 
> 
> 
> Kevin Kingdon <kevin@rsa.com> on 02/26/99 02:57:22 PM
> 
> To:   Don Johnson/Certicom, Bob Jueneman <BJUENEMAN@novell.com>
> cc:   housley@spyrus.com, cme@ACM.ORG, berson@anagram.com,
>       bschanni@BayNetworks.com, kent@bbn.com, pcain@bbn.com,
>       mhetzel@bell-labs.com, brickell@certco.com, djohnson@certicom.ca,
>       schneier@counterpane.com, daw@cs.berkeley.edu,
>       denning@cs.cosc.georgetown.edu, smid@csmes.ncsl.nist.gov,
>       omura@cylink.com, dickie@EMPIRE.eclipse.ncsc.mil,
>       carlisle.adams@entrust.com, paulv@entrust.com,
>       Blake.greenlee@greenlee.com, ietf-smime@imc.org,
>       benaloh@microsoft.com, bfox@microsoft.com, cjwagne@missi.ncsc.mil,
>       jis@mit.edu, Tolga Acar <TACAR.PRV-7.PROVO@novell.com>,
>       merkle@parc.xerox.com, BSnow@radium.ncsc.mil, Burt Kaliski
>       <burt@rsa.com>, ekr@rtfm.com, jlinn@securitydynamics.com,
>       ams@terisa.com, Ron Rivest <rivest@theory.lcs.mit.edu>,
>       balenson@tis.com, denny@tis.com, acc@tycho.ncsc.mil,
>       jhs@tycho.ncsc.mil, smatyas@us.ibm.com, desmedt@uwm.edu
> Subject:  RE: A New Triple-DES Key Wrap Algorithm
> 
> 
> 
> 
> Don,
> 
> Are you saying that the input (plaintext) to an encryption operation must
> not be structured? I thought that was what encryption was all about -
> hiding
> the structure / information content of the plaintext. In any case, doesn't
> using OAEP as a part of an encryption scheme mask the plaintext structure
> just in case the encryption primitive is vulnerable to attacks that take
> advantage of that structure?
> 
> Kevin
>           -----Original Message-----
>           From:     Don Johnson [mailto:djohnson@certicom.com]
>           Sent:     Friday, February 26, 1999 11:25 AM
>           To:  Bob Jueneman
>           Cc:  housley@spyrus.com; cme@ACM.ORG; berson@anagram.com;
> bschanni@BayNetworks.com; kent@bbn.com; pcain@bbn.com;
> mhetzel@bell-labs.com; brickell@certco.com; djohnson@certicom.ca;
> schneier@counterpane.com; daw@cs.berkeley.edu;
> denning@cs.cosc.georgetown.edu; smid@csmes.ncsl.nist.gov;
> omura@cylink.com;
> dickie@EMPIRE.eclipse.ncsc.mil; carlisle.adams@entrust.com;
> paulv@entrust.com; Blake.greenlee@greenlee.com; ietf-smime@imc.org;
> benaloh@microsoft.com; bfox@microsoft.com; cjwagne@missi.ncsc.mil;
> jis@mit.edu; Tolga Acar; merkle@parc.xerox.com; BSnow@radium.ncsc.mil;
> Burt
> Kaliski; ekr@rtfm.com; jlinn@securitydynamics.com; ams@terisa.com; Ron
> Rivest; balenson@tis.com; denny@tis.com; acc@tycho.ncsc.mil;
> jhs@tycho.ncsc.mil; smatyas@us.ibm.com; desmedt@uwm.edu
>           Subject:  Re: A New Triple-DES Key Wrap Algorithm
> 
>           Bob, Russ,
> 
>           ASN.1 is very structured and can be considered to have many
> known values.
>           As such, strictly from an info theory viewpoint, use of
> ASN.1 and
>           confidentiality are are in opposition.  This does not mean
> it should be
>           forbidden, just that we would want to have very strong
> assurances about the
>           properties provided by the encryption to use ASN.1 or
> similar highly
>           structured formats.
> 
>           Don Johnson
> 
> 
> 
> 
> 
>           "Bob Jueneman" <BJUENEMAN@novell.com> on 02/26/99 01:38:19
> PM
> 
>           To:   housley@spyrus.com
>           cc:   cme@ACM.ORG, berson@anagram.com,
> bschanni@BayNetworks.com,
>                 kent@bbn.com, pcain@bbn.com, mhetzel@bell-labs.com,
>                 brickell@certco.com, djohnson@certicom.ca,
> schneier@counterpane.com,
>                 daw@cs.berkeley.edu, denning@cs.cosc.georgetown.edu,
>                 smid@csmes.ncsl.nist.gov, omura@cylink.com,
>                 dickie@EMPIRE.eclipse.ncsc.mil,
> carlisle.adams@entrust.com,
>                 paulv@entrust.com, Blake.greenlee@greenlee.com,
> ietf-smime@imc.org,
>                 benaloh@microsoft.com, bfox@microsoft.com,
> cjwagne@missi.ncsc.mil,
>                 jis@mit.edu, "Tolga Acar"
> <TACAR.PRV-7.PROVO@novell.com>,
>                 merkle@parc.xerox.com, BSnow@radium.ncsc.mil,
> burt@RSA.COM,
>                 ekr@rtfm.com, jlinn@securitydynamics.com,
> ams@terisa.com,
>                 rivest@theory.lcs.mit.edu, balenson@tis.com,
> denny@tis.com,
>                 acc@tycho.ncsc.mil, jhs@tycho.ncsc.mil,
> smatyas@us.ibm.com,
>                 desmedt@uwm.edu (bcc: Don Johnson/Certicom)
>           Subject:  Re: A New Triple-DES Key Wrap Algorithm
> 
> 
> 
> 
>           Russ:
> 
>           You are correct, of course.  The question, then, is whether
>           we should just go to the OAEP-type wrapping and not have
>           to worry about changing IV's and how to convey them.
>           That would be my recommendation.
> 
>           On a slightly different issue, several times I have strongly
> urged
>           that in order to avoid the problem of having N-squared
> algorithm
>           IDs for all of the various combinations of CEK and KEK
> algorithms,
>           key lengths, and other miscellaneous data, that we first
> wrap
>           the CEK in a descriptive ASN.1 structure that describes the
>           the CEK algorithm/key, and then do the wrapping operation.
> 
>           However, although I've raised this issue several times and
> indicated
>           our strong desire to solve the key wrapping issue once and
> for all,
>           you have neither incorporated the idea or argued against it,
>           so I don't know where you stand.
> 
>           Obviously anyone who is processing certificates is going to
> have to
>           have an ASN.1 decoder, and Dr. Acar, who wrote ours, assures
>           me that the performance implications would be negligible
> compared to
>           almost any encryption operation.
> 
>           Assuming that is the case, the only reason I could see for
> not doing
>           it would be concern about the increase in wrapped key size,
>           or some lingering not-invented-here bias against
> ISO/ITU/X.500
>           mechanisms.  I certainly hope it isn't the later.
> 
>           Is there anything in the existing protocol that is rigidly
> sensitive to
>           the size of the wrapped key?  If so, then that is a problem
> that
>           probably ought to be addressed.
> 
>           If not, then I believe the architectural benefits would far
> outweigh
>           any increase in the size of the wrapped key.
> 
>           Bob
> 
>           >>> Russ Housley <housley@spyrus.com> 02/26/99 10:51AM >>>
>           Bob:
> 
>           You raise an interesting point, but I think it can be easily
> solved by a
>           random IV for the first encryption. Of course, this makes
> the result one
>           block longer.  And, we would need a different IV for each
> wrapping.
> 
>           Russ
> 
> 
>           At 10:50 AM 2/22/99 -0700, Bob Jueneman wrote:
>           >Russ,
>           >
>           >There is a possible attack on the double encryption wrap
> algorithm
>           >that is a result of the constant IV construction. For that
> reason, I would
>           >strongly prefer the OAEP construction. Although it may look
> complicated
>           >because there are more steps, the number of line of code is
> really of no
>           >consequence at all, but the execution time is important for
> performance.
>           >
>           >Also, I continue to insist that we should not invent
> n-squared algorithm
>           >IDs for every possible combination of CEK algorithm and key
> length
>           >plus KEK algorithm and key length. Instead, I would
> _greatly_ prefer to
>           >first wrap the CEK in a ASN.1 structure that defines the
> CEK algorithm
>           >and key length, then whiten that structure with OAEP,
> encrypt the
>           resulting
>           >string with the KEK algorithm, and then provide generic
> instructions as
>           >to how to decode the result, either by wrapping the entire
> wrapped key
>           >blob in ASN.1 (preferably) or some other way.
>           >
>           >Here's the attack on the double-encryption wrapping:
>           >
>           >Although most exhaustive search engines divide up the
> search process
>           >across multiple machines in order to find a single key as
> quickly as
>           possible
>           >(e.g., the series of RSA challenge ciphers), there is
> another approach
>           >based on the use of an associative memory that I wrote up
> back
>           >in the '70's but never published.  I call it my
> "vacuum-cleaner" attack.
>           >
>           >Assume for the sake or argument that there are lots and
> lots of keys
>           >that have been or will be used to encrypt a known plaintext
> or
>           >stereotyped message.  (This is a standard assumption in
> cryptanalysis.)
>           >Actually, the attack will succeed with a somewhat weaker
> condition --
>           >it isn't necessary to actually know the plaintext -- it is
> sufficient that
>           >the plaintext be unvarying.
>           >
>           >Let's also assume that each key is used for some
> interesting purpose --
>           >sufficiently interesting that it may not be necessary to
> crack each and
>           every
>           >key -- just a few would be useful.  For example, if I were
> trying to carry
>           on
>           >a credit card attack, I don't have to find the key for Bill
> Gates' or
>           >Donald Trump's credit card -- just about anyone's will do,
> and the more
>           >the merrier.
>           >
>           >So for every new key that I have the engine try, I contrive
> to compare
>           >the result of encrypting the known plaintext against
> millions of valid
>           >ciphertexts that have been intercepted, looking for a
> match.  Assuming
>           >an effectively inexhaustible supply of ciphertexts is
> available, this
>           attack
>           >multiplies the effectiveness of the key search engine by an
> order of a
>           million
>           >or more, depending on the size of the associative memory
> that is
>           available.
>           >
>           >(The use of an associative memory isn't essential -- it was
> just a
>           gedanken
>           >experiment to speed up the comparison process without
> requiring sorting.)
>           >
>           >Two things should be noted.  First, this attack is
> independent of the KEK
>           >encryption algorithm used, assuming a fixed block size.  In
> other words,
>           >this would apply to single-DES, triple-DES, umpty-DES,
> 2048-bit RSA,
>           >or whatever, assuming a constant session key and constant
> padding.
>           >
>           >Second, the attack is also independent of the length or
> type of session
>           >key that is used, except that the yield is a Birthday
> Problem function of
>           the
>           >length of the key.  But given a fixed input, i.e., no
> random whitening or
>           >changing IV, then two or more matching outputs must imply a
> matching
>           >session key.
>           >
>           >This leads to a rather surprising result -- even if the KEK
> performs
>           double
>           >encryption using triple-DES (or any other algorithm without
> whitening)
>           >to wrap a 40 bit key, two matching session keys can be
> found with
>           >approximately 50% probability after only 2^20 or a million
> or so session
>           >keys have been generated.
>           >
>           >Perhaps more surprisingly, at least to people who haven't
> been down this
>           path,
>           >changing session keys more rapidly may hurt more than it
> helps -- it just
>           >exposes that many more keys to attack. Changing the session
> key often
>           >in the middle of a session may help limit the ability of
> the attacker to
>           >access the entire message, and hence limits the attacker's
> "take," but it
>           >increases the chances that a potentially interesting
> fragment of text
>           >may be exposed.
>           >
>           >I'm sure that someone would observe that sending even a
> million content
>           >encryption key encrypted in a constant KEK would be
> extremely unlikely
>           >in an S/MIME context, but whether that would really be true
> would require
>           >a more subtle, protocol-dependent analysis than I would
> care to make,
>           >and in addition I very much want to standardize on one key
> wrapping
>           >algorithm that is protocol independent, and not just for
> S/MIME.
>           >
>           >Obviously the above attack can be defeated by prepending
> some
>           >additional randomness or by changing the IV. But is also
> what the OAEP
>           >approach does, and rather more elegantly.  By the time we
> have to add
>           >either a changing IV or some additional randomness (how
> much would be
>           >required would have to be decided) the length would
> probably be close
>           >to that required for OAEP, which is a much more general
> solution.
>           >
>           >In my mind, at least, some extra bytes in the wrapped key
> is no big deal,
>           >but I would like the efficiency to be a good as possible.
> Triple-DES is
>           >expensive enough in terms of computational efficiency in
> software,
>           >especially in terms of the initial key expansion, and doing
> it twice
>           >would be worse yet.
>           >
>           >Because the new export regulations permit the use of double
> the key length
>           >used for data encryption to be used for key encryption, we
> are going to be
>           >using triple-DES in encrypt-decrypt-encrypt mode with only
> two keys
>           (A-B-A) for
>           >key wrapping of all export-grade CEK keys.
>           >
>           >This can be optimized by saving the key expansion of the
> first encryption,
>           and
>           >then reusing it for the final encryption.  This technique
> could
>           potentially be
>           >extended to the double encryption wrapping algorithm, by
> saving the key
>           >expansion used for all three steps, but in order to do that
> the
>           >"double-triple-DES"
>           >algorithm would probably have to be a single algorithm that
> is invoked --
>           >it would be quite difficult to securely save state across
> two separate
>           >encryption
>           >operations.
>           >
>           >So my preference, as I said earlier, would be to wrap the
> CEK in ASN.1,
>           >whiten with OAEP, and then encrypt using whatever KEK
> algorithm and
>           >key length is required, so we don't have to keep
> re-analyzing this problem
>           >for every new CEK or KEK algorithm or key length.
>           >
>           >If we can define appropriate algorithm IDs, I'm willing and
> eager to adopt
>           such
>           >a standard for  _all_ wrapped keys generated and used
> within our Novell
>           >International Cryptographic Infrastructure (NICI), even
> before S/MIME v3
>           >progresses to a full standard.  I'd be willing to assign an
> algorithm OID
>           >from the
>           >Novell tree, or we could probably get one from PKCS if
> there would be any
>           >problem getting one assigned by the IANA.
>           >
>           >Regards,
>           >
>           >Bob
>           >
>           >
>           >> Russ Housley <housley@spyrus.com> 02/20/99 02:17PM >>>
>           >All:
>           >
>           >Right now, I am leaning toward the double encryption wrap
> algorithm.  I
>           >think it will be easy to implement, and it yeilds a shorter
> result that
>           the
>           >OAEP method.  To convince myself that it was easy to
> implement, I did an
>           >implementation.  It took me about two hours while watching
> an old Jimmy
>           >Stewart movie.  Of course, I already have SHA-1 and
> Triple-DES CBC
>           >routines.  S/MIME v3 will require these algorithms for
> other capabilities
>           >besides key wrapping.
>           >
>           >If someone else is willing to do an implementation, I would
> like to
>           compare
>           >results.  This will allow a test vector to be included with
> the algorithm
>           >description.
>           >
>           >Does anyone have any strong objections to the double
> encryption wrap
>           >algorithm being selected?
>           >
>           >Russ
>           >
>           >
>           >>WRAP ALOGRITHM #1:  DOUBLE ENCRYPTION
>           >>
>           >>Key Checksum
>           >>
>           >>The CMS Checksum Algorithm is used to provide an
> content-encryption key
>           >>integrity check value.  The algorithm is:
>           >>
>           >>1.  Compute a 20 octet SHA-1 message digest on the
>           >>    content-encryption key.
>           >>2.  Use the most significant (first) eight octets of the
>           >>    message digest value as the checksum value.
>           >>
>           >>Triple-DES Key Wrap
>           >>
>           >>1.  Set odd parity for each of the DES key octets
> comprising
>           >>    the content-encryption key, call the result CEK.
>           >>2.  Compute a 8 octet key checksum value on CEK as
> described above,
>           >>    call the result ICV.
>           >>3.  Let CEKICV = CEK || ICV.
>           >>4.  Encrypt CEKICV in CBC mode using the key-encryption
> key.  Use
>           >>    an IV of 0xc302e3c1ad8bb738.
>           >>5.  Reverse the order of the ciphertext octets.  That is,
> the most
>           >>    significant (first) octet is swapped with the least
> significant
>           >>    (last) octet, and so on.  Call the result TEMP.
>           >>6.  Encrypt TEMP in CBC mode using the key-encryption key.
> Use
>           >>    an IV of 0x61a197e5b132e196.  The ciphertext is 32
> octets long.
>           >
>           >Robert R. Jueneman
>           >Security Architect
>           >Network Security Development
>           >Novell, Inc.
>           >122 East 1700 South
>           >Provo, UT 84606
>           >bjueneman@novell.com
>           >1-801-861-7387
> 
> 
> 
> 
> 
> 
> 
> 

