Re: A New Triple-DES Key Wrap Algorithm
Russ Housley <housley@spyrus.com> Wed, 17 February 1999 13:36 UTC
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.
- A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm Don Johnson
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm Don Johnson
- Re: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Bruce Schneier
- RE: A New Triple-DES Key Wrap Algorithm Burt Kaliski
- Re: A New Triple-DES Key Wrap Algorithm Dr Stephen Henson
- RE: A New Triple-DES Key Wrap Algorithm Carl Ellison
- RE: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Peter Gutmann
- Re: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Peter Gutmann
- RE: Re: A New Triple-DES Key Wrap Algorithm bartley.o'malley
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm David Wagner
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm Don Johnson
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm Carl Ellison
- Re: A New Triple-DES Key Wrap Algorithm Snow, Brian D.
- Re: A New Triple-DES Key Wrap Algorithm Peter Gutmann
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- RE: A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm David Wagner
- Re: A New Triple-DES Key Wrap Algorithm Stephen Kent
- Re: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Don Johnson
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- RE: A New Triple-DES Key Wrap Algorithm Burt Kaliski
- RE: A New Triple-DES Key Wrap Algorithm Burt Kaliski
- Re: A New Triple-DES Key Wrap Algorithm Peter Gutmann
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm Don Johnson
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- Re: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- RE: A New Triple-DES Key Wrap Algorithm Jim Schaad (Exchange)
- Re: A New Triple-DES Key Wrap Algorithm Dr Stephen Henson
- Re: A New Triple-DES Key Wrap Algorithm EKR
- Re: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Russ Housley
- New Triple-DES Key Wrap Algorithm Section Russ Housley
- RE: A New Triple-DES Key Wrap Algorithm Paul Van Oorschot
- Re: A New Triple-DES Key Wrap Algorithm Don Johnson
- Re: A New Triple-DES Key Wrap Algorithm Don Johnson
- RE: A New Triple-DES Key Wrap Algorithm Kevin Kingdon
- RE: A New Triple-DES Key Wrap Algorithm Don Johnson
- Re: A New Triple-DES Key Wrap Algorithm Bob Jueneman
- Re: A New Triple-DES Key Wrap Algorithm Peter Gutmann
- RE: A New Triple-DES Key Wrap Algorithm Burt Kaliski
- RE: A New Triple-DES Key Wrap Algorithm Tolga Acar