From owner-ietf-smime@imc.org  Tue Nov  2 18:40:17 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA04424
	for <smime-archive@odin.ietf.org>; Tue, 2 Nov 1999 18:40:17 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id PAA12436
	for ietf-smime-bks; Tue, 2 Nov 1999 15:00:12 -0800 (PST)
Received: from relay.gw.tislabs.com (firewall-user@relay.gw.tislabs.com [192.94.214.100])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA12431
	for <ietf-smime@imc.org>; Tue, 2 Nov 1999 15:00:10 -0800 (PST)
Received: by relay.gw.tislabs.com; id SAA23994; Tue, 2 Nov 1999 18:09:52 -0500 (EST)
Received: from clipper.gw.tislabs.com(10.33.1.2) by relay.gw.tislabs.com via smap (4.1)
	id xma023977; Tue, 2 Nov 99 18:09:39 -0500
Received: (from balenson@localhost)
	by clipper.gw.tislabs.com (8.9.3/8.9.1) id RAA10517
	for ietf-smime@imc.org; Tue, 2 Nov 1999 17:58:38 -0500 (EST)
Date: Tue, 2 Nov 1999 17:58:38 -0500 (EST)
From: "David M. Balenson" <balenson@tislabs.com>
Message-Id: <199911022258.RAA10517@clipper.gw.tislabs.com>
To: ietf-smime@imc.org
Subject: ANNOUNCE: ISOC Netw. & Distr. Sys. Security Symp. (NDSS 2000)
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>


                  R E G I S T E R   N O W ! !

THE INTERNET SOCIETY'S
Year 2000 NETWORK AND DISTRIBUTED SYSTEM SECURITY (NDSS) SYMPOSIUM
February 2-4, 2000
Catamaran Resort Hotel, San Diego, California
General Chair:   Steve Welke, Trusted Computer Solutions
Program Chairs:  Gene Tsudik, USC/Information Sciences Institute
		 Avi Rubin, AT&T Labs - Research

ONLINE INFORMATION AND REGISTRATION:  http://www.isoc.org/ndss2000
EARLY REGISTRATION DISCOUNT DEADLINE:  January 6, 2000

The 7th annual NDSS Symposium brings together researchers,
implementers, and users of network and distributed system security
technologies to discuss today's important security issues and
challenges.  The Symposium provides a mix of technical papers and
panel presentations that describe promising new approaches to
security problems that are practical and, to the extent possible,
have been implemented.  NDSS fosters the exchange of technical
information and encourages the Internet community to deploy available
security technologies and develop new solutions to unsolved problems.

KEYNOTE SPEAKER: Gene Spafford, Professor of Computer Sciences at
Purdue University, an expert in information security, computer crime
investigation and information ethics.  Spaf (as he is known to his
friends, colleagues, and students) is director of the Purdue CERIAS
(Center for Education and Research in Information Assurance and
Security), and was the founder and director of the (now superseded)
COAST Laboratory. 

THIS YEAR'S TOPICS INCLUDE:
- Automated Detection of Buffer Overrun Vulnerabilities
- User-Level Infrastructure for System Call Interposition
- Optimized Group Rekey for Group Communication Systems
- IPSec-based Host Architecture for Secure  Internet Multicast
- The Economics of Security
- Automatic Generation of Security Protocols
- Security Protocols for SPKI-based Delegation Systems
- Secure Border Gateway Protocol (S-BGP)
- Analysis of a Fair Exchange Protocol
- Secure Password-Based Protocols for TLS
- Chameleon Signatures
- Lightweight Tool for Detecting Web Server Attacks
- Adaptive and Agile Applications Using Intrusion Detection
- Secure Virtual Enclaves
- Encrypted rlogin Connections Created With Kerberos IV
- Accountability and Control of Process Creation in Metasystems
- Red Teaming and Network Security

PRE-CONFERENCE TECHNICAL TUTORIALS:
- Network Security Protocol Standards, Dr. Stephen T. Kent
- Deployed and Emerging Security Systems for the Internet, Dr. Radia
  Perlman and Charlie Kaufman
- Mobile Code Security and Java 2 Architecture, Dr. Gary McGraw
- Cryptography 101, Dr. Aviel D. Rubin
- Public Key Infrastructure - The Truth and How to Find It, Dr. Daniel
  E. Geer, Jr.
- Intrusion Detection Research, Instructor TBD

FOR MORE INFORMATION contact the Internet Society:
  Internet Society, 11150 Sunset Hills Road, Reston, VA, 20190 USA
  Phone: +1-703-326-9880         Fax: +1-703-326-9881
  E-mail: ndss2000reg@isoc.org   URL: http://www.isoc.org/ndss2000/

SPONSORSHIP OPPORTUNITIES AVAILABLE!  Take advantage of this high
visibility event.  Contact Carla Rosenfeld at the Internet Society
at +1-703-326-9880 or send e-mail to carla@isoc.org.

THE INTERNET SOCIETY is a non-governmental organization for global
cooperation and coordination for the Internet and its
internetworking technologies and applications.



From owner-ietf-smime@imc.org  Wed Nov  3 06:33:52 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA02999
	for <smime-archive@odin.ietf.org>; Wed, 3 Nov 1999 06:33:51 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id DAA00614
	for ietf-smime-bks; Wed, 3 Nov 1999 03:07:06 -0800 (PST)
Received: from cmcltd.com ([196.12.38.91])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id DAA00609
	for <ietf-smime@imc.org>; Wed, 3 Nov 1999 03:06:55 -0800 (PST)
Received: from ic-server ([172.16.16.200])
	by cmcltd.com (8.8.7/8.8.7) with ESMTP id QAA19873
	for <ietf-smime@imc.org>; Wed, 3 Nov 1999 16:33:32 +0530
Message-ID: <004a01bf25eb$1e384650$c81010ac@ic-server.cmcltd.com>
Reply-To: "V.Krishna Reddy" <kris@cmcltd.com>
From: "V.Krishna Reddy" <kris@cmcltd.com>
To: <ietf-smime@imc.org>
Subject: private key storage
Date: Wed, 3 Nov 1999 16:33:53 +0530
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0047_01BF2619.37A1ED20"
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a multi-part message in MIME format.

------=_NextPart_000_0047_01BF2619.37A1ED20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have generated a X 509 v3 certificate for secure e-mail protection.I =
have installed the certificate on the system.But it is not signing the =
certificate.I think most probably it is due to the lack of the knowledge =
of the private key.
          Actually where is the private key corresponding to the public =
key stored.How does the e-mail client get it registered for use.
         Please clarify.
--krishna.

------=_NextPart_000_0047_01BF2619.37A1ED20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>I have generated a X 509 v3 =
certificate for=20
secure e-mail protection.I have installed the certificate on the =
system.But it=20
is not signing the certificate.I think most probably it is due to the =
lack of=20
the knowledge of the private key.</FONT></DIV>
<DIV><FONT color=3D#000000=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Actually =
where is=20
the private key corresponding to the public key stored.How does the =
e-mail=20
client get it registered for use.</FONT></DIV>
<DIV><FONT color=3D#000000 =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Please clarify.</FONT></DIV>
<DIV><FONT color=3D#000000 =
size=3D2>--krishna.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0047_01BF2619.37A1ED20--



From owner-ietf-smime@imc.org  Thu Nov  4 14:33:44 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA03154
	for <smime-archive@odin.ietf.org>; Thu, 4 Nov 1999 14:33:43 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id KAA11030
	for ietf-smime-bks; Thu, 4 Nov 1999 10:37:46 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.provo.novell.com [137.65.82.195])
	by ns.secondary.com (8.9.3/8.9.3) with SMTP id KAA10812;
	Thu, 4 Nov 1999 10:35:15 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com
	with Novell_GroupWise; Thu, 04 Nov 1999 11:35:03 -0700
Message-Id: <s8216f67.049@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise Internet Agent 5.5.2.1
Date: Thu, 04 Nov 1999 11:34:54 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>
Cc: <ietf-smime@imc.org>
Subject: Comparing rfc822 addresses to certificates
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 ns.secondary.com id KAA10813
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 8bit

>BJUENEMAN@novell.com writes:
>
>>Contrary to how most public CAs do it, at least so far, the e-mail address is
>>included in the subjectAltName as per the PKIX RFC, and to our pleasant
>>surprise all of the e-mail packages we have encountered to date have been 
>>able to handle that format correctly.
>>
>>Although we could have, we chose not to include an e-mail address of the form
>>subjectAltName="Robert R. Jueneman" <bjueneman@novell.com> , in part because
>>most e-mail packages would just as easily accept "President William Jefferson
>>Clinton" <bjueneman@novell.com>. 
>
>D'you mean they'll accept that as an rfc822Name?  Are they supposed to do that?
>
>Peter.
>
Let me clarify that.  I haven't tested that exhaustively across multiple 
packages, but I believe that e-mail packages generally ignore the "junk" 
prior to the rfc822 mailbox name itself, both on message origin and 
message receipt.

Many packages I am familiar with allow you to specify your own From address 
one way or the other, even though you may not be able to change the 
portion of the address within the angle brackets.

They may or may not reflect that name in the From address that is 
presented in the message window or header line, but I believe that most do.  

Certainly it appears that you can put anything you wish in front of the
address, and the message will be both sent and received successfully.

That being the case, I doubt that many would complain about a 
mismatched rfc822 address in the certificate in that case, but I don't
know that for a fact.

Now, SHOULD they?  Honestly, I'm not sure.

Browsing through rfc822, I find the following snippets of definitions:

  4.4.1.  FROM / RESENT-FROM

        This field contains the identity of the person(s)  who  wished
        this  message to be sent.  The message-creation process should
        default this field  to  be  a  single,  authenticated  machine
        address,  indicating  the  AGENT  (person,  system or process)
        entering the message.  If this is not done, the "Sender" field
        MUST  be  present.  If the "From" field IS defaulted this way,
        the "Sender" field is  optional  and  is  redundant  with  the
        "From"  field.   In  all  cases, addresses in the "From" field
        must be machine-usable (addr-specs) and may not contain  named
        lists (groups).

6.1.  SYNTAX

     address     =  mailbox                      ; one addressee
                 /  group                        ; named list

     group       =  phrase ":" [#mailbox] ";"

     mailbox     =  addr-spec                    ; simple address
                 /  phrase route-addr            ; name & addr-spec

     route-addr  =  "<" [route] addr-spec ">"

     route       =  1#("@" domain) ":"           ; path-relative

     addr-spec   =  local-part "@" domain        ; global address

     local-part  =  word *("." word)             ; uninterpreted
                                                 ; case-preserved

     domain      =  sub-domain *("." sub-domain)

     sub-domain  =  domain-ref / domain-literal

     domain-ref  =  atom                         ; symbolic reference

phrase      =  1*word                       ; Sequence of words

     word        =  atom / quoted-string

Parentheses ("(" and ")") are used  to  indicate  comments.

So ignoring the optional route indicator, which I haven't seen used 
for at least five years, and excluding groups as required by the 
semantics of From, we have as an allowable From address:

address = mailbox  

mailbox = addr-spec /
                 phrase route-addr

route-addr = <addr-spec>

Unfortunately, the semantics of "phrase" or "word" don't seem 
to be defined, but the implication seems to be that they are the name of 
the originator in the case of a From or Sender field, and the name or
name of the desired recipient(s) in the case of a To or Cc field. This of 
course gets even more complicated in the case of a shared mailbox,
as might be the case for a family.

Since the form of the "name" isn't defined, I have to assume that 
"phrase" is essentially syntactic sugar, to be interpreted by the 
human user.

So I conclude that the following are all legitimate rfc822 From addresses:

kent@bbn.com 

Steve Kent@bbn.com 

Stephen Kent@bbn.com 

Also,

Bob Jueneman <bjueneman@novell.com>

"Robert R. Jueneman" <bjueneman@novell.com> 

Robert "R." (Bob) Jueneman (the one who is not the 
horse thief) <bjueneman@novell.com> 

However, as a message from Tom Gindin points out (and 
I'll take his word for it without checking the text of RFC 
2459 section 4.2.1.7), PKIX defines an rfc822 attribute 
within GeneralName as an addr-spec, NOT an "address".

The S/MIME spec also states that the end-entity certificates 
MUST contain an Internet mail address, and that the 
address must be an "addr-spec" as defined in Section 6.1.

X.509, however, is ambiguous, and needs to be corrected.

So that seems clear, now.  The above constructs would NOT be
legal as an rfc822 type DN or subjectAltName, although I strongly
suspect that many CAs and CA toolkits would accept them and
create certificates containing them.

Unfortunately, this leaves us with the case where the e-mail
package, if it performs correctly, will accept a message with
a From address of 

From: "President William Jefferson Clinton                         " 
(note the extra spaces, intended to cause truncation of the 
name -- it's really slick Bob in disguise) <bjueneman@novell.com> 

and then it will compare just the <bjueneman@novell.com> to the 
subjectAltName in my certificate and conclude that all is well,
since the addr-spec in the From matches the content of the attribute
in the certificate.

Worse yet, since some mail programs don't bother to display
the "real" addr-spec, but only the name portion, and most will
truncate even the name if it's too long, the recipient may not see 
that anything is amiss at all.

The S/MIME v2 Certificate Handling spec  (3.1, last paragraph) 
states that "... Receiving agents MUST check that the address (sic) 
in the From header of a mail message matches an Internet mail 
address in the signer's certificate. ..."

That's somewhat ambiguous, since the "address" portion of a From 
address is clearly the more general mailbox name.  But clarifying 
the S/MIME spec by requiring that the addr-spec portion of the 
From address match the addr-spec in the certificate would 
merely highlight the problem, not solve it.

So we clearly have a problem where the relying party may be 
accidentally or even deliberately mislead, unless he is particularly 
careful to compare the full From address (which may only be 
available by looking at the mime.822 view of the message) against 
the certificate content.

What should we do?  I'm not quite sure, but I'm concerned.

Bob


From owner-ietf-smime@imc.org  Thu Nov  4 19:41:04 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA08839
	for <smime-archive@odin.ietf.org>; Thu, 4 Nov 1999 19:41:04 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id PAA15985
	for ietf-smime-bks; Thu, 4 Nov 1999 15:45:30 -0800 (PST)
Received: from stargate.zergo.com.au (IDENT:root@stargate.zergo.com.au [203.2.208.130])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA15981;
	Thu, 4 Nov 1999 15:45:26 -0800 (PST)
Received: from sydneymail1.baltimore.com.au (sydneymail1.jp.zergo.com.au [192.168.71.5])
	by stargate.zergo.com.au (8.9.1/8.8.7) with ESMTP id KAA17613;
	Fri, 5 Nov 1999 10:48:11 +1100
Received: by sydneymail1.jp.zergo.com.au with Internet Mail Service (5.5.2448.0)
	id <WHJPWN7G>; Fri, 5 Nov 1999 10:46:25 +1100
Message-ID: <D44EACB40164D311BEF00090274EDCCA1B3D48@sydneymail1.jp.zergo.com.au>
From: Greg Colla <gcolla@baltimore.com>
To: ietf-pkix@imc.org, ietf-smime@imc.org
Subject: RE: Comparing rfc822 addresses to certificates
Date: Fri, 5 Nov 1999 10:46:24 +1100 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Bob's e-mail has triggered a couple of other issues with RFC822 addresses
and certificates that have been doing the rounds here.

Does it need to be an RFC822 address?
Probably not. Here's an example. A closed user group that are using a
proprietary mail system wish to use S/MIME. In this case, each user's
proprietary mail address would be sufficient in both the certificate's
subjectAltName field and message's From address fields for the sender/signer
comparison. 

Does there need to be a comparison?
Definitely yes. We need to ensure that the recipient is warned that the
signer is not the sender, even though the message can be verified.

Are there exceptions?
Also yes. 
1. Quite often when companies change name or merge, each user will be given
another e-mail address. to make the make PKI system more useable, we don't
want to enforce key and cert rolling for the whole organisation - they
probably have enough problems without us adding to it ;-)
One solution is that the users associate secondary addresses to
certificates. This must be a secure association, the user will know if it
has been tampered with. If a message is received where the sender's address
is equivalent to the address in the cert, or an address associated with the
cert, then no warning is given.

2. Domain signing. In some installations, a domain gateway is used to sign
on behalf of the sender as it exits the domain. In this case, the address in
the domain's signing cert won't match the originator's address. (Refer to
the DOMSEC draft for further info). The receiving client needs to compensate
for this. There are various work-arounds for this, including (A) the
generation of certificates on-the-fly, each with the same public key, but
different e-mail addresses, (B) association of users' addresses with the
domain's certificate on the recipient's client and (C) the DOMSEC methods.

3. Countersigning and co-signing. This is a big enough issue by itself and
can be left for a later date.

So the conclusion is that there should be a sender/signer comparison,
although the comparison may not be direct.

Greg

-----Original Message-----
From: Bob Jueneman [mailto:BJUENEMAN@novell.com]
Sent: Friday, November 05, 1999 5:35 AM
To: pgut001@cs.aucKland.ac.nz; ietf-pkix@imc.org
Cc: ietf-smime@imc.org
Subject: Comparing rfc822 addresses to certificates


>BJUENEMAN@novell.com writes:
>
>>Contrary to how most public CAs do it, at least so far, the e-mail address
is
>>included in the subjectAltName as per the PKIX RFC, and to our pleasant
>>surprise all of the e-mail packages we have encountered to date have been 
>>able to handle that format correctly.
>>
>>Although we could have, we chose not to include an e-mail address of the
form
>>subjectAltName="Robert R. Jueneman" <bjueneman@novell.com> , in part
because
>>most e-mail packages would just as easily accept "President William
Jefferson
>>Clinton" <bjueneman@novell.com>. 
>
>D'you mean they'll accept that as an rfc822Name?  Are they supposed to do
that?
>
>Peter.
>
Let me clarify that.  I haven't tested that exhaustively across multiple 
packages, but I believe that e-mail packages generally ignore the "junk" 
prior to the rfc822 mailbox name itself, both on message origin and 
message receipt.

Many packages I am familiar with allow you to specify your own From address 
one way or the other, even though you may not be able to change the 
portion of the address within the angle brackets.

They may or may not reflect that name in the From address that is 
presented in the message window or header line, but I believe that most do.


Certainly it appears that you can put anything you wish in front of the
address, and the message will be both sent and received successfully.

That being the case, I doubt that many would complain about a 
mismatched rfc822 address in the certificate in that case, but I don't
know that for a fact.

Now, SHOULD they?  Honestly, I'm not sure.

Browsing through rfc822, I find the following snippets of definitions:

  4.4.1.  FROM / RESENT-FROM

        This field contains the identity of the person(s)  who  wished
        this  message to be sent.  The message-creation process should
        default this field  to  be  a  single,  authenticated  machine
        address,  indicating  the  AGENT  (person,  system or process)
        entering the message.  If this is not done, the "Sender" field
        MUST  be  present.  If the "From" field IS defaulted this way,
        the "Sender" field is  optional  and  is  redundant  with  the
        "From"  field.   In  all  cases, addresses in the "From" field
        must be machine-usable (addr-specs) and may not contain  named
        lists (groups).

6.1.  SYNTAX

     address     =  mailbox                      ; one addressee
                 /  group                        ; named list

     group       =  phrase ":" [#mailbox] ";"

     mailbox     =  addr-spec                    ; simple address
                 /  phrase route-addr            ; name & addr-spec

     route-addr  =  "<" [route] addr-spec ">"

     route       =  1#("@" domain) ":"           ; path-relative

     addr-spec   =  local-part "@" domain        ; global address

     local-part  =  word *("." word)             ; uninterpreted
                                                 ; case-preserved

     domain      =  sub-domain *("." sub-domain)

     sub-domain  =  domain-ref / domain-literal

     domain-ref  =  atom                         ; symbolic reference

phrase      =  1*word                       ; Sequence of words

     word        =  atom / quoted-string

Parentheses ("(" and ")") are used  to  indicate  comments.

So ignoring the optional route indicator, which I haven't seen used 
for at least five years, and excluding groups as required by the 
semantics of From, we have as an allowable From address:

address = mailbox  

mailbox = addr-spec /
                 phrase route-addr

route-addr = <addr-spec>

Unfortunately, the semantics of "phrase" or "word" don't seem 
to be defined, but the implication seems to be that they are the name of 
the originator in the case of a From or Sender field, and the name or
name of the desired recipient(s) in the case of a To or Cc field. This of 
course gets even more complicated in the case of a shared mailbox,
as might be the case for a family.

Since the form of the "name" isn't defined, I have to assume that 
"phrase" is essentially syntactic sugar, to be interpreted by the 
human user.

So I conclude that the following are all legitimate rfc822 From addresses:

kent@bbn.com 

Steve Kent@bbn.com 

Stephen Kent@bbn.com 

Also,

Bob Jueneman <bjueneman@novell.com>

"Robert R. Jueneman" <bjueneman@novell.com> 

Robert "R." (Bob) Jueneman (the one who is not the 
horse thief) <bjueneman@novell.com> 

However, as a message from Tom Gindin points out (and 
I'll take his word for it without checking the text of RFC 
2459 section 4.2.1.7), PKIX defines an rfc822 attribute 
within GeneralName as an addr-spec, NOT an "address".

The S/MIME spec also states that the end-entity certificates 
MUST contain an Internet mail address, and that the 
address must be an "addr-spec" as defined in Section 6.1.

X.509, however, is ambiguous, and needs to be corrected.

So that seems clear, now.  The above constructs would NOT be
legal as an rfc822 type DN or subjectAltName, although I strongly
suspect that many CAs and CA toolkits would accept them and
create certificates containing them.

Unfortunately, this leaves us with the case where the e-mail
package, if it performs correctly, will accept a message with
a From address of 

From: "President William Jefferson Clinton                         " 
(note the extra spaces, intended to cause truncation of the 
name -- it's really slick Bob in disguise) <bjueneman@novell.com> 

and then it will compare just the <bjueneman@novell.com> to the 
subjectAltName in my certificate and conclude that all is well,
since the addr-spec in the From matches the content of the attribute
in the certificate.

Worse yet, since some mail programs don't bother to display
the "real" addr-spec, but only the name portion, and most will
truncate even the name if it's too long, the recipient may not see 
that anything is amiss at all.

The S/MIME v2 Certificate Handling spec  (3.1, last paragraph) 
states that "... Receiving agents MUST check that the address (sic) 
in the From header of a mail message matches an Internet mail 
address in the signer's certificate. ..."

That's somewhat ambiguous, since the "address" portion of a From 
address is clearly the more general mailbox name.  But clarifying 
the S/MIME spec by requiring that the addr-spec portion of the 
From address match the addr-spec in the certificate would 
merely highlight the problem, not solve it.

So we clearly have a problem where the relying party may be 
accidentally or even deliberately mislead, unless he is particularly 
careful to compare the full From address (which may only be 
available by looking at the mime.822 view of the message) against 
the certificate content.

What should we do?  I'm not quite sure, but I'm concerned.

Bob


From owner-ietf-smime@imc.org  Thu Nov  4 20:48:16 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA27622
	for <smime-archive@odin.ietf.org>; Thu, 4 Nov 1999 20:48:15 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id RAA17448
	for ietf-smime-bks; Thu, 4 Nov 1999 17:03:12 -0800 (PST)
Received: from sfemail.bankofamerica.com (sfemail.bankofamerica.com [171.159.64.14])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id RAA17257;
	Thu, 4 Nov 1999 17:01:37 -0800 (PST)
Received: from sfimail.bankofamerica.com (sfimail.bankofamerica.com [171.182.72.13])
	by sfemail.bankofamerica.com (8.9.1/8.9.1) with ESMTP id RAA10243;
	Thu, 4 Nov 1999 17:01:21 -0800 (PST)
Received: from smtpsw03 (smtpsw03.bankofamerica.com [165.48.14.143])
	by sfimail.bankofamerica.com (8.9.1/8.9.1) with ESMTP id RAA17141;
	Thu, 4 Nov 1999 17:01:23 -0800 (PST)
Date: Thu, 04 Nov 1999 17:02:46 -0800
From: Mack Hicks <mack.hicks@bankofamerica.com>
Subject: Real Life Example - RFC822 in a mergered firm
Cc: ietf-pkix@imc.org, ietf-smime@imc.org
Message-id: <38222CB6.D243E2D@bankofamerica.com>
MIME-version: 1.0
X-Mailer: Mozilla 4.6 [en] (WinNT; U)
Content-type: multipart/signed; protocol="application/x-pkcs7-signature";
 micalg=sha1; boundary="------------ms90BE228F95E2D9D1FFFEC207"
X-Accept-Language: en
References: <D44EACB40164D311BEF00090274EDCCA1B3D48@sydneymail1.jp.zergo.com.au>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a cryptographically signed message in MIME format.

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

To: IETF PKIX list, IETF SMIME list,

This is all too familiar to those of you who follow these lists, but I could not
resist sharing my own "troubles."

Since Bank of America (BankAmerica.com) and NationsBank (NationsBank.com)
merged, the preferred domain for email is BankofAmerica.com.  Our kind email
gateway changes all the outbound (and inbound) names for us so that internally
we are still using the two old domains.  (See signature validation messages on
this S/MIME signed message.)

We have also implemented the SMTP sender authentication mechanism so I must
remain
     mack.hicks@bankamerica.com
internally.

But you can all call me: Mack
See you in DC.

--
-------------------------------------------------------------------
Mack Hicks, SVP     mack.hicks@bankofamerica.com  ;-)
Bank of America, San Francisco, CA USA


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

MIIKqAYJKoZIhvcNAQcCoIIKmTCCCpUCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
CDQwggT+MIIEZ6ADAgECAhBX6XsSCzdMQqrLlRj8TZyCMA0GCSqGSIb3DQEBBAUAMIHMMRcw
FQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29y
azFGMEQGA1UECxM9d3d3LnZlcmlzaWduLmNvbS9yZXBvc2l0b3J5L1JQQSBJbmNvcnAuIEJ5
IFJlZi4sTElBQi5MVEQoYyk5ODFIMEYGA1UEAxM/VmVyaVNpZ24gQ2xhc3MgMSBDQSBJbmRp
dmlkdWFsIFN1YnNjcmliZXItUGVyc29uYSBOb3QgVmFsaWRhdGVkMB4XDTk5MDgyNjAwMDAw
MFoXDTAwMDgyNTIzNTk1OVowggEZMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0GA1UE
CxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazFGMEQGA1UECxM9d3d3LnZlcmlzaWduLmNvbS9y
ZXBvc2l0b3J5L1JQQSBJbmNvcnAuIGJ5IFJlZi4sTElBQi5MVEQoYyk5ODEeMBwGA1UECxMV
UGVyc29uYSBOb3QgVmFsaWRhdGVkMTMwMQYDVQQLEypEaWdpdGFsIElEIENsYXNzIDEgLSBO
ZXRzY2FwZSBGdWxsIFNlcnZpY2UxEzARBgNVBAMUCk1hY2sgSGlja3MxKzApBgkqhkiG9w0B
CQEWHG1hY2suaGlja3NAYmFua29mYW1lcmljYS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0A
MIGJAoGBAMJPErtnuX1efSb0Oig/IuB0TJ46Gt9R+oz74ai7mgfI1HvqdNlSP7LA3pPJsOf2
rwDux/4/g3nHjPyT2GQCuxPYDsRuLsW9A+fxqTSGb0g05iOm9i6a555/CjXPXSQVD5DrRPTl
ozim/4sEPVQ6CsgkNJOyCV+cOrw6oypr9l9TAgMBAAGjggGPMIIBizAJBgNVHRMEAjAAMIGs
BgNVHSAEgaQwgaEwgZ4GC2CGSAGG+EUBBwEBMIGOMCgGCCsGAQUFBwIBFhxodHRwczovL3d3
dy52ZXJpc2lnbi5jb20vQ1BTMGIGCCsGAQUFBwICMFYwFRYOVmVyaVNpZ24sIEluYy4wAwIB
ARo9VmVyaVNpZ24ncyBDUFMgaW5jb3JwLiBieSByZWZlcmVuY2UgbGlhYi4gbHRkLiAoYyk5
NyBWZXJpU2lnbjARBglghkgBhvhCAQEEBAMCB4AwgYYGCmCGSAGG+EUBBgMEeBZ2ZDQ2NTJi
ZDYzZjIwNDcwMjkyOTg3NjNjOWQyZjI3NTA2OWM3MzU5YmVkMWIwNTlkYTc1YmM0YmM5NzAx
NzQ3ZGE1ZDNmMjE0MWJlYWRiMmJkMmU4OTIxZmE5NmFmMmQwMTE0OTk3YTFiMjQ2ZjRmM2Vh
NDUwYzAzBgNVHR8ELDAqMCigJqAkhiJodHRwOi8vY3JsLnZlcmlzaWduLmNvbS9jbGFzczEu
Y3JsMA0GCSqGSIb3DQEBBAUAA4GBAI134mwkOQpKdM8R8JXXNi1h0zL764AowM7zYu5zyHRP
eKdcjW+npKn1KRblonVDbwRvFs7vothdfM3UdUlc2juny5upPK5W06Ws9RT9co36Fv0Dyn5o
ch2rRoW+LdIhA9axMzDvdCocQ3O0pNnwCJrqdF+8VGcu2nJJEUCfroboMIIDLjCCApegAwIB
AgIRANJ2Lo0UDD19sqglXa/uDXUwDQYJKoZIhvcNAQECBQAwXzELMAkGA1UEBhMCVVMxFzAV
BgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5
IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk4MDUxMjAwMDAwMFoXDTA4MDUxMjIzNTk1
OVowgcwxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVz
dCBOZXR3b3JrMUYwRAYDVQQLEz13d3cudmVyaXNpZ24uY29tL3JlcG9zaXRvcnkvUlBBIElu
Y29ycC4gQnkgUmVmLixMSUFCLkxURChjKTk4MUgwRgYDVQQDEz9WZXJpU2lnbiBDbGFzcyAx
IENBIEluZGl2aWR1YWwgU3Vic2NyaWJlci1QZXJzb25hIE5vdCBWYWxpZGF0ZWQwgZ8wDQYJ
KoZIhvcNAQEBBQADgY0AMIGJAoGBALtaRIoEFrtV/QN6ii2UTxV4NrgNSrJvnFS/vOh3Kp25
8Gi7ldkxQXB6gUu5SBNWLccI4YRCq8CikqtEXKpC8IIOAukv+8I7u77JJwpdtrA2QjO1blSI
T4dKvxna+RXoD4e2HOPMxpqOf2okkuP84GW6p7F+78nbN2rISsgJBuSZAgMBAAGjfDB6MBEG
CWCGSAGG+EIBAQQEAwIBBjBHBgNVHSAEQDA+MDwGC2CGSAGG+EUBBwEBMC0wKwYIKwYBBQUH
AgEWH3d3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9SUEEwDwYDVR0TBAgwBgEB/wIBADAL
BgNVHQ8EBAMCAQYwDQYJKoZIhvcNAQECBQADgYEAiLg3O93alDcAraqf4YEBcR6Sam0v9vGd
08pkONwbmAwHhluFFWoPuUmFpJXxF31ntH8tLN2aQp7DPrSOquULBt7yVir6M8e+GddTTMO9
yOMXtaRJQmPswqYXD11YGkk8kFxVo2UgAP0YIOVfgqaxqJLFWGrBjQM868PNBaKQrm4xggI8
MIICOAIBATCB4TCBzDEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlT
aWduIFRydXN0IE5ldHdvcmsxRjBEBgNVBAsTPXd3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9y
eS9SUEEgSW5jb3JwLiBCeSBSZWYuLExJQUIuTFREKGMpOTgxSDBGBgNVBAMTP1ZlcmlTaWdu
IENsYXNzIDEgQ0EgSW5kaXZpZHVhbCBTdWJzY3JpYmVyLVBlcnNvbmEgTm90IFZhbGlkYXRl
ZAIQV+l7Egs3TEKqy5UY/E2cgjAJBgUrDgMCGgUAoIGxMBgGCSqGSIb3DQEJAzELBgkqhkiG
9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTk5MTEwNTAxMDI0NlowIwYJKoZIhvcNAQkEMRYEFFkR
008ZA9l0BZrSz92iskGLVuFQMFIGCSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZI
hvcNAwICAgCAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgFAMA0GCCqGSIb3DQMCAgEoMA0GCSqG
SIb3DQEBAQUABIGAtk3TpjR8BGvWPVpyHklbolfhSrYP2Z2ghIX+LG3O1aJVUMDXO2ybxLYx
RPDeC9YKUoxTYAdGBOjx4sLLBjbKOgk9WIOFoaLux0u1Rky7sDIZ+KAAmsyzuwtgsbU+jnGV
b2bl2aSK3rLOZ/iwQy6znE4zW0tkXHKEvXLwvGdr3gA=
--------------ms90BE228F95E2D9D1FFFEC207--



From owner-ietf-smime@imc.org  Fri Nov  5 12:06:20 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA00651
	for <smime-archive@odin.ietf.org>; Fri, 5 Nov 1999 12:06:19 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id GAA25770
	for ietf-smime-bks; Fri, 5 Nov 1999 06:54:22 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id GAA25766
	for <ietf-smime@imc.org>; Fri, 5 Nov 1999 06:54:21 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id GAA13150;
	Fri, 5 Nov 1999 06:53:36 -0800 (PST)
Message-Id: <4.2.0.58.19991104091924.00a33bf0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Thu, 04 Nov 1999 09:22:54 -0500
To: agenda@ietf.org, ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: S/MIME WG Agenda for Wasington, DC Meeting
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

                 S/MIME Mail Security WG Agenda

Introductions                           Russ Housley
RFC 2630 - 2634 Status                  Russ Housley
Charter Revision                                Russ Housley
CERTDIST Draft Discussion               Jim Schaad
DOMSEC Draft Discussion                 Bill Ottaway
CMS/ESS Examples                                Paul Hoffman
Security Policies and Labels            Weston Nicolls
KEA and SKIPJACK Algorithms             John Pawling
CAST Algorithm                          Carlisle Adams
Elliptic Curve Algorithms               Paul Lambert
ETSI Electronic Signatures              Denis Pinkas
S/MIME Freeware Library         John Pawling
Wrap up                                 Russ Housley


From owner-ietf-smime@imc.org  Fri Nov  5 13:23:24 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA04862
	for <smime-archive@odin.ietf.org>; Fri, 5 Nov 1999 13:23:21 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id JAA28400
	for ietf-smime-bks; Fri, 5 Nov 1999 09:24:26 -0800 (PST)
Received: from mailman.8760.com (portal.8760.com [209.149.125.2] (may be forged))
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA28395
	for <ietf-smime@imc.org>; Fri, 5 Nov 1999 09:24:24 -0800 (PST)
Received: by mailman.8760.com from localhost
    (router,SLMail V3.2); Fri, 05 Nov 1999 11:22:49 -0600
Received: from dblaptop [192.168.21.122]
 by mailman.8760.com [192.168.21.90]  (SLmail 3.2.3113) with SMTP
 id 3F43EA7792E511D3BAFE0060974E38DD
 for <gcolla@baltimore.com> plus 1 more; Fri, 05 Nov 1999 11:22:48 -0600
Reply-To: <dick@8760.com>
From: "Dick Brooks" <dick@8760.com>
To: "Greg Colla" <gcolla@baltimore.com>, <ietf-smime@imc.org>
Subject: RE: Comparing rfc822 addresses to certificates
Date: Fri, 5 Nov 1999 11:22:24 -0800
Message-ID: <NBBBIIDLFBOEGGCJGMJJGEAHCFAA.dick@8760.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 IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Importance: Normal
In-Reply-To: <D44EACB40164D311BEF00090274EDCCA1B3D48@sydneymail1.jp.zergo.com.au>
X-SLUIDL: DC1ED909-93A111D3-BAFE0060-974E38DD
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Within the context of EDIINT AS2
http://www.ietf.org/internet-drafts/draft-ietf-ediint-as2-06.txt and the Gas
Industry Standard for Internet EDI, the sender and receiver ID's are allowed
to be DUNS numbers. Use of DUNS numbers makes comparison straight forward
(no concerns over case), it's just a ASCII integer. Obviously DUNS numbers
don't work well in inter-personal identification, but seems to work fine in
B2B scenarios.

Dick Brooks
www.8760.com


-----Original Message-----
From: owner-ietf-smime@imc.org [mailto:owner-ietf-smime@imc.org]On
Behalf Of Greg Colla
Sent: Thursday, November 04, 1999 3:46 PM
To: ietf-pkix@imc.org; ietf-smime@imc.org
Subject: RE: Comparing rfc822 addresses to certificates


Bob's e-mail has triggered a couple of other issues with RFC822 addresses
and certificates that have been doing the rounds here.

Does it need to be an RFC822 address?
Probably not. Here's an example. A closed user group that are using a
proprietary mail system wish to use S/MIME. In this case, each user's
proprietary mail address would be sufficient in both the certificate's
subjectAltName field and message's From address fields for the sender/signer
comparison.

Does there need to be a comparison?
Definitely yes. We need to ensure that the recipient is warned that the
signer is not the sender, even though the message can be verified.

Are there exceptions?
Also yes.
1. Quite often when companies change name or merge, each user will be given
another e-mail address. to make the make PKI system more useable, we don't
want to enforce key and cert rolling for the whole organisation - they
probably have enough problems without us adding to it ;-)
One solution is that the users associate secondary addresses to
certificates. This must be a secure association, the user will know if it
has been tampered with. If a message is received where the sender's address
is equivalent to the address in the cert, or an address associated with the
cert, then no warning is given.

2. Domain signing. In some installations, a domain gateway is used to sign
on behalf of the sender as it exits the domain. In this case, the address in
the domain's signing cert won't match the originator's address. (Refer to
the DOMSEC draft for further info). The receiving client needs to compensate
for this. There are various work-arounds for this, including (A) the
generation of certificates on-the-fly, each with the same public key, but
different e-mail addresses, (B) association of users' addresses with the
domain's certificate on the recipient's client and (C) the DOMSEC methods.

3. Countersigning and co-signing. This is a big enough issue by itself and
can be left for a later date.

So the conclusion is that there should be a sender/signer comparison,
although the comparison may not be direct.

Greg

-----Original Message-----
From: Bob Jueneman [mailto:BJUENEMAN@novell.com]
Sent: Friday, November 05, 1999 5:35 AM
To: pgut001@cs.aucKland.ac.nz; ietf-pkix@imc.org
Cc: ietf-smime@imc.org
Subject: Comparing rfc822 addresses to certificates


>BJUENEMAN@novell.com writes:
>
>>Contrary to how most public CAs do it, at least so far, the e-mail address
is
>>included in the subjectAltName as per the PKIX RFC, and to our pleasant
>>surprise all of the e-mail packages we have encountered to date have been
>>able to handle that format correctly.
>>
>>Although we could have, we chose not to include an e-mail address of the
form
>>subjectAltName="Robert R. Jueneman" <bjueneman@novell.com> , in part
because
>>most e-mail packages would just as easily accept "President William
Jefferson
>>Clinton" <bjueneman@novell.com>.
>
>D'you mean they'll accept that as an rfc822Name?  Are they supposed to do
that?
>
>Peter.
>
Let me clarify that.  I haven't tested that exhaustively across multiple
packages, but I believe that e-mail packages generally ignore the "junk"
prior to the rfc822 mailbox name itself, both on message origin and
message receipt.

Many packages I am familiar with allow you to specify your own From address
one way or the other, even though you may not be able to change the
portion of the address within the angle brackets.

They may or may not reflect that name in the From address that is
presented in the message window or header line, but I believe that most do.


Certainly it appears that you can put anything you wish in front of the
address, and the message will be both sent and received successfully.

That being the case, I doubt that many would complain about a
mismatched rfc822 address in the certificate in that case, but I don't
know that for a fact.

Now, SHOULD they?  Honestly, I'm not sure.

Browsing through rfc822, I find the following snippets of definitions:

  4.4.1.  FROM / RESENT-FROM

        This field contains the identity of the person(s)  who  wished
        this  message to be sent.  The message-creation process should
        default this field  to  be  a  single,  authenticated  machine
        address,  indicating  the  AGENT  (person,  system or process)
        entering the message.  If this is not done, the "Sender" field
        MUST  be  present.  If the "From" field IS defaulted this way,
        the "Sender" field is  optional  and  is  redundant  with  the
        "From"  field.   In  all  cases, addresses in the "From" field
        must be machine-usable (addr-specs) and may not contain  named
        lists (groups).

6.1.  SYNTAX

     address     =  mailbox                      ; one addressee
                 /  group                        ; named list

     group       =  phrase ":" [#mailbox] ";"

     mailbox     =  addr-spec                    ; simple address
                 /  phrase route-addr            ; name & addr-spec

     route-addr  =  "<" [route] addr-spec ">"

     route       =  1#("@" domain) ":"           ; path-relative

     addr-spec   =  local-part "@" domain        ; global address

     local-part  =  word *("." word)             ; uninterpreted
                                                 ; case-preserved

     domain      =  sub-domain *("." sub-domain)

     sub-domain  =  domain-ref / domain-literal

     domain-ref  =  atom                         ; symbolic reference

phrase      =  1*word                       ; Sequence of words

     word        =  atom / quoted-string

Parentheses ("(" and ")") are used  to  indicate  comments.

So ignoring the optional route indicator, which I haven't seen used
for at least five years, and excluding groups as required by the
semantics of From, we have as an allowable From address:

address = mailbox

mailbox = addr-spec /
                 phrase route-addr

route-addr = <addr-spec>

Unfortunately, the semantics of "phrase" or "word" don't seem
to be defined, but the implication seems to be that they are the name of
the originator in the case of a From or Sender field, and the name or
name of the desired recipient(s) in the case of a To or Cc field. This of
course gets even more complicated in the case of a shared mailbox,
as might be the case for a family.

Since the form of the "name" isn't defined, I have to assume that
"phrase" is essentially syntactic sugar, to be interpreted by the
human user.

So I conclude that the following are all legitimate rfc822 From addresses:

kent@bbn.com

Steve Kent@bbn.com

Stephen Kent@bbn.com

Also,

Bob Jueneman <bjueneman@novell.com>

"Robert R. Jueneman" <bjueneman@novell.com>

Robert "R." (Bob) Jueneman (the one who is not the
horse thief) <bjueneman@novell.com>

However, as a message from Tom Gindin points out (and
I'll take his word for it without checking the text of RFC
2459 section 4.2.1.7), PKIX defines an rfc822 attribute
within GeneralName as an addr-spec, NOT an "address".

The S/MIME spec also states that the end-entity certificates
MUST contain an Internet mail address, and that the
address must be an "addr-spec" as defined in Section 6.1.

X.509, however, is ambiguous, and needs to be corrected.

So that seems clear, now.  The above constructs would NOT be
legal as an rfc822 type DN or subjectAltName, although I strongly
suspect that many CAs and CA toolkits would accept them and
create certificates containing them.

Unfortunately, this leaves us with the case where the e-mail
package, if it performs correctly, will accept a message with
a From address of

From: "President William Jefferson Clinton                         "
(note the extra spaces, intended to cause truncation of the
name -- it's really slick Bob in disguise) <bjueneman@novell.com>

and then it will compare just the <bjueneman@novell.com> to the
subjectAltName in my certificate and conclude that all is well,
since the addr-spec in the From matches the content of the attribute
in the certificate.

Worse yet, since some mail programs don't bother to display
the "real" addr-spec, but only the name portion, and most will
truncate even the name if it's too long, the recipient may not see
that anything is amiss at all.

The S/MIME v2 Certificate Handling spec  (3.1, last paragraph)
states that "... Receiving agents MUST check that the address (sic)
in the From header of a mail message matches an Internet mail
address in the signer's certificate. ..."

That's somewhat ambiguous, since the "address" portion of a From
address is clearly the more general mailbox name.  But clarifying
the S/MIME spec by requiring that the addr-spec portion of the
From address match the addr-spec in the certificate would
merely highlight the problem, not solve it.

So we clearly have a problem where the relying party may be
accidentally or even deliberately mislead, unless he is particularly
careful to compare the full From address (which may only be
available by looking at the mime.822 view of the message) against
the certificate content.

What should we do?  I'm not quite sure, but I'm concerned.

Bob



From owner-ietf-smime@imc.org  Fri Nov 12 16:49:56 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA17585
	for <smime-archive@odin.ietf.org>; Fri, 12 Nov 1999 16:49:55 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id NAA21344
	for ietf-smime-bks; Fri, 12 Nov 1999 13:16:05 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA21340
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:16:04 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id NAA24161;
	Fri, 12 Nov 1999 13:16:08 -0800 (PST)
Message-Id: <4.2.0.58.19991112155524.00a77990@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 12 Nov 1999 16:11:15 -0500
To: cadams@entrust.com
From: Russ Housley <housley@spyrus.com>
Subject: draft-ietf-smime-cast-128-00.txt
Cc: ietf-smime@imc.org
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

The document is presently called: "Use of the CAST-128 Encryption Algorithm 
in S/MIME."  I would like to see it renamed to: "Use of the CAST-128 
Encryption Algorithm in CMS."  Basically, other applications that use CMS 
should be able to make use of CAST-128.

Russ



From owner-ietf-smime@imc.org  Fri Nov 12 16:50:10 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA17721
	for <smime-archive@odin.ietf.org>; Fri, 12 Nov 1999 16:50:09 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id NAA21334
	for ietf-smime-bks; Fri, 12 Nov 1999 13:15:59 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA21329
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:15:58 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id NAA24155
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:16:06 -0800 (PST)
Message-Id: <4.2.0.58.19991112153252.00a72ea0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 12 Nov 1999 15:54:01 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Working Group Last Call: draft-ietf-smime-cmskea-02.txt
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Announcing S/MIME Working Group Last Call.

	Title		: CMS KEA and SKIPJACK Conventions
	Author		: John Pawling
	Filename	: draft-ietf-smime-cmskea-02.txt
	Date		: 29 July 1999
	
This document describes the conventions for using the Key Exchange
Algorithm (KEA) and SKIPJACK encryption algorithm in conjunction with the
Cryptographic Message Syntax (CMS) enveloped-data and encrypted-data
content types.

This document will become an Informational RFC.

Working Group Last Call will close on 28 November.

S/MIME WG Chair,
    Russ 


From owner-ietf-smime@imc.org  Fri Nov 12 16:51:06 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA18101
	for <smime-archive@odin.ietf.org>; Fri, 12 Nov 1999 16:51:05 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id NAA21339
	for ietf-smime-bks; Fri, 12 Nov 1999 13:16:01 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA21335
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:16:00 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id NAA24158
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:16:07 -0800 (PST)
Message-Id: <4.2.0.58.19991112154519.00a6ee30@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 12 Nov 1999 15:53:41 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Working Group Last Call:draft-ietf-smime-certdist-04.txt
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Announcing S/MIME Working Group Last Call.

	Title		: Use of the CAST-128 Encryption Algorithm in S/MIME
	Author(s)	: Carlisle Adams
	Filename	: draft-ietf-smime-cast-128-00.txt
	Date		: September 1999
	
This document specifies how to incorporate CAST-128 [RFC2144] into S/MIME 
as an additional algorithm for symmetric encryption. The relevant OIDs and 
processing steps are provided so that CAST-128 may be included in the 
S/MIME Cryptographic Message Syntax (CMS) specification [RFC2630] for 
symmetric content and key encryption.

This document will become a Standards Track RFC.

Working Group Last Call will close on 28 November.

S/MIME WG Chair,
    Russ 


From owner-ietf-smime@imc.org  Fri Nov 12 16:53:26 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA19008
	for <smime-archive@odin.ietf.org>; Fri, 12 Nov 1999 16:53:25 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id NAA21330
	for ietf-smime-bks; Fri, 12 Nov 1999 13:15:59 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA21325
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:15:57 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id NAA24152
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:16:05 -0800 (PST)
Message-Id: <4.2.0.58.19991112152457.00a68ea0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 12 Nov 1999 15:29:26 -0500
To: IETF-Announce:;
From: Russ Housley <housley@spyrus.com>
Subject: I-D ACTION:draft-ietf-smime-ecc-00.txt
Cc: ietf-smime@imc.org
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-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 S/MIME Mail Security Working Group of the 
IETF.

	Title		: Elliptic Curve S/MIME
	Author(s)	: P. Lambert
	Filename	: draft-ietf-smime-ecc-00.txt
	Date		: 26-Oct-99
	
This document is the first draft of a profile for the incorporation
of Elliptic Curve (EC) public key algorithms in the Cryptographic
Message Syntax (CMS).  The EC algorithms support the creation of
digital signatures and the distribution of keys to encrypt or authen-
ticate message content.  The definition of the algorithm processing
is based on the ANSI X9.63 draft, developed by the ANSI X9F1
working group.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-ecc-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-ecc-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-ecc-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:	<19991026150244.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-ecc-00.txt

<ftp://ftp.ietf.org/internet-drafts/draft-ietf-smime-ecc-00.txt> 


From owner-ietf-smime@imc.org  Fri Nov 12 17:28:04 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA04148
	for <smime-archive@odin.ietf.org>; Fri, 12 Nov 1999 17:28:03 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id NAA21896
	for ietf-smime-bks; Fri, 12 Nov 1999 13:57:03 -0800 (PST)
Received: from smtpproxy1.mitre.org (mbunix.mitre.org [129.83.20.100])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA21892
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:57:02 -0800 (PST)
Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58])
	by smtpproxy1.mitre.org (8.9.3/8.9.3) with ESMTP id QAA14038
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 16:58:00 -0500 (EST)
Received: from MAILHUB2 (mailhub2.mitre.org [129.83.221.18])
	by smtpsrv1.mitre.org (8.9.3/8.9.3) with ESMTP id QAA22672
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 16:56:05 -0500 (EST)
Received: from mwestc012-mwmp1port9.mitre.org (128.29.250.9) by mailhub2.mitre.org with SMTP
        id 2017589; Fri, 12 Nov 1999 16:57:57 EST
Message-ID: <382C8C37.590459C2@mitre.org>
Date: Fri, 12 Nov 1999 16:52:55 -0500
From: "Ella P. Gardner" <egardner@mitre.org>
Organization: The MITRE Corporation
X-Mailer: Mozilla 4.5 [en]C-19990120M  (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: ietf-smime@imc.org
Subject: Re: Working Group Last Call:draft-ietf-smime-certdist-04.txt
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Folks:

I would like to see the PKIX standard userCertificate attribute used for
S/MIME certificates. Supporting that, I would like to see several items
in David Chadwick's recent drafts supported:

	certificate matching rules
	returned matched value service control
	multiple attributes for RDNs

As I understand it, Microsoft has a requirement for an additional
attribute which would be signed and include pairs of certificates and
capabilities.

If the group agrees that this additional attribute is required, I think
that the draft should include a complete definition of the attribute in
directory speak. Maybe the current draft is understandable to the
members of this list, but I don't understand it from a directory point
of view.

Regards,
Ella



From owner-ietf-smime@imc.org  Fri Nov 12 18:23:20 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA00305
	for <smime-archive@odin.ietf.org>; Fri, 12 Nov 1999 18:23:19 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id OAA22546
	for ietf-smime-bks; Fri, 12 Nov 1999 14:54:12 -0800 (PST)
Received: from bldr.0mm.com (bldr.0mm.com [199.239.68.119])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA22542
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 14:54:10 -0800 (PST)
Received: from messagemedia.com (bdingae.messagemedia.com [199.239.69.195])
	by bldr.0mm.com (8.9.3/8.9.3) with ESMTP id PAA10221
	for <ietf-smime@imc.org>; Fri, 12 Nov 1999 15:54:31 -0700 (MST)
Message-ID: <382C9A88.11F72F67@messagemedia.com>
Date: Fri, 12 Nov 1999 15:54:00 -0700
From: Brandon Dingae <brandon@messagemedia.com>
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: ietf-smime@imc.org
Subject: MIME User Agent Check List
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Hello,

I am currently doing some research for an internet company concerning
MUA capabilities and one of our major concerns is
Multi-part/alternative.  The reason that I am writing you, is to ask if
there are any current resources that will outline the capabilities of
current MUA's ?  I appreciate any help that can be offered.  Thank you
for your time and consideration of my request.

Brandon

--
--------------------------------------------------------------------
Brandon D.
Technical Service
brandon@messagemedia.com
Direct line: 303.381.7119
http://www.messagemedia.com
"The leading source of e-messaging services for building
 customer relationships online."
--------------------------------------------------------------------




From owner-ietf-smime@imc.org  Sun Nov 14 14:15:23 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA06278
	for <smime-archive@odin.ietf.org>; Sun, 14 Nov 1999 14:15:21 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id KAA20582
	for ietf-smime-bks; Sun, 14 Nov 1999 10:37:49 -0800 (PST)
Received: from cane.deming.com (mail.deming.com [208.236.41.137])
	by ns.secondary.com (8.9.3/8.9.3) with SMTP id KAA20578
	for <ietf-smime@imc.org>; Sun, 14 Nov 1999 10:37:48 -0800 (PST)
Received: from 208.236.41.137 by cane.deming.com with ESMTP (WorldSecure
 Server SMTP Relay(WSS) v3.6.2); Sun, 14 Nov 99 10:38:25 -0800
X-Server-Uuid: 1a012586-24e9-11d1-adae-00a024bc53c5
Received: by mail.deming.com with Internet Mail Service (5.5.2650.21) id
 <WGL8D6Q8>; Sun, 14 Nov 1999 10:38:25 -0800
Message-ID: <01FF24001403D011AD7B00A024BC53C563EAF5@mail.deming.com>
From: "Blake Ramsdell" <BlakeR@deming.com>
To: "'Russ Housley'" <housley@spyrus.com>, cadams@entrust.com
cc: ietf-smime@imc.org
Subject: RE: draft-ietf-smime-cast-128-00.txt
Date: Sun, 14 Nov 1999 10:38:24 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
X-WSS-ID: 1431DE2B35611-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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Agree.  Would this be a good convention for the -ecc draft also?

Blake

-----Original Message-----
From: Russ Housley [mailto:housley@spyrus.com]
Sent: Friday, November 12, 1999 1:11 PM
To: cadams@entrust.com
Cc: ietf-smime@imc.org
Subject: draft-ietf-smime-cast-128-00.txt


The document is presently called: "Use of the CAST-128 Encryption Algorithm 
in S/MIME."  I would like to see it renamed to: "Use of the CAST-128 
Encryption Algorithm in CMS."  Basically, other applications that use CMS 
should be able to make use of CAST-128.

Russ




From owner-ietf-smime@imc.org  Tue Nov 16 12:14:31 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA11208
	for <smime-archive@odin.ietf.org>; Tue, 16 Nov 1999 12:14:30 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id IAA28717
	for ietf-smime-bks; Tue, 16 Nov 1999 08:31:30 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170])
	by ns.secondary.com (8.9.3/8.9.3) with SMTP id IAA28713
	for <ietf-smime@imc.org>; Tue, 16 Nov 1999 08:31:27 -0800 (PST)
Received: 	id LAA26862; Tue, 16 Nov 1999 11:24:13 -0500
Received: by gateway id <W8293BYP>; Tue, 16 Nov 1999 11:27:00 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B1017156C7@sothmxs06.entrust.com>
From: Carlisle Adams <carlisle.adams@entrust.com>
To: "'Russ Housley'" <housley@spyrus.com>
Cc: ietf-smime@imc.org
Subject: RE: draft-ietf-smime-cast-128-00.txt
Date: Tue, 16 Nov 1999 11:26:59 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01BF304F.683025DE"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF304F.683025DE
Content-Type: text/plain

Hi Russ,

> ----------
> From: 	Russ Housley[SMTP:housley@spyrus.com]
> Sent: 	Friday, November 12, 1999 4:11 PM
> To: 	cadams@entrust.com
> Cc: 	ietf-smime@imc.org
> Subject: 	draft-ietf-smime-cast-128-00.txt
> 
> The document is presently called: "Use of the CAST-128 Encryption
> Algorithm 
> in S/MIME."  I would like to see it renamed to: "Use of the CAST-128 
> Encryption Algorithm in CMS."  Basically, other applications that use CMS 
> should be able to make use of CAST-128.
 
Good point.  I have no problem with this modification.

Does this actually require a new draft, or can we just pass this name-change
instruction along to the IESG and RFC editor after the working group Last
Call has completed?

Carlisle.


------_=_NextPart_001_01BF304F.683025DE
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: draft-ietf-smime-cast-128-00.txt</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Hi =
Russ,</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"MS Sans Serif">----------</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">From:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Russ =
Housley[SMTP:housley@spyrus.com]</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Sent:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Friday, November 12, 1999 4:11 =
PM</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">To:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">cadams@entrust.com</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Cc:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">ietf-smime@imc.org</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Subject:</FONT></B> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">draft-ietf-smime-cast-128-00.txt</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">The document is presently called: =
&quot;Use of the CAST-128 Encryption Algorithm </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">in S/MIME.&quot;&nbsp; I would like =
to see it renamed to: &quot;Use of the CAST-128 </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Encryption Algorithm in =
CMS.&quot;&nbsp; Basically, other applications that use CMS </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">should be able to make use of =
CAST-128.</FONT>
</UL>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Good =
point.&nbsp; I have no problem with this modification.</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Does this =
actually require a new draft, or can we just pass this name-change =
instruction along to the IESG and RFC editor after the working group =
Last Call has completed?</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New =
Roman">Carlisle.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF304F.683025DE--


From owner-ietf-smime@imc.org  Tue Nov 16 15:26:42 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA08210
	for <smime-archive@odin.ietf.org>; Tue, 16 Nov 1999 15:26:38 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id LAA01944
	for ietf-smime-bks; Tue, 16 Nov 1999 11:53:10 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA01934
	for <ietf-smime@imc.org>; Tue, 16 Nov 1999 11:53:08 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id LAA24615;
	Tue, 16 Nov 1999 11:53:24 -0800 (PST)
Message-Id: <4.2.0.58.19991116144712.00a85b10@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Tue, 16 Nov 1999 14:48:29 -0500
To: Carlisle Adams <carlisle.adams@entrust.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: draft-ietf-smime-cast-128-00.txt
Cc: ietf-smime@imc.org
In-Reply-To: <01E1D01C12D7D211AFC70090273D20B1017156C7@sothmxs06.entrust
 .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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Carlisle:

I do not have any problem with the progression as it is, but I would not 
like to forward an document to the IESG with any known errors.  Let's see 
what else comes out during working group last call....

Russ

At 11:26 AM 11/16/99 -0500, Carlisle Adams wrote:

>Hi Russ,
>----------  From:   Russ Housley[SMTP:housley@spyrus.com]  Sent:   Friday, 
>November 12, 1999 4:11 
>PM  To:     cadams@entrust.com  Cc:     ietf-smime@imc.org  Subject: 
 > draft-ietf-smime-cast-128-00.txt

>The document is presently called: "Use of the CAST-128 Encryption 
>Algorithm  in S/MIME."  I would like to see it renamed to: "Use of the 
>CAST-128 Encryption Algorithm in CMS."  Basically, other applications that 
>use CMS should be able to make use of CAST-128.
>
>Good point.  I have no problem with this modification.
>
>Does this actually require a new draft, or can we just pass this 
>name-change instruction along to the IESG and RFC editor after the working 
>group Last Call has completed?
>
>Carlisle.



From owner-ietf-smime@imc.org  Tue Nov 16 21:15:58 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA07677
	for <smime-archive@odin.ietf.org>; Tue, 16 Nov 1999 21:15:56 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id RAA07558
	for ietf-smime-bks; Tue, 16 Nov 1999 17:46:52 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id RAA07554
	for <ietf-smime@imc.org>; Tue, 16 Nov 1999 17:46:50 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (216-164-128-228.s228.tnt1.lnhva.md.dialup.rcn.com [216.164.128.228])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id RAA00832
	for <ietf-smime@imc.org>; Tue, 16 Nov 1999 17:47:04 -0800 (PST)
Message-Id: <4.2.0.58.19991116201517.00a6bce0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Tue, 16 Nov 1999 20:18:17 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Working Group Last Call: draft-ietf-smime-small-subgroup-02.txt
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Announcing S/MIME Working Group Last Call.

	Title		: Methods for Avoiding the "Small-Subgroup" Attacks on
			: the Diffie-Hellman Key Agreement Method for S/MIME
	Author		: R. Zuccherato
	Filename	: draft-ietf-smime-small-subgroup-02.txt
	Date		: November 1999
	
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
relevant to implementations of S/MIME version 3 in which protection is
required and the methods that can be used to prevent these attacks.

This document will become an Informational RFC.

Working Group Last Call will close on 30 November.

S/MIME WG Chair,
    Russ 


From owner-ietf-smime@imc.org  Tue Nov 16 21:16:04 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA07744
	for <smime-archive@odin.ietf.org>; Tue, 16 Nov 1999 21:16:03 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id RAA07563
	for ietf-smime-bks; Tue, 16 Nov 1999 17:46:53 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id RAA07559
	for <ietf-smime@imc.org>; Tue, 16 Nov 1999 17:46:52 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (216-164-128-228.s228.tnt1.lnhva.md.dialup.rcn.com [216.164.128.228])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id RAA00835;
	Tue, 16 Nov 1999 17:47:08 -0800 (PST)
Message-Id: <4.2.0.58.19991116201924.00a66cf0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Tue, 16 Nov 1999 20:35:18 -0500
To: robert.zuccherato@entrust.com
From: Russ Housley <housley@spyrus.com>
Subject: Re: Working Group Last Call:
  draft-ietf-smime-small-subgroup-02.txt
Cc: ietf-smime@imc.org
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I have a few comments on draft-ietf-smime-small-subgroup-02.txt.

1.  Section 1.2, 3rd paragraph: Please explain "r<<q".  This is the only 
use of the "<<" symbol.

2.  Section 2.2, 2nd paragraph: Please explain that any protocol event that 
allows the attacker to conclude that decryption was successful is also 
relevant.  Such events include replies and returning signed receipts.

3.  Section 2.2, 3rd paragraph: Please remove the extra space after "party".

4.  Section 4, 4th paragraph: Any integrity protection for the public keys 
(not just signatures), will thwart the attack.  Please expand the text to 
cover any integrity mechanism.

5.  Section 7:  Please update the [CMS], [MSG], and [x942] references to 
point to the RFCs.




From owner-ietf-smime@imc.org  Wed Nov 17 07:30:25 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA02390
	for <smime-archive@odin.ietf.org>; Wed, 17 Nov 1999 07:30:24 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id DAA00983
	for ietf-smime-bks; Wed, 17 Nov 1999 03:57:59 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id DAA00979
	for <ietf-smime@imc.org>; Wed, 17 Nov 1999 03:57:58 -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 GAA17169;
	Wed, 17 Nov 1999 06:59:18 -0500 (EST)
Message-Id: <199911171159.GAA17169@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-02.txt
Date: Wed, 17 Nov 1999 06:59:18 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
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-02.txt
	Pages		: 8
	Date		: 16-Nov-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 
relevant to implementations of S/MIME version 3 in which protection is 
required and the methods that can be used to prevent these attacks.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-small-subgroup-02.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-02.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-02.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:	<19991116110555.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-small-subgroup-02.txt

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

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

--OtherAccess--

--NextPart--




From owner-ietf-smime@imc.org  Wed Nov 17 12:39:45 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA26986
	for <smime-archive@odin.ietf.org>; Wed, 17 Nov 1999 12:39:43 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id IAA05875
	for ietf-smime-bks; Wed, 17 Nov 1999 08:40:00 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170])
	by ns.secondary.com (8.9.3/8.9.3) with SMTP id IAA05871
	for <ietf-smime@imc.org>; Wed, 17 Nov 1999 08:39:58 -0800 (PST)
Received: 	id LAA27284; Wed, 17 Nov 1999 11:13:35 -0500
Received: by gateway id <XC5LCQSD>; Wed, 17 Nov 1999 11:16:23 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B10106314A@sothmxs06.entrust.com>
From: Robert Zuccherato <robert.zuccherato@entrust.com>
To: "'Russ Housley'" <housley@spyrus.com>
Cc: ietf-smime@imc.org
Subject: RE: Working Group Last Call: draft-ietf-smime-small-subgroup-02.t
	xt
Date: Wed, 17 Nov 1999 11:16:20 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01BF3117.15A8C898"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF3117.15A8C898
Content-Type: text/plain

Russ;

Thanks for the comments.

> ----------
> From: 	Russ Housley[SMTP:housley@spyrus.com]
> Sent: 	Tuesday, November 16, 1999 8:35 PM
> To: 	robert.zuccherato@entrust.com
> Cc: 	ietf-smime@imc.org
> Subject: 	Re: Working Group Last Call:
> draft-ietf-smime-small-subgroup-02.txt
> 
> 1.  Section 1.2, 3rd paragraph: Please explain "r<<q".  This is the only 
> use of the "<<" symbol.
> 
I will change "r<<q" to "r is much less than q".  This should be more
explanatory/helpful.

> 2.  Section 2.2, 2nd paragraph: Please explain that any protocol event
> that 
> allows the attacker to conclude that decryption was successful is also 
> relevant.  Such events include replies and returning signed receipts.
> 
How about if I add the following to the 3rd paragraph?  "In particular,
protection is required if any protocol event allows any other party to
conclude that decryption was successful.  Such events include replies and
returning signed receipts."

> 3.  Section 2.2, 3rd paragraph: Please remove the extra space after
> "party".
> 
Okay.

> 4.  Section 4, 4th paragraph: Any integrity protection for the public keys
> 
> (not just signatures), will thwart the attack.  Please expand the text to 
> cover any integrity mechanism.
> 
How about if I change the first sentence to read:  "Protection from these
attacks is not required however if the other party's ephemeral public key
has been authenticated by the other party.  The authentication may be in the
form of a signature, MAC, or any other integrity protection mechanism."

> 5.  Section 7:  Please update the [CMS], [MSG], and [x942] references to 
> point to the RFCs.
> 
Of course.

	Robert.



------_=_NextPart_001_01BF3117.15A8C898
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: Working Group Last Call: =
draft-ietf-smime-small-subgroup-02.txt</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Russ;</FONT>
</P>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Thanks for the =
comments.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"MS Sans Serif">----------</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">From:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Russ =
Housley[SMTP:housley@spyrus.com]</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Sent:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Tuesday, November 16, 1999 8:35 =
PM</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">To:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">robert.zuccherato@entrust.com</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Cc:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">ietf-smime@imc.org</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Subject:</FONT></B> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">Re: Working Group Last Call: =
draft-ietf-smime-small-subgroup-02.txt</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">1.&nbsp; Section 1.2, 3rd paragraph: =
Please explain &quot;r&lt;&lt;q&quot;.&nbsp; This is the only </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">use of the &quot;&lt;&lt;&quot; =
symbol.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I will change =
&quot;r&lt;&lt;q&quot; to &quot;r is much less than q&quot;.&nbsp; This =
should be more explanatory/helpful.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">2.&nbsp; Section 2.2, 2nd paragraph: =
Please explain that any protocol event that </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">allows the attacker to conclude that =
decryption was successful is also </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">relevant.&nbsp; Such events include =
replies and returning signed receipts.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">How about if I add =
the following to the 3rd paragraph?&nbsp; &quot;In particular, =
protection is required if any protocol event allows any other party to =
conclude that decryption was successful.&nbsp; Such events include =
replies and returning signed receipts.&quot;</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">3.&nbsp; Section 2.2, 3rd paragraph: =
Please remove the extra space after &quot;party&quot;.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Okay.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">4.&nbsp; Section 4, 4th paragraph: Any =
integrity protection for the public keys </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">(not just signatures), will thwart =
the attack.&nbsp; Please expand the text to </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">cover any integrity mechanism.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">How about if I =
change the first sentence to read:&nbsp; &quot;Protection from these =
attacks is not required however if the other party's ephemeral public =
key has been authenticated by the other party.&nbsp; The authentication =
may be in the form of a signature, MAC, or any other integrity =
protection mechanism.&quot;</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">5.&nbsp; Section 7:&nbsp; Please =
update the [CMS], [MSG], and [x942] references to </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">point to the RFCs.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Of course.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#800000" =
SIZE=3D2 FACE=3D"Arial">Robert.</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01BF3117.15A8C898--


From owner-ietf-smime@imc.org  Wed Nov 17 12:51:05 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA02554
	for <smime-archive@odin.ietf.org>; Wed, 17 Nov 1999 12:51:04 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id JAA06550
	for ietf-smime-bks; Wed, 17 Nov 1999 09:15:59 -0800 (PST)
Received: from v4j31 (ip12.proper.com [165.227.249.12])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA06545
	for <ietf-smime@imc.org>; Wed, 17 Nov 1999 09:15:57 -0800 (PST)
Message-Id: <4.2.1.19991117091402.00c52100@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.1 
Date: Wed, 17 Nov 1999 09:17:47 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: I-D ACTION:draft-ietf-smime-ecc-00.txt
In-Reply-To: <4.2.0.58.19991112152457.00a68ea0@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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I am very uncomfortable discussing this draft in the WG. Certicom has just 
posted their intellectual property statement at 
<http://www.ietf.org/ietf/IPR/CERTICOM-SMIME>, and it is completely vague 
and useless. It doesn't even say which of our protocols they think they 
have patents in.

Why are we helping a company like this make threats against the S/MIME market?

--Paul Hoffman, Director
--Internet Mail Consortium



From owner-ietf-smime@imc.org  Wed Nov 17 14:08:26 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA09038
	for <smime-archive@odin.ietf.org>; Wed, 17 Nov 1999 14:08:25 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id KAA07946
	for ietf-smime-bks; Wed, 17 Nov 1999 10:27:21 -0800 (PST)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA07941
	for <ietf-smime@imc.org>; Wed, 17 Nov 1999 10:27:19 -0800 (PST)
Received: from stingray.missi.ncsc.mil (root@localhost)
	by stingray.missi.ncsc.mil with ESMTP id NAA01112
	for <ietf-smime@imc.org>; Wed, 17 Nov 1999 13:29:05 -0500 (EST)
Received: from missi.ncsc.mil (depot.missi.ncsc.mil [144.51.60.1])
	by stingray.missi.ncsc.mil with ESMTP id NAA01107
	for <ietf-smime@imc.org>; Wed, 17 Nov 1999 13:29:05 -0500 (EST)
Received: from ara.missi.ncsc.mil (ara.missi.ncsc.mil [144.51.58.9]) by missi.ncsc.mil (8.8.8/8.8.8) with ESMTP id NAA00940 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 13:28:22 -0500 (EST)
Received: from ara.missi.ncsc.mil (ara.missi.ncsc.mil [144.51.58.9])
	by ara.missi.ncsc.mil (8.9.1b+Sun/8.9.1) with SMTP id NAA14954
	for <ietf-smime@imc.org>; Wed, 17 Nov 1999 13:24:14 -0500 (EST)
Message-Id: <199911171824.NAA14954@ara.missi.ncsc.mil>
Date: Wed, 17 Nov 1999 13:24:14 -0500 (EST)
From: "David P. Kemp" <dpkemp@missi.ncsc.mil>
Reply-To: "David P. Kemp" <dpkemp@missi.ncsc.mil>
Subject: Re: I-D ACTION:draft-ietf-smime-ecc-00.txt
To: ietf-smime@imc.org
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: KUO2smFVFXyr+7foduH0BQ==
X-Mailer: dtmail 1.3.0 CDE Version 1.3 SunOS 5.7 sun4u sparc 
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

If you are proposing to preclude discussion or progression of this
draft until an acceptable IPR statement has been provided to the IETF,
I support the proposal.

The PKIX WG was fully prepared to strike all mention of CRL
Distribution Points from the profile after an ugly IPR issue surfaced.
As a result of the Working Group's position a satisfactory IPR
statement was produced, in record time.

The cellular telephone industry in particular does not automatically
disqualify a technology simply because it is encumbered, even if
royalties are involved.  But it demands that the terms be spelled out
up front, so that the participants can make meaningful decisions on
whether to standardize or ignore a technology.



> Date: Wed, 17 Nov 1999 09:17:47 -0800
> To: ietf-smime@imc.org
> From: Paul Hoffman / IMC <phoffman@imc.org>
> Subject: Re: I-D ACTION:draft-ietf-smime-ecc-00.txt
> 
> I am very uncomfortable discussing this draft in the WG. Certicom has just 
> posted their intellectual property statement at 
> <http://www.ietf.org/ietf/IPR/CERTICOM-SMIME>, and it is completely vague 
> and useless. It doesn't even say which of our protocols they think they 
> have patents in.
> 
> Why are we helping a company like this make threats against the S/MIME market?
> 
> --Paul Hoffman, Director
> --Internet Mail Consortium
> 



From owner-ietf-smime@imc.org  Wed Nov 17 14:24:30 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA16884
	for <smime-archive@odin.ietf.org>; Wed, 17 Nov 1999 14:24:30 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id KAA09115
	for ietf-smime-bks; Wed, 17 Nov 1999 10:52:23 -0800 (PST)
Received: from v4j31 (ip12.proper.com [165.227.249.12])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA09107
	for <ietf-smime@imc.org>; Wed, 17 Nov 1999 10:52:21 -0800 (PST)
Message-Id: <4.2.1.19991117104841.00cf3780@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.1 
Date: Wed, 17 Nov 1999 10:54:09 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: I-D ACTION:draft-ietf-smime-ecc-00.txt
In-Reply-To: <199911171824.NAA14954@ara.missi.ncsc.mil>
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 01:24 PM 11/17/99 -0500, David P. Kemp wrote:
>If you are proposing to preclude discussion or progression of this
>draft until an acceptable IPR statement has been provided to the IETF,
>I support the proposal.

Thanks!

>The PKIX WG was fully prepared to strike all mention of CRL
>Distribution Points from the profile after an ugly IPR issue surfaced.
>As a result of the Working Group's position a satisfactory IPR
>statement was produced, in record time.

I'll disagree with you here. Many companies have been much speedier about 
giving much more liberal licenses than Entrust did in the CRL DP case. And, 
many other companies are much more forthright than Entrust was about their 
patent applications *before* the WG tries to standardize technology.

>The cellular telephone industry in particular does not automatically
>disqualify a technology simply because it is encumbered, even if
>royalties are involved.  But it demands that the terms be spelled out
>up front, so that the participants can make meaningful decisions on
>whether to standardize or ignore a technology.

I'm certainly not saying we should disqualify EC in S/MIME; there may be 
market demand for it. I'm saying that Certicom's IPR statement is so 
purposely vague that we shouldn't be helping them in the market until they 
do much more work to clarify what it is they claim. At that point, we can 
decide whether or not to go ahead.

This is not a new issue with Certicom. They have claimed for years that 
they have patents or pending patents on "all interesting variations of 
elliptic curve cryptography". Such threats are what have made so many 
companies stay away from them.

--Paul Hoffman, Director
--Internet Mail Consortium



From owner-ietf-smime@imc.org  Wed Nov 17 18:19:13 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA28136
	for <smime-archive@odin.ietf.org>; Wed, 17 Nov 1999 18:19:08 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id OAA14888
	for ietf-smime-bks; Wed, 17 Nov 1999 14:38:54 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170])
	by ns.secondary.com (8.9.3/8.9.3) with SMTP id OAA14883
	for <ietf-smime@imc.org>; Wed, 17 Nov 1999 14:38:52 -0800 (PST)
Received: 	id RAA02269; Wed, 17 Nov 1999 17:21:02 -0500
Received: by gateway id <XDMD9JA9>; Wed, 17 Nov 1999 17:23:49 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B1017156D3@sothmxs06.entrust.com>
From: Carlisle Adams <carlisle.adams@entrust.com>
To: "'Russ Housley'" <housley@spyrus.com>,
        "'pgut001@cs.auckland.ac.nz'"
	 <pgut001@cs.aucKland.ac.nz>
Cc: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Subject: Password-based Encryption for S/MIME...
Date: Wed, 17 Nov 1999 17:23:47 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01BF314A.6AAAAA36"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF314A.6AAAAA36
Content-Type: text/plain

Hi,

At the meeting last week, Russ solicited more comments on a few of the
current drafts, prior to going to Last Call.  One of the specifically cited
drafts was "Password-based Encryption for S/MIME".  I only have 2 comments
on this draft.

1) "Musts", "shoulds", etc., should be capitalized (this is not absolutely
necessary, but it does help to make conformance requirements clear and
easy-to-find).

2) The Security Considerations section currently contains only the following
sentence:  "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."  I suggest adding a new
paragraph along the following lines.

"More importantly, however, the security of this information type rests on
the entropy of the user-selected password, which is typically quite low.
Pass phrases (as opposed to simple passwords) are STRONGLY RECOMMENDED,
although it should be recognized that even with pass phrases it will be
difficult to use this recipient information type to derive a KEK with
sufficient entropy to properly protect a 128-bit (or higher) CEK."

Carlisle.


------_=_NextPart_001_01BF314A.6AAAAA36
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>Password-based Encryption for S/MIME...</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Hi,</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">At the =
meeting last week, Russ solicited more comments on a few of the current =
drafts, prior to going to Last Call.&nbsp; One of the specifically =
cited drafts was &quot;Password-based Encryption for =
S/MIME&quot;.&nbsp; I only have 2 comments on this draft.</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">1) =
&quot;Musts&quot;, &quot;shoulds&quot;, etc., should be capitalized =
(this is not absolutely necessary, but it does help to make conformance =
requirements clear and easy-to-find).</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">2) The =
Security Considerations section currently contains only the following =
sentence:&nbsp; &quot;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.&quot;&nbsp; I =
suggest adding a new paragraph along the following lines.</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">&quot;More =
importantly, however, the security of this information type rests on =
the entropy of the user-selected password, which is typically quite =
low.&nbsp; Pass phrases (as opposed to simple passwords) are STRONGLY =
RECOMMENDED, although it should be recognized that even with pass =
phrases it will be difficult to use this recipient information type to =
derive a KEK with sufficient entropy to properly protect a 128-bit (or =
higher) CEK.&quot;</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New =
Roman">Carlisle.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF314A.6AAAAA36--


From owner-ietf-smime@imc.org  Wed Nov 17 23:48:59 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA11758
	for <smime-archive@odin.ietf.org>; Wed, 17 Nov 1999 23:48:59 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id UAA06283
	for ietf-smime-bks; Wed, 17 Nov 1999 20:11:06 -0800 (PST)
Received: from polaris.shore.net (polaris.shore.net [207.244.124.105])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id UAA06277
	for <ietf-smime@imc.org>; Wed, 17 Nov 1999 20:11:03 -0800 (PST)
Received: from vin.shore.net (computername) [198.115.179.81] 
	by polaris.shore.net with smtp (Exim)
	id 11oIv4-0006WM-00; Wed, 17 Nov 1999 23:11:38 -0500
X-Sender: vin@shell1.shore.net
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Carlisle Adams <carlisle.adams@entrust.com>,
        "'Russ Housley'" <housley@spyrus.com>,
        "'pgut001@cs.auckland.ac.nz'" <pgut001@cs.aucKland.ac.nz>
From: Vin McLellan <vin@shore.net>
Subject: Re: Password-based Encryption for S/MIME...
Cc: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Message-Id: <E11oIv4-0006WM-00@polaris.shore.net>
Date: Wed, 17 Nov 1999 23:11:38 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 05:23 PM 11/17/99 -0500, Carlisle Adams wrote:

>2) The Security Considerations section currently contains only the following
>sentence:  "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."  I suggest adding a new
>paragraph along the following lines.
>
>"More importantly, however, the security of this information type rests on
>the entropy of the user-selected password, which is typically quite low.
>Pass phrases (as opposed to simple passwords) are STRONGLY RECOMMENDED,
>although it should be recognized that even with pass phrases it will be
>difficult to use this recipient information type to derive a KEK with
>sufficient entropy to properly protect a 128-bit (or higher) CEK."

    Pass phrases for cryptographic keys???  Simple static reusable passwords??!

    I beg your pardon for delurking at this late stage in the WG
discussions, but I was under the impression that the question of how to
resolve a cryptographicly strong key from a small password has been a
solved problem since the early 1990s, with the various ancestors of Bellovin
& Merritt's DH-EKE family, including Dave Jablon's SPEKE,  Tom Wu's SRP-3,
and a slew of others: Augmented EKE, Mike Roe's S3P series, Stefan Lucks's
OKE, etc., etc. 

   Jablon's firm, IntegritySciences, -- which I believe recently license
SPEKE to Entrust -- has a fullsome page of references and live URLs for the
relevant work at: <http://www.IntegritySciences.com/links.html#PK99>

    Suggesting a password-based S/MIME which does not take advantage of any
of the well-documented and proven methods for safely expanding a small
password into a cryptographically respectable key  sounds like the WG is
proposing something like 40-bit  symmetric crypto as a future standard.  Are
the IP issues so entangled that the WG is left with such a meager and
embarrassingly fragile offering?

    



From owner-ietf-smime@imc.org  Thu Nov 18 13:17:00 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11323
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 13:16:58 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id JAA01569
	for ietf-smime-bks; Thu, 18 Nov 1999 09:44:35 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA01559
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 09:44:34 -0800 (PST)
Received: by dfssl with Internet Mail Service (5.5.2650.21)
	id <W8XXNNF9>; Thu, 18 Nov 1999 09:45:30 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD190201D3A3@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: cadams@entrust.com
Cc: ietf-smime@imc.org
Subject: Comments on draft-ietf-smime-cast-128-00.txt
Date: Thu, 18 Nov 1999 09:45:29 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01BF31EC.B3C73304"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF31EC.B3C73304
Content-Type: text/plain

I have the following comments on this draft:

1.  You are currently missing an analogus statement to "Only 128-bit RC2
keys may be used as key-encryption keys, and they must be used with the
RC2ParameterVersion parameter set to 58." (from section 12.3.3.2 of RFC
2630).  This was deemed important by the group for inclusion to prevent the
usage of weaker KEK than CEK keys.  (I do note that you have a should be
equal in size in the security considerations.  I believe this should be
moved up to the main document however to match CMS.)

2.  Section 3 Para 1.  You state that you must include the above OIDs in the
symmetric algorithms section of capabilities, but only one of the oids is a
symmetric algorithm.  At the current time we are "implying" the key wrap
from the symmetric algorithm as only same key wrap is supported in CMS.
Please change to the correct OID reference.

3.  Section 3. Para 1.  You appear to state that the parameters could be
either the SMIMECapabilitiesParametersForCAST5CBC or
cast5CMSkeywrapParameter or cast5CBCParameters.  The last would lead to a
different encoding from the first two and RFC 2633 states in section 2.5.2
that capabilties must be single value.  Please determine which of the
parameters is to be used.  I would also like to see the encoded binary
sequence included in the document so that there is no question on the single
encoding.  I plan to suggest that this be done for RFC 2633 on progression
as well.

4.  Section 2.1 para 5.  I'm sorry, but I don't have RFC 2144 in front of
me.  If this document contains clear language on the use of the default IV
of 0 then everything is fine.  If not please include a SHOULD NOT use the
default IV.

jim 


------_=_NextPart_001_01BF31EC.B3C73304
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Comments on draft-ietf-smime-cast-128-00.txt</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I have the following comments on this draft:</FONT>
</P>

<P><FONT SIZE=3D2>1.&nbsp; You are currently missing an analogus =
statement to &quot;Only 128-bit RC2 keys may be used as key-encryption =
keys, and they must be used with the RC2ParameterVersion parameter set =
to 58.&quot; (from section 12.3.3.2 of RFC 2630).&nbsp; This was deemed =
important by the group for inclusion to prevent the usage of weaker KEK =
than CEK keys.&nbsp; (I do note that you have a should be equal in size =
in the security considerations.&nbsp; I believe this should be moved up =
to the main document however to match CMS.)</FONT></P>

<P><FONT SIZE=3D2>2.&nbsp; Section 3 Para 1.&nbsp; You state that you =
must include the above OIDs in the symmetric algorithms section of =
capabilities, but only one of the oids is a symmetric algorithm.&nbsp; =
At the current time we are &quot;implying&quot; the key wrap from the =
symmetric algorithm as only same key wrap is supported in CMS.&nbsp; =
Please change to the correct OID reference.</FONT></P>

<P><FONT SIZE=3D2>3.&nbsp; Section 3. Para 1.&nbsp; You appear to state =
that the parameters could be either the =
SMIMECapabilitiesParametersForCAST5CBC or cast5CMSkeywrapParameter or =
cast5CBCParameters.&nbsp; The last would lead to a different encoding =
from the first two and RFC 2633 states in section 2.5.2 that =
capabilties must be single value.&nbsp; Please determine which of the =
parameters is to be used.&nbsp; I would also like to see the encoded =
binary sequence included in the document so that there is no question =
on the single encoding.&nbsp; I plan to suggest that this be done for =
RFC 2633 on progression as well.</FONT></P>

<P><FONT SIZE=3D2>4.&nbsp; Section 2.1 para 5.&nbsp; I'm sorry, but I =
don't have RFC 2144 in front of me.&nbsp; If this document contains =
clear language on the use of the default IV of 0 then everything is =
fine.&nbsp; If not please include a SHOULD NOT use the default =
IV.</FONT></P>

<P><FONT SIZE=3D2>jim </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF31EC.B3C73304--


From owner-ietf-smime@imc.org  Thu Nov 18 13:17:18 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11467
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 13:17:16 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id JAA01570
	for ietf-smime-bks; Thu, 18 Nov 1999 09:44:35 -0800 (PST)
Received: from doggate.exchange.microsoft.com (doggate.exchange.microsoft.com [131.107.88.55])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA01561
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 09:44:34 -0800 (PST)
Received: by doggate.exchange.microsoft.com with Internet Mail Service (5.5.2232.9)
	id <XB2W2X9Z>; Thu, 18 Nov 1999 09:45:33 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD190201D3A5@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: stephan.teiwes@itsec.ch
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: Comments on draft-ietf-smime-idea-01
Date: Thu, 18 Nov 1999 09:45:31 -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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

1.  Please include the standard text relating to RFC2119 and then capitalize
the approprate wording in the document.

2. Section 2, para 6:  I would like it if the alternative of not including
the IV in the IDEA-CBC parameters had a SHOULD NOT on it.

3.  Section 4:  Please include the actual encoded bytes used in the S/MIME
capabilty so there is no mistake on the correct sequence to use when doing
the byte compares.


jim



From owner-ietf-smime@imc.org  Thu Nov 18 13:18:20 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11975
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 13:18:19 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id JAA01568
	for ietf-smime-bks; Thu, 18 Nov 1999 09:44:35 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA01556
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 09:44:33 -0800 (PST)
Received: by dfssl with Internet Mail Service (5.5.2650.21)
	id <W8XXNNF0>; Thu, 18 Nov 1999 09:45:30 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD190201D3A4@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: pgut001@cs.aucKland.ac.nz
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: Comments on draft-ietf-smime-password-00
Date: Thu, 18 Nov 1999 09:45:31 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01BF31EC.B47EC816"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF31EC.B47EC816
Content-Type: text/plain;
	charset="iso-8859-1"

1.  Section 2.1.  What is the timing you expect to see relative to PKCS5v2
being advanced to an RFC of some type?

2.  Section 2.1.  The S/MIME working group is using 88 ASN syntax.  The
syntax in this section is not.  Please correct.

3.  Section 2.1  Why is there ASN here that does not actually provide any
useful information.  What are the parameters.  What is the OID associated
with this set of parameters.

4. Section 2.3.1  We have a key wrap algorithm specified in RFC 2630.  You
are using a different key wrap algorithm.  I would prefer to see a single
one for simplity of implementation.  What is your justification for added
complexity?

5.  Section 2.3.2.  You state that the length of the key can be determined
from the CEK parameters.  This is not always true.  A counter example would
be to use 256-bits of key material for a RC2/128-bit process.  In this case
you would only pull 128-bits of key material and be unable to decrypt the
content.

6.  Sectoin 2.3.1.  Questions  about your algorithm:  1) what is the IV that
should be used initially on the first pass encryption (not explicity stated
but implied later).  2) Where is the IV saved?  3) What does step 1 of
section 2.3.2 do?  I don't see a corresponding step in section 2.3.1.  This
thing might work, but I should don't believe it from just reading the
document.

7.  Section 2.3.4 -- Can this issue also be addressed by the addition of a
random salt to the KEK creation process?  This means one is not using the
same KEK for every CEK encrption from a single password.

8.  Section 2.4.1 -- You cannot change the CEK for RC2 in this document.  I
don't want two different versions for this depending on wheither I have a
Password KEK mixed in the set of recipients.  This just will not fly.



------_=_NextPart_001_01BF31EC.B47EC816
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Comments on draft-ietf-smime-password-00</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">1.&nbsp; Section 2.1.&nbsp; What is =
the timing you expect to see relative to PKCS5v2 being advanced to an =
RFC of some type?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">2.&nbsp; Section 2.1.&nbsp; The S/MIME =
working group is using 88 ASN syntax.&nbsp; The syntax in this section =
is not.&nbsp; Please correct.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">3.&nbsp; Section 2.1&nbsp; Why is =
there ASN here that does not actually provide any useful =
information.&nbsp; What are the parameters.&nbsp; What is the OID =
associated with this set of parameters.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">4. Section 2.3.1&nbsp; We have a key =
wrap algorithm specified in RFC 2630.&nbsp; You are using a different =
key wrap algorithm.&nbsp; I would prefer to see a single one for =
simplity of implementation.&nbsp; What is your justification for added =
complexity?</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">5.&nbsp; Section 2.3.2.&nbsp; You =
state that the length of the key can be determined from the CEK =
parameters.&nbsp; This is not always true.&nbsp; A counter example =
would be to use 256-bits of key material for a RC2/128-bit =
process.&nbsp; In this case you would only pull 128-bits of key =
material and be unable to decrypt the content.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">6.&nbsp; Sectoin 2.3.1.&nbsp; =
Questions&nbsp; about your algorithm:&nbsp; 1) what is the IV that =
should be used initially on the first pass encryption (not explicity =
stated but implied later).&nbsp; 2) Where is the IV saved?&nbsp; 3) =
What does step 1 of section 2.3.2 do?&nbsp; I don't see a corresponding =
step in section 2.3.1.&nbsp; This thing might work, but I should don't =
believe it from just reading the document.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">7.&nbsp; Section 2.3.4 -- Can this =
issue also be addressed by the addition of a random salt to the KEK =
creation process?&nbsp; This means one is not using the same KEK for =
every CEK encrption from a single password.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">8.&nbsp; Section 2.4.1 -- You cannot =
change the CEK for RC2 in this document.&nbsp; I don't want two =
different versions for this depending on wheither I have a Password KEK =
mixed in the set of recipients.&nbsp; This just will not =
fly.</FONT></P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01BF31EC.B47EC816--


From owner-ietf-smime@imc.org  Thu Nov 18 13:29:25 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA16919
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 13:29:24 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id JAA01792
	for ietf-smime-bks; Thu, 18 Nov 1999 09:55:34 -0800 (PST)
Received: from dmz1.it-sec.com (dmz1.itsec.ch [195.141.254.202] (may be forged))
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA01787
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 09:55:27 -0800 (PST)
Received: from svzh0004.itsec.ch (localhost [127.0.0.1])
	by dmz1.it-sec.com (8.9.3/8.9.3) with ESMTP id SAA01752;
	Thu, 18 Nov 1999 18:54:52 +0100 (MET)
Received: by SVZH0004 with Internet Mail Service (5.5.2448.0)
	id <WF2YAP8G>; Thu, 18 Nov 1999 18:55:54 +0100
Message-ID: <F5545CEFBE7CD31190C90004AC4C1B6402EC13@SVZH0004>
From: Teiwes  Stephan <stephan.teiwes@it-sec.com>
To: "'Jim Schaad (Exchange)'" <jimsch@EXCHANGE.MICROSOFT.com>
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: RE: Comments on draft-ietf-smime-idea-01
Date: Thu, 18 Nov 1999 18:55:53 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Jim,

thanks a lot for your comments. I'll work on the corrections.

*Stephan

-----Original Message-----
From: Jim Schaad (Exchange) [mailto:jimsch@Exchange.Microsoft.com]
Sent: Donnerstag, 18. November 1999 18:46
To: stephan.teiwes@itsec.ch
Cc: Ietf-Smime (E-mail)
Subject: Comments on draft-ietf-smime-idea-01


1.  Please include the standard text relating to RFC2119 and then capitalize
the approprate wording in the document.

2. Section 2, para 6:  I would like it if the alternative of not including
the IV in the IDEA-CBC parameters had a SHOULD NOT on it.

3.  Section 4:  Please include the actual encoded bytes used in the S/MIME
capabilty so there is no mistake on the correct sequence to use when doing
the byte compares.


jim


From owner-ietf-smime@imc.org  Thu Nov 18 14:18:25 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA11058
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 14:18:24 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id KAA02688
	for ietf-smime-bks; Thu, 18 Nov 1999 10:40:39 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA02683
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 10:40:38 -0800 (PST)
Received: by dfssl with Internet Mail Service (5.5.2650.21)
	id <W8XXNPP5>; Thu, 18 Nov 1999 10:41:33 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD194A7131@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "John Pawling (E-mail)" <jsp@jgvandyke.com>
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: Comments on draft-ietf-smime-cmskea-02
Date: Thu, 18 Nov 1999 10:40:38 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01BF31F4.896D87C2"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF31F4.896D87C2
Content-Type: text/plain;
	charset="iso-8859-1"

1.  It would be useful if section references to CMS included section numbers
rather than just section titles.  An example is the first paragraph of
section 4.

2.  Section 4.2.2 --- One of the discussion that I have every so often with
you and Russ deals with the question of validating the originators
certificate during the decrypt process.  The current text makes no reference
to doing this or what should happen if this validation fails.  Is this what
you want?  Do you want to put in some text about doing the validation and
what to do if it fails?  Suggested text could run along the lines of "If the
originators certificate is used for the purposes of origination
authenticiation, then the originators certificate MUST be validated prior to
decrypting the message and the decryption MUST NOT proceed if the validation
fails."

3.  The document is missing the specification of the SMimeCapability field
to be used for CMSKEA.  Please include a small section with the necessary
parameters and a binary version of the encoded attribute so that everyone
uses the same byte sequence.

jim




------_=_NextPart_001_01BF31F4.896D87C2
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Comments on draft-ietf-smime-cmskea-02</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">1.&nbsp; It would be useful if section =
references to CMS included section numbers rather than just section =
titles.&nbsp; An example is the first paragraph of section =
4.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">2.&nbsp; Section 4.2.2 --- One of the =
discussion that I have every so often with you and Russ deals with the =
question of validating the originators certificate during the decrypt =
process.&nbsp; The current text makes no reference to doing this or =
what should happen if this validation fails.&nbsp; Is this what you =
want?&nbsp; Do you want to put in some text about doing the validation =
and what to do if it fails?&nbsp; Suggested text could run along the =
lines of &quot;If the originators certificate is used for the purposes =
of origination authenticiation, then the originators certificate MUST =
be validated prior to decrypting the message and the decryption MUST =
NOT proceed if the validation fails.&quot;</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">3.&nbsp; The document is missing the =
specification of the SMimeCapability field to be used for CMSKEA.&nbsp; =
Please include a small section with the necessary parameters and a =
binary version of the encoded attribute so that everyone uses the same =
byte sequence.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">jim</FONT>
</P>
<BR>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01BF31F4.896D87C2--


From owner-ietf-smime@imc.org  Thu Nov 18 14:26:23 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA15016
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 14:26:22 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id KAA02985
	for ietf-smime-bks; Thu, 18 Nov 1999 10:56:23 -0800 (PST)
Received: from doggate.exchange.microsoft.com (doggate.exchange.microsoft.com [131.107.88.55])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA02981
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 10:56:21 -0800 (PST)
Received: by doggate.exchange.microsoft.com with Internet Mail Service (5.5.2232.9)
	id <XB2W2Z2A>; Thu, 18 Nov 1999 10:57:20 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD194A7132@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: Comments on draft-ietf-smime-ecc-00
Date: Thu, 18 Nov 1999 10:56: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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

1.  Please use the correct MUST/SHOULD conventions.

2.  Section 2, para 1:  Can we change the should not to MUST NOT to be
uniform with DSA and not deal with parameters in multiple places?

3.  Section 2.1, para 2 - Note this is a must not and is not consistent with
section 2 para 1 (see comment 2)

4.  Section 3 step 1.  Please use CEK not K for the content encryption key.

5.  Section 3, step 2c:  I have not looked at the EC algorithm, but I assume
that the shared secret is not actually computed using the two public keys as
it would not be very secret.

6.  Section 3, step 3d:  Using a KDF of SHA-1 is bad.  This leaves the
encryption algorithm open for attack especially if the key sizes can change.
Please look at the use of OtherKeyInfo in RFC 2631.




From owner-ietf-smime@imc.org  Thu Nov 18 15:45:34 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA23188
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 15:45:33 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id MAA04656
	for ietf-smime-bks; Thu, 18 Nov 1999 12:09:01 -0800 (PST)
Received: from wfhqex05.wangfed.com (netva01.wangfed.com [206.137.100.2])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA04652
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 12:09:00 -0800 (PST)
Received: by wfhqex05.wangfed.com with Internet Mail Service (5.5.2650.21)
	id <V36RYSBS>; Thu, 18 Nov 1999 15:11:07 -0500
Message-ID: <33BD629222C0D211B6DB0060085ACF315A0457@WFHQEX03>
From: "Pawling, John" <jsp@jgvandyke.com>
To: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: RE: Comments on draft-ietf-smime-cmskea-02
Date: Thu, 18 Nov 1999 15:10:16 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Jim,
 
Thank you very much for your comments.  I have the following responses:
 
1) Agree.
 
2) I don't believe that we need to add text regarding the validation of the
originator's cert.  RFC 2632 (CERT), section 1 states: "Before using a
public key to provide security services, the S/MIME agent MUST certify that
the public key is valid."  I believe that covers the case of validating the
originator's cert.
 
3) Agree.  Recommend the following text: 
 
"7.   SMIMECapabilities Attribute Conventions
 
7.1.  RFC 2633, Section 2.5.2 defines the SMIMECapabilities signed attribute
(defined as a SEQUENCE of SMIMECapability SEQUNCEs) to be used to specify a
partial list of algorithms that the software announcing the
SMIMECapabilities can support.  When constructing a signedData object,
compliant software MAY include the SMIMECapabilities signed attribute
announcing that it supports the KEA and SKIPJACK algorithms. 
 
7.2.  The SMIMECapability SEQUENCE representing KEA MUST include the
id-kEAKeyEncryptionAlgorithm OID in the capabilityID field and MUST include
a KeyWrapAlgorithm SEQUENCE in the parameters field.  The algorithm field of
KeyWrapAlgorithm MUST be the id-fortezzaWrap80 OID.  The parameters field of
KeyWrapAlgorithm MUST be absent. The SMIMECapability SEQUENCE for KEA SHOULD
be included in the key management algorithms portion of the
SMIMECapabilities list.  The SMIMECapability SEQUENCE representing KEA MUST
be DER-encoded as follows:  <TBD: insert ASCII characters representing hex
values here>.
 
7.3.  The SMIMECapability SEQUENCE representing SKIPJACK MUST include the
id-fortezzaConfidentialityAlgorithm OID in the capabilityID field and the
parameters field MUST be absent.  The SMIMECapability SEQUENCE for SKIPJACK
SHOULD be included in the symmetric encryption algorithms portion of the
SMIMECapabilities list.  The SMIMECapability SEQUENCE representing SKIPJACK
MUST be DER-encoded as follows:  <TBD: Insert ASCII characters representing
hex values here>."
 
Does anybody disagree with these changes?

============================================
John Pawling, Director - Systems Engineering
J.G. Van Dyke & Associates, Inc;
a Wang Government Services Company
john.pawling@wang.com <mailto:john.pawling@wang.com> 
============================================ 

  -----Original Message-----
From: Jim Schaad (Exchange) [ mailto:jimsch@Exchange.Microsoft.com
<mailto:jimsch@Exchange.Microsoft.com> ]
Sent: Thursday, November 18, 1999 1:41 PM
To: John Pawling (E-mail)
Cc: Ietf-Smime (E-mail)
Subject: Comments on draft-ietf-smime-cmskea-02



1.  It would be useful if section references to CMS included section numbers
rather than just section titles.  An example is the first paragraph of
section 4.

2.  Section 4.2.2 --- One of the discussion that I have every so often with
you and Russ deals with the question of validating the originators
certificate during the decrypt process.  The current text makes no reference
to doing this or what should happen if this validation fails.  Is this what
you want?  Do you want to put in some text about doing the validation and
what to do if it fails?  Suggested text could run along the lines of "If the
originators certificate is used for the purposes of origination
authenticiation, then the originators certificate MUST be validated prior to
decrypting the message and the decryption MUST NOT proceed if the validation
fails."

3.  The document is missing the specification of the SMimeCapability field
to be used for CMSKEA.  Please include a small section with the necessary
parameters and a binary version of the encoded attribute so that everyone
uses the same byte sequence.

jim 



From owner-ietf-smime@imc.org  Thu Nov 18 16:06:25 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA02087
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 16:06:23 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id MAA05146
	for ietf-smime-bks; Thu, 18 Nov 1999 12:28:32 -0800 (PST)
Received: from doggate.exchange.microsoft.com (doggate.exchange.microsoft.com [131.107.88.55])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA05142
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 12:28:31 -0800 (PST)
Received: by doggate.exchange.microsoft.com with Internet Mail Service (5.5.2232.9)
	id <XB2W25ZY>; Thu, 18 Nov 1999 12:29:30 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD194A7135@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'Pawling, John'" <jsp@jgvandyke.com>,
        "Ietf-Smime (E-mail)"
	 <ietf-smime@imc.org>
Subject: RE: Comments on draft-ietf-smime-cmskea-02
Date: Thu, 18 Nov 1999 12:28:33 -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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Not having anyting for item 2 is fine with me.  I have no arguments with the
proposed text.

-----Original Message-----
From: Pawling, John [mailto:jsp@jgvandyke.com]
Sent: Thursday, November 18, 1999 12:10 PM
To: Ietf-Smime (E-mail)
Subject: RE: Comments on draft-ietf-smime-cmskea-02


Jim,
 
Thank you very much for your comments.  I have the following responses:
 
1) Agree.
 
2) I don't believe that we need to add text regarding the validation of the
originator's cert.  RFC 2632 (CERT), section 1 states: "Before using a
public key to provide security services, the S/MIME agent MUST certify that
the public key is valid."  I believe that covers the case of validating the
originator's cert.
 
3) Agree.  Recommend the following text: 
 
"7.   SMIMECapabilities Attribute Conventions
 
7.1.  RFC 2633, Section 2.5.2 defines the SMIMECapabilities signed attribute
(defined as a SEQUENCE of SMIMECapability SEQUNCEs) to be used to specify a
partial list of algorithms that the software announcing the
SMIMECapabilities can support.  When constructing a signedData object,
compliant software MAY include the SMIMECapabilities signed attribute
announcing that it supports the KEA and SKIPJACK algorithms. 
 
7.2.  The SMIMECapability SEQUENCE representing KEA MUST include the
id-kEAKeyEncryptionAlgorithm OID in the capabilityID field and MUST include
a KeyWrapAlgorithm SEQUENCE in the parameters field.  The algorithm field of
KeyWrapAlgorithm MUST be the id-fortezzaWrap80 OID.  The parameters field of
KeyWrapAlgorithm MUST be absent. The SMIMECapability SEQUENCE for KEA SHOULD
be included in the key management algorithms portion of the
SMIMECapabilities list.  The SMIMECapability SEQUENCE representing KEA MUST
be DER-encoded as follows:  <TBD: insert ASCII characters representing hex
values here>.
 
7.3.  The SMIMECapability SEQUENCE representing SKIPJACK MUST include the
id-fortezzaConfidentialityAlgorithm OID in the capabilityID field and the
parameters field MUST be absent.  The SMIMECapability SEQUENCE for SKIPJACK
SHOULD be included in the symmetric encryption algorithms portion of the
SMIMECapabilities list.  The SMIMECapability SEQUENCE representing SKIPJACK
MUST be DER-encoded as follows:  <TBD: Insert ASCII characters representing
hex values here>."
 
Does anybody disagree with these changes?

============================================
John Pawling, Director - Systems Engineering
J.G. Van Dyke & Associates, Inc;
a Wang Government Services Company
john.pawling@wang.com <mailto:john.pawling@wang.com> 
============================================ 

  -----Original Message-----
From: Jim Schaad (Exchange) [ mailto:jimsch@Exchange.Microsoft.com
<mailto:jimsch@Exchange.Microsoft.com> ]
Sent: Thursday, November 18, 1999 1:41 PM
To: John Pawling (E-mail)
Cc: Ietf-Smime (E-mail)
Subject: Comments on draft-ietf-smime-cmskea-02



1.  It would be useful if section references to CMS included section numbers
rather than just section titles.  An example is the first paragraph of
section 4.

2.  Section 4.2.2 --- One of the discussion that I have every so often with
you and Russ deals with the question of validating the originators
certificate during the decrypt process.  The current text makes no reference
to doing this or what should happen if this validation fails.  Is this what
you want?  Do you want to put in some text about doing the validation and
what to do if it fails?  Suggested text could run along the lines of "If the
originators certificate is used for the purposes of origination
authenticiation, then the originators certificate MUST be validated prior to
decrypting the message and the decryption MUST NOT proceed if the validation
fails."

3.  The document is missing the specification of the SMimeCapability field
to be used for CMSKEA.  Please include a small section with the necessary
parameters and a binary version of the encoded attribute so that everyone
uses the same byte sequence.

jim 


From owner-ietf-smime@imc.org  Thu Nov 18 16:18:37 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA08102
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 16:18:35 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id MAA05429
	for ietf-smime-bks; Thu, 18 Nov 1999 12:48:32 -0800 (PST)
Received: from lornadoon.akc.com (lornadoon.donet.com [205.133.113.5])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA05425
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 12:48:30 -0800 (PST)
Received: from poops (union5-bk1-hfc-0252-d8d82236.rdc1.nj.comcastatwork.com [216.216.34.54])
	by lornadoon.akc.com (8.9.3/8.9.3) with SMTP id PAA14973
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 15:47:21 -0500
Message-ID: <009e01bf3206$a72d0000$0401a8c0@comcastwork.com>
Reply-To: "Al Costanzo" <al@akc.com>
From: "Al Costanzo" <al@akc.com>
To: <ietf-smime@imc.org>
Subject: s/mime mail interaction with SSL website and sendmail
Date: Thu, 18 Nov 1999 15:51:13 -0500
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 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Hello,

I was wondering if anyone could explain this to me.

We just set up a secure webserver for clients and would like a program like
FormMail.pl to be able to send the mail to the client securely.

The client in question uses MS Outlook Express which does support s/mime.

I know how to do this for PGP -but- what do I need to do to the server's
sendmail program (or) what do I need to add to the server so that the server
will automatically wrap up the data formmail.pl will send out using S/Mime.
and how and were does the client's public key go on the server?

Thanks for any help in advance,,,

-al



From owner-ietf-smime@imc.org  Thu Nov 18 16:32:34 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA15125
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 16:32:33 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id MAA05358
	for ietf-smime-bks; Thu, 18 Nov 1999 12:44:33 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA05354
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 12:44:30 -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.9.3/8.8.6/cs-master) with SMTP id JAA22576 for <ietf-smime@imc.org>; Fri, 19 Nov 1999 09:45:57 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <94295795824604>; Fri, 19 Nov 1999 09:45:58 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: Password-based Encryption for S/MIME...
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Fri, 19 Nov 1999 09:45:58 (NZDT)
Message-ID: <94295795824604@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Carlisle Adams <carlisle.adams@entrust.com> writes:

>At the meeting last week, Russ solicited more comments on a few of the
>current drafts, prior to going to Last Call.  One of the specifically cited
>drafts was "Password-based Encryption for S/MIME".

I actually submitted a (mildly) updated version based on previous discussions
for the IETF meeting but it got bounced because it arrived about 5 minutes
after the cutoff time taken from some arbitrary time zone which is about 5am
for me :-(.  I'll submit a newer version based on current feedback.

>1) "Musts", "shoulds", etc., should be capitalized (this is not absolutely
>necessary, but it does help to make conformance requirements clear and
>easy-to-find).

Although I dislike shouting (unless it's about broken X.509 stuff :-), I'll
change the text.

>2) The Security Considerations section currently contains only the following
>sentence:  "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."  I suggest adding a new paragraph along the
>following lines.
>
>"More importantly, however, the security of this information type rests on the
>entropy of the user-selected password, which is typically quite low. Pass
>phrases (as opposed to simple passwords) are STRONGLY RECOMMENDED, although it
>should be recognized that even with pass phrases it will be difficult to use
>this recipient information type to derive a KEK with sufficient entropy to
>properly protect a 128-bit (or higher) CEK."

Is it worth going into this sort of thing?  I deliberately avoided covering
this because it's very obvious (it's just stating "If you pick an easily-
guessed password, you're toast"), it's mentioned in virtually every security
text and tutorial, and it's not something an implementor has much control over
(that is, it's unlikely that end users will read the draft and note that it's
recommending they use a strong password).  If people think it's worth adding
I'm happy to add it, but it seemed like it wouldn't add any real value to me.

Vin McLellan <vin@shore.net> writes:

>Pass phrases for cryptographic keys???  Simple static reusable passwords??!
>
>Suggesting a password-based S/MIME which does not take advantage of any of
>the well-documented and proven methods for safely expanding a small password
>into a cryptographically respectable key  sounds like the WG is proposing
>something like 40-bit  symmetric crypto as a future standard.  Are the IP
>issues so entangled that the WG is left with such a meager and
>embarrassingly fragile offering?

The title of the document is somewhat misleading, because it's ietf-smime the
documents are typically called "X for S/MIME" but it's actually "Password-based
Encryption for CMS", which is what the text refers to it as.  The expected use
is for encrypting things like disk files, private keys, data blobs, etc etc.  
In addition there are users who are using things like non-public-key-capable 
smart cards to handle KEK's (typically 128 or 192-bit values for IDEA or 3DES) 
which are hardly in the same class as "simple static reusable passwords".

Incidentally, the use of pre-shared passwords among (at least) PGP users isn't
unheard-of, I've used it myself occasionally when I've met people in person and
neither of us had anything other than pencil and paper handy - it's a good way
to bootstrap secure communications based on personal contact.  Using random
passwords as authenticators is also fairly common at PGP key-signing BOF's.

Peter.



From owner-ietf-smime@imc.org  Thu Nov 18 17:28:48 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA12447
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 17:28:47 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id NAA06725
	for ietf-smime-bks; Thu, 18 Nov 1999 13:55:45 -0800 (PST)
Received: from polaris.shore.net (polaris.shore.net [207.244.124.105])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA06721
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 13:55:44 -0800 (PST)
Received: from vin.shore.net (computername) [198.115.179.81] 
	by polaris.shore.net with smtp (Exim)
	id 11oZY1-0007Yh-00; Thu, 18 Nov 1999 16:56:58 -0500
X-Sender: vin@shell1.shore.net
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: pgut001@cs.aucKland.ac.nz, ietf-smime@imc.org
From: Vin McLellan <vin@shore.net>
Subject: Re: Password-based Encryption for S/MIME...
Message-Id: <E11oZY1-0007Yh-00@polaris.shore.net>
Date: Thu, 18 Nov 1999 16:56:58 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

        Thank you, Peter.

        My apologies to the list for my apparently out of context note.
<blush> Let this serve as a caution to anyone else who might be tempted to
answer e-mail while flying, when RFCs and suchlike are unavailable. 

                        _Vin

At 09:45 AM 11/19/99, Peter Gutmann wrote:
>
>The title of the document is somewhat misleading, because it's ietf-smime the
>documents are typically called "X for S/MIME" but it's actually "Password-based
>Encryption for CMS", which is what the text refers to it as.  The expected use
>is for encrypting things like disk files, private keys, data blobs, etc etc.  
>In addition there are users who are using things like non-public-key-capable 
>smart cards to handle KEK's (typically 128 or 192-bit values for IDEA or 3DES) 
>which are hardly in the same class as "simple static reusable passwords".



From owner-ietf-smime@imc.org  Thu Nov 18 17:35:41 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA15867
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 17:35:39 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id NAA06646
	for ietf-smime-bks; Thu, 18 Nov 1999 13:52:17 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA06642
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 13:52:15 -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.9.3/8.8.6/cs-master) with SMTP id KAA24630 for <ietf-smime@imc.org>; Fri, 19 Nov 1999 10:53:43 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <94296202324805>; Fri, 19 Nov 1999 10:53:43 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: Comments on draft-ietf-smime-password-00
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Fri, 19 Nov 1999 10:53:43 (NZDT)
Message-ID: <94296202324805@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:

>1. Section 2.1.  What is the timing you expect to see relative to PKCS5v2
>being advanced to an RFC of some type?

I have no idea.  Does it need to be?  Like the other PKCS's I assume it can
be turned into an RFC in no time, but is that a requirement?

>2.  Section 2.1.  The S/MIME working group is using 88 ASN syntax.  The
>syntax in this section is not.  Please correct.

PKCS #5 uses current ASN.1 syntax and not the 1988 version, the ASN.1 used
is taken straight from the standard.

>3.  Section 2.1  Why is there ASN here that does not actually provide any
>useful information.  What are the parameters.  What is the OID associated
>with this set of parameters.

It's copied from PKCS #5 for completeness, I didn't want to include the
whole thing verbatim but did want to include enough information that readers
wouldn't have to keep flipping back and forth between the two.

>4. Section 2.3.1  We have a key wrap algorithm specified in RFC 2630.  You
>are using a different key wrap algorithm.  I would prefer to see a single
>one for simplity of implementation.  What is your justification for added
>complexity?

The RFC 2630 algorithm doesn't work for anything other than fixed-length RC2
and 3DES keys.  This algorithm works with anything (well, anything with an OID
defined, which in practice means pretty much any commonly-used algorithm).
It's also a lot simpler than the RFC 2630 algorithm, you just run any old
block cipher over the data twice without needing additional hashing, byte-
reversal, or anything else - if all you've got to do your crypto is a smart
card which does 3DES (eg Gemplus' MPCOS) or IDEA (see my previous message) you
can't even implement the RFC 2630 algorithm.

[I assume that when you're saying you can use 256 bits of key for a 128-bit
 algorithm what you mean is that you have 256 bits of actual key which is
 transformed to 128 bits of effective key by the RC2 key-transformation].

The same thing occurs with RFC 2630 and it doesn't seem to be a problem there.
In any case I think I've addressed it in "Special Handling for RC2 Keys".

>6.  Sectoin 2.3.1.  Questions  about your algorithm:  1) what is the IV that
>should be used initially on the first pass encryption (not explicity stated
>but implied later).  2) Where is the IV saved?

It's part of the AlgorithmIdentifier for the KEK algorithm.  I assumed it
wouldn't be necessary to mention this because it's the standard usage for an IV
given in the AlgorithmIdentifier, but I can move the text in the example
(2.3.3, "Using the IV given in the KeyEncryptionAlgorithmIdentifer...") up to
2.3.1 if the current text isn't clear.

>3) What does step 1 of section 2.3.2 do?  I don't see a corresponding step
>in section 2.3.1.

It recovers the IV used for the second pass of encrption (step 3 of 2.3.1).

>This thing might work, but I should don't believe it from just reading the
>document.

I would hope it does, or the people who have been using it almost daily since
it was first published in 1993 are in for a rude shock :-).

>7.  Section 2.3.4 -- Can this issue also be addressed by the addition of a
>random salt to the KEK creation process?  This means one is not using the
>same KEK for every CEK encrption from a single password.

PKCS #5 already adds the salt, however I wanted to create a failsafe design
which works even if no salt (or a fixed salt) is used.  The double-wrapping
also prevents bit-flipping attacks, I'll amend the text to mention this.

>8.  Section 2.4.1 -- You cannot change the CEK for RC2 in this document.  I
>don't want two different versions for this depending on wheither I have a
>Password KEK mixed in the set of recipients.  This just will not fly.

Uhhh... I don't understand the comment.  How can you have two different CEK's
for the same data?

Peter.




From owner-ietf-smime@imc.org  Thu Nov 18 18:49:06 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA19576
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 18:49:05 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id PAA08274
	for ietf-smime-bks; Thu, 18 Nov 1999 15:21:44 -0800 (PST)
Received: from v4j31 (ip12.proper.com [165.227.249.12])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA08269
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 15:21:42 -0800 (PST)
Message-Id: <4.2.1.19991118152056.02253f00@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.1 
Date: Thu, 18 Nov 1999 15:23:06 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: Password-based Encryption for S/MIME...
In-Reply-To: <94295795824604@cs26.cs.auckland.ac.nz>
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 09:45 AM 11/19/99 +0000, Peter Gutmann wrote:
>Carlisle Adams <carlisle.adams@entrust.com> writes:
> >"More importantly, however, the security of this information type rests 
> on the
> >entropy of the user-selected password, which is typically quite low. Pass
> >phrases (as opposed to simple passwords) are STRONGLY RECOMMENDED, 
> although it
> >should be recognized that even with pass phrases it will be difficult to use
> >this recipient information type to derive a KEK with sufficient entropy to
> >properly protect a 128-bit (or higher) CEK."
>
>Is it worth going into this sort of thing?

Yes, it is. That's exactly what the security considerations section is for. 
Some of them are really pedantic, but that's OK. Novice implementors 
actually read those sections.


--Paul Hoffman, Director
--Internet Mail Consortium



From owner-ietf-smime@imc.org  Thu Nov 18 19:10:38 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA29114
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 19:10:36 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id PAA08154
	for ietf-smime-bks; Thu, 18 Nov 1999 15:16:31 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA08150
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 15:16:30 -0800 (PST)
Received: by dfssl with Internet Mail Service (5.5.2650.21)
	id <W8XXN5VQ>; Thu, 18 Nov 1999 15:17:27 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD194A7138@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'pgut001@cs.aucKland.ac.nz'" <pgut001@cs.aucKland.ac.nz>,
        ietf-smime@imc.org
Subject: RE: Comments on draft-ietf-smime-password-00
Date: Thu, 18 Nov 1999 15:16:30 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01BF321B.1326C25A"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF321B.1326C25A
Content-Type: text/plain

> -----Original Message-----
> From: pgut001@cs.aucKland.ac.nz [mailto:pgut001@cs.aucKland.ac.nz]
> 
> "Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:
> 
> >1. Section 2.1.  What is the timing you expect to see 
> relative to PKCS5v2
> >being advanced to an RFC of some type?
> 
> I have no idea.  Does it need to be?  Like the other PKCS's I 
> assume it can
> be turned into an RFC in no time, but is that a requirement?

It is my understanding that if you want this document to following standards
track, you are not going to be able to reference a non-fixed document.  The
PKCS documents have not meet that criteria in the past and thus the reason
why we got them published as informational to get the S/MIME v2 drafts in.
I believe this is also a requirement for publishing the password draft as
informational as well but am not sure.  Therefore this is a blocking factor
for moving the document forward.

> 
> >2.  Section 2.1.  The S/MIME working group is using 88 ASN 
> syntax.  The
> >syntax in this section is not.  Please correct.
> 
> PKCS #5 uses current ASN.1 syntax and not the 1988 version, 
> the ASN.1 used
> is taken straight from the standard.
> 
> >3.  Section 2.1  Why is there ASN here that does not 
> actually provide any
> >useful information.  What are the parameters.  What is the 
> OID associated
> >with this set of parameters.
> 
> It's copied from PKCS #5 for completeness, I didn't want to 
> include the
> whole thing verbatim but did want to include enough 
> information that readers
> wouldn't have to keep flipping back and forth between the two.

I believe that you failed at this.  There is not enough information in this
draft to know anything.  For all of the good what is there did me, you might
as well have omitted it entirely for all of the good it did me when reading
the draft. 

> >4. Section 2.3.1  We have a key wrap algorithm specified in 
> RFC 2630.  You
> >are using a different key wrap algorithm.  I would prefer to 
> see a single
> >one for simplity of implementation.  What is your 
> justification for added
> >complexity?
> 
> The RFC 2630 algorithm doesn't work for anything other than 
> fixed-length RC2
> and 3DES keys.  This algorithm works with anything (well, 
> anything with an OID
> defined, which in practice means pretty much any 
> commonly-used algorithm).
> It's also a lot simpler than the RFC 2630 algorithm, you just 
> run any old
> block cipher over the data twice without needing additional 
> hashing, byte-
> reversal, or anything else - if all you've got to do your 
> crypto is a smart
> card which does 3DES (eg Gemplus' MPCOS) or IDEA (see my 
> previous message) you
> can't even implement the RFC 2630 algorithm.
> 
> [I assume that when you're saying you can use 256 bits of key 
> for a 128-bit
>  algorithm what you mean is that you have 256 bits of actual 
> key which is
>  transformed to 128 bits of effective key by the RC2 
> key-transformation].
> 
> The same thing occurs with RFC 2630 and it doesn't seem to be 
> a problem there.
> In any case I think I've addressed it in "Special Handling 
> for RC2 Keys".
> 

That's an interesting statement.  I explicitly worked with Russ to make sure
that we could do variable length RC2 keys using the key wrap algorithm from
RFC 2630.  I find it difficult to believe that your algorithm is "much"
simpler than the one in RFC2630 given the partial decryptions and so forth.
(I don't know it is really alot harder either.)  Given that most people
implemented the one in RFC2630 in a couple of hours at most I don't see that
complexity of implemenation is real hard.  Also given that the new CAST and
IDEA drafts both use the RFC2630 key wrapping algorithm makes me believe
that it is easily extendable to any algorithm.

> >6.  Sectoin 2.3.1.  Questions  about your algorithm:  1) 
> what is the IV that
> >should be used initially on the first pass encryption (not 
> explicity stated
> >but implied later).  2) Where is the IV saved?
> 
> It's part of the AlgorithmIdentifier for the KEK algorithm.  
> I assumed it
> wouldn't be necessary to mention this because it's the 
> standard usage for an IV
> given in the AlgorithmIdentifier, but I can move the text in 
> the example
> (2.3.3, "Using the IV given in the 
> KeyEncryptionAlgorithmIdentifer...") up to
> 2.3.1 if the current text isn't clear.
> 
> >3) What does step 1 of section 2.3.2 do?  I don't see a 
> corresponding step
> >in section 2.3.1.
> 
> It recovers the IV used for the second pass of encrption 
> (step 3 of 2.3.1).
> 
> >This thing might work, but I should don't believe it from 
> just reading the
> >document.
> 
> I would hope it does, or the people who have been using it 
> almost daily since
> it was first published in 1993 are in for a rude shock :-).
> 
> >7.  Section 2.3.4 -- Can this issue also be addressed by the 
> addition of a
> >random salt to the KEK creation process?  This means one is 
> not using the
> >same KEK for every CEK encrption from a single password.
> 
> PKCS #5 already adds the salt, however I wanted to create a 
> failsafe design
> which works even if no salt (or a fixed salt) is used.  The 
> double-wrapping
> also prevents bit-flipping attacks, I'll amend the text to 
> mention this.
> 
> >8.  Section 2.4.1 -- You cannot change the CEK for RC2 in 
> this document.  I
> >don't want two different versions for this depending on 
> wheither I have a
> >Password KEK mixed in the set of recipients.  This just will not fly.
> 
> Uhhh... I don't understand the comment.  How can you have two 
> different CEK's
> for the same data?

I understood that the RC2 CEK algorithm was changing from 1.2.840.113549.3.2
to 1.3.6.1.4.1.3029.666.13 (provesional) in the event that the effective key
size and actual key size did not match.  This means that if I am doing a
password KEK and an RSA key transport, the value is not well defined
depending on which one I meant to use.  If this is not what you meant then
please clarify.  My reasoning went as following:
1.  CEK key length is obtained from the CEK algorithm description
2.  The new algoirthm parameters contain the actualKey lenght and must
therefore be part of the CEK.
3.  All other code that uses CMS needs to  understand this new CEK algorithm
in the event that a password receipient is included.

> 
> Peter.
> 

jim


------_=_NextPart_001_01BF321B.1326C25A
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: Comments on draft-ietf-smime-password-00</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: pgut001@cs.aucKland.ac.nz [<A =
HREF=3D"mailto:pgut001@cs.aucKland.ac.nz">mailto:pgut001@cs.aucKland.ac.=
nz</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &quot;Jim Schaad (Exchange)&quot; =
&lt;jimsch@Exchange.Microsoft.com&gt; writes:</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;1. Section 2.1.&nbsp; What is the timing =
you expect to see </FONT>
<BR><FONT SIZE=3D2>&gt; relative to PKCS5v2</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;being advanced to an RFC of some =
type?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I have no idea.&nbsp; Does it need to be?&nbsp; =
Like the other PKCS's I </FONT>
<BR><FONT SIZE=3D2>&gt; assume it can</FONT>
<BR><FONT SIZE=3D2>&gt; be turned into an RFC in no time, but is that a =
requirement?</FONT>
</P>

<P><FONT SIZE=3D2>It is my understanding that if you want this document =
to following standards track, you are not going to be able to reference =
a non-fixed document.&nbsp; The PKCS documents have not meet that =
criteria in the past and thus the reason why we got them published as =
informational to get the S/MIME v2 drafts in.&nbsp; I believe this is =
also a requirement for publishing the password draft as informational =
as well but am not sure.&nbsp; Therefore this is a blocking factor for =
moving the document forward.</FONT></P>

<P><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;2.&nbsp; Section 2.1.&nbsp; The S/MIME =
working group is using 88 ASN </FONT>
<BR><FONT SIZE=3D2>&gt; syntax.&nbsp; The</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;syntax in this section is not.&nbsp; Please =
correct.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; PKCS #5 uses current ASN.1 syntax and not the =
1988 version, </FONT>
<BR><FONT SIZE=3D2>&gt; the ASN.1 used</FONT>
<BR><FONT SIZE=3D2>&gt; is taken straight from the standard.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;3.&nbsp; Section 2.1&nbsp; Why is there ASN =
here that does not </FONT>
<BR><FONT SIZE=3D2>&gt; actually provide any</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;useful information.&nbsp; What are the =
parameters.&nbsp; What is the </FONT>
<BR><FONT SIZE=3D2>&gt; OID associated</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;with this set of parameters.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; It's copied from PKCS #5 for completeness, I =
didn't want to </FONT>
<BR><FONT SIZE=3D2>&gt; include the</FONT>
<BR><FONT SIZE=3D2>&gt; whole thing verbatim but did want to include =
enough </FONT>
<BR><FONT SIZE=3D2>&gt; information that readers</FONT>
<BR><FONT SIZE=3D2>&gt; wouldn't have to keep flipping back and forth =
between the two.</FONT>
</P>

<P><FONT SIZE=3D2>I believe that you failed at this.&nbsp; There is not =
enough information in this draft to know anything.&nbsp; For all of the =
good what is there did me, you might as well have omitted it entirely =
for all of the good it did me when reading the draft. </FONT></P>

<P><FONT SIZE=3D2>&gt; &gt;4. Section 2.3.1&nbsp; We have a key wrap =
algorithm specified in </FONT>
<BR><FONT SIZE=3D2>&gt; RFC 2630.&nbsp; You</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;are using a different key wrap =
algorithm.&nbsp; I would prefer to </FONT>
<BR><FONT SIZE=3D2>&gt; see a single</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;one for simplity of implementation.&nbsp; =
What is your </FONT>
<BR><FONT SIZE=3D2>&gt; justification for added</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;complexity?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; The RFC 2630 algorithm doesn't work for =
anything other than </FONT>
<BR><FONT SIZE=3D2>&gt; fixed-length RC2</FONT>
<BR><FONT SIZE=3D2>&gt; and 3DES keys.&nbsp; This algorithm works with =
anything (well, </FONT>
<BR><FONT SIZE=3D2>&gt; anything with an OID</FONT>
<BR><FONT SIZE=3D2>&gt; defined, which in practice means pretty much =
any </FONT>
<BR><FONT SIZE=3D2>&gt; commonly-used algorithm).</FONT>
<BR><FONT SIZE=3D2>&gt; It's also a lot simpler than the RFC 2630 =
algorithm, you just </FONT>
<BR><FONT SIZE=3D2>&gt; run any old</FONT>
<BR><FONT SIZE=3D2>&gt; block cipher over the data twice without =
needing additional </FONT>
<BR><FONT SIZE=3D2>&gt; hashing, byte-</FONT>
<BR><FONT SIZE=3D2>&gt; reversal, or anything else - if all you've got =
to do your </FONT>
<BR><FONT SIZE=3D2>&gt; crypto is a smart</FONT>
<BR><FONT SIZE=3D2>&gt; card which does 3DES (eg Gemplus' MPCOS) or =
IDEA (see my </FONT>
<BR><FONT SIZE=3D2>&gt; previous message) you</FONT>
<BR><FONT SIZE=3D2>&gt; can't even implement the RFC 2630 =
algorithm.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; [I assume that when you're saying you can use =
256 bits of key </FONT>
<BR><FONT SIZE=3D2>&gt; for a 128-bit</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; algorithm what you mean is that you have =
256 bits of actual </FONT>
<BR><FONT SIZE=3D2>&gt; key which is</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; transformed to 128 bits of effective key =
by the RC2 </FONT>
<BR><FONT SIZE=3D2>&gt; key-transformation].</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; The same thing occurs with RFC 2630 and it =
doesn't seem to be </FONT>
<BR><FONT SIZE=3D2>&gt; a problem there.</FONT>
<BR><FONT SIZE=3D2>&gt; In any case I think I've addressed it in =
&quot;Special Handling </FONT>
<BR><FONT SIZE=3D2>&gt; for RC2 Keys&quot;.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

<P><FONT SIZE=3D2>That's an interesting statement.&nbsp; I explicitly =
worked with Russ to make sure that we could do variable length RC2 keys =
using the key wrap algorithm from RFC 2630.&nbsp; I find it difficult =
to believe that your algorithm is &quot;much&quot; simpler than the one =
in RFC2630 given the partial decryptions and so forth.&nbsp; (I don't =
know it is really alot harder either.)&nbsp; Given that most people =
implemented the one in RFC2630 in a couple of hours at most I don't see =
that complexity of implemenation is real hard.&nbsp; Also given that =
the new CAST and IDEA drafts both use the RFC2630 key wrapping =
algorithm makes me believe that it is easily extendable to any =
algorithm.</FONT></P>

<P><FONT SIZE=3D2>&gt; &gt;6.&nbsp; Sectoin 2.3.1.&nbsp; =
Questions&nbsp; about your algorithm:&nbsp; 1) </FONT>
<BR><FONT SIZE=3D2>&gt; what is the IV that</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;should be used initially on the first pass =
encryption (not </FONT>
<BR><FONT SIZE=3D2>&gt; explicity stated</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;but implied later).&nbsp; 2) Where is the =
IV saved?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; It's part of the AlgorithmIdentifier for the =
KEK algorithm.&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; I assumed it</FONT>
<BR><FONT SIZE=3D2>&gt; wouldn't be necessary to mention this because =
it's the </FONT>
<BR><FONT SIZE=3D2>&gt; standard usage for an IV</FONT>
<BR><FONT SIZE=3D2>&gt; given in the AlgorithmIdentifier, but I can =
move the text in </FONT>
<BR><FONT SIZE=3D2>&gt; the example</FONT>
<BR><FONT SIZE=3D2>&gt; (2.3.3, &quot;Using the IV given in the </FONT>
<BR><FONT SIZE=3D2>&gt; KeyEncryptionAlgorithmIdentifer...&quot;) up =
to</FONT>
<BR><FONT SIZE=3D2>&gt; 2.3.1 if the current text isn't clear.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;3) What does step 1 of section 2.3.2 =
do?&nbsp; I don't see a </FONT>
<BR><FONT SIZE=3D2>&gt; corresponding step</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;in section 2.3.1.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; It recovers the IV used for the second pass of =
encrption </FONT>
<BR><FONT SIZE=3D2>&gt; (step 3 of 2.3.1).</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;This thing might work, but I should don't =
believe it from </FONT>
<BR><FONT SIZE=3D2>&gt; just reading the</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;document.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I would hope it does, or the people who have =
been using it </FONT>
<BR><FONT SIZE=3D2>&gt; almost daily since</FONT>
<BR><FONT SIZE=3D2>&gt; it was first published in 1993 are in for a =
rude shock :-).</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;7.&nbsp; Section 2.3.4 -- Can this issue =
also be addressed by the </FONT>
<BR><FONT SIZE=3D2>&gt; addition of a</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;random salt to the KEK creation =
process?&nbsp; This means one is </FONT>
<BR><FONT SIZE=3D2>&gt; not using the</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;same KEK for every CEK encrption from a =
single password.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; PKCS #5 already adds the salt, however I wanted =
to create a </FONT>
<BR><FONT SIZE=3D2>&gt; failsafe design</FONT>
<BR><FONT SIZE=3D2>&gt; which works even if no salt (or a fixed salt) =
is used.&nbsp; The </FONT>
<BR><FONT SIZE=3D2>&gt; double-wrapping</FONT>
<BR><FONT SIZE=3D2>&gt; also prevents bit-flipping attacks, I'll amend =
the text to </FONT>
<BR><FONT SIZE=3D2>&gt; mention this.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;8.&nbsp; Section 2.4.1 -- You cannot change =
the CEK for RC2 in </FONT>
<BR><FONT SIZE=3D2>&gt; this document.&nbsp; I</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;don't want two different versions for this =
depending on </FONT>
<BR><FONT SIZE=3D2>&gt; wheither I have a</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;Password KEK mixed in the set of =
recipients.&nbsp; This just will not fly.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Uhhh... I don't understand the comment.&nbsp; =
How can you have two </FONT>
<BR><FONT SIZE=3D2>&gt; different CEK's</FONT>
<BR><FONT SIZE=3D2>&gt; for the same data?</FONT>
</P>

<P><FONT SIZE=3D2>I understood that the RC2 CEK algorithm was changing =
from 1.2.840.113549.3.2 to 1.3.6.1.4.1.3029.666.13 (provesional) in the =
event that the effective key size and actual key size did not =
match.&nbsp; This means that if I am doing a password KEK and an RSA =
key transport, the value is not well defined depending on which one I =
meant to use.&nbsp; If this is not what you meant then please =
clarify.&nbsp; My reasoning went as following:</FONT></P>

<P><FONT SIZE=3D2>1.&nbsp; CEK key length is obtained from the CEK =
algorithm description</FONT>
<BR><FONT SIZE=3D2>2.&nbsp; The new algoirthm parameters contain the =
actualKey lenght and must therefore be part of the CEK.</FONT>
<BR><FONT SIZE=3D2>3.&nbsp; All other code that uses CMS needs to&nbsp; =
understand this new CEK algorithm in the event that a password =
receipient is included.</FONT></P>

<P><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Peter.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

<P><FONT SIZE=3D2>jim</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF321B.1326C25A--


From owner-ietf-smime@imc.org  Thu Nov 18 20:21:04 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA29766
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 20:21:03 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id QAA10242
	for ietf-smime-bks; Thu, 18 Nov 1999 16:44:09 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id QAA10238
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 16:44:07 -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.9.3/8.8.6/cs-master) with SMTP id NAA31599; Fri, 19 Nov 1999 13:45:35 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <94297233525470>; Fri, 19 Nov 1999 13:45:35 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: Comments on draft-ietf-smime-password-00
Cc: pkcs-editor@RSA.COM
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Fri, 19 Nov 1999 13:45:35 (NZDT)
Message-ID: <94297233525470@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:

>>From: pgut001@cs.aucKland.ac.nz [mailto:pgut001@cs.aucKland.ac.nz]
>>
>>"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:
>>
>>>1. Section 2.1.  What is the timing you expect to see relative to PKCS5v2
>>>being advanced to an RFC of some type?
>>
>>I have no idea.  Does it need to be?  Like the other PKCS's I assume it can
>>be turned into an RFC in no time, but is that a requirement?
>
>It is my understanding that if you want this document to following standards
>track, you are not going to be able to reference a non-fixed document.  The 
>PKCS documents have not meet that criteria in the past and thus the reason 
>why we got them published as informational to get the S/MIME v2 drafts in. 
>I believe this is also a requirement for publishing the password draft as
>informational as well but am not sure.  Therefore this is a blocking factor 
>for moving the document forward.

I've cc'd this to the PKCS editors address to get their comments on this, 
RFC 231[345] are all informational RFC's which are just the PKCS originals 
with RFC boilerplate, if that's required then it shouldn't be too hard to do
the same for PKCS #5v2.

Peter.



From owner-ietf-smime@imc.org  Thu Nov 18 23:08:09 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA21607
	for <smime-archive@odin.ietf.org>; Thu, 18 Nov 1999 23:08:08 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id TAA20562
	for ietf-smime-bks; Thu, 18 Nov 1999 19:28:53 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id TAA20558
	for <ietf-smime@imc.org>; Thu, 18 Nov 1999 19:28: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.9.3/8.8.6/cs-master) with SMTP id QAA05457 for <ietf-smime@imc.org>; Fri, 19 Nov 1999 16:30:18 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <94298221926136>; Fri, 19 Nov 1999 16:30:19 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: RE: Comments on draft-ietf-smime-password-00
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Fri, 19 Nov 1999 16:30:19 (NZDT)
Message-ID: <94298221926136@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:

>>>3.  Section 2.1  Why is there ASN here that does not actually provide any
>>>useful information.  What are the parameters.  What is the OID associated
>>>with this set of parameters.
>>
>>It's copied from PKCS #5 for completeness, I didn't want to include the
>>whole thing verbatim but did want to include enough information that readers
>>wouldn't have to keep flipping back and forth between the two.
>
>I believe that you failed at this.  There is not enough information in this
>draft to know anything.  For all of the good what is there did me, you might
>as well have omitted it entirely for all of the good it did me when reading
>the draft.

I can't include all of PKCS #5 (it's thirty pages long even when it's in a
proportional font), and I can't omit it entirely either because something other
than PKCS #5 may at some point define key derivation algorithms and you need to
have somewhere to list them.  Do you have any suggestions about what I could
replace the current text with?  I can't drop the ASN.1 because it's needed in
Appendix A to define/constrain the algorithm(s) used.

>Also given that the new CAST and IDEA drafts both use the RFC2630 key
>wrapping algorithm makes me believe that it is easily extendable to any
>algorithm.

The reason they use the new algorithm is because the AlgorithmIdentifier it
requires is completely incompatible with any existing one, so that no existing
cipher can be used with CMS without an update of whatever standard they're
defined in.  The only reason the new CAST and IDEA drafts exist is to define
this new AlgorithmIdentifier (if you don't believe me, check the drafts again -
the existence of the RFC2630 algorithm is requiring people to write custom
drafts to accomodate it).  Once CAST and IDEA are updated, we also need to
update the standards for RC5, DES, Skipjack, Misty, Blowfish, and every other
algorithm which anyone might want to use with their own personal "Use of the
<foo> Encryption Algorithm in S/MIME" draft.  Even then it's not going to work
in many cases because the standards only define X-in-X wrap, not X-in-Y wrap.
The example I gave in a previous message (3DES CEK wrapped in an IDEA KEK held
in a smart card) can't be done with RFC 2630, and the example I use in my draft
(80-bit key wrapped in a 192-bit key, with a note elsewhere to say that this
isn't a good match :-) can't be done either, because neither Skipjack nor
3DES-in-Skipjack drafts have been written to define what's necessary for RFC
2630.

>That's an interesting statement.  I explicitly worked with Russ to make sure
>that we could do variable length RC2 keys using the key wrap algorithm from
>RFC 2630.

Parts of it don't seem terribly variable, for example RFC 2630, section
12.3.3.2, says:

  Only 128-bit RC2 keys may be used as key-encryption keys, and they
  must be used with the RC2ParameterVersion parameter set to 58.

which doesn't seem to allow for much variation (see the comments further down
for more).

>I understood that the RC2 CEK algorithm was changing from 1.2.840.113549.3.2
>to 1.3.6.1.4.1.3029.666.13 (provesional)

I wanted to make sure that even someone who hadn't read the spec would get the
hint that this was something they should be avoiding :-).  The only reason that
OID is necessary is to handle implementations which do unexpected things with
key lengths (previously you've had to use guesswork or rely on PKCS #1 padding
to tell you how many bytes you had on hand or whatever, I wanted to provide
something a bit more rigorous).

>in the event that the effective key size and actual key size did not match.
>This means that if I am doing a password KEK and an RSA key transport, the
>value is not well defined depending on which one I meant to use.  If this is
>not what you meant then please clarify.  My reasoning went as following:
>1.  CEK key length is obtained from the CEK algorithm description
>2.  The new algoirthm parameters contain the actualKey lenght and must
>therefore be part of the CEK.
>3.  All other code that uses CMS needs to understand this new CEK algorithm
>in the event that a password receipient is included.

OK, to go through the various parameters (from RFC 2630, "actual" = no.bits
before RC2 mangling, "effective" = no.bits after RC2 mangling):

  CEK actual: For RSA, given in PKCS #1 padding or guesswork or whatever
        people are using now.
  CEK effective: Given in content-encryption OID.
  PW-KEK actual, effective: Either RFC 2268 default or as per the kludge OID
        if you want to use nonstandard values.

I can't see why all other code needs to know about the PW-KEK, it can just keep
on using the KeyTrans information as before.  I can see that there's one
possible parameter which I haven't allowed for in PW-KEK (the CEK actual rather
than effective size), if people are worried that some implementation will want
to do odd things to this as well then it can be added to the kludge OID too, so
you have four different key size parameters you can vary with RC2.  If that's
necessary then I might have to insist that more values like the current '666'
and '13' be added to the OID as a warning to implementors.

Peter.



From owner-ietf-smime@imc.org  Fri Nov 19 13:43:04 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA17910
	for <smime-archive@odin.ietf.org>; Fri, 19 Nov 1999 13:43:03 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id KAA17839
	for ietf-smime-bks; Fri, 19 Nov 1999 10:05:05 -0800 (PST)
Received: from tholian.securitydynamics.com (tholian.securid.com [204.167.112.129])
	by ns.secondary.com (8.9.3/8.9.3) with SMTP id KAA17835
	for <ietf-smime@imc.org>; Fri, 19 Nov 1999 10:05:03 -0800 (PST)
Received: from sdtihq24.securitydynamics.com by tholian.securitydynamics.com
          via smtpd (for mail.imc.org [208.184.76.43]) with SMTP; 19 Nov 1999 18:05:01 UT
Received: from exna00.securitydynamics.com (exna00.securitydynamics.com [10.2.1.110])
	by sdtihq24.securid.com (Pro-8.9.3/Pro-8.9.3) with ESMTP id NAA25900;
	Fri, 19 Nov 1999 13:00:07 -0500 (EST)
Received: by exna00.securitydynamics.com with Internet Mail Service (5.5.2448.0)
	id <W2NW9VJK>; Fri, 19 Nov 1999 13:08:01 -0500
Message-ID: <D104150098E6D111B7830000F8D90AE801480087@exna02.securitydynamics.com>
From: "Kaliski, Burt" <bkaliski@rsasecurity.com>
To: "'pgut001@cs.auckland.ac.nz'" <pgut001@cs.aucKland.ac.nz>,
        ietf-smime@imc.org
Cc: pkcs-editor@RSA.COM
Subject: RE: Comments on draft-ietf-smime-password-00
Date: Fri, 19 Nov 1999 13:13:31 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

A couple issues with the proposed RFC version of PKCS #5 v2 draft needed to
be resolved, we should be submitting a revised version shortly. Thanks for
the encouragement.

-- Burt Kaliski
RSA Laboratories

-----Original Message-----
From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
Sent: Friday, November 19, 1999 8:46 AM
To: ietf-smime@imc.org
Cc: pkcs-editor@rsa.com
Subject: Re: Comments on draft-ietf-smime-password-00


"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:

>>From: pgut001@cs.aucKland.ac.nz [mailto:pgut001@cs.aucKland.ac.nz]
>>
>>"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:
>>
>>>1. Section 2.1.  What is the timing you expect to see relative to PKCS5v2
>>>being advanced to an RFC of some type?
>>
>>I have no idea.  Does it need to be?  Like the other PKCS's I assume it
can
>>be turned into an RFC in no time, but is that a requirement?
>
>It is my understanding that if you want this document to following
standards
>track, you are not going to be able to reference a non-fixed document.  The

>PKCS documents have not meet that criteria in the past and thus the reason 
>why we got them published as informational to get the S/MIME v2 drafts in. 
>I believe this is also a requirement for publishing the password draft as
>informational as well but am not sure.  Therefore this is a blocking factor

>for moving the document forward.

I've cc'd this to the PKCS editors address to get their comments on this, 
RFC 231[345] are all informational RFC's which are just the PKCS originals 
with RFC boilerplate, if that's required then it shouldn't be too hard to do
the same for PKCS #5v2.

Peter.


From owner-ietf-smime@imc.org  Fri Nov 19 16:17:41 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA26117
	for <smime-archive@odin.ietf.org>; Fri, 19 Nov 1999 16:17:41 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id MAA27630
	for ietf-smime-bks; Fri, 19 Nov 1999 12:48:11 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA27626
	for <ietf-smime@imc.org>; Fri, 19 Nov 1999 12:48:10 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id MAA27138;
	Fri, 19 Nov 1999 12:48:31 -0800 (PST)
Message-Id: <4.2.0.58.19991119154206.00a9e900@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 19 Nov 1999 15:43:39 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: Comments on draft-ietf-smime-password-00
Cc: ietf-smime@imc.org
In-Reply-To: <94296202324805@cs26.cs.auckland.ac.nz>
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter:

> >1. Section 2.1.  What is the timing you expect to see relative to PKCS5v2
> >being advanced to an RFC of some type?
>
>I have no idea.  Does it need to be?  Like the other PKCS's I assume it can
>be turned into an RFC in no time, but is that a requirement?


If you want this on the standards track this will greatly ease progression.

Russ




From owner-ietf-smime@imc.org  Fri Nov 19 16:31:00 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA01981
	for <smime-archive@odin.ietf.org>; Fri, 19 Nov 1999 16:30:59 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id NAA27762
	for ietf-smime-bks; Fri, 19 Nov 1999 13:00:35 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA27758
	for <ietf-smime@imc.org>; Fri, 19 Nov 1999 13:00:34 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id NAA27363;
	Fri, 19 Nov 1999 13:00:53 -0800 (PST)
Message-Id: <4.2.0.58.19991119154359.00991d50@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 19 Nov 1999 15:46:14 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: Comments on draft-ietf-smime-password-00
Cc: ietf-smime@imc.org
In-Reply-To: <94296202324805@cs26.cs.auckland.ac.nz>
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter:

> >2.  Section 2.1.  The S/MIME working group is using 88 ASN syntax.  The
> >syntax in this section is not.  Please correct.
>
>PKCS #5 uses current ASN.1 syntax and not the 1988 version, the ASN.1 used
>is taken straight from the standard.

Since there are many tools that support ASN.1-1998, and there are very few 
tools that support ASN.1-1993, we use ASN.1-1998 in all S/MIME standards 
track documents.  Remember that interoperable implementations from 
different code bases are required for progression from Proposed Standard to 
Draft Standard.

Russ



From owner-ietf-smime@imc.org  Sat Nov 20 01:41:51 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA29601
	for <smime-archive@odin.ietf.org>; Sat, 20 Nov 1999 01:41:51 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id WAA19334
	for ietf-smime-bks; Fri, 19 Nov 1999 22:11:44 -0800 (PST)
Received: from speedy.rtfm.com ([216.98.239.228])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id WAA19328
	for <ietf-smime@imc.org>; Fri, 19 Nov 1999 22:11:42 -0800 (PST)
Received: from romeo.rtfm.com (romeo.rtfm.com [216.98.239.227]) by speedy.rtfm.com (8.9.1/8.6.4) with ESMTP id WAA01877; Thu, 18 Nov 1999 22:21:38 -0800 (PST)
Received: (ekr@localhost) by romeo.rtfm.com (8.9.2/8.6.4) id WAA25365; Thu, 18 Nov 1999 22:01:31 -0800 (PST)
To: Vin McLellan <vin@shore.net>
Cc: Carlisle Adams <carlisle.adams@entrust.com>,
        "'Russ Housley'" <housley@spyrus.com>,
        "'pgut001@cs.auckland.ac.nz'" <pgut001@cs.aucKland.ac.nz>,
        "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Subject: Re: Password-based Encryption for S/MIME...
References: <E11oIv4-0006WM-00@polaris.shore.net>
From: EKR <ekr@rtfm.com>
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 18 Nov 1999 22:01:30 -0800
In-Reply-To: Vin McLellan's message of "Wed, 17 Nov 1999 23:11:38 -0500"
Message-ID: <kjogcr58at.fsf@romeo.rtfm.com>
Lines: 35
X-Mailer: Gnus v5.6.45/XEmacs 20.4 - "Emerald"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Vin McLellan <vin@shore.net> writes:
>     Pass phrases for cryptographic keys???  Simple static reusable passwords??!
> 
>     I beg your pardon for delurking at this late stage in the WG
> discussions, but I was under the impression that the question of how to
> resolve a cryptographicly strong key from a small password has been a
> solved problem since the early 1990s, with the various ancestors of Bellovin
> & Merritt's DH-EKE family, including Dave Jablon's SPEKE,  Tom Wu's SRP-3,
> and a slew of others: Augmented EKE, Mike Roe's S3P series, Stefan Lucks's
> OKE, etc., etc. 
AFAIK, all of these techniques are interactive. Certainly EKE, SPEKE,
AEKE and SRP are. S/MIME is nearly always used in a store-and-forward
context and therefore any technique used for this purpose must
be noninteractive.

>     Suggesting a password-based S/MIME which does not take advantage of any
> of the well-documented and proven methods for safely expanding a small
> password into a cryptographically respectable key  sounds like the WG is
> proposing something like 40-bit  symmetric crypto as a future standard.  Are
> the IP issues so entangled that the WG is left with such a meager and
> embarrassingly fragile offering?
I don't believe that IP is the issue. Rather, I'm not aware of any
techniques that are substantially superior to the one described
here.

That's not to say that this technique is satisfactory, merely
that if you want to use a password as the basis for an encryption
key in S/MIME it's pretty much you only alternative.

-Ekr

-- 
[Eric Rescorla                                   ekr@rtfm.com]
          PureTLS - free SSLv3/TLS software for Java
                http://www.rtfm.com/puretls/


From owner-ietf-smime@imc.org  Sat Nov 20 20:25:11 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA01524
	for <smime-archive@odin.ietf.org>; Sat, 20 Nov 1999 20:25:10 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id QAA04484
	for ietf-smime-bks; Sat, 20 Nov 1999 16:56:39 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id QAA04480;
	Sat, 20 Nov 1999 16:56: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.9.3/8.8.6/cs-master) with SMTP id NAA05024; Sun, 21 Nov 1999 13:58:13 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <94314589412790>; Sun, 21 Nov 1999 13:58:14 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-pkix@imc.org, ietf-smime@imc.org
Subject: FIPS 186 and X9.42: One of these things is not like the other
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 Nov 1999 13:58:14 (NZDT)
Message-ID: <94314589412790@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
generation algorithm, and have domain parameters which look identical, however
there are two subtle differences between them, one of which is really annoying.

The annoying difference is that when writing the domain parameters, the order
of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA domain
parameters are written (p, q, g), exactly the same domain parameters when
viewed as X9.42 values are written (p, g, q).  This isn't helped by the fact
that in many fonts lowercase q and g look very similar.  Apart from the fact
that it's a booby-trap for implementors, it also means that if the domain
parameters are identified in the traditional way (SHA-1 hash), identical
parameters will appear to be different depending on whether you're interpreting
them as DSA/KEA or DH parameters.

The second difference is in the allowed range for x:

  FIPS 186: 0 < x < q (ie x = 1...q-1)
  X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)

This looks like a transcription error from FIPS 186, given that using any
x < ~2^160 is unsound I can't see why there'd be any difference between 1 and 2
as a lower bound.

Perhaps new RFC's which cover this (eg son-of-RFC2459) could include warnings
to the effect that although the parameters are the same internally, their
external representations differ.

Does anyone know why X9.42 decided to reverse the parameter order?

(The motivation for this post is that ages ago I solved the problem of the
 reversed parameters by swapping the pointers for the X9.42 g and q values so
 they were read and written in the correct order, recently I was looking
 through the code and wondered why it was working fine for both interpretations
 of parameter ordering.  There's now a big comment block by the code explaining
 the Bug which Isn't)
 
Peter.



From owner-ietf-smime@imc.org  Sun Nov 21 04:52:06 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA23011
	for <smime-archive@odin.ietf.org>; Sun, 21 Nov 1999 04:52:03 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id BAA19847
	for ietf-smime-bks; Sun, 21 Nov 1999 01:10:50 -0800 (PST)
Received: from gandalf.trustpoint.com (IDENT:root@gandalf.trustpoint.com [216.100.231.61])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id BAA19840;
	Sun, 21 Nov 1999 01:10:44 -0800 (PST)
Received: from himansu (himansu [192.168.42.5])
	by gandalf.trustpoint.com (8.8.7/8.8.7) with SMTP id BAA04256;
	Sun, 21 Nov 1999 01:12:16 -0800
From: "John C. Kennedy" <jkennedy@trustpoint.com>
To: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>, <ietf-smime@imc.org>,
        <ipsec@lists.tislabs.com>
Cc: <ekr@rtfm.com>, <robert.zuccherato@entrust.com>, <djohnson@certicom.com>,
        <wpolk@nist.gov>, <housley@spyrus.com>, <jis@mit.edu>,
        <mleech@nortelnetworks.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Date: Sun, 21 Nov 1999 01:17:21 -0800
Message-ID: <NDBBKGCMPJCKIDPKAHACIENDCAAA.jkennedy@trustpoint.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 IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
In-Reply-To: <94314589412790@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

(A long but hopefully illuminating follow-up regarding ANSI X9.42)

(**Summary: The use or referencing of the ANSI X9.42 (Diffie-Hellman) drafts
in IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the still unratified ANSI X9.42 draft should be used as a basis or
even a reference for ongoing IETF Diffie-Hellman protocol standardization
work.)

Peter,

I was the editor of the ANSI X9.42 Diffie-Hellman draft up until about April
of 1997 when I changed employers and passed the X9.42 editing torch.  Since
my current work has given me a reason to wade back into the IETF process, I
wanted to share a few comments and provide some additional data on the
apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
years later it seems to still be a bit of a mess in need of some tidying up.

(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
believe this may be a draft that I "strategically distributed" to a few
select people working in IPSEC, PKIX, and other IETF working groups around
that time.  ANSI X9F has never had a lot of interest in seeing X9.42
reviewed or adopted by IETF.  [In fact, it is ridiculous that after almost
five years of work and innumerable rewrites, neither ANSI or NIST have
published an authoritative interoperability standard for one the most
fundamental and powerful public key techniques for key agreement we have.
(Hint: It is not because of patents or because it is too difficult to
communicate.)]

(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a 1998 draft
of X9.42.  This X9.42 draft is probably the one made available by ANSI to
IEEE P1363 members at
http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You will
need an IEEE P1363 password to get at this.)  This draft is better than the
1997 draft, but still has problems.  Since I have not been involved with
ANSI for about 3 years, I can't comment on where the X9.42 draft currently
stands.  Since the X9.42 draft document is (still!) not public, it is not
clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
currently a proposed standard in IETF.  Since RFC 2631 propagates errors
that existed in the 1998 X9.42 draft, a second look at it is probably called
for. (These errors are noted below)

(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any Diffie-Hellman
standards.  While the techniques given in this document are mathematically
accurate and certainly filled a gap in the IPSEC work at the time, the
OAKLEY RFC doesn't quite provide all the pieces needed to link up with PKIX
and some other security standards.

(4) The following drafts contain relevant references to Diffie-Hellman or
related protocols.  The first two reference RFC 2631 and the second
specifies a new DH variant altogether:
draft-ietf-smime-small-subgroup-02.txt
draft-ietf-pkix-dhpop-02.txt
draft-ietf-secsh-transport-06.txt

(5) Both of the ANSI documents currently referenced were drafts and probably
weren't the best basis for IETF standards.  Given the lack of anything else
to point to, I can't say I blame the authors, however.  They certainly meant
well.  What is also unfortunate is that IETF community has not been provided
with access to more current X9.42 drafts.  This is, IMHO, probably related
to the situation I pointed out in (1).

Now, in reponse to your observations:

(6) RFC 2631 states "X9.42 requires that the private key x be in the
interval [2, (q - 2)]"
In other words, (1 < x < q-1).  **It is quite clear that the referenced
X9.42 draft is not only wrong but inconsistent**.  And in a number of
places.  The Diffie-Hellman private key x should be chosen in the closed
interval [2^(m-1), q-1], where m is the minimum length in bits acceptable
for the private key.  (Typically m>=160, but your mileage may vary...)  This
is consistent with security recommendations in the current IEEE P1363
documents as well as definitions in draft-ietf-smime-small-subgroup-02.txt,
draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical subtlety I have
forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up to
correct me.)

Note that choosing x in [1, q-1] will work just fine mathematically, but
does not reflect or enforce the minimum key size requirement.  Note that if
the size of q is at least a few bit greater than m and you are using a good
RNG to pick x, the point is probably moot anyway.  If you are using a
long-term (aka "static") DH keys, however, it probably not a bad idea to put
the minimum keysize check in your keygen routine as a "belt and suspenders"
type measure.

(7) The domain parameter generation routines in X9.42 were in fact derived
from those in the FIP 186 spec to allow re-use of DSA parameters (p, q, and
g) with X9.42 if desired.  I can't say I am a big fan of this because it
forces q to 160 bits which is probably not appropriate if you intend to
enforce a minimum DH private key size greater than 160.

(8) The parameter order switch was not a deliberate booby trap, although
these types of things do help to keep crypto engineers on their toes. :)  As
I recall, the parameters q and j were added when concerns about small
subgroup attacks on Diffie-Hellman surfaced.  It is more of a coincidence
that the DSA algorithm exploits the use of a subgroup also defined by a
prime called q.  In other words, DSA included q from the beginning while
X9.42 added q as a security enhancement.  The ASN.1 encoding choices are an
artifact of the development process, not a deliberate reversal.  If you feel
like lobbying ANSI X9F to change the ordering to make everyone's life
easier, have at it.  I wouldn't hold my breath however. :)

(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
 DomainParameters ::= SEQUENCE {
              p       INTEGER, -- odd prime, p=jq +1
              g       INTEGER, -- generator, g
              q       INTEGER, -- factor of p-1
              j       INTEGER OPTIONAL, -- subgroup factor
              validationParms  ValidationParms OPTIONAL }

        ValidationParms ::= SEQUENCE {
              seed             BIT STRING,
              pgenCounter      INTEGER }

whereas the 1998 X9.42 draft shows them as:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER,        -- prime factor of p-1
   j                INTEGER,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL
(**Note q is no longer optional.** JK)

if you can find a copy of the 1997 draft (which I happen to have) we see the
original version:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER OPTIONAL,        -- prime factor of p-1
   j                INTEGER OPTIONAL,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL

(This early draft reflects my admitted ignorance of proper ASN.1 at the
time. You cannot have multiple optional INTEGERS without tags on them.)

My guess is that the middle version (i.e., with only ValidationParms
optional) is the preferred version, which means RFC 2459 should probably be
changed.  I do not know what the current X9.42 draft gives.

****Conclusion****
(10) Because of the aforementioned errors and inconsistencies, I have
serious reservations about the continued use or referencing of ANSI X9.42 in
IETF drafts or standards.  The use or referencing of the ANSI X9.42 draft in
IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the apparently still unratified and possibly unstable ANSI X9.42
draft should be used as a basis or reference for ongoing IETF Diffie-Hellman
protocol standardization efforts.  Because of this, I respectfully submit
that the IETF should consider whether RFC 2631 should be deprecated and
rewritten in a manner which removes unnecessary references to the mysterious
and forever-unpublished ANSI X9.42 draft.


-John Kennedy
jkennedy@trustpoint.com



-----Original Message-----
From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
Sent: Sunday, November 21, 1999 1:58 PM
To: ietf-pkix@imc.org; ietf-smime@imc.org
Subject: FIPS 186 and X9.42: One of these things is not like the other


FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
generation algorithm, and have domain parameters which look identical,
however
there are two subtle differences between them, one of which is really
annoying.

The annoying difference is that when writing the domain parameters, the
order
of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA domain
parameters are written (p, q, g), exactly the same domain parameters when
viewed as X9.42 values are written (p, g, q).  This isn't helped by the fact
that in many fonts lowercase q and g look very similar.  Apart from the fact
that it's a booby-trap for implementors, it also means that if the domain
parameters are identified in the traditional way (SHA-1 hash), identical
parameters will appear to be different depending on whether you're
interpreting
them as DSA/KEA or DH parameters.

The second difference is in the allowed range for x:

  FIPS 186: 0 < x < q (ie x = 1...q-1)
  X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)

This looks like a transcription error from FIPS 186, given that using any
x < ~2^160 is unsound I can't see why there'd be any difference between 1
and 2
as a lower bound.

Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
warnings
to the effect that although the parameters are the same internally, their
external representations differ.

Does anyone know why X9.42 decided to reverse the parameter order?

(The motivation for this post is that ages ago I solved the problem of the
 reversed parameters by swapping the pointers for the X9.42 g and q values
so
 they were read and written in the correct order, recently I was looking
 through the code and wondered why it was working fine for both
interpretations
 of parameter ordering.  There's now a big comment block by the code
explaining
 the Bug which Isn't)

Peter.



From owner-ietf-smime@imc.org  Sun Nov 21 06:16:51 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA06315
	for <smime-archive@odin.ietf.org>; Sun, 21 Nov 1999 06:16:50 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id CAA21261
	for ietf-smime-bks; Sun, 21 Nov 1999 02:51:23 -0800 (PST)
Received: from eastwood.aldigital.algroup.co.uk (eastwood.aldigital.algroup.co.uk [194.128.162.193])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id CAA21093;
	Sun, 21 Nov 1999 02:48:17 -0800 (PST)
Received: from freeby.ben.algroup.co.uk (freeby.ben.algroup.co.uk [193.133.15.6]) by eastwood.aldigital.algroup.co.uk (8.8.8/8.6.12) with ESMTP id KAA09568; Sun, 21 Nov 1999 10:45:36 GMT
Received: from algroup.co.uk (naughty.ben.algroup.co.uk [193.133.15.107]) by freeby.ben.algroup.co.uk (8.6.12/8.6.12) with ESMTP id KAA06724; Sun, 21 Nov 1999 10:44:26 GMT
Message-ID: <3837CD01.1910F28A@algroup.co.uk>
Date: Sun, 21 Nov 1999 10:44:17 +0000
From: Ben Laurie <ben@algroup.co.uk>
Organization: A.L. Group plc
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
MIME-Version: 1.0
To: "John C. Kennedy" <jkennedy@trustpoint.com>
CC: pgut001@cs.aucKland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
        ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com,
        djohnson@certicom.com, wpolk@nist.gov, housley@spyrus.com, jis@mit.edu,
        mleech@nortelnetworks.com
Subject: Re: FIPS 186 and X9.42: One of these things is not like the other
References: <NDBBKGCMPJCKIDPKAHACIENDCAAA.jkennedy@trustpoint.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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

"John C. Kennedy" wrote:
> (9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
>  DomainParameters ::= SEQUENCE {
>               p       INTEGER, -- odd prime, p=jq +1
>               g       INTEGER, -- generator, g
>               q       INTEGER, -- factor of p-1
>               j       INTEGER OPTIONAL, -- subgroup factor
>               validationParms  ValidationParms OPTIONAL }

I was perusing the OpenSSL DH code recently, and I noticed that DH was
using a Germain prime for p (miscommented as a strong prime, btw),
which, of course, makes j=2. But q and j are not kept - what are they
actually used for? (Answers in the form "read XXX" are welcome)

BTW, why the redundancy? If you have any two of p, j and q, you don't
need the other, and surely the work involved to recover the third one is
minimal in comparison to anything else you'd need to do, sumswise?

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi


From owner-ietf-smime@imc.org  Sun Nov 21 17:12:32 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA18750
	for <smime-archive@odin.ietf.org>; Sun, 21 Nov 1999 17:12:32 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id NAA28558
	for ietf-smime-bks; Sun, 21 Nov 1999 13:36:55 -0800 (PST)
Received: from gandalf.trustpoint.com (IDENT:root@gandalf.trustpoint.com [216.100.231.61])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA28554;
	Sun, 21 Nov 1999 13:36:53 -0800 (PST)
Received: from himansu (himansu [192.168.42.5])
	by gandalf.trustpoint.com (8.8.7/8.8.7) with SMTP id NAA06054;
	Sun, 21 Nov 1999 13:38:17 -0800
From: "John C. Kennedy" <jkennedy@trustpoint.com>
To: "Ben Laurie" <ben@algroup.co.uk>
Cc: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>, <ietf-smime@imc.org>,
        <ipsec@lists.tislabs.com>, <ekr@rtfm.com>, <djohnson@certicom.com>,
        <housley@spyrus.com>, <amit@trustpoint.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Date: Sun, 21 Nov 1999 13:43:23 -0800
Message-ID: <NDBBKGCMPJCKIDPKAHACMENICAAA.jkennedy@trustpoint.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 IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
In-Reply-To: <3837CD01.1910F28A@algroup.co.uk>
Disposition-Notification-To: "John C. Kennedy" <jkennedy@trustpoint.com>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit

As I recall, I argued the same point and lost.  I believe the prevailing
argument was that including both j and q saved a parameter validator the
cost of doing a division to derive the other value.  If j=2, the most common
case, the division is simply a right-shift, and the argument is moot.  If
you are using a q of 160 and j>>2, say in the case where DSA parameters are
being overloaded for use as DH parameters, the p/q calculation is more
expensive.  If you are doing the calculation on a memory/CPU limited smart
card the inclusion of p,q,j may be useful.

The values q and j are made available for verification of domain parameters
and for guiding selection of appropriately sized private keys.

-John
jkennedy@trustpoint.com

-----Original Message-----
From: Ben Laurie [mailto:ben@algroup.co.uk]
Sent: Sunday, November 21, 1999 2:44 AM
To: John C. Kennedy
Cc: pgut001@cs.auckland.ac.nz; ietf-pkix@imc.org; ietf-smime@imc.org;
ipsec@lists.tislabs.com; ekr@rtfm.com; robert.zuccherato@entrust.com;
djohnson@certicom.com; wpolk@nist.gov; housley@spyrus.com; jis@mit.edu;
mleech@nortelnetworks.com
Subject: Re: FIPS 186 and X9.42: One of these things is not like the
other


"John C. Kennedy" wrote:
> (9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
>  DomainParameters ::= SEQUENCE {
>               p       INTEGER, -- odd prime, p=jq +1
>               g       INTEGER, -- generator, g
>               q       INTEGER, -- factor of p-1
>               j       INTEGER OPTIONAL, -- subgroup factor
>               validationParms  ValidationParms OPTIONAL }

I was perusing the OpenSSL DH code recently, and I noticed that DH was
using a Germain prime for p (miscommented as a strong prime, btw),
which, of course, makes j=2. But q and j are not kept - what are they
actually used for? (Answers in the form "read XXX" are welcome)

BTW, why the redundancy? If you have any two of p, j and q, you don't
need the other, and surely the work involved to recover the third one is
minimal in comparison to anything else you'd need to do, sumswise?

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi



From owner-ietf-smime@imc.org  Mon Nov 22 10:47:14 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA22648
	for <smime-archive@odin.ietf.org>; Mon, 22 Nov 1999 10:47:13 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id GAA17384
	for ietf-smime-bks; Mon, 22 Nov 1999 06:44:15 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id GAA17380;
	Mon, 22 Nov 1999 06:44:13 -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 JAA06563;
	Mon, 22 Nov 1999 09:49:12 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.4  (830.2 3-23-1999))  id 85256831.0050DC08 ; Mon, 22 Nov 1999 09:43:12 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: "John C. Kennedy" <jkennedy@trustpoint.com>
cc: pgut001@cs.aucKland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
        ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com,
        wpolk@nist.gov, housley@spyrus.com, jis@mit.edu,
        mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>,
        Sharon Keller <skeller@nist.gov>,
        "Simon Blake-Wilson" <sblakewi@certicom.com>,
        "Phil Griffin" <Phil_Griffin@certicom.com>
Message-ID: <85256831.0050D9FB.00@domino2.certicom.com>
Date: Mon, 22 Nov 1999 09:36:04 -0500
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John,

A few comments on X9.42.
1. Elaine Barkey and Sharon Keller of NIST are the editors of ANSI X9.42.  I am
copying them on your note.  It should be ready for final ballot.
2. The order of the parameters in the domain parameters should be made
consistent with X9.30 DSA, I think.  If this is not the way it is, it should be
changed in X9.42.
3. The private key d should be a value from 1 to q-1 in X9.42.  It is allowed to
chop off the ends and make it 2 to q-2.  Any further reduction risks reducing
the keysize and therefore aiding the adversary.  The reason that "low" values
are allowed sometimes is that it is not known how to detect such a situation.
In fact, if it were, then DH would unravel anyway.

Don Johnson






"John C. Kennedy" <jkennedy@trustpoint.com> on 11/21/99 04:17:21 AM

To:   pgut001@cs.auckland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
      ipsec@lists.tislabs.com
cc:   ekr@rtfm.com, robert.zuccherato@entrust.com, Don
      Johnson/Certicom@Certicom, wpolk@nist.gov, housley@spyrus.com,
      jis@mit.edu, mleech@nortelnetworks.com

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the other




(A long but hopefully illuminating follow-up regarding ANSI X9.42)

(**Summary: The use or referencing of the ANSI X9.42 (Diffie-Hellman) drafts
in IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the still unratified ANSI X9.42 draft should be used as a basis or
even a reference for ongoing IETF Diffie-Hellman protocol standardization
work.)

Peter,

I was the editor of the ANSI X9.42 Diffie-Hellman draft up until about April
of 1997 when I changed employers and passed the X9.42 editing torch.  Since
my current work has given me a reason to wade back into the IETF process, I
wanted to share a few comments and provide some additional data on the
apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
years later it seems to still be a bit of a mess in need of some tidying up.

(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
believe this may be a draft that I "strategically distributed" to a few
select people working in IPSEC, PKIX, and other IETF working groups around
that time.  ANSI X9F has never had a lot of interest in seeing X9.42
reviewed or adopted by IETF.  [In fact, it is ridiculous that after almost
five years of work and innumerable rewrites, neither ANSI or NIST have
published an authoritative interoperability standard for one the most
fundamental and powerful public key techniques for key agreement we have.
(Hint: It is not because of patents or because it is too difficult to
communicate.)]

(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a 1998 draft
of X9.42.  This X9.42 draft is probably the one made available by ANSI to
IEEE P1363 members at
http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You will
need an IEEE P1363 password to get at this.)  This draft is better than the
1997 draft, but still has problems.  Since I have not been involved with
ANSI for about 3 years, I can't comment on where the X9.42 draft currently
stands.  Since the X9.42 draft document is (still!) not public, it is not
clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
currently a proposed standard in IETF.  Since RFC 2631 propagates errors
that existed in the 1998 X9.42 draft, a second look at it is probably called
for. (These errors are noted below)

(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any Diffie-Hellman
standards.  While the techniques given in this document are mathematically
accurate and certainly filled a gap in the IPSEC work at the time, the
OAKLEY RFC doesn't quite provide all the pieces needed to link up with PKIX
and some other security standards.

(4) The following drafts contain relevant references to Diffie-Hellman or
related protocols.  The first two reference RFC 2631 and the second
specifies a new DH variant altogether:
draft-ietf-smime-small-subgroup-02.txt
draft-ietf-pkix-dhpop-02.txt
draft-ietf-secsh-transport-06.txt

(5) Both of the ANSI documents currently referenced were drafts and probably
weren't the best basis for IETF standards.  Given the lack of anything else
to point to, I can't say I blame the authors, however.  They certainly meant
well.  What is also unfortunate is that IETF community has not been provided
with access to more current X9.42 drafts.  This is, IMHO, probably related
to the situation I pointed out in (1).

Now, in reponse to your observations:

(6) RFC 2631 states "X9.42 requires that the private key x be in the
interval [2, (q - 2)]"
In other words, (1 < x < q-1).  **It is quite clear that the referenced
X9.42 draft is not only wrong but inconsistent**.  And in a number of
places.  The Diffie-Hellman private key x should be chosen in the closed
interval [2^(m-1), q-1], where m is the minimum length in bits acceptable
for the private key.  (Typically m>=160, but your mileage may vary...)  This
is consistent with security recommendations in the current IEEE P1363
documents as well as definitions in draft-ietf-smime-small-subgroup-02.txt,
draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical subtlety I have
forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up to
correct me.)

Note that choosing x in [1, q-1] will work just fine mathematically, but
does not reflect or enforce the minimum key size requirement.  Note that if
the size of q is at least a few bit greater than m and you are using a good
RNG to pick x, the point is probably moot anyway.  If you are using a
long-term (aka "static") DH keys, however, it probably not a bad idea to put
the minimum keysize check in your keygen routine as a "belt and suspenders"
type measure.

(7) The domain parameter generation routines in X9.42 were in fact derived
from those in the FIP 186 spec to allow re-use of DSA parameters (p, q, and
g) with X9.42 if desired.  I can't say I am a big fan of this because it
forces q to 160 bits which is probably not appropriate if you intend to
enforce a minimum DH private key size greater than 160.

(8) The parameter order switch was not a deliberate booby trap, although
these types of things do help to keep crypto engineers on their toes. :)  As
I recall, the parameters q and j were added when concerns about small
subgroup attacks on Diffie-Hellman surfaced.  It is more of a coincidence
that the DSA algorithm exploits the use of a subgroup also defined by a
prime called q.  In other words, DSA included q from the beginning while
X9.42 added q as a security enhancement.  The ASN.1 encoding choices are an
artifact of the development process, not a deliberate reversal.  If you feel
like lobbying ANSI X9F to change the ordering to make everyone's life
easier, have at it.  I wouldn't hold my breath however. :)

(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
 DomainParameters ::= SEQUENCE {
              p       INTEGER, -- odd prime, p=jq +1
              g       INTEGER, -- generator, g
              q       INTEGER, -- factor of p-1
              j       INTEGER OPTIONAL, -- subgroup factor
              validationParms  ValidationParms OPTIONAL }

        ValidationParms ::= SEQUENCE {
              seed             BIT STRING,
              pgenCounter      INTEGER }

whereas the 1998 X9.42 draft shows them as:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER,        -- prime factor of p-1
   j                INTEGER,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL
(**Note q is no longer optional.** JK)

if you can find a copy of the 1997 draft (which I happen to have) we see the
original version:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER OPTIONAL,        -- prime factor of p-1
   j                INTEGER OPTIONAL,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL

(This early draft reflects my admitted ignorance of proper ASN.1 at the
time. You cannot have multiple optional INTEGERS without tags on them.)

My guess is that the middle version (i.e., with only ValidationParms
optional) is the preferred version, which means RFC 2459 should probably be
changed.  I do not know what the current X9.42 draft gives.

****Conclusion****
(10) Because of the aforementioned errors and inconsistencies, I have
serious reservations about the continued use or referencing of ANSI X9.42 in
IETF drafts or standards.  The use or referencing of the ANSI X9.42 draft in
IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the apparently still unratified and possibly unstable ANSI X9.42
draft should be used as a basis or reference for ongoing IETF Diffie-Hellman
protocol standardization efforts.  Because of this, I respectfully submit
that the IETF should consider whether RFC 2631 should be deprecated and
rewritten in a manner which removes unnecessary references to the mysterious
and forever-unpublished ANSI X9.42 draft.


-John Kennedy
jkennedy@trustpoint.com



-----Original Message-----
From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
Sent: Sunday, November 21, 1999 1:58 PM
To: ietf-pkix@imc.org; ietf-smime@imc.org
Subject: FIPS 186 and X9.42: One of these things is not like the other


FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
generation algorithm, and have domain parameters which look identical,
however
there are two subtle differences between them, one of which is really
annoying.

The annoying difference is that when writing the domain parameters, the
order
of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA domain
parameters are written (p, q, g), exactly the same domain parameters when
viewed as X9.42 values are written (p, g, q).  This isn't helped by the fact
that in many fonts lowercase q and g look very similar.  Apart from the fact
that it's a booby-trap for implementors, it also means that if the domain
parameters are identified in the traditional way (SHA-1 hash), identical
parameters will appear to be different depending on whether you're
interpreting
them as DSA/KEA or DH parameters.

The second difference is in the allowed range for x:

  FIPS 186: 0 < x < q (ie x = 1...q-1)
  X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)

This looks like a transcription error from FIPS 186, given that using any
x < ~2^160 is unsound I can't see why there'd be any difference between 1
and 2
as a lower bound.

Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
warnings
to the effect that although the parameters are the same internally, their
external representations differ.

Does anyone know why X9.42 decided to reverse the parameter order?

(The motivation for this post is that ages ago I solved the problem of the
 reversed parameters by swapping the pointers for the X9.42 g and q values
so
 they were read and written in the correct order, recently I was looking
 through the code and wondered why it was working fine for both
interpretations
 of parameter ordering.  There's now a big comment block by the code
explaining
 the Bug which Isn't)

Peter.







From owner-ietf-smime@imc.org  Mon Nov 22 12:05:03 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA28503
	for <smime-archive@odin.ietf.org>; Mon, 22 Nov 1999 12:05:02 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id IAA18817
	for ietf-smime-bks; Mon, 22 Nov 1999 08:06:04 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id IAA18807;
	Mon, 22 Nov 1999 08:06:00 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id IAA29659;
	Mon, 22 Nov 1999 08:05:52 -0800 (PST)
Message-Id: <4.2.0.58.19991122105512.009c6e00@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Mon, 22 Nov 1999 11:00:16 -0500
To: "John C. Kennedy" <jkennedy@trustpoint.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the
  other
Cc: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>, <ietf-smime@imc.org>,
        <ipsec@lists.tislabs.com>, <ekr@rtfm.com>,
        <robert.zuccherato@entrust.com>, <djohnson@certicom.com>,
        <wpolk@nist.gov>, <jis@mit.edu>, <mleech@nortelnetworks.com>
In-Reply-To: <NDBBKGCMPJCKIDPKAHACIENDCAAA.jkennedy@trustpoint.com>
References: <94314589412790@cs26.cs.auckland.ac.nz>
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John:

You have been out of the loop for over two years, and your observation are 
simply incorrect!

The people that have been working on the PKIX and S/MIME standards that 
refer to X9.42 have been given every version of the document as it became 
available to the X9F1 working group participants.  And, X9F1 has worked to 
ensure that they did not change the parts of X9.42 that were adopted by the 
IETF.

Peter may not like the minor differences between X9.42 and DSA.  But the 
IETF documents are aligned with the X9.42 (just as they claim).  By the 
way, FIPS 186 contains no ASN.1; it only contains the algorithm specification.

Russ


At 01:17 AM 11/21/99 -0800, John C. Kennedy wrote:
>(A long but hopefully illuminating follow-up regarding ANSI X9.42)
>
>(**Summary: The use or referencing of the ANSI X9.42 (Diffie-Hellman) drafts
>in IETF standards has resulted in the propagation of a number of errors and
>inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
>whether the still unratified ANSI X9.42 draft should be used as a basis or
>even a reference for ongoing IETF Diffie-Hellman protocol standardization
>work.)
>
>Peter,
>
>I was the editor of the ANSI X9.42 Diffie-Hellman draft up until about April
>of 1997 when I changed employers and passed the X9.42 editing torch.  Since
>my current work has given me a reason to wade back into the IETF process, I
>wanted to share a few comments and provide some additional data on the
>apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
>years later it seems to still be a bit of a mess in need of some tidying up.
>
>(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
>believe this may be a draft that I "strategically distributed" to a few
>select people working in IPSEC, PKIX, and other IETF working groups around
>that time.  ANSI X9F has never had a lot of interest in seeing X9.42
>reviewed or adopted by IETF.  [In fact, it is ridiculous that after almost
>five years of work and innumerable rewrites, neither ANSI or NIST have
>published an authoritative interoperability standard for one the most
>fundamental and powerful public key techniques for key agreement we have.
>(Hint: It is not because of patents or because it is too difficult to
>communicate.)]
>
>(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a 1998 draft
>of X9.42.  This X9.42 draft is probably the one made available by ANSI to
>IEEE P1363 members at
>http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You will
>need an IEEE P1363 password to get at this.)  This draft is better than the
>1997 draft, but still has problems.  Since I have not been involved with
>ANSI for about 3 years, I can't comment on where the X9.42 draft currently
>stands.  Since the X9.42 draft document is (still!) not public, it is not
>clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
>currently a proposed standard in IETF.  Since RFC 2631 propagates errors
>that existed in the 1998 X9.42 draft, a second look at it is probably called
>for. (These errors are noted below)
>
>(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any Diffie-Hellman
>standards.  While the techniques given in this document are mathematically
>accurate and certainly filled a gap in the IPSEC work at the time, the
>OAKLEY RFC doesn't quite provide all the pieces needed to link up with PKIX
>and some other security standards.
>
>(4) The following drafts contain relevant references to Diffie-Hellman or
>related protocols.  The first two reference RFC 2631 and the second
>specifies a new DH variant altogether:
>draft-ietf-smime-small-subgroup-02.txt
>draft-ietf-pkix-dhpop-02.txt
>draft-ietf-secsh-transport-06.txt
>
>(5) Both of the ANSI documents currently referenced were drafts and probably
>weren't the best basis for IETF standards.  Given the lack of anything else
>to point to, I can't say I blame the authors, however.  They certainly meant
>well.  What is also unfortunate is that IETF community has not been provided
>with access to more current X9.42 drafts.  This is, IMHO, probably related
>to the situation I pointed out in (1).
>
>Now, in reponse to your observations:
>
>(6) RFC 2631 states "X9.42 requires that the private key x be in the
>interval [2, (q - 2)]"
>In other words, (1 < x < q-1).  **It is quite clear that the referenced
>X9.42 draft is not only wrong but inconsistent**.  And in a number of
>places.  The Diffie-Hellman private key x should be chosen in the closed
>interval [2^(m-1), q-1], where m is the minimum length in bits acceptable
>for the private key.  (Typically m>=160, but your mileage may vary...)  This
>is consistent with security recommendations in the current IEEE P1363
>documents as well as definitions in draft-ietf-smime-small-subgroup-02.txt,
>draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical subtlety I have
>forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up to
>correct me.)
>
>Note that choosing x in [1, q-1] will work just fine mathematically, but
>does not reflect or enforce the minimum key size requirement.  Note that if
>the size of q is at least a few bit greater than m and you are using a good
>RNG to pick x, the point is probably moot anyway.  If you are using a
>long-term (aka "static") DH keys, however, it probably not a bad idea to put
>the minimum keysize check in your keygen routine as a "belt and suspenders"
>type measure.
>
>(7) The domain parameter generation routines in X9.42 were in fact derived
>from those in the FIP 186 spec to allow re-use of DSA parameters (p, q, and
>g) with X9.42 if desired.  I can't say I am a big fan of this because it
>forces q to 160 bits which is probably not appropriate if you intend to
>enforce a minimum DH private key size greater than 160.
>
>(8) The parameter order switch was not a deliberate booby trap, although
>these types of things do help to keep crypto engineers on their toes. :)  As
>I recall, the parameters q and j were added when concerns about small
>subgroup attacks on Diffie-Hellman surfaced.  It is more of a coincidence
>that the DSA algorithm exploits the use of a subgroup also defined by a
>prime called q.  In other words, DSA included q from the beginning while
>X9.42 added q as a security enhancement.  The ASN.1 encoding choices are an
>artifact of the development process, not a deliberate reversal.  If you feel
>like lobbying ANSI X9F to change the ordering to make everyone's life
>easier, have at it.  I wouldn't hold my breath however. :)
>
>(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
>  DomainParameters ::= SEQUENCE {
>               p       INTEGER, -- odd prime, p=jq +1
>               g       INTEGER, -- generator, g
>               q       INTEGER, -- factor of p-1
>               j       INTEGER OPTIONAL, -- subgroup factor
>               validationParms  ValidationParms OPTIONAL }
>
>         ValidationParms ::= SEQUENCE {
>               seed             BIT STRING,
>               pgenCounter      INTEGER }
>
>whereas the 1998 X9.42 draft shows them as:
>
>DomainParameters ::= SEQUENCE {  -- Galois field group parameters
>    p                INTEGER,        -- odd prime, p = jq + 1
>    g                INTEGER,        -- generator, g
>    q                INTEGER,        -- prime factor of p-1
>    j                INTEGER,        -- subgroup factor, j >= 2
>    validationParms  ValidationParms OPTIONAL
>(**Note q is no longer optional.** JK)
>
>if you can find a copy of the 1997 draft (which I happen to have) we see the
>original version:
>
>DomainParameters ::= SEQUENCE {  -- Galois field group parameters
>    p                INTEGER,        -- odd prime, p = jq + 1
>    g                INTEGER,        -- generator, g
>    q                INTEGER OPTIONAL,        -- prime factor of p-1
>    j                INTEGER OPTIONAL,        -- subgroup factor, j >= 2
>    validationParms  ValidationParms OPTIONAL
>
>(This early draft reflects my admitted ignorance of proper ASN.1 at the
>time. You cannot have multiple optional INTEGERS without tags on them.)
>
>My guess is that the middle version (i.e., with only ValidationParms
>optional) is the preferred version, which means RFC 2459 should probably be
>changed.  I do not know what the current X9.42 draft gives.
>
>****Conclusion****
>(10) Because of the aforementioned errors and inconsistencies, I have
>serious reservations about the continued use or referencing of ANSI X9.42 in
>IETF drafts or standards.  The use or referencing of the ANSI X9.42 draft in
>IETF standards has resulted in the propagation of a number of errors and
>inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
>whether the apparently still unratified and possibly unstable ANSI X9.42
>draft should be used as a basis or reference for ongoing IETF Diffie-Hellman
>protocol standardization efforts.  Because of this, I respectfully submit
>that the IETF should consider whether RFC 2631 should be deprecated and
>rewritten in a manner which removes unnecessary references to the mysterious
>and forever-unpublished ANSI X9.42 draft.
>
>
>-John Kennedy
>jkennedy@trustpoint.com
>
>
>
>-----Original Message-----
>From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
>Sent: Sunday, November 21, 1999 1:58 PM
>To: ietf-pkix@imc.org; ietf-smime@imc.org
>Subject: FIPS 186 and X9.42: One of these things is not like the other
>
>
>FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
>generation algorithm, and have domain parameters which look identical,
>however
>there are two subtle differences between them, one of which is really
>annoying.
>
>The annoying difference is that when writing the domain parameters, the
>order
>of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA domain
>parameters are written (p, q, g), exactly the same domain parameters when
>viewed as X9.42 values are written (p, g, q).  This isn't helped by the fact
>that in many fonts lowercase q and g look very similar.  Apart from the fact
>that it's a booby-trap for implementors, it also means that if the domain
>parameters are identified in the traditional way (SHA-1 hash), identical
>parameters will appear to be different depending on whether you're
>interpreting
>them as DSA/KEA or DH parameters.
>
>The second difference is in the allowed range for x:
>
>   FIPS 186: 0 < x < q (ie x = 1...q-1)
>   X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)
>
>This looks like a transcription error from FIPS 186, given that using any
>x < ~2^160 is unsound I can't see why there'd be any difference between 1
>and 2
>as a lower bound.
>
>Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
>warnings
>to the effect that although the parameters are the same internally, their
>external representations differ.
>
>Does anyone know why X9.42 decided to reverse the parameter order?
>
>(The motivation for this post is that ages ago I solved the problem of the
>  reversed parameters by swapping the pointers for the X9.42 g and q values
>so
>  they were read and written in the correct order, recently I was looking
>  through the code and wondered why it was working fine for both
>interpretations
>  of parameter ordering.  There's now a big comment block by the code
>explaining
>  the Bug which Isn't)
>
>Peter.



From owner-ietf-smime@imc.org  Mon Nov 22 14:35:02 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA09484
	for <smime-archive@odin.ietf.org>; Mon, 22 Nov 1999 14:35:02 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id KAA22239
	for ietf-smime-bks; Mon, 22 Nov 1999 10:50:57 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA22235;
	Mon, 22 Nov 1999 10:50:56 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id KAA03222;
	Mon, 22 Nov 1999 10:50:44 -0800 (PST)
Message-Id: <4.2.0.58.19991122135026.00956aa0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Mon, 22 Nov 1999 13:50:56 -0500
To: "Don Johnson" <djohnson@certicom.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the
  other
Cc: "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz,
        ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com,
        ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov,
        jis@mit.edu, mleech@nortelnetworks.com,
        Elaine Barker <elaine.barker@nist.gov>,
        Sharon Keller <skeller@nist.gov>,
        "Simon Blake-Wilson" <sblakewi@certicom.com>,
        "Phil Griffin" <Phil_Griffin@certicom.com>
In-Reply-To: <85256831.0050D9FB.00@domino2.certicom.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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Don:

At 09:36 AM 11/22/99 -0500, Don Johnson wrote:
>2. The order of the parameters in the domain parameters should be made
>consistent with X9.30 DSA, I think.  If this is not the way it is, it 
>should be
>changed in X9.42.

I find no ASN.1 in X9.30 part 1.

Russ


From owner-ietf-smime@imc.org  Mon Nov 22 14:48:53 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA14827
	for <smime-archive@odin.ietf.org>; Mon, 22 Nov 1999 14:48:52 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id LAA23072
	for ietf-smime-bks; Mon, 22 Nov 1999 11:16:28 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA23063;
	Mon, 22 Nov 1999 11:16:25 -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 OAA12997;
	Mon, 22 Nov 1999 14:21:52 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.4  (830.2 3-23-1999))  id 85256831.0069D4E2 ; Mon, 22 Nov 1999 14:15:57 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: Russ Housley <housley@spyrus.com>
cc: "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz,
        ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com,
        ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov,
        jis@mit.edu, mleech@nortelnetworks.com,
        Elaine Barker <elaine.barker@nist.gov>,
        Sharon Keller <skeller@nist.gov>,
        "Simon Blake-Wilson" <sblakewi@certicom.com>,
        "Phil Griffin" <Phil_Griffin@certicom.com>
Message-ID: <85256831.0069D316.00@domino2.certicom.com>
Date: Mon, 22 Nov 1999 14:07:00 -0500
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

Also, I am not suggesting it MUST be changed, just that it would be preferred to
be consistent, if at all possible,
Don Johnson





Russ Housley <housley@spyrus.com> on 11/22/99 01:50:56 PM

To:   Don Johnson/Certicom@Certicom
cc:   "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz,
      ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com,
      ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, jis@mit.edu,
      mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, Sharon
      Keller <skeller@nist.gov>, Simon Blake-Wilson/Certicom@Certicom, "Phil
      Griffin" <Phil_Griffin@certicom.com>

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the  other




Don:

At 09:36 AM 11/22/99 -0500, Don Johnson wrote:
>2. The order of the parameters in the domain parameters should be made
>consistent with X9.30 DSA, I think.  If this is not the way it is, it
>should be
>changed in X9.42.

I find no ASN.1 in X9.30 part 1.

Russ






From owner-ietf-smime@imc.org  Mon Nov 22 14:51:24 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA15625
	for <smime-archive@odin.ietf.org>; Mon, 22 Nov 1999 14:51:23 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id LAA23071
	for ietf-smime-bks; Mon, 22 Nov 1999 11:16:28 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA23064;
	Mon, 22 Nov 1999 11:16:25 -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 OAA13000;
	Mon, 22 Nov 1999 14:21:52 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.4  (830.2 3-23-1999))  id 85256831.0069D4A8 ; Mon, 22 Nov 1999 14:15:57 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: Russ Housley <housley@spyrus.com>
cc: "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz,
        ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com,
        ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov,
        jis@mit.edu, mleech@nortelnetworks.com,
        Elaine Barker <elaine.barker@nist.gov>,
        Sharon Keller <skeller@nist.gov>,
        "Simon Blake-Wilson" <sblakewi@certicom.com>,
        "Phil Griffin" <Phil_Griffin@certicom.com>
Message-ID: <85256831.0069D316.00@domino2.certicom.com>
Date: Mon, 22 Nov 1999 14:06:17 -0500
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

Yes, the ASN.1 for X9.30 is/was in X9.57 Certificate Management, DSA was the
only public key ANSI X9 had at that time.
Don Johnson





Russ Housley <housley@spyrus.com> on 11/22/99 01:50:56 PM

To:   Don Johnson/Certicom@Certicom
cc:   "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz,
      ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com,
      ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, jis@mit.edu,
      mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, Sharon
      Keller <skeller@nist.gov>, Simon Blake-Wilson/Certicom@Certicom, "Phil
      Griffin" <Phil_Griffin@certicom.com>

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the  other




Don:

At 09:36 AM 11/22/99 -0500, Don Johnson wrote:
>2. The order of the parameters in the domain parameters should be made
>consistent with X9.30 DSA, I think.  If this is not the way it is, it
>should be
>changed in X9.42.

I find no ASN.1 in X9.30 part 1.

Russ






From owner-ietf-smime@imc.org  Mon Nov 22 15:48:10 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA10241
	for <smime-archive@odin.ietf.org>; Mon, 22 Nov 1999 15:48:09 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id LAA24497
	for ietf-smime-bks; Mon, 22 Nov 1999 11:57:55 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA24493;
	Mon, 22 Nov 1999 11:57:54 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101])
	by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id LAA04995;
	Mon, 22 Nov 1999 11:57:47 -0800 (PST)
Message-Id: <4.2.0.58.19991122144732.00a45f00@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Mon, 22 Nov 1999 14:56:30 -0500
To: "Don Johnson" <djohnson@certicom.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the
  other
Cc: "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz,
        ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com,
        ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov,
        jis@mit.edu, mleech@nortelnetworks.com,
        Elaine Barker <elaine.barker@nist.gov>,
        Sharon Keller <skeller@nist.gov>,
        "Simon Blake-Wilson" <sblakewi@certicom.com>,
        "Phil Griffin" <Phil_Griffin@certicom.com>
In-Reply-To: <85256831.0069D316.00@domino2.certicom.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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Don:

The ASN.1 associated with DSA in X9.57 is completely aligned with PKIX (RFC 
2459).  The DSA parameters contain p, q, and g.

The ASN.1 associated with Diffie-Hellman in the draft X9.42 is completely 
aligned with PKIX (RFC 2459) and S/MIME (RFC 2631).  The D-H parameters 
contain p, g, q, j (optional), and validationParms (also optional).

Both of these parameter structures are included in RFC 2459.  Concerns 
about alignment of the two structures should have been raised many months ago.

While it might have been nice to have the two parameter definitions use the 
same order for p, q, and g, this is not a show stopper.  People have 
implemented with against the current specifications, and I am strongly 
opposed to changes at this late date.

Russ


At 02:06 PM 11/22/99 -0500, Don Johnson wrote:
>Russ,
>
>Yes, the ASN.1 for X9.30 is/was in X9.57 Certificate Management, DSA was the
>only public key ANSI X9 had at that time.
>Don Johnson
>
>
>
>
>
>Russ Housley <housley@spyrus.com> on 11/22/99 01:50:56 PM
>
>To:   Don Johnson/Certicom@Certicom
>cc:   "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz,
>       ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com,
>       ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, 
> jis@mit.edu,
>       mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, 
> Sharon
>       Keller <skeller@nist.gov>, Simon Blake-Wilson/Certicom@Certicom, "Phil
>       Griffin" <Phil_Griffin@certicom.com>
>
>Subject:  RE: FIPS 186 and X9.42: One of these things is not like the  other
>
>
>
>
>Don:
>
>At 09:36 AM 11/22/99 -0500, Don Johnson wrote:
> >2. The order of the parameters in the domain parameters should be made
> >consistent with X9.30 DSA, I think.  If this is not the way it is, it
> >should be
> >changed in X9.42.
>
>I find no ASN.1 in X9.30 part 1.
>
>Russ
>
>



From owner-ietf-smime@imc.org  Mon Nov 22 16:28:38 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA29646
	for <smime-archive@odin.ietf.org>; Mon, 22 Nov 1999 16:28:37 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id MAA25402
	for ietf-smime-bks; Mon, 22 Nov 1999 12:23:46 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA25398;
	Mon, 22 Nov 1999 12:23:44 -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 PAA28840;
	Mon, 22 Nov 1999 15:29:15 -0500 (EST)
	(envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.4  (830.2 3-23-1999))  id 85256831.006FFF43 ; Mon, 22 Nov 1999 15:23:18 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: "John C. Kennedy" <jkennedy@trustpoint.com>
cc: pgut001@cs.aucKland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
        ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com,
        wpolk@nist.gov, housley@spyrus.com, jis@mit.edu,
        mleech@nortelnetworks.com, "Elaine Barker" <elaine.barker@nist.gov>,
        "Sharon Keller" <skeller@nist.gov>,
        "Simon Blake-Wilson" <sblakewi@certicom.com>, asn1@mindspring.com
Message-ID: <85256831.006FFE00.00@domino2.certicom.com>
Date: Mon, 22 Nov 1999 15:17:00 -0500
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Mime-Version: 1.0
Content-type: multipart/mixed; 
	Boundary="0__=ACDP3UzyXR808KoURSahabzWVpJ5vRGS4kMPU5dQEQ0kvhjbvaZoHErM"
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--0__=ACDP3UzyXR808KoURSahabzWVpJ5vRGS4kMPU5dQEQ0kvhjbvaZoHErM
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline

John,

1. ANSI X9.42 is supposed to go shortly to final ballot.
2. Yes, it looks like the different orders of parms are now cast in concrete.
3. A duplicate private key can be detected by checking for a duplicate public
key, if this is a concern.  For example, if an ephemeral public key repeats,
then the forward secrecy property may fail.  But this is often handled as being
a event so rare it does not need to be checked.  If it is a concern, it can be
checked.
Don Johnson






"John C. Kennedy" <jkennedy@trustpoint.com> on 11/22/99 03:08:47 PM

To:   Don Johnson/Certicom@Certicom
cc:   pgut001@cs.auckland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
      ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com,
      wpolk@nist.gov, housley@spyrus.com, jis@mit.edu,
      mleech@nortelnetworks.com, "Elaine Barker" <elaine.barker@nist.gov>,
      "Sharon Keller" <skeller@nist.gov>, Simon Blake-Wilson/Certicom@Certicom,
      "Phil Griffin" <Phil_Griffin@certicom.com>

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the other




Don,

1. I truly hope it is ready for final ballot.  Many people have been
patiently waiting for it and respectfully referencing and including
placeholders in code and other standards in anticipation of it.  It is not
ANSI X9F1's responsibility to supply IETF with algorithm standards in a
timely fashion.  By the same token, IETF security working groups must be
vigilant to not delay important work by continuing to hitch its wagon to a
Diffie-Hellman draft that the ANSI committee continues to revise and which
is *still* not ratified.  My first post gave valid evidence of the results
of this decision thus far.

2. IMHO, the order of the parameters is irrelevant as long as they are
labeled and encoded correctly.

3. Is the private key now called 'd' instead of 'x'? <sigh>
As for the range of the private key, the checks to be performed during
generation should be unambiguous.  Whether or not the receiver of the
corresponding public number can verify that these checks were done is
somewhat meaningless.  For example, can the receiver tell whether or not
the sender's private number was generated with a robust PRNG that won't
repeat itself every tenth time it is accessed?

-John

-----Original Message-----
From: Don Johnson [mailto:djohnson@certicom.com]
Sent: Monday, November 22, 1999 6:36 AM
To: John C. Kennedy
Cc: pgut001@cs.auckland.ac.nz; ietf-pkix@imc.org; ietf-smime@imc.org;
ipsec@lists.tislabs.com; ekr@rtfm.com; robert.zuccherato@entrust.com;
wpolk@nist.gov; housley@spyrus.com; jis@mit.edu;
mleech@nortelnetworks.com; Elaine Barker; Sharon Keller; Simon
Blake-Wilson; Phil Griffin
Subject: RE: FIPS 186 and X9.42: One of these things is not like the
other


John,

A few comments on X9.42.
1. Elaine Barkey and Sharon Keller of NIST are the editors of ANSI X9.42.
I am
copying them on your note.  It should be ready for final ballot.
2. The order of the parameters in the domain parameters should be made
consistent with X9.30 DSA, I think.  If this is not the way it is, it
should be
changed in X9.42.
3. The private key d should be a value from 1 to q-1 in X9.42.  It is
allowed to
chop off the ends and make it 2 to q-2.  Any further reduction risks
reducing
the keysize and therefore aiding the adversary.  The reason that "low"
values
are allowed sometimes is that it is not known how to detect such a
situation.
In fact, if it were, then DH would unravel anyway.

Don Johnson






"John C. Kennedy" <jkennedy@trustpoint.com> on 11/21/99 04:17:21 AM

To:   pgut001@cs.auckland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
      ipsec@lists.tislabs.com
cc:   ekr@rtfm.com, robert.zuccherato@entrust.com, Don
      Johnson/Certicom@Certicom, wpolk@nist.gov, housley@spyrus.com,
      jis@mit.edu, mleech@nortelnetworks.com

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the
other




(A long but hopefully illuminating follow-up regarding ANSI X9.42)

(**Summary: The use or referencing of the ANSI X9.42 (Diffie-Hellman)
drafts
in IETF standards has resulted in the propagation of a number of errors
and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the still unratified ANSI X9.42 draft should be used as a basis or
even a reference for ongoing IETF Diffie-Hellman protocol standardization
work.)

Peter,

I was the editor of the ANSI X9.42 Diffie-Hellman draft up until about
April
of 1997 when I changed employers and passed the X9.42 editing torch.
Since
my current work has given me a reason to wade back into the IETF process,
I
wanted to share a few comments and provide some additional data on the
apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
years later it seems to still be a bit of a mess in need of some tidying
up.

(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
believe this may be a draft that I "strategically distributed" to a few
select people working in IPSEC, PKIX, and other IETF working groups around
that time.  ANSI X9F has never had a lot of interest in seeing X9.42
reviewed or adopted by IETF.  [In fact, it is ridiculous that after almost
five years of work and innumerable rewrites, neither ANSI or NIST have
published an authoritative interoperability standard for one the most
fundamental and powerful public key techniques for key agreement we have.
(Hint: It is not because of patents or because it is too difficult to
communicate.)]

(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a 1998 draft
of X9.42.  This X9.42 draft is probably the one made available by ANSI to
IEEE P1363 members at
http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You will
need an IEEE P1363 password to get at this.)  This draft is better than
the
1997 draft, but still has problems.  Since I have not been involved with
ANSI for about 3 years, I can't comment on where the X9.42 draft currently
stands.  Since the X9.42 draft document is (still!) not public, it is not
clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
currently a proposed standard in IETF.  Since RFC 2631 propagates errors
that existed in the 1998 X9.42 draft, a second look at it is probably
called
for. (These errors are noted below)

(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any Diffie-Hellman
standards.  While the techniques given in this document are mathematically
accurate and certainly filled a gap in the IPSEC work at the time, the
OAKLEY RFC doesn't quite provide all the pieces needed to link up with
PKIX
and some other security standards.

(4) The following drafts contain relevant references to Diffie-Hellman or
related protocols.  The first two reference RFC 2631 and the second
specifies a new DH variant altogether:
draft-ietf-smime-small-subgroup-02.txt
draft-ietf-pkix-dhpop-02.txt
draft-ietf-secsh-transport-06.txt

(5) Both of the ANSI documents currently referenced were drafts and
probably
weren't the best basis for IETF standards.  Given the lack of anything
else
to point to, I can't say I blame the authors, however.  They certainly
meant
well.  What is also unfortunate is that IETF community has not been
provided
with access to more current X9.42 drafts.  This is, IMHO, probably related
to the situation I pointed out in (1).

Now, in reponse to your observations:

(6) RFC 2631 states "X9.42 requires that the private key x be in the
interval [2, (q - 2)]"
In other words, (1 < x < q-1).  **It is quite clear that the referenced
X9.42 draft is not only wrong but inconsistent**.  And in a number of
places.  The Diffie-Hellman private key x should be chosen in the closed
interval [2^(m-1), q-1], where m is the minimum length in bits acceptable
for the private key.  (Typically m>=160, but your mileage may vary...)
This
is consistent with security recommendations in the current IEEE P1363
documents as well as definitions in
draft-ietf-smime-small-subgroup-02.txt,
draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical subtlety I have
forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up to
correct me.)

Note that choosing x in [1, q-1] will work just fine mathematically, but
does not reflect or enforce the minimum key size requirement.  Note that
if
the size of q is at least a few bit greater than m and you are using a
good
RNG to pick x, the point is probably moot anyway.  If you are using a
long-term (aka "static") DH keys, however, it probably not a bad idea to
put
the minimum keysize check in your keygen routine as a "belt and
suspenders"
type measure.

(7) The domain parameter generation routines in X9.42 were in fact derived
from those in the FIP 186 spec to allow re-use of DSA parameters (p, q,
and
g) with X9.42 if desired.  I can't say I am a big fan of this because it
forces q to 160 bits which is probably not appropriate if you intend to
enforce a minimum DH private key size greater than 160.

(8) The parameter order switch was not a deliberate booby trap, although
these types of things do help to keep crypto engineers on their toes. :)
As
I recall, the parameters q and j were added when concerns about small
subgroup attacks on Diffie-Hellman surfaced.  It is more of a coincidence
that the DSA algorithm exploits the use of a subgroup also defined by a
prime called q.  In other words, DSA included q from the beginning while
X9.42 added q as a security enhancement.  The ASN.1 encoding choices are
an
artifact of the development process, not a deliberate reversal.  If you
feel
like lobbying ANSI X9F to change the ordering to make everyone's life
easier, have at it.  I wouldn't hold my breath however. :)

(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
 DomainParameters ::= SEQUENCE {
              p       INTEGER, -- odd prime, p=jq +1
              g       INTEGER, -- generator, g
              q       INTEGER, -- factor of p-1
              j       INTEGER OPTIONAL, -- subgroup factor
              validationParms  ValidationParms OPTIONAL }

        ValidationParms ::= SEQUENCE {
              seed             BIT STRING,
              pgenCounter      INTEGER }

whereas the 1998 X9.42 draft shows them as:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER,        -- prime factor of p-1
   j                INTEGER,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL
(**Note q is no longer optional.** JK)

if you can find a copy of the 1997 draft (which I happen to have) we see
the
original version:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER OPTIONAL,        -- prime factor of p-1
   j                INTEGER OPTIONAL,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL

(This early draft reflects my admitted ignorance of proper ASN.1 at the
time. You cannot have multiple optional INTEGERS without tags on them.)

My guess is that the middle version (i.e., with only ValidationParms
optional) is the preferred version, which means RFC 2459 should probably
be
changed.  I do not know what the current X9.42 draft gives.

****Conclusion****
(10) Because of the aforementioned errors and inconsistencies, I have
serious reservations about the continued use or referencing of ANSI X9.42
in
IETF drafts or standards.  The use or referencing of the ANSI X9.42 draft
in
IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the apparently still unratified and possibly unstable ANSI X9.42
draft should be used as a basis or reference for ongoing IETF
Diffie-Hellman
protocol standardization efforts.  Because of this, I respectfully submit
that the IETF should consider whether RFC 2631 should be deprecated and
rewritten in a manner which removes unnecessary references to the
mysterious
and forever-unpublished ANSI X9.42 draft.


-John Kennedy
jkennedy@trustpoint.com



-----Original Message-----
From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
Sent: Sunday, November 21, 1999 1:58 PM
To: ietf-pkix@imc.org; ietf-smime@imc.org
Subject: FIPS 186 and X9.42: One of these things is not like the other


FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
generation algorithm, and have domain parameters which look identical,
however
there are two subtle differences between them, one of which is really
annoying.

The annoying difference is that when writing the domain parameters, the
order
of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA
domain
parameters are written (p, q, g), exactly the same domain parameters when
viewed as X9.42 values are written (p, g, q).  This isn't helped by the
fact
that in many fonts lowercase q and g look very similar.  Apart from the
fact
that it's a booby-trap for implementors, it also means that if the domain
parameters are identified in the traditional way (SHA-1 hash), identical
parameters will appear to be different depending on whether you're
interpreting
them as DSA/KEA or DH parameters.

The second difference is in the allowed range for x:

  FIPS 186: 0 < x < q (ie x = 1...q-1)
  X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)

This looks like a transcription error from FIPS 186, given that using any
x < ~2^160 is unsound I can't see why there'd be any difference between 1
and 2
as a lower bound.

Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
warnings
to the effect that although the parameters are the same internally, their
external representations differ.

Does anyone know why X9.42 decided to reverse the parameter order?

(The motivation for this post is that ages ago I solved the problem of the
 reversed parameters by swapping the pointers for the X9.42 g and q values
so
 they were read and written in the correct order, recently I was looking
 through the code and wondered why it was working fine for both
interpretations
 of parameter ordering.  There's now a big comment block by the code
explaining
 the Bug which Isn't)

Peter.





--0__=ACDP3UzyXR808KoURSahabzWVpJ5vRGS4kMPU5dQEQ0kvhjbvaZoHErM
Content-type: application/octet-stream; 
	name="smime.p7s"
Content-Disposition: attachment; filename="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGhzCCAo8w
ggH6oAMCAQICFQDZ+E/k9gGxjXStLkDx9Qm6iCXqjTALBgkqhkiG9w0BAQUwNTEWMBQGA1UEAxMN
U01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01lbWUxCzAJBgNVBAYTAlVTMB4XDTk5MDYyNDIzNDQw
OFoXDTE0MDYyNDIzNDQwOFowNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01l
bWUxCzAJBgNVBAYTAlVTMIGdMAsGCSqGSIb3DQEBAQOBjQAwgYkCgYEAoh2u/ZzVrjTtXzowWcH1
vVHqUSJRsAF+TunEsqbZsn755D6Y0xe2ruYlNMEW7sExSoUYPQNR7cTQWwcFSyE3FtDhGGkYUt5O
UgPXZ5HVuG/Q4UwocCbOx4CIIfNJJevfEw9MvthYugg2J13XBW5iUonP5aY5rO6VrQedIa1+q8kC
AwEAAaOBoDCBnTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNn4T+T2AbGNdK0uQPH1CbqI
JeqNMB0GA1UdDgQWBBTZ+E/k9gGxjXStLkDx9Qm6iCXqjTAOBgNVHQ8BAf8EBAMCAP4wJwYDVR0l
BCAwHgYIKwYBBQUHAwIGCCsGAQUFBwMDBggrBgEFBQcDBDARBglghkgBhvhCAQEEBAMCALcwCwYJ
KoZIhvcNAQEFA4GBAJLpYU+A1SKEVesAvpylZ//Fhq/fOZrVnxBgEVHC0RpLMnlPG/Y2XaZqmr42
bIwvqZ50m6R5o41mob2N4a78ty30kAOLEvsxFaK06iezfHFJGn9TbLPEi2BTaIWCJv77skLSVjUe
zzm5JAmaKwJ3txI6s4sbM6/rrnQ2oPa2/n+JMIID8DCCA1ugAwIBAgIVANnXVOID136qfHqgNaDC
u+cYaTDNMAsGCSqGSIb3DQEBBTA1MRYwFAYDVQQDEw1TTWVtZSBSb290IENBMQ4wDAYDVQQKEwVT
TWVtZTELMAkGA1UEBhMCVVMwHhcNOTkwODI1MDEzNjEyWhcNMDAwODI1MDEzNjEyWjBkMQswCQYD
VQQGEwJVUzETMBEGA1UEChMKVHJ1c3Rwb2ludDEYMBYGA1UEAxMPSm9obiBDLiBLZW5uZWR5MSYw
JAYJKoZIhvcNAQkBFhdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTCBnzANBgkqhkiG9w0BAQEFAAOB
jQAwgYkCgYEAm/78rZZNYaJ67AZjKMwFb3ky+57qdCpI0oAbPpQQqYJOAzm0f2Y4Nlz3QMC0scMp
lGvIpxr8qwMoPIReFo+X4e7QiyumvXfNkKSgFw43rA6ne0zACHX7dbx0U4c6NLLDYer+3lFAGe8M
9y2ICgWk9aBnRaPaUKKIJhDpp4zEepMCAwEAAaOCAc8wggHLMB0GA1UdDgQWBBRBz7sIilZiDESP
GwAbpRjKtTIrajAhBgNVHSMEGgQYMBaAFNn4T+T2AbGNdK0uQPH1CbqIJeqNMA4GA1UdDwEB/wQE
AwIA+DAnBgNVHSUEIDAeBggrBgEFBQcDAgYIKwYBBQUHAwMGCCsGAQUFBwMEMBEGCWCGSAGG+EIB
AQQEAwIAsDAiBgNVHREEGzAZgRdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTBRBgNVHSAESjBIMEYG
CCsGBAGYVB4BMDowOAYIKwYBBQUHAgEWLGh0dHA6Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3Jl
ZW1lbnRfMS5odG1sMEQGCWCGSAGG+EIBAwQ3FjVodHRwOi8vd3d3LnNtZW1lLmNvbS9zZXJ2bGV0
cy9zbWVtZV9jYS9jaGVja19yZXZva2VkPzBBBglghkgBhvhCAQcENBYyaHR0cDovL3d3dy5zbWVt
ZS5jb20vc2VydmxldHMvc21lbWVfY2EvcmVuZXdfY2VydD8wOwYJYIZIAYb4QgEIBC4WLGh0dHA6
Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3JlZW1lbnRfMS5odG1sMAsGCSqGSIb3DQEBBQOBgQB3
OYc+W2F6MemxaU4Udxf7CRVZ/fR8/zEs+mpb9WIT2Dsft7XRVKP/XWZeQwx5iBoFOaU6/Xf3yqr4
k6nqhEoj1sPYD5QuTS9M/NhPYovbyf/zzUcXGTV+JRK6TgTMbIbfyuMDfBKKfHXIv5gmJfZUCNhY
N8C00T8yX9sEVYpzfzGCAg4wggIKAgEBME4wNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwG
A1UEChMFU01lbWUxCzAJBgNVBAYTAlVTAhUA2ddU4gPXfqp8eqA1oMK75xhpMM0wCQYFKw4DAhoF
AKCCARYwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNOTkxMTIyMjAw
ODAwWjAjBgkqhkiG9w0BCQQxFgQUBdgjSDcpnR2EJcDFK2skB/DlnoEwWAYJKoZIhvcNAQkPMUsw
STAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwBwYF
Kw4DAhowCgYIKoZIhvcNAgUwXQYJKwYBBAGCNxAEMVAwTjA1MRYwFAYDVQQDEw1TTWVtZSBSb290
IENBMQ4wDAYDVQQKEwVTTWVtZTELMAkGA1UEBhMCVVMCFQDZ11TiA9d+qnx6oDWgwrvnGGkwzTAN
BgkqhkiG9w0BAQEFAASBgDZrQXq3paFT0/wSmjF07F1aFaSLQDaVMzPFcaDkEiXIAMneugvSdduZ
o/W6+y9R89kXdg9DJyGTym1wDe0fR3l9zbraPCh/U4jmU15SpoVyftjdWpZDwWdb43x4im44uXxj
xuc9jnthCBqtWlsqtfo9ue0jBaYy0wB7QjmfOanKAAAAAAAA

--0__=ACDP3UzyXR808KoURSahabzWVpJ5vRGS4kMPU5dQEQ0kvhjbvaZoHErM--



From owner-ietf-smime@imc.org  Mon Nov 22 16:33:33 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA01962
	for <smime-archive@odin.ietf.org>; Mon, 22 Nov 1999 16:33:32 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id MAA24800
	for ietf-smime-bks; Mon, 22 Nov 1999 12:02:31 -0800 (PST)
Received: from gandalf.trustpoint.com (IDENT:root@gandalf.trustpoint.com [216.100.231.61])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA24796;
	Mon, 22 Nov 1999 12:02:29 -0800 (PST)
Received: from himansu (himansu [192.168.42.5])
	by gandalf.trustpoint.com (8.8.7/8.8.7) with SMTP id MAA09227;
	Mon, 22 Nov 1999 12:03:40 -0800
From: "John C. Kennedy" <jkennedy@trustpoint.com>
To: "Don Johnson" <djohnson@certicom.com>
Cc: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>, <ietf-smime@imc.org>,
        <ipsec@lists.tislabs.com>, <ekr@rtfm.com>,
        <robert.zuccherato@entrust.com>, <wpolk@nist.gov>,
        <housley@spyrus.com>, <jis@mit.edu>, <mleech@nortelnetworks.com>,
        "Elaine Barker" <elaine.barker@nist.gov>,
        "Sharon Keller" <skeller@nist.gov>,
        "Simon Blake-Wilson" <sblakewi@certicom.com>,
        "Phil Griffin" <Phil_Griffin@certicom.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Date: Mon, 22 Nov 1999 12:08:47 -0800
MIME-Version: 1.0
Message-ID: <NDBBKGCMPJCKIDPKAHACIEOOCAAA.jkennedy@trustpoint.com>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Content-Type: multipart/signed;
	protocol="application/x-pkcs7-signature";
	micalg=SHA1;
	boundary="----=_NextPart_000_003E_01BF34E2.38788920"
Importance: Normal
In-Reply-To: <85256831.0050D9FB.00@domino2.certicom.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a multi-part message in MIME format.

------=_NextPart_000_003E_01BF34E2.38788920
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Don,

1. I truly hope it is ready for final ballot.  Many people have been
patiently waiting for it and respectfully referencing and including
placeholders in code and other standards in anticipation of it.  It is not
ANSI X9F1's responsibility to supply IETF with algorithm standards in a
timely fashion.  By the same token, IETF security working groups must be
vigilant to not delay important work by continuing to hitch its wagon to a
Diffie-Hellman draft that the ANSI committee continues to revise and which
is *still* not ratified.  My first post gave valid evidence of the results
of this decision thus far.

2. IMHO, the order of the parameters is irrelevant as long as they are
labeled and encoded correctly.

3. Is the private key now called 'd' instead of 'x'? <sigh>
As for the range of the private key, the checks to be performed during
generation should be unambiguous.  Whether or not the receiver of the
corresponding public number can verify that these checks were done is
somewhat meaningless.  For example, can the receiver tell whether or not
the sender's private number was generated with a robust PRNG that won't
repeat itself every tenth time it is accessed?

-John

-----Original Message-----
From: Don Johnson [mailto:djohnson@certicom.com]
Sent: Monday, November 22, 1999 6:36 AM
To: John C. Kennedy
Cc: pgut001@cs.auckland.ac.nz; ietf-pkix@imc.org; ietf-smime@imc.org;
ipsec@lists.tislabs.com; ekr@rtfm.com; robert.zuccherato@entrust.com;
wpolk@nist.gov; housley@spyrus.com; jis@mit.edu;
mleech@nortelnetworks.com; Elaine Barker; Sharon Keller; Simon
Blake-Wilson; Phil Griffin
Subject: RE: FIPS 186 and X9.42: One of these things is not like the
other


John,

A few comments on X9.42.
1. Elaine Barkey and Sharon Keller of NIST are the editors of ANSI X9.42.
I am
copying them on your note.  It should be ready for final ballot.
2. The order of the parameters in the domain parameters should be made
consistent with X9.30 DSA, I think.  If this is not the way it is, it
should be
changed in X9.42.
3. The private key d should be a value from 1 to q-1 in X9.42.  It is
allowed to
chop off the ends and make it 2 to q-2.  Any further reduction risks
reducing
the keysize and therefore aiding the adversary.  The reason that "low"
values
are allowed sometimes is that it is not known how to detect such a
situation.
In fact, if it were, then DH would unravel anyway.

Don Johnson






"John C. Kennedy" <jkennedy@trustpoint.com> on 11/21/99 04:17:21 AM

To:   pgut001@cs.auckland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
      ipsec@lists.tislabs.com
cc:   ekr@rtfm.com, robert.zuccherato@entrust.com, Don
      Johnson/Certicom@Certicom, wpolk@nist.gov, housley@spyrus.com,
      jis@mit.edu, mleech@nortelnetworks.com

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the
other




(A long but hopefully illuminating follow-up regarding ANSI X9.42)

(**Summary: The use or referencing of the ANSI X9.42 (Diffie-Hellman)
drafts
in IETF standards has resulted in the propagation of a number of errors
and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the still unratified ANSI X9.42 draft should be used as a basis or
even a reference for ongoing IETF Diffie-Hellman protocol standardization
work.)

Peter,

I was the editor of the ANSI X9.42 Diffie-Hellman draft up until about
April
of 1997 when I changed employers and passed the X9.42 editing torch.
Since
my current work has given me a reason to wade back into the IETF process,
I
wanted to share a few comments and provide some additional data on the
apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
years later it seems to still be a bit of a mess in need of some tidying
up.

(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
believe this may be a draft that I "strategically distributed" to a few
select people working in IPSEC, PKIX, and other IETF working groups around
that time.  ANSI X9F has never had a lot of interest in seeing X9.42
reviewed or adopted by IETF.  [In fact, it is ridiculous that after almost
five years of work and innumerable rewrites, neither ANSI or NIST have
published an authoritative interoperability standard for one the most
fundamental and powerful public key techniques for key agreement we have.
(Hint: It is not because of patents or because it is too difficult to
communicate.)]

(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a 1998 draft
of X9.42.  This X9.42 draft is probably the one made available by ANSI to
IEEE P1363 members at
http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You will
need an IEEE P1363 password to get at this.)  This draft is better than
the
1997 draft, but still has problems.  Since I have not been involved with
ANSI for about 3 years, I can't comment on where the X9.42 draft currently
stands.  Since the X9.42 draft document is (still!) not public, it is not
clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
currently a proposed standard in IETF.  Since RFC 2631 propagates errors
that existed in the 1998 X9.42 draft, a second look at it is probably
called
for. (These errors are noted below)

(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any Diffie-Hellman
standards.  While the techniques given in this document are mathematically
accurate and certainly filled a gap in the IPSEC work at the time, the
OAKLEY RFC doesn't quite provide all the pieces needed to link up with
PKIX
and some other security standards.

(4) The following drafts contain relevant references to Diffie-Hellman or
related protocols.  The first two reference RFC 2631 and the second
specifies a new DH variant altogether:
draft-ietf-smime-small-subgroup-02.txt
draft-ietf-pkix-dhpop-02.txt
draft-ietf-secsh-transport-06.txt

(5) Both of the ANSI documents currently referenced were drafts and
probably
weren't the best basis for IETF standards.  Given the lack of anything
else
to point to, I can't say I blame the authors, however.  They certainly
meant
well.  What is also unfortunate is that IETF community has not been
provided
with access to more current X9.42 drafts.  This is, IMHO, probably related
to the situation I pointed out in (1).

Now, in reponse to your observations:

(6) RFC 2631 states "X9.42 requires that the private key x be in the
interval [2, (q - 2)]"
In other words, (1 < x < q-1).  **It is quite clear that the referenced
X9.42 draft is not only wrong but inconsistent**.  And in a number of
places.  The Diffie-Hellman private key x should be chosen in the closed
interval [2^(m-1), q-1], where m is the minimum length in bits acceptable
for the private key.  (Typically m>=160, but your mileage may vary...)
This
is consistent with security recommendations in the current IEEE P1363
documents as well as definitions in
draft-ietf-smime-small-subgroup-02.txt,
draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical subtlety I have
forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up to
correct me.)

Note that choosing x in [1, q-1] will work just fine mathematically, but
does not reflect or enforce the minimum key size requirement.  Note that
if
the size of q is at least a few bit greater than m and you are using a
good
RNG to pick x, the point is probably moot anyway.  If you are using a
long-term (aka "static") DH keys, however, it probably not a bad idea to
put
the minimum keysize check in your keygen routine as a "belt and
suspenders"
type measure.

(7) The domain parameter generation routines in X9.42 were in fact derived
from those in the FIP 186 spec to allow re-use of DSA parameters (p, q,
and
g) with X9.42 if desired.  I can't say I am a big fan of this because it
forces q to 160 bits which is probably not appropriate if you intend to
enforce a minimum DH private key size greater than 160.

(8) The parameter order switch was not a deliberate booby trap, although
these types of things do help to keep crypto engineers on their toes. :)
As
I recall, the parameters q and j were added when concerns about small
subgroup attacks on Diffie-Hellman surfaced.  It is more of a coincidence
that the DSA algorithm exploits the use of a subgroup also defined by a
prime called q.  In other words, DSA included q from the beginning while
X9.42 added q as a security enhancement.  The ASN.1 encoding choices are
an
artifact of the development process, not a deliberate reversal.  If you
feel
like lobbying ANSI X9F to change the ordering to make everyone's life
easier, have at it.  I wouldn't hold my breath however. :)

(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
 DomainParameters ::= SEQUENCE {
              p       INTEGER, -- odd prime, p=jq +1
              g       INTEGER, -- generator, g
              q       INTEGER, -- factor of p-1
              j       INTEGER OPTIONAL, -- subgroup factor
              validationParms  ValidationParms OPTIONAL }

        ValidationParms ::= SEQUENCE {
              seed             BIT STRING,
              pgenCounter      INTEGER }

whereas the 1998 X9.42 draft shows them as:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER,        -- prime factor of p-1
   j                INTEGER,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL
(**Note q is no longer optional.** JK)

if you can find a copy of the 1997 draft (which I happen to have) we see
the
original version:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER OPTIONAL,        -- prime factor of p-1
   j                INTEGER OPTIONAL,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL

(This early draft reflects my admitted ignorance of proper ASN.1 at the
time. You cannot have multiple optional INTEGERS without tags on them.)

My guess is that the middle version (i.e., with only ValidationParms
optional) is the preferred version, which means RFC 2459 should probably
be
changed.  I do not know what the current X9.42 draft gives.

****Conclusion****
(10) Because of the aforementioned errors and inconsistencies, I have
serious reservations about the continued use or referencing of ANSI X9.42
in
IETF drafts or standards.  The use or referencing of the ANSI X9.42 draft
in
IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the apparently still unratified and possibly unstable ANSI X9.42
draft should be used as a basis or reference for ongoing IETF
Diffie-Hellman
protocol standardization efforts.  Because of this, I respectfully submit
that the IETF should consider whether RFC 2631 should be deprecated and
rewritten in a manner which removes unnecessary references to the
mysterious
and forever-unpublished ANSI X9.42 draft.


-John Kennedy
jkennedy@trustpoint.com



-----Original Message-----
From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
Sent: Sunday, November 21, 1999 1:58 PM
To: ietf-pkix@imc.org; ietf-smime@imc.org
Subject: FIPS 186 and X9.42: One of these things is not like the other


FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
generation algorithm, and have domain parameters which look identical,
however
there are two subtle differences between them, one of which is really
annoying.

The annoying difference is that when writing the domain parameters, the
order
of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA
domain
parameters are written (p, q, g), exactly the same domain parameters when
viewed as X9.42 values are written (p, g, q).  This isn't helped by the
fact
that in many fonts lowercase q and g look very similar.  Apart from the
fact
that it's a booby-trap for implementors, it also means that if the domain
parameters are identified in the traditional way (SHA-1 hash), identical
parameters will appear to be different depending on whether you're
interpreting
them as DSA/KEA or DH parameters.

The second difference is in the allowed range for x:

  FIPS 186: 0 < x < q (ie x = 1...q-1)
  X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)

This looks like a transcription error from FIPS 186, given that using any
x < ~2^160 is unsound I can't see why there'd be any difference between 1
and 2
as a lower bound.

Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
warnings
to the effect that although the parameters are the same internally, their
external representations differ.

Does anyone know why X9.42 decided to reverse the parameter order?

(The motivation for this post is that ages ago I solved the problem of the
 reversed parameters by swapping the pointers for the X9.42 g and q values
so
 they were read and written in the correct order, recently I was looking
 through the code and wondered why it was working fine for both
interpretations
 of parameter ordering.  There's now a big comment block by the code
explaining
 the Bug which Isn't)

Peter.




------=_NextPart_000_003E_01BF34E2.38788920
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Disposition: attachment;
	filename="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGhzCCAo8w
ggH6oAMCAQICFQDZ+E/k9gGxjXStLkDx9Qm6iCXqjTALBgkqhkiG9w0BAQUwNTEWMBQGA1UEAxMN
U01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01lbWUxCzAJBgNVBAYTAlVTMB4XDTk5MDYyNDIzNDQw
OFoXDTE0MDYyNDIzNDQwOFowNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01l
bWUxCzAJBgNVBAYTAlVTMIGdMAsGCSqGSIb3DQEBAQOBjQAwgYkCgYEAoh2u/ZzVrjTtXzowWcH1
vVHqUSJRsAF+TunEsqbZsn755D6Y0xe2ruYlNMEW7sExSoUYPQNR7cTQWwcFSyE3FtDhGGkYUt5O
UgPXZ5HVuG/Q4UwocCbOx4CIIfNJJevfEw9MvthYugg2J13XBW5iUonP5aY5rO6VrQedIa1+q8kC
AwEAAaOBoDCBnTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNn4T+T2AbGNdK0uQPH1CbqI
JeqNMB0GA1UdDgQWBBTZ+E/k9gGxjXStLkDx9Qm6iCXqjTAOBgNVHQ8BAf8EBAMCAP4wJwYDVR0l
BCAwHgYIKwYBBQUHAwIGCCsGAQUFBwMDBggrBgEFBQcDBDARBglghkgBhvhCAQEEBAMCALcwCwYJ
KoZIhvcNAQEFA4GBAJLpYU+A1SKEVesAvpylZ//Fhq/fOZrVnxBgEVHC0RpLMnlPG/Y2XaZqmr42
bIwvqZ50m6R5o41mob2N4a78ty30kAOLEvsxFaK06iezfHFJGn9TbLPEi2BTaIWCJv77skLSVjUe
zzm5JAmaKwJ3txI6s4sbM6/rrnQ2oPa2/n+JMIID8DCCA1ugAwIBAgIVANnXVOID136qfHqgNaDC
u+cYaTDNMAsGCSqGSIb3DQEBBTA1MRYwFAYDVQQDEw1TTWVtZSBSb290IENBMQ4wDAYDVQQKEwVT
TWVtZTELMAkGA1UEBhMCVVMwHhcNOTkwODI1MDEzNjEyWhcNMDAwODI1MDEzNjEyWjBkMQswCQYD
VQQGEwJVUzETMBEGA1UEChMKVHJ1c3Rwb2ludDEYMBYGA1UEAxMPSm9obiBDLiBLZW5uZWR5MSYw
JAYJKoZIhvcNAQkBFhdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTCBnzANBgkqhkiG9w0BAQEFAAOB
jQAwgYkCgYEAm/78rZZNYaJ67AZjKMwFb3ky+57qdCpI0oAbPpQQqYJOAzm0f2Y4Nlz3QMC0scMp
lGvIpxr8qwMoPIReFo+X4e7QiyumvXfNkKSgFw43rA6ne0zACHX7dbx0U4c6NLLDYer+3lFAGe8M
9y2ICgWk9aBnRaPaUKKIJhDpp4zEepMCAwEAAaOCAc8wggHLMB0GA1UdDgQWBBRBz7sIilZiDESP
GwAbpRjKtTIrajAhBgNVHSMEGgQYMBaAFNn4T+T2AbGNdK0uQPH1CbqIJeqNMA4GA1UdDwEB/wQE
AwIA+DAnBgNVHSUEIDAeBggrBgEFBQcDAgYIKwYBBQUHAwMGCCsGAQUFBwMEMBEGCWCGSAGG+EIB
AQQEAwIAsDAiBgNVHREEGzAZgRdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTBRBgNVHSAESjBIMEYG
CCsGBAGYVB4BMDowOAYIKwYBBQUHAgEWLGh0dHA6Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3Jl
ZW1lbnRfMS5odG1sMEQGCWCGSAGG+EIBAwQ3FjVodHRwOi8vd3d3LnNtZW1lLmNvbS9zZXJ2bGV0
cy9zbWVtZV9jYS9jaGVja19yZXZva2VkPzBBBglghkgBhvhCAQcENBYyaHR0cDovL3d3dy5zbWVt
ZS5jb20vc2VydmxldHMvc21lbWVfY2EvcmVuZXdfY2VydD8wOwYJYIZIAYb4QgEIBC4WLGh0dHA6
Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3JlZW1lbnRfMS5odG1sMAsGCSqGSIb3DQEBBQOBgQB3
OYc+W2F6MemxaU4Udxf7CRVZ/fR8/zEs+mpb9WIT2Dsft7XRVKP/XWZeQwx5iBoFOaU6/Xf3yqr4
k6nqhEoj1sPYD5QuTS9M/NhPYovbyf/zzUcXGTV+JRK6TgTMbIbfyuMDfBKKfHXIv5gmJfZUCNhY
N8C00T8yX9sEVYpzfzGCAg4wggIKAgEBME4wNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwG
A1UEChMFU01lbWUxCzAJBgNVBAYTAlVTAhUA2ddU4gPXfqp8eqA1oMK75xhpMM0wCQYFKw4DAhoF
AKCCARYwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNOTkxMTIyMjAw
ODAwWjAjBgkqhkiG9w0BCQQxFgQUBdgjSDcpnR2EJcDFK2skB/DlnoEwWAYJKoZIhvcNAQkPMUsw
STAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwBwYF
Kw4DAhowCgYIKoZIhvcNAgUwXQYJKwYBBAGCNxAEMVAwTjA1MRYwFAYDVQQDEw1TTWVtZSBSb290
IENBMQ4wDAYDVQQKEwVTTWVtZTELMAkGA1UEBhMCVVMCFQDZ11TiA9d+qnx6oDWgwrvnGGkwzTAN
BgkqhkiG9w0BAQEFAASBgDZrQXq3paFT0/wSmjF07F1aFaSLQDaVMzPFcaDkEiXIAMneugvSdduZ
o/W6+y9R89kXdg9DJyGTym1wDe0fR3l9zbraPCh/U4jmU15SpoVyftjdWpZDwWdb43x4im44uXxj
xuc9jnthCBqtWlsqtfo9ue0jBaYy0wB7QjmfOanKAAAAAAAA

------=_NextPart_000_003E_01BF34E2.38788920--



From owner-ietf-smime@imc.org  Mon Nov 22 16:50:36 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA09595
	for <smime-archive@odin.ietf.org>; Mon, 22 Nov 1999 16:50:34 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id MAA25902
	for ietf-smime-bks; Mon, 22 Nov 1999 12:50:34 -0800 (PST)
Received: from gandalf.trustpoint.com (IDENT:root@gandalf.trustpoint.com [216.100.231.61])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA25898;
	Mon, 22 Nov 1999 12:50:32 -0800 (PST)
Received: from himansu (himansu [192.168.42.5])
	by gandalf.trustpoint.com (8.8.7/8.8.7) with SMTP id MAA09550;
	Mon, 22 Nov 1999 12:52:06 -0800
From: "John C. Kennedy" <jkennedy@trustpoint.com>
To: "Russ Housley" <housley@spyrus.com>
Cc: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>, <ietf-smime@imc.org>,
        <ipsec@lists.tislabs.com>, <ekr@rtfm.com>,
        <robert.zuccherato@entrust.com>, <djohnson@certicom.com>,
        <wpolk@nist.gov>, <jis@mit.edu>, <mleech@nortelnetworks.com>,
        "Elaine Barker" <elaine.barker@nist.gov>,
        "Sharon Keller" <skeller@nist.gov>,
        "Simon Blake-Wilson" <sblakewi@certicom.com>,
        "Phil Griffin" <Phil_Griffin@certicom.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Date: Mon, 22 Nov 1999 12:57:13 -0800
MIME-Version: 1.0
Message-ID: <NDBBKGCMPJCKIDPKAHACGEPBCAAA.jkennedy@trustpoint.com>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Content-Type: multipart/signed;
	protocol="application/x-pkcs7-signature";
	micalg=SHA1;
	boundary="----=_NextPart_000_0056_01BF34E9.03F25260"
Importance: Normal
In-Reply-To: <4.2.0.58.19991122105512.009c6e00@mail.spyrus.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a multi-part message in MIME format.

------=_NextPart_000_0056_01BF34E9.03F25260
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Russ,

1. With all due respect, saying that I have been "out of the loop" is not
quite correct.  I have continued to track the output of both X9F1 and IETF
with regards to X9.42 and DH for the last couple of years. I have copies
of X9.42 drafts up through February 1999.  One does not have to be "in the
loop" to see the inconsistencies I have pointed out.

2. The PKIX "son-of-2459" work, of which mostly only the ASN.1 portion of
X9.42 is relevant, is probably correct.  What is a bigger problem is that
RFC 2631 (Diffie-Hellman Key Agreement Method) by Eric Rescorla references
a 1998 draft. The related drafts, <draft-ietf-smime-small-subgroup-02.txt>
and <draft-ietf-pkix-dhpop-02.txt>, reference RFC 2631.  Is there proper
alignment in these works with the current state of X9.42?  I don't think
so.  How would the larger IETF community know if they were?  Is ANSI
keeping all these authors "in the loop"?

3. FIPS 186-1 on DSA and rDSA is a good example.  If the X9.42
specification had been kept as simple as FIPS 186 we wouldn't be where we
are now.  It is unfortunate that crypto-politics and other machinations
did not allow NIST to handle this work independent of ANSI from the
beginning.


-John
jkennedy@trustpoint.com


> -----Original Message-----
> From: Russ Housley [mailto:housley@spyrus.com]

> John:
>
> You have been out of the loop for over two years, and your
> observation are
> simply incorrect!
>



> The people that have been working on the PKIX and S/MIME standards that
> refer to X9.42 have been given every version of the document as it
became
> available to the X9F1 working group participants.  And, X9F1 has
> worked to
> ensure that they did not change the parts of X9.42 that were
> adopted by the
> IETF.
>
> Peter may not like the minor differences between X9.42 and DSA.  But the
> IETF documents are aligned with the X9.42 (just as they claim).  By the
> way, FIPS 186 contains no ASN.1; it only contains the algorithm
> specification.
>
> Russ
>
>
> At 01:17 AM 11/21/99 -0800, John C. Kennedy wrote:
> >(A long but hopefully illuminating follow-up regarding ANSI X9.42)
> >
> >(**Summary: The use or referencing of the ANSI X9.42
> (Diffie-Hellman) drafts
> >in IETF standards has resulted in the propagation of a number of
> errors and
> >inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
> >whether the still unratified ANSI X9.42 draft should be used as
> a basis or
> >even a reference for ongoing IETF Diffie-Hellman protocol
standardization
> >work.)
> >
> >Peter,
> >
> >I was the editor of the ANSI X9.42 Diffie-Hellman draft up until
> about April
> >of 1997 when I changed employers and passed the X9.42 editing
> torch.  Since
> >my current work has given me a reason to wade back into the IETF
> process, I
> >wanted to share a few comments and provide some additional data on the
> >apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
> >years later it seems to still be a bit of a mess in need of some
> tidying up.
> >
> >(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
> >believe this may be a draft that I "strategically distributed" to a few
> >select people working in IPSEC, PKIX, and other IETF working
> groups around
> >that time.  ANSI X9F has never had a lot of interest in seeing X9.42
> >reviewed or adopted by IETF.  [In fact, it is ridiculous that
> after almost
> >five years of work and innumerable rewrites, neither ANSI or NIST have
> >published an authoritative interoperability standard for one the most
> >fundamental and powerful public key techniques for key agreement we
have.
> >(Hint: It is not because of patents or because it is too difficult to
> >communicate.)]
> >
> >(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a
> 1998 draft
> >of X9.42.  This X9.42 draft is probably the one made available by ANSI
to
> >IEEE P1363 members at
> >http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You
will
> >need an IEEE P1363 password to get at this.)  This draft is
> better than the
> >1997 draft, but still has problems.  Since I have not been involved
with
> >ANSI for about 3 years, I can't comment on where the X9.42 draft
> currently
> >stands.  Since the X9.42 draft document is (still!) not public, it is
not
> >clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
> >currently a proposed standard in IETF.  Since RFC 2631 propagates
errors
> >that existed in the 1998 X9.42 draft, a second look at it is
> probably called
> >for. (These errors are noted below)
> >
> >(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any
Diffie-Hellman
> >standards.  While the techniques given in this document are
> mathematically
> >accurate and certainly filled a gap in the IPSEC work at the time, the
> >OAKLEY RFC doesn't quite provide all the pieces needed to link
> up with PKIX
> >and some other security standards.
> >
> >(4) The following drafts contain relevant references to Diffie-Hellman
or
> >related protocols.  The first two reference RFC 2631 and the second
> >specifies a new DH variant altogether:
> >draft-ietf-smime-small-subgroup-02.txt
> >draft-ietf-pkix-dhpop-02.txt
> >draft-ietf-secsh-transport-06.txt
> >
> >(5) Both of the ANSI documents currently referenced were drafts
> and probably
> >weren't the best basis for IETF standards.  Given the lack of
> anything else
> >to point to, I can't say I blame the authors, however.  They
> certainly meant
> >well.  What is also unfortunate is that IETF community has not
> been provided
> >with access to more current X9.42 drafts.  This is, IMHO,
> probably related
> >to the situation I pointed out in (1).
> >
> >Now, in reponse to your observations:
> >
> >(6) RFC 2631 states "X9.42 requires that the private key x be in the
> >interval [2, (q - 2)]"
> >In other words, (1 < x < q-1).  **It is quite clear that the referenced
> >X9.42 draft is not only wrong but inconsistent**.  And in a number of
> >places.  The Diffie-Hellman private key x should be chosen in the
closed
> >interval [2^(m-1), q-1], where m is the minimum length in bits
acceptable
> >for the private key.  (Typically m>=160, but your mileage may
> vary...)  This
> >is consistent with security recommendations in the current IEEE P1363
> >documents as well as definitions in
> draft-ietf-smime-small-subgroup-02.txt,
> >draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical
> subtlety I have
> >forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up
to
> >correct me.)
> >
> >Note that choosing x in [1, q-1] will work just fine mathematically,
but
> >does not reflect or enforce the minimum key size requirement.
> Note that if
> >the size of q is at least a few bit greater than m and you are
> using a good
> >RNG to pick x, the point is probably moot anyway.  If you are using a
> >long-term (aka "static") DH keys, however, it probably not a bad
> idea to put
> >the minimum keysize check in your keygen routine as a "belt and
> suspenders"
> >type measure.
> >
> >(7) The domain parameter generation routines in X9.42 were in
> fact derived
> >from those in the FIP 186 spec to allow re-use of DSA parameters
> (p, q, and
> >g) with X9.42 if desired.  I can't say I am a big fan of this because
it
> >forces q to 160 bits which is probably not appropriate if you intend to
> >enforce a minimum DH private key size greater than 160.
> >
> >(8) The parameter order switch was not a deliberate booby trap,
although
> >these types of things do help to keep crypto engineers on their
> toes. :)  As
> >I recall, the parameters q and j were added when concerns about small
> >subgroup attacks on Diffie-Hellman surfaced.  It is more of a
coincidence
> >that the DSA algorithm exploits the use of a subgroup also defined by a
> >prime called q.  In other words, DSA included q from the beginning
while
> >X9.42 added q as a security enhancement.  The ASN.1 encoding
> choices are an
> >artifact of the development process, not a deliberate reversal.
> If you feel
> >like lobbying ANSI X9F to change the ordering to make everyone's life
> >easier, have at it.  I wouldn't hold my breath however. :)
> >
> >(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
> >  DomainParameters ::= SEQUENCE {
> >               p       INTEGER, -- odd prime, p=jq +1
> >               g       INTEGER, -- generator, g
> >               q       INTEGER, -- factor of p-1
> >               j       INTEGER OPTIONAL, -- subgroup factor
> >               validationParms  ValidationParms OPTIONAL }
> >
> >         ValidationParms ::= SEQUENCE {
> >               seed             BIT STRING,
> >               pgenCounter      INTEGER }
> >
> >whereas the 1998 X9.42 draft shows them as:
> >
> >DomainParameters ::= SEQUENCE {  -- Galois field group parameters
> >    p                INTEGER,        -- odd prime, p = jq + 1
> >    g                INTEGER,        -- generator, g
> >    q                INTEGER,        -- prime factor of p-1
> >    j                INTEGER,        -- subgroup factor, j >= 2
> >    validationParms  ValidationParms OPTIONAL
> >(**Note q is no longer optional.** JK)
> >
> >if you can find a copy of the 1997 draft (which I happen to
> have) we see the
> >original version:
> >
> >DomainParameters ::= SEQUENCE {  -- Galois field group parameters
> >    p                INTEGER,        -- odd prime, p = jq + 1
> >    g                INTEGER,        -- generator, g
> >    q                INTEGER OPTIONAL,        -- prime factor of p-1
> >    j                INTEGER OPTIONAL,        -- subgroup factor, j >=
2
> >    validationParms  ValidationParms OPTIONAL
> >
> >(This early draft reflects my admitted ignorance of proper ASN.1 at the
> >time. You cannot have multiple optional INTEGERS without tags on them.)
> >
> >My guess is that the middle version (i.e., with only ValidationParms
> >optional) is the preferred version, which means RFC 2459 should
> probably be
> >changed.  I do not know what the current X9.42 draft gives.
> >
> >****Conclusion****
> >(10) Because of the aforementioned errors and inconsistencies, I have
> >serious reservations about the continued use or referencing of
> ANSI X9.42 in
> >IETF drafts or standards.  The use or referencing of the ANSI
> X9.42 draft in
> >IETF standards has resulted in the propagation of a number of errors
and
> >inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
> >whether the apparently still unratified and possibly unstable ANSI
X9.42
> >draft should be used as a basis or reference for ongoing IETF
> Diffie-Hellman
> >protocol standardization efforts.  Because of this, I respectfully
submit
> >that the IETF should consider whether RFC 2631 should be deprecated and
> >rewritten in a manner which removes unnecessary references to
> the mysterious
> >and forever-unpublished ANSI X9.42 draft.
> >
> >
> >-John Kennedy
> >jkennedy@trustpoint.com
> >
> >
> >
> >-----Original Message-----
> >From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
> >Sent: Sunday, November 21, 1999 1:58 PM
> >To: ietf-pkix@imc.org; ietf-smime@imc.org
> >Subject: FIPS 186 and X9.42: One of these things is not like the other
> >
> >
> >FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
> >generation algorithm, and have domain parameters which look identical,
> >however
> >there are two subtle differences between them, one of which is really
> >annoying.
> >
> >The annoying difference is that when writing the domain parameters, the
> >order
> >of q and g is reversed for FIPS 186 and X9.42 keys, so that
> while DSA domain
> >parameters are written (p, q, g), exactly the same domain parameters
when
> >viewed as X9.42 values are written (p, g, q).  This isn't helped
> by the fact
> >that in many fonts lowercase q and g look very similar.  Apart
> from the fact
> >that it's a booby-trap for implementors, it also means that if the
domain
> >parameters are identified in the traditional way (SHA-1 hash),
identical
> >parameters will appear to be different depending on whether you're
> >interpreting
> >them as DSA/KEA or DH parameters.
> >
> >The second difference is in the allowed range for x:
> >
> >   FIPS 186: 0 < x < q (ie x = 1...q-1)
> >   X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x =
2..q-2)
> >
> >This looks like a transcription error from FIPS 186, given that using
any
> >x < ~2^160 is unsound I can't see why there'd be any difference between
1
> >and 2
> >as a lower bound.
> >
> >Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
> >warnings
> >to the effect that although the parameters are the same internally,
their
> >external representations differ.
> >
> >Does anyone know why X9.42 decided to reverse the parameter order?
> >
> >(The motivation for this post is that ages ago I solved the
> problem of the
> >  reversed parameters by swapping the pointers for the X9.42 g
> and q values
> >so
> >  they were read and written in the correct order, recently I was
looking
> >  through the code and wondered why it was working fine for both
> >interpretations
> >  of parameter ordering.  There's now a big comment block by the code
> >explaining
> >  the Bug which Isn't)
> >
> >Peter.

------=_NextPart_000_0056_01BF34E9.03F25260
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Disposition: attachment;
	filename="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGhzCCAo8w
ggH6oAMCAQICFQDZ+E/k9gGxjXStLkDx9Qm6iCXqjTALBgkqhkiG9w0BAQUwNTEWMBQGA1UEAxMN
U01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01lbWUxCzAJBgNVBAYTAlVTMB4XDTk5MDYyNDIzNDQw
OFoXDTE0MDYyNDIzNDQwOFowNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01l
bWUxCzAJBgNVBAYTAlVTMIGdMAsGCSqGSIb3DQEBAQOBjQAwgYkCgYEAoh2u/ZzVrjTtXzowWcH1
vVHqUSJRsAF+TunEsqbZsn755D6Y0xe2ruYlNMEW7sExSoUYPQNR7cTQWwcFSyE3FtDhGGkYUt5O
UgPXZ5HVuG/Q4UwocCbOx4CIIfNJJevfEw9MvthYugg2J13XBW5iUonP5aY5rO6VrQedIa1+q8kC
AwEAAaOBoDCBnTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNn4T+T2AbGNdK0uQPH1CbqI
JeqNMB0GA1UdDgQWBBTZ+E/k9gGxjXStLkDx9Qm6iCXqjTAOBgNVHQ8BAf8EBAMCAP4wJwYDVR0l
BCAwHgYIKwYBBQUHAwIGCCsGAQUFBwMDBggrBgEFBQcDBDARBglghkgBhvhCAQEEBAMCALcwCwYJ
KoZIhvcNAQEFA4GBAJLpYU+A1SKEVesAvpylZ//Fhq/fOZrVnxBgEVHC0RpLMnlPG/Y2XaZqmr42
bIwvqZ50m6R5o41mob2N4a78ty30kAOLEvsxFaK06iezfHFJGn9TbLPEi2BTaIWCJv77skLSVjUe
zzm5JAmaKwJ3txI6s4sbM6/rrnQ2oPa2/n+JMIID8DCCA1ugAwIBAgIVANnXVOID136qfHqgNaDC
u+cYaTDNMAsGCSqGSIb3DQEBBTA1MRYwFAYDVQQDEw1TTWVtZSBSb290IENBMQ4wDAYDVQQKEwVT
TWVtZTELMAkGA1UEBhMCVVMwHhcNOTkwODI1MDEzNjEyWhcNMDAwODI1MDEzNjEyWjBkMQswCQYD
VQQGEwJVUzETMBEGA1UEChMKVHJ1c3Rwb2ludDEYMBYGA1UEAxMPSm9obiBDLiBLZW5uZWR5MSYw
JAYJKoZIhvcNAQkBFhdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTCBnzANBgkqhkiG9w0BAQEFAAOB
jQAwgYkCgYEAm/78rZZNYaJ67AZjKMwFb3ky+57qdCpI0oAbPpQQqYJOAzm0f2Y4Nlz3QMC0scMp
lGvIpxr8qwMoPIReFo+X4e7QiyumvXfNkKSgFw43rA6ne0zACHX7dbx0U4c6NLLDYer+3lFAGe8M
9y2ICgWk9aBnRaPaUKKIJhDpp4zEepMCAwEAAaOCAc8wggHLMB0GA1UdDgQWBBRBz7sIilZiDESP
GwAbpRjKtTIrajAhBgNVHSMEGgQYMBaAFNn4T+T2AbGNdK0uQPH1CbqIJeqNMA4GA1UdDwEB/wQE
AwIA+DAnBgNVHSUEIDAeBggrBgEFBQcDAgYIKwYBBQUHAwMGCCsGAQUFBwMEMBEGCWCGSAGG+EIB
AQQEAwIAsDAiBgNVHREEGzAZgRdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTBRBgNVHSAESjBIMEYG
CCsGBAGYVB4BMDowOAYIKwYBBQUHAgEWLGh0dHA6Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3Jl
ZW1lbnRfMS5odG1sMEQGCWCGSAGG+EIBAwQ3FjVodHRwOi8vd3d3LnNtZW1lLmNvbS9zZXJ2bGV0
cy9zbWVtZV9jYS9jaGVja19yZXZva2VkPzBBBglghkgBhvhCAQcENBYyaHR0cDovL3d3dy5zbWVt
ZS5jb20vc2VydmxldHMvc21lbWVfY2EvcmVuZXdfY2VydD8wOwYJYIZIAYb4QgEIBC4WLGh0dHA6
Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3JlZW1lbnRfMS5odG1sMAsGCSqGSIb3DQEBBQOBgQB3
OYc+W2F6MemxaU4Udxf7CRVZ/fR8/zEs+mpb9WIT2Dsft7XRVKP/XWZeQwx5iBoFOaU6/Xf3yqr4
k6nqhEoj1sPYD5QuTS9M/NhPYovbyf/zzUcXGTV+JRK6TgTMbIbfyuMDfBKKfHXIv5gmJfZUCNhY
N8C00T8yX9sEVYpzfzGCAg4wggIKAgEBME4wNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwG
A1UEChMFU01lbWUxCzAJBgNVBAYTAlVTAhUA2ddU4gPXfqp8eqA1oMK75xhpMM0wCQYFKw4DAhoF
AKCCARYwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNOTkxMTIyMjA1
NjM4WjAjBgkqhkiG9w0BCQQxFgQUG7z6EA/nfah6ILD1P+sSefziq/AwWAYJKoZIhvcNAQkPMUsw
STAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwBwYF
Kw4DAhowCgYIKoZIhvcNAgUwXQYJKwYBBAGCNxAEMVAwTjA1MRYwFAYDVQQDEw1TTWVtZSBSb290
IENBMQ4wDAYDVQQKEwVTTWVtZTELMAkGA1UEBhMCVVMCFQDZ11TiA9d+qnx6oDWgwrvnGGkwzTAN
BgkqhkiG9w0BAQEFAASBgHwXLP1sgy74hdtWvoz4y9Z2lt4LTBnorA5tLYxSD3XMKSmaPvNr8/b4
rS5foo+1N5YyVBy+G/MDwM21PeyUZeneUwJ+XJaZOLRLavB2z7diCcuDd3A1nY/xPRoTQfsK587o
Yoad3QzhM3tgTFSZg+OLV72KiwfSgKX+3YH/hb0yAAAAAAAA

------=_NextPart_000_0056_01BF34E9.03F25260--



From owner-ietf-smime@imc.org  Mon Nov 22 18:19:01 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA13011
	for <smime-archive@odin.ietf.org>; Mon, 22 Nov 1999 18:19:01 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id OAA28291
	for ietf-smime-bks; Mon, 22 Nov 1999 14:37:50 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA28287;
	Mon, 22 Nov 1999 14:37:45 -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.9.3/8.8.6/cs-master) with SMTP id LAA25088; Tue, 23 Nov 1999 11:39:09 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9)
	id <94331035024854>; Tue, 23 Nov 1999 11:39:10 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: elaine.barker@nist.gov, ietf-pkix@imc.org, ietf-smime@imc.org,
        ipsec@lists.tislabs.com, skeller@nist.gov
Subject: Re: FIPS 186 and X9.42: One of these things is not like the other
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 Nov 1999 11:39:10 (NZDT)
Message-ID: <94331035024854@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

[Recipient list trimmed somewhat, I hope this is going to appropriate people]

Russ Housley <housley@spyrus.com> writes:

>Both of these parameter structures are included in RFC 2459.  Concerns about
>alignment of the two structures should have been raised many months ago.
>
>While it might have been nice to have the two parameter definitions use the
>same order for p, q, and g, this is not a show stopper.  People have
>implemented with against the current specifications, and I am strongly
>opposed to changes at this late date.

I had the impression that for an outsider to influence ANSI standards was close
to impossible (if it wasn't for P1363 I'd never even have seen X9.42), which is
why I never commented on it.  Besides, I can't go around nitpicking *every*
standard around, there are only so many hours in the day :-).  That's why, in
my original message, I merely suggested that any new work which uses X9.42 and
FIPS 186/X9.30/whatever other standard it appears in point out that although
the keys look the same and quack the same, they have two of the parameters
(with names which look almost identical) reversed in the ASN.1 form.  This is a
trap just waiting to catch the unwary.

[Having said that, I'd certainly like to see the ASN.1 fixed so the two match
 up, but I guess that's unlikely to happen at this stage].

Peter.




From owner-ietf-smime@imc.org  Tue Nov 23 14:26:34 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA20637
	for <smime-archive@odin.ietf.org>; Tue, 23 Nov 1999 14:26:32 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id KAA09911
	for ietf-smime-bks; Tue, 23 Nov 1999 10:23:49 -0800 (PST)
Received: from sothmxs01.entrust.com (gatekeeper.entrust.com [204.101.128.170])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA09907
	for <ietf-smime@imc.org>; Tue, 23 Nov 1999 10:23:48 -0800 (PST)
Received: by sothmxs01.entrust.com with Internet Mail Service (5.5.2448.0)
	id <XNNP5C2D>; Tue, 23 Nov 1999 13:25:11 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B1017156E9@sothmxs06.entrust.com>
From: Carlisle Adams <carlisle.adams@entrust.com>
To: "'Jim Schaad (Exchange)'" <jimsch@EXCHANGE.MICROSOFT.com>
Cc: ietf-smime@imc.org
Subject: RE: Comments on draft-ietf-smime-cast-128-00.txt
Date: Tue, 23 Nov 1999 13:25:10 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01BF35E0.13921370"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF35E0.13921370
Content-Type: text/plain

Hi Jim,

Thank you for your comments.  I will take these into account (along with the
name change suggestion from Russ) when I update the draft.

Carlisle.


> ----------
> From: 	Jim Schaad (Exchange)[SMTP:jimsch@Exchange.Microsoft.com]
> Sent: 	Thursday, November 18, 1999 12:45 PM
> To: 	cadams@entrust.com
> Cc: 	ietf-smime@imc.org
> Subject: 	Comments on draft-ietf-smime-cast-128-00.txt
> 
> I have the following comments on this draft: 
> 
> 1.  You are currently missing an analogus statement to "Only 128-bit RC2
> keys may be used as key-encryption keys, and they must be used with the
> RC2ParameterVersion parameter set to 58." (from section 12.3.3.2 of RFC
> 2630).  This was deemed important by the group for inclusion to prevent
> the usage of weaker KEK than CEK keys.  (I do note that you have a should
> be equal in size in the security considerations.  I believe this should be
> moved up to the main document however to match CMS.)
> 
> 2.  Section 3 Para 1.  You state that you must include the above OIDs in
> the symmetric algorithms section of capabilities, but only one of the oids
> is a symmetric algorithm.  At the current time we are "implying" the key
> wrap from the symmetric algorithm as only same key wrap is supported in
> CMS.  Please change to the correct OID reference.
> 
> 3.  Section 3. Para 1.  You appear to state that the parameters could be
> either the SMIMECapabilitiesParametersForCAST5CBC or
> cast5CMSkeywrapParameter or cast5CBCParameters.  The last would lead to a
> different encoding from the first two and RFC 2633 states in section 2.5.2
> that capabilties must be single value.  Please determine which of the
> parameters is to be used.  I would also like to see the encoded binary
> sequence included in the document so that there is no question on the
> single encoding.  I plan to suggest that this be done for RFC 2633 on
> progression as well.
> 
> 4.  Section 2.1 para 5.  I'm sorry, but I don't have RFC 2144 in front of
> me.  If this document contains clear language on the use of the default IV
> of 0 then everything is fine.  If not please include a SHOULD NOT use the
> default IV.
> 
> jim 
> 
> 

------_=_NextPart_001_01BF35E0.13921370
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: Comments on draft-ietf-smime-cast-128-00.txt</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Hi =
Jim,</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Thank you =
for your comments.&nbsp; I will take these into account (along with the =
name change suggestion from Russ) when I update the draft.</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New =
Roman">Carlisle.</FONT>
</P>
<BR>
<UL>
<P><FONT SIZE=3D2 FACE=3D"MS Sans Serif">----------</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">From:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Jim Schaad =
(Exchange)[SMTP:jimsch@Exchange.Microsoft.com]</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Sent:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Thursday, November 18, 1999 12:45 =
PM</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">To:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">cadams@entrust.com</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Cc:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">ietf-smime@imc.org</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Subject:</FONT></B> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">Comments on draft-ietf-smime-cast-128-00.txt</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I have the following comments on this =
draft:</FONT><FONT FACE=3D"Arial"> </FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">1.=A0 You are currently missing an =
analogus statement to &quot;Only 128-bit RC2 keys may be used as =
key-encryption keys, and they must be used with the RC2ParameterVersion =
parameter set to 58.&quot; (from section 12.3.3.2 of RFC 2630).=A0 This =
was deemed important by the group for inclusion to prevent the usage of =
weaker KEK than CEK keys.=A0 (I do note that you have a should be equal =
in size in the security considerations.=A0 I believe this should be =
moved up to the main document however to match CMS.)</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">2.=A0 Section 3 Para 1.=A0 You state =
that you must include the above OIDs in the symmetric algorithms =
section of capabilities, but only one of the oids is a symmetric =
algorithm.=A0 At the current time we are &quot;implying&quot; the key =
wrap from the symmetric algorithm as only same key wrap is supported in =
CMS.=A0 Please change to the correct OID reference.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">3.=A0 Section 3. Para 1.=A0 You appear =
to state that the parameters could be either the =
SMIMECapabilitiesParametersForCAST5CBC or cast5CMSkeywrapParameter or =
cast5CBCParameters.=A0 The last would lead to a different encoding from =
the first two and RFC 2633 states in section 2.5.2 that capabilties =
must be single value.=A0 Please determine which of the parameters is to =
be used.=A0 I would also like to see the encoded binary sequence =
included in the document so that there is no question on the single =
encoding.=A0 I plan to suggest that this be done for RFC 2633 on =
progression as well.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">4.=A0 Section 2.1 para 5.=A0 I'm =
sorry, but I don't have RFC 2144 in front of me.=A0 If this document =
contains clear language on the use of the default IV of 0 then =
everything is fine.=A0 If not please include a SHOULD NOT use the =
default IV.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">jim</FONT>=20
</P>
<BR>
</UL>
</BODY>
</HTML>
------_=_NextPart_001_01BF35E0.13921370--


From owner-ietf-smime@imc.org  Tue Nov 23 16:26:05 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA23073
	for <smime-archive@odin.ietf.org>; Tue, 23 Nov 1999 16:26:05 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id MAA13156
	for ietf-smime-bks; Tue, 23 Nov 1999 12:45:45 -0800 (PST)
Received: from gandalf.trustpoint.com (IDENT:root@gandalf.trustpoint.com [216.100.231.61])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA13152;
	Tue, 23 Nov 1999 12:45:44 -0800 (PST)
Received: from himansu (himansu [192.168.42.5])
	by gandalf.trustpoint.com (8.8.7/8.8.7) with SMTP id MAA16772;
	Tue, 23 Nov 1999 12:47:29 -0800
From: "John C. Kennedy" <jkennedy@trustpoint.com>
To: "Russ Housley" <housley@spyrus.com>
Cc: <ietf-pkix@imc.org>, <ietf-smime@imc.org>, <ekr@rtfm.com>,
        <robert.zuccherato@entrust.com>, <djohnson@certicom.com>,
        <wpolk@nist.gov>, <jis@mit.edu>, <mleech@nortelnetworks.com>,
        "Elaine Barker" <elaine.barker@nist.gov>,
        "Sharon Keller" <skeller@nist.gov>,
        "Simon Blake-Wilson" <sblakewi@certicom.com>,
        "Phil Griffin" <Phil_Griffin@certicom.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Date: Tue, 23 Nov 1999 12:52:36 -0800
Message-ID: <NDBBKGCMPJCKIDPKAHACGEBECBAA.jkennedy@trustpoint.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 IMO, Build 9.0.2416 (9.0.2910.0)
In-reply-to: <4.2.0.58.19991123091224.009e5ee0@mail.spyrus.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>
Content-Transfer-Encoding: 7bit



Russ,

No harm done.  At the same time, I apologize if you or anyone else might
have taken my comments personally.  I know that trying to align the work of
different standards groups is like trying to herd cats.  Especially in the
case of ANSI and IETF. (In fact, my doctor said that I am only allowed to
resume standards work if I boost my medication. ;-)

Moving forward, I think we still need to revisit the RFC 2631 / X9.42
alignment issue.  If a implementor claims to support "X9.42 Diffie-Hellman",
but has based their implementation on RFC 2631, no one is particularly well
served.

1) If X9.42 is not stable, then it is not a good foundation for derivative
IETF standards like it is now.

2) If X9.42 *is* stable (which I doubt purely based on experience), then RFC
2631 should probably look more like draft-ietf-smime-ecc-00.txt on.  I.e., a
profile that does not duplicate or approximate the mathematical details of
the referenced draft standard.  This is expecially true if it gives
attribution to X9.42.  If close is good enough, then perhaps we just profile
IEEE P1363 and reference it as the base standard instead.  P1363 can supply
all the bells and whistles in X9.42 except for the ASN.1 and test vectors.
This might also help avoid copyright infringement issues that might
reasonably argued with regards to RFC 2631 and X9.42.

3) I would like to continue this discussion but without continuing to copy
so many people and lists.  I have already pruned out IPSEC.  Please advise
whether this should just continue only within the S/Mime list or if it
affects all of the security groups as I believe it might.

Regards,

-John Kennedy


> -----Original Message-----
> From: Russ Housley [mailto:housley@spyrus.com]
> Sent: Tuesday, November 23, 1999 6:18 AM
> To: John C. Kennedy
> Cc: pgut001@cs.aucKland.ac.nz; ietf-pkix@imc.org; ietf-smime@imc.org;
> ipsec@lists.tislabs.com; ekr@rtfm.com; robert.zuccherato@entrust.com;
> djohnson@certicom.com; wpolk@nist.gov; jis@mit.edu;
> mleech@nortelnetworks.com; Elaine Barker; Sharon Keller; Simon
> Blake-Wilson; Phil Griffin
> Subject: RE: FIPS 186 and X9.42: One of these things is not like the
> other
>
>
> John:
>
> At 12:57 PM 11/22/99 -0800, John C. Kennedy wrote:
> >1. With all due respect, saying that I have been "out of the loop" is not
> >quite correct.  I have continued to track the output of both
> X9F1 and IETF
> >with regards to X9.42 and DH for the last couple of years. I have copies
> >of X9.42 drafts up through February 1999.  One does not have to
> be "in the
> >loop" to see the inconsistencies I have pointed out.
> >
> >2. The PKIX "son-of-2459" work, of which mostly only the ASN.1 portion of
> >X9.42 is relevant, is probably correct.  What is a bigger problem is that
> >RFC 2631 (Diffie-Hellman Key Agreement Method) by Eric Rescorla
> references
> >a 1998 draft. The related drafts,
> <draft-ietf-smime-small-subgroup-02.txt>
> >and <draft-ietf-pkix-dhpop-02.txt>, reference RFC 2631.  Is there proper
> >alignment in these works with the current state of X9.42?  I don't think
> >so.  How would the larger IETF community know if they were?  Is ANSI
> >keeping all these authors "in the loop"?
> >
> >3. FIPS 186-1 on DSA and rDSA is a good example.  If the X9.42
> >specification had been kept as simple as FIPS 186 we wouldn't be where we
> >are now.  It is unfortunate that crypto-politics and other machinations
> >did not allow NIST to handle this work independent of ANSI from the
> >beginning.
>
> 1.  I apologize.  You certainly have not taken an active role in the IETF
> or X9F1 for the last few years.  I am glad to hear that you have kept
> current.  I would encourage you to become actively involved again.
>
> 2.  Once the IETF adopted X9.42, I worked diligently with X9F1 to ensure
> that none of the aspects of X9.42 that were adopted by the IETF were
> changed.  We made a final comparison of the X9.42 draft and RFC 2631 just
> prior to publication of the RFC.  I have commitment that the
> parts of X9.42
> that are included in RFC 2631 will not be changed unless a
> security problem
> is discovered.  If a security problem is discovered, then the IETF will
> want to update RFC 2631 anyway, so this is not a concern.
>
> 3.  Agree.
>
> Russ



From owner-ietf-smime@imc.org  Thu Nov 25 05:40:53 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA15923
	for <smime-archive@odin.ietf.org>; Thu, 25 Nov 1999 05:40:52 -0500 (EST)
Received: by ns.secondary.com (8.9.3/8.9.3) id BAA08106
	for ietf-smime-bks; Thu, 25 Nov 1999 01:57:31 -0800 (PST)
Received: from s2.smtp.oleane.net (s2.smtp.oleane.net [195.25.12.6])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id BAA07631;
	Thu, 25 Nov 1999 01:47:27 -0800 (PST)
Received: from Dell  (dyn-1-1-020.Vin.dialup.oleane.fr [195.25.4.20])  by s2.smtp.oleane.net  with SMTP id KAA75105; Thu, 25 Nov 1999 10:48:42 +0100 (CET)
Message-ID: <011701bf372a$15705260$0701a8c0@oleane.com>
From: "Peter Lewis" <peter.lewis@upperside.fr>
To: <imesh-cip@mailbase.ac.uk>
Subject: IPSec 2000 
Date: Thu, 25 Nov 1999 10:47:18 +0100
Organization: Upperside
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0112_01BF3732.7200A2C0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a multi-part message in MIME format.

------=_NextPart_000_0112_01BF3732.7200A2C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

IPSec 2000 Global Summit: the international rendez-vous. A CFP is online =
at:
http://www.upperside.fr/baipsecy2k.htm


------=_NextPart_000_0112_01BF3732.7200A2C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT color=3D#000000 size=3D3>IPSec 2000 Global Summit: the =
international=20
rendez-vous. A CFP is online at:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D3><A=20
href=3D"http://www.upperside.fr/baipsecy2k.htm">http://www.upperside.fr/b=
aipsecy2k.htm</A></FONT></DIV>
<DIV>&nbsp;</DIV></DIV></BODY></HTML>

------=_NextPart_000_0112_01BF3732.7200A2C0--



From owner-ietf-smime@imc.org  Mon Nov 29 15:41:25 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA04683
	for <smime-archive@odin.ietf.org>; Mon, 29 Nov 1999 15:41:24 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id LAA01240
	for ietf-smime-bks; Mon, 29 Nov 1999 11:24:44 -0800 (PST)
Received: from tholian.securitydynamics.com (tholian.securid.com [204.167.112.129])
	by ns.secondary.com (8.9.3/8.9.3) with SMTP id LAA01236
	for <ietf-smime@imc.org>; Mon, 29 Nov 1999 11:24:42 -0800 (PST)
Received: from sdtihq24.securitydynamics.com by tholian.securitydynamics.com
          via smtpd (for mail.imc.org [208.184.76.43]) with SMTP; 29 Nov 1999 19:25:21 UT
Received: from exna00.securitydynamics.com (exna00.securitydynamics.com [10.2.1.110])
	by sdtihq24.securid.com (Pro-8.9.3/Pro-8.9.3) with ESMTP id OAA11371
	for <ietf-smime@imc.org>; Mon, 29 Nov 1999 14:27:07 -0500 (EST)
Received: by exna00.securitydynamics.com with Internet Mail Service (5.5.2448.0)
	id <W2NW084V>; Mon, 29 Nov 1999 14:28:38 -0500
Message-ID: <D104150098E6D111B7830000F8D90AE8AE592D@exna02.securitydynamics.com>
From: "Linn, John" <jlinn@rsasecurity.com>
To: ietf-smime@imc.org
Subject: RE: Working Group Last Call: draft-ietf-smime-small-subgroup-02.t
	xt
Date: Mon, 29 Nov 1999 14:34:21 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

S/MIME WG:

Attached are a set of comments on draft-ietf-smime-small-subgroup-02, which
I've obtained and am relaying from Burt Kaliski of RSA Laboratories.

This is a useful and comprehensive treatment of "small-subgroup" attacks in
the context of S/MIME, and will be good to have as an Informational RFC.

Substantive comments:

Sec. 1, 1st para., after 4th line, add "Some possible non-S/MIME usages of
CMS are also considered, though with less emphasis than the cases arising in
S/MIME."  (See also comments re Sec. 2.1.)

Sec. 1.1: Give bounds on xa, xb.

Sec. 1.2: The case where the order r is a smooth but not necessarily small
number should also be mentioned, as it offers another avenue of attack. In
this case, the attacker needs to know the value ZZ computed from the user.
From the value the attacker can solve for the private key modulo r using the
Pohlig-Hellman algorithm. However, it's not as practical as the cases
already presented, where information about private key is recovered from the
*use* of ZZ, rather than ZZ itself, by exhaustive search.

Sec. 1.2, para. 3: There are q-1 possible values for ZZ in the ordinary
case, not q (assuming 1 \le xa \le q-1).

Sec. 2: Title says "Required," first para. says "should" -- generally it's
not clear from the terminology whether the protections are recommendations
or requirements. (See also Sec. 1, para. 1.) An alternative that avoids the
use of "required" is to describe situations in which an implementation "may
be vulnerable" to a small-subgroup attack, and the recommended
countermeasures in such situations.

Sec. 2.1, para. 3: A recipient mounting a small-subgroup attack will not
necessarily obtain the plaintext, because the recipient's public key is
invalid. However, the attacker might obtain the plaintext from another
recipient (perhaps one with a valid public key also controlled by the
attacker). Moreover, the attacker does not need to know the plaintext to
test whether a key is correct, provided that the plaintext has sufficient
redundancy (e.g., ASCII).

Also, is the static-static case relevant here? The introduction says that
the focus is on the ephemeral-static case as in S/MIME. If the static-static
case is also relevant, then the introduction should be changed. If the
static-static case is included for completeness, then perhaps the
ephemeral-ephemeral case should be included as well (moving text from Sec. 4
into Sec. 2).

Sec. 3.1, last para. (and elsewhere): The statements about patent coverage,
while helpful to the implementer, when omitted may give an unwarranted
assurance that there is no patent coverage (e.g., in Sec. 3.3), which would
contradict IETF's policy stated in Sec. 6. I'm not aware of patent coverage
on Sec. 3.3, but (mindful of Sec. 6) am concerned that the absence of a
patent caveat on only this subsection could appear as actionable guidance.

On a related point, RSA Laboratories makes no patent claims on the methods
in Sec. 3.4 ("Compatible Cofactor Exponentation") as further described in
reference [KALISKI].

Sec. 3.3, para. 1: An attacker can still find the two "trivial" elements of
small order, 1 and p-1; the statement about what is prevented should note
this.

In practice, wouldn't it be enough for j to be greater than or equal to
\sqrt(q), since that would meet the security bound for exhaustive search?
(But exhaustive search might not be the only attack?)

Sec. 3.3, para. 3: In this approach, q is large. It's worth noting that in
DSA, q is limited to 160 bits for performance reasons, but need not be the
case for DH.

Sec. 3.4 and 3.5: To explain the names, mention that j is the "cofactor",
and that the first method is compatible with ordinary DH in the case that
both parties' public keys are valid. If a party's public key is invalid,
then the resulting ZZ will either be 1 or an element of order q; the small
subgroup elements will either be detected or cancelled. Unlike public key
validation, the methods don't always detect attacks, but detection isn't
needed, just prevention.

Perhaps note the relative costs of key validation vs. cofactor
multiplication (depends on relative size of q vs. j).

Also note that both methods require that the cofactor is relatively prime to
the order q, i.e., gcd(j,q) = 1.

Sec. 4: This section seems somewhat misleading. Sec. 2 already makes it
clear that an ephemeral key is not worth attacking to recover the private
key. The main problem with the ephmeral-ephemeral case is not small-subgroup
attacks, but the fact that the opponent can substitute a different public
key in an attempt to eavesdrop. But this is to be expected in the basic
ephemeral-ephemeral case, since no authentication of either party is
provided. 

Editorial comments:

Sec. 1, para. 1, line 2: Change "are" to "is". 

Sec. 1, para. 4 (and elsewhere): "other party" is vague, recommend
"attacker" as a more specific term

Sec. 1.2, para. 3: Suggest "properly formed" instead of "properly formatted"
(the construction of the key is the issue, not its presentation) -- or more
generally "valid" vs. "invalid"

Sec. 3.3, para. 1: Suggest a different symbol than "j" to avoid confusion
with notation in Sec. 1.1

Appendix A: Statement about "ASN.1 modules" seems to be a cut-and-paste
error. 


From owner-ietf-smime@imc.org  Tue Nov 30 15:44:49 1999
Received: from ns.secondary.com (ns.secondary.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA04995
	for <smime-archive@odin.ietf.org>; Tue, 30 Nov 1999 15:44:46 -0500 (EST)
Received: (from majordomo@localhost)
	by ns.secondary.com (8.9.3/8.9.3) id LAA12787
	for ietf-smime-bks; Tue, 30 Nov 1999 11:21:42 -0800 (PST)
Received: from sothmxs01.entrust.com (gatekeeper.entrust.com [204.101.128.170])
	by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA12782
	for <ietf-smime@imc.org>; Tue, 30 Nov 1999 11:21:40 -0800 (PST)
Received: by sothmxs01.entrust.com with Internet Mail Service (5.5.2650.21)
	id <X7GB0YT1>; Tue, 30 Nov 1999 14:23:39 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B101063182@sothmxs06.entrust.com>
From: Robert Zuccherato <robert.zuccherato@entrust.com>
To: ietf-smime@imc.org, "'Linn, John'" <jlinn@rsasecurity.com>
Cc: "'Burt Kaliski'" <burt@RSA.COM>
Subject: RE: Working Group Last Call: draft-ietf-smime-small-subgroup-02.t
	 xt
Date: Tue, 30 Nov 1999 14:23:38 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01BF3B68.6764749C"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF3B68.6764749C
Content-Type: text/plain;
	charset="iso-8859-1"

John, Burt;  

Thanks for the comments.  My replies are below.

> ----------
> From: 	Linn, John[SMTP:jlinn@rsasecurity.com]
> Sent: 	Monday, November 29, 1999 2:34 PM
> To: 	ietf-smime@imc.org
> Subject: 	RE: Working Group Last Call:
> draft-ietf-smime-small-subgroup-02.t xt
> 
> Sec. 1, 1st para., after 4th line, add "Some possible non-S/MIME usages of
> CMS are also considered, though with less emphasis than the cases arising
> in
> S/MIME."  (See also comments re Sec. 2.1.)
> 
Agreed.

> Sec. 1.1: Give bounds on xa, xb.
> 
I will add "xa is in the interval [2, (q - 2)]" to the definition of xa.
Similarly for xb.

> Sec. 1.2: The case where the order r is a smooth but not necessarily small
> number should also be mentioned, as it offers another avenue of attack. In
> this case, the attacker needs to know the value ZZ computed from the user.
> From the value the attacker can solve for the private key modulo r using
> the
> Pohlig-Hellman algorithm. However, it's not as practical as the cases
> already presented, where information about private key is recovered from
> the
> *use* of ZZ, rather than ZZ itself, by exhaustive search.
> 
Agreed.  How about if I add a new paragraph at the end of the section
stating:

An attack is also possible if Party B has a public key yb of order r where r
factors into small integers but is not necessarily a small integer itself.
In this case, the attacker needs to know the value ZZ computed by Party A.
From this value Party B can solve for Party A's private key modulo r using
the Pohlig-Hellman [PH] algorithm.  However, this attack is not as practical
as the cases already presented, where information about the private key is
recovered from the *use* of ZZ, rather than ZZ itself, by exhaustive search.

> Sec. 1.2, para. 3: There are q-1 possible values for ZZ in the ordinary
> case, not q (assuming 1 \le xa \le q-1).
> 
Actually RFC 2631 requires 2 <=xa <= q-2, so there are only q-3 possible
values.  

> Sec. 2: Title says "Required," first para. says "should" -- generally it's
> not clear from the terminology whether the protections are recommendations
> or requirements. (See also Sec. 1, para. 1.) An alternative that avoids
> the
> use of "required" is to describe situations in which an implementation
> "may
> be vulnerable" to a small-subgroup attack, and the recommended
> countermeasures in such situations.
> 
I guess I am a little bit concerned that using "may be vulnerable" is not
quite descriptive or strong enough.  However, I agree that using the word
"required" creates confusion with actual requirements.  How about if I say
"situations where protection is necessary"? 

> Sec. 2.1, para. 3: A recipient mounting a small-subgroup attack will not
> necessarily obtain the plaintext, because the recipient's public key is
> invalid. However, the attacker might obtain the plaintext from another
> recipient (perhaps one with a valid public key also controlled by the
> attacker). Moreover, the attacker does not need to know the plaintext to
> test whether a key is correct, provided that the plaintext has sufficient
> redundancy (e.g., ASCII).
> 
Yes, this paragraph should be more clearly worded.  How about:

If the sender's key is static (i.e. static-static Diffie-Hellman is being
used), then protection is required because in this situation a recipient
mounting a small-subgroup attack may be able to obtain the plaintext from
another recipient (perhaps one with a valid public key also controlled by
the recipient) and therefore could obtain information about the private key.
Moreover, the attacker does not need to know the plaintext to test whether a
key is correct, provided that the plaintext has sufficient redundancy (e.g.,
ASCII).  This information could then be used to attack other messages
protected with the same static key.

> Also, is the static-static case relevant here? The introduction says that
> the focus is on the ephemeral-static case as in S/MIME. If the
> static-static
> case is also relevant, then the introduction should be changed. If the
> static-static case is included for completeness, then perhaps the
> ephemeral-ephemeral case should be included as well (moving text from Sec.
> 4
> into Sec. 2).
> 
Well, CMS [RFC 2630] requires only ephemeral-static.  However, RFC 2631
describes both ephemeral-static and static-static.  Thus, it was felt that
the static-static case was also relevant.  I will change the introduction to
include this.

> Sec. 3.1, last para. (and elsewhere): The statements about patent
> coverage,
> while helpful to the implementer, when omitted may give an unwarranted
> assurance that there is no patent coverage (e.g., in Sec. 3.3), which
> would
> contradict IETF's policy stated in Sec. 6. I'm not aware of patent
> coverage
> on Sec. 3.3, but (mindful of Sec. 6) am concerned that the absence of a
> patent caveat on only this subsection could appear as actionable guidance.
> 
I agree.  How about if I add a sentence following the first paragraph of
Section 3 stating "Implementer's should note that some of the procedures
described in this section may be the subject of patents or pending patents."

> On a related point, RSA Laboratories makes no patent claims on the methods
> in Sec. 3.4 ("Compatible Cofactor Exponentation") as further described in
> reference [KALISKI].
> 
> Sec. 3.3, para. 1: An attacker can still find the two "trivial" elements
> of
> small order, 1 and p-1; the statement about what is prevented should note
> this.
> 
I will change the second sentence to "This will prevent an attacker from
being able to find an element (other than 1 and p-1) of small order modulo
p, ... "

> In practice, wouldn't it be enough for j to be greater than or equal to
> \sqrt(q), since that would meet the security bound for exhaustive search?
> (But exhaustive search might not be the only attack?)
> 
As you mentioned in your comment on Section 1.2, if the attacker is able to
get ahold of ZZ then a Pohlig-Hellman attack (or a square-root type of
attack if r is prime) is possible.  Thus, I would prefer if we left the
recommendation being j greater than q.

> Sec. 3.3, para. 3: In this approach, q is large. It's worth noting that in
> DSA, q is limited to 160 bits for performance reasons, but need not be the
> case for DH.
> 
I will add your note to the paragraph.

> Sec. 3.4 and 3.5: To explain the names, mention that j is the "cofactor",
> and that the first method is compatible with ordinary DH in the case that
> both parties' public keys are valid. If a party's public key is invalid,
> then the resulting ZZ will either be 1 or an element of order q; the small
> subgroup elements will either be detected or cancelled. Unlike public key
> validation, the methods don't always detect attacks, but detection isn't
> needed, just prevention.
> 
> Perhaps note the relative costs of key validation vs. cofactor
> multiplication (depends on relative size of q vs. j).
> 
> Also note that both methods require that the cofactor is relatively prime
> to
> the order q, i.e., gcd(j,q) = 1.
> 
I will add this information to these sections. 

> Sec. 4: This section seems somewhat misleading. Sec. 2 already makes it
> clear that an ephemeral key is not worth attacking to recover the private
> key. 
> 
Agreed.  I will delete the second sentence of the second paragraph.  ("In
this situation a third party attacker could modify the other entity's public
key in order to determine the user's private key (as described in Section
1.2).") 

> The main problem with the ephmeral-ephemeral case is not small-subgroup
> attacks, but the fact that the opponent can substitute a different public
> key in an attempt to eavesdrop. But this is to be expected in the basic
> ephemeral-ephemeral case, since no authentication of either party is
> provided. 
> 
This isn't clear to me.  For example, if an attacker modified both public
keys to be yb=ya=1 and the parties authenticated each other over a telephone
conversation in which they read out the agreed upon key.  Now, they will
both agree on the same key and they will have a certain level of
authentication, but the attacker will be able to eavesdrop.  Thus, it is
important that each party's *public key* be authenticated, which is the
point I was trying to make with this section.   However, I agree that the
way things are presently worded may be misleading.  I will change the first
sentence of the second paragraph to "In some ephemeral-ephemeral key
agreements protection may be required for both entities."


> Editorial comments:
> 
> Sec. 1, para. 1, line 2: Change "are" to "is". 
> 
Agreed.

> Sec. 1, para. 4 (and elsewhere): "other party" is vague, recommend
> "attacker" as a more specific term
> 
I agree that "other party" isn't a great term.  However, I wanted to
emphasize the fact that the attacker was the legitimate other party in the
key agreement, not a third party attacker, which is what the term "attacker"
may imply.  Thus, I would prefer to not use "attacker".  I am open to other
suggestions though.

> Sec. 1.2, para. 3: Suggest "properly formed" instead of "properly
> formatted"
> (the construction of the key is the issue, not its presentation) -- or
> more
> generally "valid" vs. "invalid"
> 
Agreed.  I will use "valid public key".

> Sec. 3.3, para. 1: Suggest a different symbol than "j" to avoid confusion
> with notation in Sec. 1.1
> 
Agreed.  I will use "k".

> Appendix A: Statement about "ASN.1 modules" seems to be a cut-and-paste
> error. 
> 
Agreed.

	Robert.


------_=_NextPart_001_01BF3B68.6764749C
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: Working Group Last Call: =
draft-ietf-smime-small-subgroup-02.t xt</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">John, Burt;&nbsp; =
</FONT>
</P>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Thanks for the =
comments.&nbsp; My replies are below.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"MS Sans Serif">----------</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">From:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Linn, =
John[SMTP:jlinn@rsasecurity.com]</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Sent:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Monday, November 29, 1999 2:34 =
PM</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">To:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">ietf-smime@imc.org</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Subject:</FONT></B> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">RE: Working Group Last Call: =
draft-ietf-smime-small-subgroup-02.t xt</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1, 1st para., after 4th line, add =
&quot;Some possible non-S/MIME usages of</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">CMS are also considered, though with =
less emphasis than the cases arising in</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">S/MIME.&quot;&nbsp; (See also =
comments re Sec. 2.1.)</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1.1: Give bounds on xa, =
xb.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I will add &quot;xa =
is in the interval [2, (q - 2)]&quot; to the definition of xa.&nbsp; =
Similarly for xb.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1.2: The case where the order r =
is a smooth but not necessarily small</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">number should also be mentioned, as =
it offers another avenue of attack. In</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">this case, the attacker needs to know =
the value ZZ computed from the user.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">From the value the attacker can solve =
for the private key modulo r using the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Pohlig-Hellman algorithm. However, =
it's not as practical as the cases</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">already presented, where information =
about private key is recovered from the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">*use* of ZZ, rather than ZZ itself, =
by exhaustive search.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.&nbsp; How =
about if I add a new paragraph at the end of the section =
stating:</FONT>
</P>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">An attack is also =
possible if Party B has a public key yb of order r where r factors into =
small integers but is not necessarily a small integer itself.&nbsp; In =
this case, the attacker needs to know the value ZZ computed by Party =
A.&nbsp; From this value Party B can solve for Party A's private key =
modulo r using the Pohlig-Hellman [PH] algorithm.&nbsp; However, this =
attack is not as practical as the cases already presented, where =
information about the private key is recovered from the *use* of ZZ, =
rather than ZZ itself, by exhaustive search.</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1.2, para. 3: There are q-1 =
possible values for ZZ in the ordinary</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">case, not q (assuming 1 \le xa \le =
q-1).</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Actually RFC 2631 =
requires 2 &lt;=3Dxa &lt;=3D q-2, so there are only q-3 possible =
values.&nbsp; </FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 2: Title says =
&quot;Required,&quot; first para. says &quot;should&quot; -- generally =
it's</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">not clear from the terminology =
whether the protections are recommendations</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">or requirements. (See also Sec. 1, =
para. 1.) An alternative that avoids the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">use of &quot;required&quot; is to =
describe situations in which an implementation &quot;may</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">be vulnerable&quot; to a =
small-subgroup attack, and the recommended</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">countermeasures in such =
situations.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I guess I am a =
little bit concerned that using &quot;may be vulnerable&quot; is not =
quite descriptive or strong enough.&nbsp; However, I agree that using =
the word &quot;required&quot; creates confusion with actual =
requirements.&nbsp; How about if I say &quot;situations where =
protection is necessary&quot;? </FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 2.1, para. 3: A recipient =
mounting a small-subgroup attack will not</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">necessarily obtain the plaintext, =
because the recipient's public key is</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">invalid. However, the attacker might =
obtain the plaintext from another</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">recipient (perhaps one with a valid =
public key also controlled by the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">attacker). Moreover, the attacker =
does not need to know the plaintext to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">test whether a key is correct, =
provided that the plaintext has sufficient</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">redundancy (e.g., ASCII).</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Yes, this paragraph =
should be more clearly worded.&nbsp; How about:</FONT>
</P>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">If the sender's key =
is static (i.e. static-static Diffie-Hellman is being used), then =
protection is required because in this situation a recipient mounting a =
small-subgroup attack may be able to obtain the plaintext from another =
recipient (perhaps one with a valid public key also controlled by the =
recipient) and therefore could obtain information about the private =
key.&nbsp; Moreover, the attacker does not need to know the plaintext =
to test whether a key is correct, provided that the plaintext has =
sufficient redundancy (e.g., ASCII).&nbsp; This information could then =
be used to attack other messages protected with the same static =
key.</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Also, is the static-static case =
relevant here? The introduction says that</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the focus is on the ephemeral-static =
case as in S/MIME. If the static-static</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">case is also relevant, then the =
introduction should be changed. If the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">static-static case is included for =
completeness, then perhaps the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ephemeral-ephemeral case should be =
included as well (moving text from Sec. 4</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">into Sec. 2).</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Well, CMS [RFC 2630] =
requires only ephemeral-static.&nbsp; However, RFC 2631 describes both =
ephemeral-static and static-static.&nbsp; Thus, it was felt that the =
static-static case was also relevant.&nbsp; I will change the =
introduction to include this.</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 3.1, last para. (and elsewhere): =
The statements about patent coverage,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">while helpful to the implementer, =
when omitted may give an unwarranted</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">assurance that there is no patent =
coverage (e.g., in Sec. 3.3), which would</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">contradict IETF's policy stated in =
Sec. 6. I'm not aware of patent coverage</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">on Sec. 3.3, but (mindful of Sec. 6) =
am concerned that the absence of a</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">patent caveat on only this subsection =
could appear as actionable guidance.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I agree.&nbsp; How =
about if I add a sentence following the first paragraph of Section 3 =
stating &quot;Implementer's should note that some of the procedures =
described in this section may be the subject of patents or pending =
patents.&quot;</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">On a related point, RSA Laboratories =
makes no patent claims on the methods</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">in Sec. 3.4 (&quot;Compatible =
Cofactor Exponentation&quot;) as further described in</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">reference [KALISKI].</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 3.3, para. 1: An attacker can =
still find the two &quot;trivial&quot; elements of</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">small order, 1 and p-1; the statement =
about what is prevented should note</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">this.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I will change the =
second sentence to &quot;This will prevent an attacker from being able =
to find an element (other than 1 and p-1) of small order modulo p, ... =
&quot;</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">In practice, wouldn't it be enough for =
j to be greater than or equal to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">\sqrt(q), since that would meet the =
security bound for exhaustive search?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">(But exhaustive search might not be =
the only attack?)</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">As you mentioned in =
your comment on Section 1.2, if the attacker is able to get ahold of ZZ =
then a Pohlig-Hellman attack (or a square-root type of attack if r is =
prime) is possible.&nbsp; Thus, I would prefer if we left the =
recommendation being j greater than q.</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 3.3, para. 3: In this approach, q =
is large. It's worth noting that in</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">DSA, q is limited to 160 bits for =
performance reasons, but need not be the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">case for DH.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I will add your note =
to the paragraph.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 3.4 and 3.5: To explain the =
names, mention that j is the &quot;cofactor&quot;,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">and that the first method is =
compatible with ordinary DH in the case that</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">both parties' public keys are valid. =
If a party's public key is invalid,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">then the resulting ZZ will either be =
1 or an element of order q; the small</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">subgroup elements will either be =
detected or cancelled. Unlike public key</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">validation, the methods don't always =
detect attacks, but detection isn't</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">needed, just prevention.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Perhaps note the relative costs of key =
validation vs. cofactor</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">multiplication (depends on relative =
size of q vs. j).</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Also note that both methods require =
that the cofactor is relatively prime to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the order q, i.e., gcd(j,q) =3D =
1.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I will add this =
information to these sections. </FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 4: This section seems somewhat =
misleading. Sec. 2 already makes it</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">clear that an ephemeral key is not =
worth attacking to recover the private</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">key. </FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.&nbsp; I will =
delete the second sentence of the second paragraph.&nbsp; (&quot;In =
this situation a third party attacker could modify the other entity's =
public key in order to determine the user's private key (as described =
in Section 1.2).&quot;) </FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">The main problem with the =
ephmeral-ephemeral case is not small-subgroup</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">attacks, but the fact that the =
opponent can substitute a different public</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">key in an attempt to eavesdrop. But =
this is to be expected in the basic</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ephemeral-ephemeral case, since no =
authentication of either party is</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">provided. </FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">This isn't clear to =
me.&nbsp; For example, if an attacker modified both public keys to be =
yb=3Dya=3D1 and the parties authenticated each other over a telephone =
conversation in which they read out the agreed upon key.&nbsp; Now, =
they will both agree on the same key and they will have a certain level =
of authentication, but the attacker will be able to eavesdrop.&nbsp; =
Thus, it is important that each party's *public key* be authenticated, =
which is the point I was trying to make with this section.&nbsp;&nbsp; =
However, I agree that the way things are presently worded may be =
misleading.&nbsp; I will change the first sentence of the second =
paragraph to &quot;In some ephemeral-ephemeral key agreements =
protection may be required for both entities.&quot;</FONT></P>
<BR>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Editorial comments:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1, para. 1, line 2: Change =
&quot;are&quot; to &quot;is&quot;. </FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1, para. 4 (and elsewhere): =
&quot;other party&quot; is vague, recommend</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&quot;attacker&quot; as a more =
specific term</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I agree that =
&quot;other party&quot; isn't a great term.&nbsp; However, I wanted to =
emphasize the fact that the attacker was the legitimate other party in =
the key agreement, not a third party attacker, which is what the term =
&quot;attacker&quot; may imply.&nbsp; Thus, I would prefer to not use =
&quot;attacker&quot;.&nbsp; I am open to other suggestions =
though.</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1.2, para. 3: Suggest =
&quot;properly formed&quot; instead of &quot;properly =
formatted&quot;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">(the construction of the key is the =
issue, not its presentation) -- or more</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">generally &quot;valid&quot; vs. =
&quot;invalid&quot;</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.&nbsp; I will =
use &quot;valid public key&quot;.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 3.3, para. 1: Suggest a different =
symbol than &quot;j&quot; to avoid confusion</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">with notation in Sec. 1.1</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.&nbsp; I will =
use &quot;k&quot;.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Appendix A: Statement about =
&quot;ASN.1 modules&quot; seems to be a cut-and-paste</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">error. </FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#800000" =
SIZE=3D2 FACE=3D"Arial">Robert.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF3B68.6764749C--



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id LAA12787 for ietf-smime-bks; Tue, 30 Nov 1999 11:21:42 -0800 (PST)
Received: from sothmxs01.entrust.com (gatekeeper.entrust.com [204.101.128.170]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA12782 for <ietf-smime@imc.org>; Tue, 30 Nov 1999 11:21:40 -0800 (PST)
Received: by sothmxs01.entrust.com with Internet Mail Service (5.5.2650.21) id <X7GB0YT1>; Tue, 30 Nov 1999 14:23:39 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B101063182@sothmxs06.entrust.com>
From: Robert Zuccherato <robert.zuccherato@entrust.com>
To: ietf-smime@imc.org, "'Linn, John'" <jlinn@rsasecurity.com>
Cc: "'Burt Kaliski'" <burt@RSA.COM>
Subject: RE: Working Group Last Call: draft-ietf-smime-small-subgroup-02.t xt
Date: Tue, 30 Nov 1999 14:23:38 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF3B68.6764749C"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF3B68.6764749C
Content-Type: text/plain;
	charset="iso-8859-1"

John, Burt;  

Thanks for the comments.  My replies are below.

> ----------
> From: 	Linn, John[SMTP:jlinn@rsasecurity.com]
> Sent: 	Monday, November 29, 1999 2:34 PM
> To: 	ietf-smime@imc.org
> Subject: 	RE: Working Group Last Call:
> draft-ietf-smime-small-subgroup-02.t xt
> 
> Sec. 1, 1st para., after 4th line, add "Some possible non-S/MIME usages of
> CMS are also considered, though with less emphasis than the cases arising
> in
> S/MIME."  (See also comments re Sec. 2.1.)
> 
Agreed.

> Sec. 1.1: Give bounds on xa, xb.
> 
I will add "xa is in the interval [2, (q - 2)]" to the definition of xa.
Similarly for xb.

> Sec. 1.2: The case where the order r is a smooth but not necessarily small
> number should also be mentioned, as it offers another avenue of attack. In
> this case, the attacker needs to know the value ZZ computed from the user.
> From the value the attacker can solve for the private key modulo r using
> the
> Pohlig-Hellman algorithm. However, it's not as practical as the cases
> already presented, where information about private key is recovered from
> the
> *use* of ZZ, rather than ZZ itself, by exhaustive search.
> 
Agreed.  How about if I add a new paragraph at the end of the section
stating:

An attack is also possible if Party B has a public key yb of order r where r
factors into small integers but is not necessarily a small integer itself.
In this case, the attacker needs to know the value ZZ computed by Party A.
>From this value Party B can solve for Party A's private key modulo r using
the Pohlig-Hellman [PH] algorithm.  However, this attack is not as practical
as the cases already presented, where information about the private key is
recovered from the *use* of ZZ, rather than ZZ itself, by exhaustive search.

> Sec. 1.2, para. 3: There are q-1 possible values for ZZ in the ordinary
> case, not q (assuming 1 \le xa \le q-1).
> 
Actually RFC 2631 requires 2 <=xa <= q-2, so there are only q-3 possible
values.  

> Sec. 2: Title says "Required," first para. says "should" -- generally it's
> not clear from the terminology whether the protections are recommendations
> or requirements. (See also Sec. 1, para. 1.) An alternative that avoids
> the
> use of "required" is to describe situations in which an implementation
> "may
> be vulnerable" to a small-subgroup attack, and the recommended
> countermeasures in such situations.
> 
I guess I am a little bit concerned that using "may be vulnerable" is not
quite descriptive or strong enough.  However, I agree that using the word
"required" creates confusion with actual requirements.  How about if I say
"situations where protection is necessary"? 

> Sec. 2.1, para. 3: A recipient mounting a small-subgroup attack will not
> necessarily obtain the plaintext, because the recipient's public key is
> invalid. However, the attacker might obtain the plaintext from another
> recipient (perhaps one with a valid public key also controlled by the
> attacker). Moreover, the attacker does not need to know the plaintext to
> test whether a key is correct, provided that the plaintext has sufficient
> redundancy (e.g., ASCII).
> 
Yes, this paragraph should be more clearly worded.  How about:

If the sender's key is static (i.e. static-static Diffie-Hellman is being
used), then protection is required because in this situation a recipient
mounting a small-subgroup attack may be able to obtain the plaintext from
another recipient (perhaps one with a valid public key also controlled by
the recipient) and therefore could obtain information about the private key.
Moreover, the attacker does not need to know the plaintext to test whether a
key is correct, provided that the plaintext has sufficient redundancy (e.g.,
ASCII).  This information could then be used to attack other messages
protected with the same static key.

> Also, is the static-static case relevant here? The introduction says that
> the focus is on the ephemeral-static case as in S/MIME. If the
> static-static
> case is also relevant, then the introduction should be changed. If the
> static-static case is included for completeness, then perhaps the
> ephemeral-ephemeral case should be included as well (moving text from Sec.
> 4
> into Sec. 2).
> 
Well, CMS [RFC 2630] requires only ephemeral-static.  However, RFC 2631
describes both ephemeral-static and static-static.  Thus, it was felt that
the static-static case was also relevant.  I will change the introduction to
include this.

> Sec. 3.1, last para. (and elsewhere): The statements about patent
> coverage,
> while helpful to the implementer, when omitted may give an unwarranted
> assurance that there is no patent coverage (e.g., in Sec. 3.3), which
> would
> contradict IETF's policy stated in Sec. 6. I'm not aware of patent
> coverage
> on Sec. 3.3, but (mindful of Sec. 6) am concerned that the absence of a
> patent caveat on only this subsection could appear as actionable guidance.
> 
I agree.  How about if I add a sentence following the first paragraph of
Section 3 stating "Implementer's should note that some of the procedures
described in this section may be the subject of patents or pending patents."

> On a related point, RSA Laboratories makes no patent claims on the methods
> in Sec. 3.4 ("Compatible Cofactor Exponentation") as further described in
> reference [KALISKI].
> 
> Sec. 3.3, para. 1: An attacker can still find the two "trivial" elements
> of
> small order, 1 and p-1; the statement about what is prevented should note
> this.
> 
I will change the second sentence to "This will prevent an attacker from
being able to find an element (other than 1 and p-1) of small order modulo
p, ... "

> In practice, wouldn't it be enough for j to be greater than or equal to
> \sqrt(q), since that would meet the security bound for exhaustive search?
> (But exhaustive search might not be the only attack?)
> 
As you mentioned in your comment on Section 1.2, if the attacker is able to
get ahold of ZZ then a Pohlig-Hellman attack (or a square-root type of
attack if r is prime) is possible.  Thus, I would prefer if we left the
recommendation being j greater than q.

> Sec. 3.3, para. 3: In this approach, q is large. It's worth noting that in
> DSA, q is limited to 160 bits for performance reasons, but need not be the
> case for DH.
> 
I will add your note to the paragraph.

> Sec. 3.4 and 3.5: To explain the names, mention that j is the "cofactor",
> and that the first method is compatible with ordinary DH in the case that
> both parties' public keys are valid. If a party's public key is invalid,
> then the resulting ZZ will either be 1 or an element of order q; the small
> subgroup elements will either be detected or cancelled. Unlike public key
> validation, the methods don't always detect attacks, but detection isn't
> needed, just prevention.
> 
> Perhaps note the relative costs of key validation vs. cofactor
> multiplication (depends on relative size of q vs. j).
> 
> Also note that both methods require that the cofactor is relatively prime
> to
> the order q, i.e., gcd(j,q) = 1.
> 
I will add this information to these sections. 

> Sec. 4: This section seems somewhat misleading. Sec. 2 already makes it
> clear that an ephemeral key is not worth attacking to recover the private
> key. 
> 
Agreed.  I will delete the second sentence of the second paragraph.  ("In
this situation a third party attacker could modify the other entity's public
key in order to determine the user's private key (as described in Section
1.2).") 

> The main problem with the ephmeral-ephemeral case is not small-subgroup
> attacks, but the fact that the opponent can substitute a different public
> key in an attempt to eavesdrop. But this is to be expected in the basic
> ephemeral-ephemeral case, since no authentication of either party is
> provided. 
> 
This isn't clear to me.  For example, if an attacker modified both public
keys to be yb=ya=1 and the parties authenticated each other over a telephone
conversation in which they read out the agreed upon key.  Now, they will
both agree on the same key and they will have a certain level of
authentication, but the attacker will be able to eavesdrop.  Thus, it is
important that each party's *public key* be authenticated, which is the
point I was trying to make with this section.   However, I agree that the
way things are presently worded may be misleading.  I will change the first
sentence of the second paragraph to "In some ephemeral-ephemeral key
agreements protection may be required for both entities."


> Editorial comments:
> 
> Sec. 1, para. 1, line 2: Change "are" to "is". 
> 
Agreed.

> Sec. 1, para. 4 (and elsewhere): "other party" is vague, recommend
> "attacker" as a more specific term
> 
I agree that "other party" isn't a great term.  However, I wanted to
emphasize the fact that the attacker was the legitimate other party in the
key agreement, not a third party attacker, which is what the term "attacker"
may imply.  Thus, I would prefer to not use "attacker".  I am open to other
suggestions though.

> Sec. 1.2, para. 3: Suggest "properly formed" instead of "properly
> formatted"
> (the construction of the key is the issue, not its presentation) -- or
> more
> generally "valid" vs. "invalid"
> 
Agreed.  I will use "valid public key".

> Sec. 3.3, para. 1: Suggest a different symbol than "j" to avoid confusion
> with notation in Sec. 1.1
> 
Agreed.  I will use "k".

> Appendix A: Statement about "ASN.1 modules" seems to be a cut-and-paste
> error. 
> 
Agreed.

	Robert.


------_=_NextPart_001_01BF3B68.6764749C
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: Working Group Last Call: =
draft-ietf-smime-small-subgroup-02.t xt</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">John, Burt;&nbsp; =
</FONT>
</P>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Thanks for the =
comments.&nbsp; My replies are below.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"MS Sans Serif">----------</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">From:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Linn, =
John[SMTP:jlinn@rsasecurity.com]</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Sent:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Monday, November 29, 1999 2:34 =
PM</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">To:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">ietf-smime@imc.org</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Subject:</FONT></B> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">RE: Working Group Last Call: =
draft-ietf-smime-small-subgroup-02.t xt</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1, 1st para., after 4th line, add =
&quot;Some possible non-S/MIME usages of</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">CMS are also considered, though with =
less emphasis than the cases arising in</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">S/MIME.&quot;&nbsp; (See also =
comments re Sec. 2.1.)</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1.1: Give bounds on xa, =
xb.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I will add &quot;xa =
is in the interval [2, (q - 2)]&quot; to the definition of xa.&nbsp; =
Similarly for xb.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1.2: The case where the order r =
is a smooth but not necessarily small</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">number should also be mentioned, as =
it offers another avenue of attack. In</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">this case, the attacker needs to know =
the value ZZ computed from the user.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">From the value the attacker can solve =
for the private key modulo r using the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Pohlig-Hellman algorithm. However, =
it's not as practical as the cases</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">already presented, where information =
about private key is recovered from the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">*use* of ZZ, rather than ZZ itself, =
by exhaustive search.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.&nbsp; How =
about if I add a new paragraph at the end of the section =
stating:</FONT>
</P>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">An attack is also =
possible if Party B has a public key yb of order r where r factors into =
small integers but is not necessarily a small integer itself.&nbsp; In =
this case, the attacker needs to know the value ZZ computed by Party =
A.&nbsp; From this value Party B can solve for Party A's private key =
modulo r using the Pohlig-Hellman [PH] algorithm.&nbsp; However, this =
attack is not as practical as the cases already presented, where =
information about the private key is recovered from the *use* of ZZ, =
rather than ZZ itself, by exhaustive search.</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1.2, para. 3: There are q-1 =
possible values for ZZ in the ordinary</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">case, not q (assuming 1 \le xa \le =
q-1).</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Actually RFC 2631 =
requires 2 &lt;=3Dxa &lt;=3D q-2, so there are only q-3 possible =
values.&nbsp; </FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 2: Title says =
&quot;Required,&quot; first para. says &quot;should&quot; -- generally =
it's</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">not clear from the terminology =
whether the protections are recommendations</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">or requirements. (See also Sec. 1, =
para. 1.) An alternative that avoids the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">use of &quot;required&quot; is to =
describe situations in which an implementation &quot;may</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">be vulnerable&quot; to a =
small-subgroup attack, and the recommended</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">countermeasures in such =
situations.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I guess I am a =
little bit concerned that using &quot;may be vulnerable&quot; is not =
quite descriptive or strong enough.&nbsp; However, I agree that using =
the word &quot;required&quot; creates confusion with actual =
requirements.&nbsp; How about if I say &quot;situations where =
protection is necessary&quot;? </FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 2.1, para. 3: A recipient =
mounting a small-subgroup attack will not</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">necessarily obtain the plaintext, =
because the recipient's public key is</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">invalid. However, the attacker might =
obtain the plaintext from another</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">recipient (perhaps one with a valid =
public key also controlled by the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">attacker). Moreover, the attacker =
does not need to know the plaintext to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">test whether a key is correct, =
provided that the plaintext has sufficient</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">redundancy (e.g., ASCII).</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Yes, this paragraph =
should be more clearly worded.&nbsp; How about:</FONT>
</P>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">If the sender's key =
is static (i.e. static-static Diffie-Hellman is being used), then =
protection is required because in this situation a recipient mounting a =
small-subgroup attack may be able to obtain the plaintext from another =
recipient (perhaps one with a valid public key also controlled by the =
recipient) and therefore could obtain information about the private =
key.&nbsp; Moreover, the attacker does not need to know the plaintext =
to test whether a key is correct, provided that the plaintext has =
sufficient redundancy (e.g., ASCII).&nbsp; This information could then =
be used to attack other messages protected with the same static =
key.</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Also, is the static-static case =
relevant here? The introduction says that</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the focus is on the ephemeral-static =
case as in S/MIME. If the static-static</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">case is also relevant, then the =
introduction should be changed. If the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">static-static case is included for =
completeness, then perhaps the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ephemeral-ephemeral case should be =
included as well (moving text from Sec. 4</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">into Sec. 2).</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Well, CMS [RFC 2630] =
requires only ephemeral-static.&nbsp; However, RFC 2631 describes both =
ephemeral-static and static-static.&nbsp; Thus, it was felt that the =
static-static case was also relevant.&nbsp; I will change the =
introduction to include this.</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 3.1, last para. (and elsewhere): =
The statements about patent coverage,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">while helpful to the implementer, =
when omitted may give an unwarranted</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">assurance that there is no patent =
coverage (e.g., in Sec. 3.3), which would</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">contradict IETF's policy stated in =
Sec. 6. I'm not aware of patent coverage</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">on Sec. 3.3, but (mindful of Sec. 6) =
am concerned that the absence of a</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">patent caveat on only this subsection =
could appear as actionable guidance.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I agree.&nbsp; How =
about if I add a sentence following the first paragraph of Section 3 =
stating &quot;Implementer's should note that some of the procedures =
described in this section may be the subject of patents or pending =
patents.&quot;</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">On a related point, RSA Laboratories =
makes no patent claims on the methods</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">in Sec. 3.4 (&quot;Compatible =
Cofactor Exponentation&quot;) as further described in</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">reference [KALISKI].</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 3.3, para. 1: An attacker can =
still find the two &quot;trivial&quot; elements of</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">small order, 1 and p-1; the statement =
about what is prevented should note</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">this.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I will change the =
second sentence to &quot;This will prevent an attacker from being able =
to find an element (other than 1 and p-1) of small order modulo p, ... =
&quot;</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">In practice, wouldn't it be enough for =
j to be greater than or equal to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">\sqrt(q), since that would meet the =
security bound for exhaustive search?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">(But exhaustive search might not be =
the only attack?)</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">As you mentioned in =
your comment on Section 1.2, if the attacker is able to get ahold of ZZ =
then a Pohlig-Hellman attack (or a square-root type of attack if r is =
prime) is possible.&nbsp; Thus, I would prefer if we left the =
recommendation being j greater than q.</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 3.3, para. 3: In this approach, q =
is large. It's worth noting that in</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">DSA, q is limited to 160 bits for =
performance reasons, but need not be the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">case for DH.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I will add your note =
to the paragraph.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 3.4 and 3.5: To explain the =
names, mention that j is the &quot;cofactor&quot;,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">and that the first method is =
compatible with ordinary DH in the case that</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">both parties' public keys are valid. =
If a party's public key is invalid,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">then the resulting ZZ will either be =
1 or an element of order q; the small</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">subgroup elements will either be =
detected or cancelled. Unlike public key</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">validation, the methods don't always =
detect attacks, but detection isn't</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">needed, just prevention.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Perhaps note the relative costs of key =
validation vs. cofactor</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">multiplication (depends on relative =
size of q vs. j).</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Also note that both methods require =
that the cofactor is relatively prime to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the order q, i.e., gcd(j,q) =3D =
1.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I will add this =
information to these sections. </FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 4: This section seems somewhat =
misleading. Sec. 2 already makes it</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">clear that an ephemeral key is not =
worth attacking to recover the private</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">key. </FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.&nbsp; I will =
delete the second sentence of the second paragraph.&nbsp; (&quot;In =
this situation a third party attacker could modify the other entity's =
public key in order to determine the user's private key (as described =
in Section 1.2).&quot;) </FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">The main problem with the =
ephmeral-ephemeral case is not small-subgroup</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">attacks, but the fact that the =
opponent can substitute a different public</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">key in an attempt to eavesdrop. But =
this is to be expected in the basic</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ephemeral-ephemeral case, since no =
authentication of either party is</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">provided. </FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">This isn't clear to =
me.&nbsp; For example, if an attacker modified both public keys to be =
yb=3Dya=3D1 and the parties authenticated each other over a telephone =
conversation in which they read out the agreed upon key.&nbsp; Now, =
they will both agree on the same key and they will have a certain level =
of authentication, but the attacker will be able to eavesdrop.&nbsp; =
Thus, it is important that each party's *public key* be authenticated, =
which is the point I was trying to make with this section.&nbsp;&nbsp; =
However, I agree that the way things are presently worded may be =
misleading.&nbsp; I will change the first sentence of the second =
paragraph to &quot;In some ephemeral-ephemeral key agreements =
protection may be required for both entities.&quot;</FONT></P>
<BR>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Editorial comments:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1, para. 1, line 2: Change =
&quot;are&quot; to &quot;is&quot;. </FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1, para. 4 (and elsewhere): =
&quot;other party&quot; is vague, recommend</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&quot;attacker&quot; as a more =
specific term</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I agree that =
&quot;other party&quot; isn't a great term.&nbsp; However, I wanted to =
emphasize the fact that the attacker was the legitimate other party in =
the key agreement, not a third party attacker, which is what the term =
&quot;attacker&quot; may imply.&nbsp; Thus, I would prefer to not use =
&quot;attacker&quot;.&nbsp; I am open to other suggestions =
though.</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 1.2, para. 3: Suggest =
&quot;properly formed&quot; instead of &quot;properly =
formatted&quot;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">(the construction of the key is the =
issue, not its presentation) -- or more</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">generally &quot;valid&quot; vs. =
&quot;invalid&quot;</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.&nbsp; I will =
use &quot;valid public key&quot;.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Sec. 3.3, para. 1: Suggest a different =
symbol than &quot;j&quot; to avoid confusion</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">with notation in Sec. 1.1</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.&nbsp; I will =
use &quot;k&quot;.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Appendix A: Statement about =
&quot;ASN.1 modules&quot; seems to be a cut-and-paste</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">error. </FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Agreed.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#800000" =
SIZE=3D2 FACE=3D"Arial">Robert.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF3B68.6764749C--


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id LAA01240 for ietf-smime-bks; Mon, 29 Nov 1999 11:24:44 -0800 (PST)
Received: from tholian.securitydynamics.com (tholian.securid.com [204.167.112.129]) by ns.secondary.com (8.9.3/8.9.3) with SMTP id LAA01236 for <ietf-smime@imc.org>; Mon, 29 Nov 1999 11:24:42 -0800 (PST)
Received: from sdtihq24.securitydynamics.com by tholian.securitydynamics.com via smtpd (for mail.imc.org [208.184.76.43]) with SMTP; 29 Nov 1999 19:25:21 UT
Received: from exna00.securitydynamics.com (exna00.securitydynamics.com [10.2.1.110]) by sdtihq24.securid.com (Pro-8.9.3/Pro-8.9.3) with ESMTP id OAA11371 for <ietf-smime@imc.org>; Mon, 29 Nov 1999 14:27:07 -0500 (EST)
Received: by exna00.securitydynamics.com with Internet Mail Service (5.5.2448.0) id <W2NW084V>; Mon, 29 Nov 1999 14:28:38 -0500
Message-ID: <D104150098E6D111B7830000F8D90AE8AE592D@exna02.securitydynamics.com>
From: "Linn, John" <jlinn@rsasecurity.com>
To: ietf-smime@imc.org
Subject: RE: Working Group Last Call: draft-ietf-smime-small-subgroup-02.t xt
Date: Mon, 29 Nov 1999 14:34:21 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

S/MIME WG:

Attached are a set of comments on draft-ietf-smime-small-subgroup-02, which
I've obtained and am relaying from Burt Kaliski of RSA Laboratories.

This is a useful and comprehensive treatment of "small-subgroup" attacks in
the context of S/MIME, and will be good to have as an Informational RFC.

Substantive comments:

Sec. 1, 1st para., after 4th line, add "Some possible non-S/MIME usages of
CMS are also considered, though with less emphasis than the cases arising in
S/MIME."  (See also comments re Sec. 2.1.)

Sec. 1.1: Give bounds on xa, xb.

Sec. 1.2: The case where the order r is a smooth but not necessarily small
number should also be mentioned, as it offers another avenue of attack. In
this case, the attacker needs to know the value ZZ computed from the user.
>From the value the attacker can solve for the private key modulo r using the
Pohlig-Hellman algorithm. However, it's not as practical as the cases
already presented, where information about private key is recovered from the
*use* of ZZ, rather than ZZ itself, by exhaustive search.

Sec. 1.2, para. 3: There are q-1 possible values for ZZ in the ordinary
case, not q (assuming 1 \le xa \le q-1).

Sec. 2: Title says "Required," first para. says "should" -- generally it's
not clear from the terminology whether the protections are recommendations
or requirements. (See also Sec. 1, para. 1.) An alternative that avoids the
use of "required" is to describe situations in which an implementation "may
be vulnerable" to a small-subgroup attack, and the recommended
countermeasures in such situations.

Sec. 2.1, para. 3: A recipient mounting a small-subgroup attack will not
necessarily obtain the plaintext, because the recipient's public key is
invalid. However, the attacker might obtain the plaintext from another
recipient (perhaps one with a valid public key also controlled by the
attacker). Moreover, the attacker does not need to know the plaintext to
test whether a key is correct, provided that the plaintext has sufficient
redundancy (e.g., ASCII).

Also, is the static-static case relevant here? The introduction says that
the focus is on the ephemeral-static case as in S/MIME. If the static-static
case is also relevant, then the introduction should be changed. If the
static-static case is included for completeness, then perhaps the
ephemeral-ephemeral case should be included as well (moving text from Sec. 4
into Sec. 2).

Sec. 3.1, last para. (and elsewhere): The statements about patent coverage,
while helpful to the implementer, when omitted may give an unwarranted
assurance that there is no patent coverage (e.g., in Sec. 3.3), which would
contradict IETF's policy stated in Sec. 6. I'm not aware of patent coverage
on Sec. 3.3, but (mindful of Sec. 6) am concerned that the absence of a
patent caveat on only this subsection could appear as actionable guidance.

On a related point, RSA Laboratories makes no patent claims on the methods
in Sec. 3.4 ("Compatible Cofactor Exponentation") as further described in
reference [KALISKI].

Sec. 3.3, para. 1: An attacker can still find the two "trivial" elements of
small order, 1 and p-1; the statement about what is prevented should note
this.

In practice, wouldn't it be enough for j to be greater than or equal to
\sqrt(q), since that would meet the security bound for exhaustive search?
(But exhaustive search might not be the only attack?)

Sec. 3.3, para. 3: In this approach, q is large. It's worth noting that in
DSA, q is limited to 160 bits for performance reasons, but need not be the
case for DH.

Sec. 3.4 and 3.5: To explain the names, mention that j is the "cofactor",
and that the first method is compatible with ordinary DH in the case that
both parties' public keys are valid. If a party's public key is invalid,
then the resulting ZZ will either be 1 or an element of order q; the small
subgroup elements will either be detected or cancelled. Unlike public key
validation, the methods don't always detect attacks, but detection isn't
needed, just prevention.

Perhaps note the relative costs of key validation vs. cofactor
multiplication (depends on relative size of q vs. j).

Also note that both methods require that the cofactor is relatively prime to
the order q, i.e., gcd(j,q) = 1.

Sec. 4: This section seems somewhat misleading. Sec. 2 already makes it
clear that an ephemeral key is not worth attacking to recover the private
key. The main problem with the ephmeral-ephemeral case is not small-subgroup
attacks, but the fact that the opponent can substitute a different public
key in an attempt to eavesdrop. But this is to be expected in the basic
ephemeral-ephemeral case, since no authentication of either party is
provided. 

Editorial comments:

Sec. 1, para. 1, line 2: Change "are" to "is". 

Sec. 1, para. 4 (and elsewhere): "other party" is vague, recommend
"attacker" as a more specific term

Sec. 1.2, para. 3: Suggest "properly formed" instead of "properly formatted"
(the construction of the key is the issue, not its presentation) -- or more
generally "valid" vs. "invalid"

Sec. 3.3, para. 1: Suggest a different symbol than "j" to avoid confusion
with notation in Sec. 1.1

Appendix A: Statement about "ASN.1 modules" seems to be a cut-and-paste
error. 


Received: by ns.secondary.com (8.9.3/8.9.3) id BAA08106 for ietf-smime-bks; Thu, 25 Nov 1999 01:57:31 -0800 (PST)
Received: from s2.smtp.oleane.net (s2.smtp.oleane.net [195.25.12.6]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id BAA07631; Thu, 25 Nov 1999 01:47:27 -0800 (PST)
Received: from Dell  (dyn-1-1-020.Vin.dialup.oleane.fr [195.25.4.20])  by s2.smtp.oleane.net  with SMTP id KAA75105; Thu, 25 Nov 1999 10:48:42 +0100 (CET)
Message-ID: <011701bf372a$15705260$0701a8c0@oleane.com>
From: "Peter Lewis" <peter.lewis@upperside.fr>
To: <imesh-cip@mailbase.ac.uk>
Subject: IPSec 2000 
Date: Thu, 25 Nov 1999 10:47:18 +0100
Organization: Upperside
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0112_01BF3732.7200A2C0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a multi-part message in MIME format.

------=_NextPart_000_0112_01BF3732.7200A2C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

IPSec 2000 Global Summit: the international rendez-vous. A CFP is online =
at:
http://www.upperside.fr/baipsecy2k.htm


------=_NextPart_000_0112_01BF3732.7200A2C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT color=3D#000000 size=3D3>IPSec 2000 Global Summit: the =
international=20
rendez-vous. A CFP is online at:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D3><A=20
href=3D"http://www.upperside.fr/baipsecy2k.htm">http://www.upperside.fr/b=
aipsecy2k.htm</A></FONT></DIV>
<DIV>&nbsp;</DIV></DIV></BODY></HTML>

------=_NextPart_000_0112_01BF3732.7200A2C0--



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id MAA13156 for ietf-smime-bks; Tue, 23 Nov 1999 12:45:45 -0800 (PST)
Received: from gandalf.trustpoint.com (IDENT:root@gandalf.trustpoint.com [216.100.231.61]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA13152; Tue, 23 Nov 1999 12:45:44 -0800 (PST)
Received: from himansu (himansu [192.168.42.5]) by gandalf.trustpoint.com (8.8.7/8.8.7) with SMTP id MAA16772; Tue, 23 Nov 1999 12:47:29 -0800
From: "John C. Kennedy" <jkennedy@trustpoint.com>
To: "Russ Housley" <housley@spyrus.com>
Cc: <ietf-pkix@imc.org>, <ietf-smime@imc.org>, <ekr@rtfm.com>, <robert.zuccherato@entrust.com>, <djohnson@certicom.com>, <wpolk@nist.gov>, <jis@mit.edu>, <mleech@nortelnetworks.com>, "Elaine Barker" <elaine.barker@nist.gov>, "Sharon Keller" <skeller@nist.gov>, "Simon Blake-Wilson" <sblakewi@certicom.com>, "Phil Griffin" <Phil_Griffin@certicom.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Date: Tue, 23 Nov 1999 12:52:36 -0800
Message-ID: <NDBBKGCMPJCKIDPKAHACGEBECBAA.jkennedy@trustpoint.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 IMO, Build 9.0.2416 (9.0.2910.0)
In-reply-to: <4.2.0.58.19991123091224.009e5ee0@mail.spyrus.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

No harm done.  At the same time, I apologize if you or anyone else might
have taken my comments personally.  I know that trying to align the work of
different standards groups is like trying to herd cats.  Especially in the
case of ANSI and IETF. (In fact, my doctor said that I am only allowed to
resume standards work if I boost my medication. ;-)

Moving forward, I think we still need to revisit the RFC 2631 / X9.42
alignment issue.  If a implementor claims to support "X9.42 Diffie-Hellman",
but has based their implementation on RFC 2631, no one is particularly well
served.

1) If X9.42 is not stable, then it is not a good foundation for derivative
IETF standards like it is now.

2) If X9.42 *is* stable (which I doubt purely based on experience), then RFC
2631 should probably look more like draft-ietf-smime-ecc-00.txt on.  I.e., a
profile that does not duplicate or approximate the mathematical details of
the referenced draft standard.  This is expecially true if it gives
attribution to X9.42.  If close is good enough, then perhaps we just profile
IEEE P1363 and reference it as the base standard instead.  P1363 can supply
all the bells and whistles in X9.42 except for the ASN.1 and test vectors.
This might also help avoid copyright infringement issues that might
reasonably argued with regards to RFC 2631 and X9.42.

3) I would like to continue this discussion but without continuing to copy
so many people and lists.  I have already pruned out IPSEC.  Please advise
whether this should just continue only within the S/Mime list or if it
affects all of the security groups as I believe it might.

Regards,

-John Kennedy


> -----Original Message-----
> From: Russ Housley [mailto:housley@spyrus.com]
> Sent: Tuesday, November 23, 1999 6:18 AM
> To: John C. Kennedy
> Cc: pgut001@cs.aucKland.ac.nz; ietf-pkix@imc.org; ietf-smime@imc.org;
> ipsec@lists.tislabs.com; ekr@rtfm.com; robert.zuccherato@entrust.com;
> djohnson@certicom.com; wpolk@nist.gov; jis@mit.edu;
> mleech@nortelnetworks.com; Elaine Barker; Sharon Keller; Simon
> Blake-Wilson; Phil Griffin
> Subject: RE: FIPS 186 and X9.42: One of these things is not like the
> other
>
>
> John:
>
> At 12:57 PM 11/22/99 -0800, John C. Kennedy wrote:
> >1. With all due respect, saying that I have been "out of the loop" is not
> >quite correct.  I have continued to track the output of both
> X9F1 and IETF
> >with regards to X9.42 and DH for the last couple of years. I have copies
> >of X9.42 drafts up through February 1999.  One does not have to
> be "in the
> >loop" to see the inconsistencies I have pointed out.
> >
> >2. The PKIX "son-of-2459" work, of which mostly only the ASN.1 portion of
> >X9.42 is relevant, is probably correct.  What is a bigger problem is that
> >RFC 2631 (Diffie-Hellman Key Agreement Method) by Eric Rescorla
> references
> >a 1998 draft. The related drafts,
> <draft-ietf-smime-small-subgroup-02.txt>
> >and <draft-ietf-pkix-dhpop-02.txt>, reference RFC 2631.  Is there proper
> >alignment in these works with the current state of X9.42?  I don't think
> >so.  How would the larger IETF community know if they were?  Is ANSI
> >keeping all these authors "in the loop"?
> >
> >3. FIPS 186-1 on DSA and rDSA is a good example.  If the X9.42
> >specification had been kept as simple as FIPS 186 we wouldn't be where we
> >are now.  It is unfortunate that crypto-politics and other machinations
> >did not allow NIST to handle this work independent of ANSI from the
> >beginning.
>
> 1.  I apologize.  You certainly have not taken an active role in the IETF
> or X9F1 for the last few years.  I am glad to hear that you have kept
> current.  I would encourage you to become actively involved again.
>
> 2.  Once the IETF adopted X9.42, I worked diligently with X9F1 to ensure
> that none of the aspects of X9.42 that were adopted by the IETF were
> changed.  We made a final comparison of the X9.42 draft and RFC 2631 just
> prior to publication of the RFC.  I have commitment that the
> parts of X9.42
> that are included in RFC 2631 will not be changed unless a
> security problem
> is discovered.  If a security problem is discovered, then the IETF will
> want to update RFC 2631 anyway, so this is not a concern.
>
> 3.  Agree.
>
> Russ



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id KAA09911 for ietf-smime-bks; Tue, 23 Nov 1999 10:23:49 -0800 (PST)
Received: from sothmxs01.entrust.com (gatekeeper.entrust.com [204.101.128.170]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA09907 for <ietf-smime@imc.org>; Tue, 23 Nov 1999 10:23:48 -0800 (PST)
Received: by sothmxs01.entrust.com with Internet Mail Service (5.5.2448.0) id <XNNP5C2D>; Tue, 23 Nov 1999 13:25:11 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B1017156E9@sothmxs06.entrust.com>
From: Carlisle Adams <carlisle.adams@entrust.com>
To: "'Jim Schaad (Exchange)'" <jimsch@EXCHANGE.MICROSOFT.com>
Cc: ietf-smime@imc.org
Subject: RE: Comments on draft-ietf-smime-cast-128-00.txt
Date: Tue, 23 Nov 1999 13:25:10 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF35E0.13921370"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF35E0.13921370
Content-Type: text/plain

Hi Jim,

Thank you for your comments.  I will take these into account (along with the
name change suggestion from Russ) when I update the draft.

Carlisle.


> ----------
> From: 	Jim Schaad (Exchange)[SMTP:jimsch@Exchange.Microsoft.com]
> Sent: 	Thursday, November 18, 1999 12:45 PM
> To: 	cadams@entrust.com
> Cc: 	ietf-smime@imc.org
> Subject: 	Comments on draft-ietf-smime-cast-128-00.txt
> 
> I have the following comments on this draft: 
> 
> 1.  You are currently missing an analogus statement to "Only 128-bit RC2
> keys may be used as key-encryption keys, and they must be used with the
> RC2ParameterVersion parameter set to 58." (from section 12.3.3.2 of RFC
> 2630).  This was deemed important by the group for inclusion to prevent
> the usage of weaker KEK than CEK keys.  (I do note that you have a should
> be equal in size in the security considerations.  I believe this should be
> moved up to the main document however to match CMS.)
> 
> 2.  Section 3 Para 1.  You state that you must include the above OIDs in
> the symmetric algorithms section of capabilities, but only one of the oids
> is a symmetric algorithm.  At the current time we are "implying" the key
> wrap from the symmetric algorithm as only same key wrap is supported in
> CMS.  Please change to the correct OID reference.
> 
> 3.  Section 3. Para 1.  You appear to state that the parameters could be
> either the SMIMECapabilitiesParametersForCAST5CBC or
> cast5CMSkeywrapParameter or cast5CBCParameters.  The last would lead to a
> different encoding from the first two and RFC 2633 states in section 2.5.2
> that capabilties must be single value.  Please determine which of the
> parameters is to be used.  I would also like to see the encoded binary
> sequence included in the document so that there is no question on the
> single encoding.  I plan to suggest that this be done for RFC 2633 on
> progression as well.
> 
> 4.  Section 2.1 para 5.  I'm sorry, but I don't have RFC 2144 in front of
> me.  If this document contains clear language on the use of the default IV
> of 0 then everything is fine.  If not please include a SHOULD NOT use the
> default IV.
> 
> jim 
> 
> 

------_=_NextPart_001_01BF35E0.13921370
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: Comments on draft-ietf-smime-cast-128-00.txt</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Hi =
Jim,</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Thank you =
for your comments.&nbsp; I will take these into account (along with the =
name change suggestion from Russ) when I update the draft.</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New =
Roman">Carlisle.</FONT>
</P>
<BR>
<UL>
<P><FONT SIZE=3D2 FACE=3D"MS Sans Serif">----------</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">From:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Jim Schaad =
(Exchange)[SMTP:jimsch@Exchange.Microsoft.com]</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Sent:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Thursday, November 18, 1999 12:45 =
PM</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">To:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">cadams@entrust.com</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Cc:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">ietf-smime@imc.org</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Subject:</FONT></B> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">Comments on draft-ietf-smime-cast-128-00.txt</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I have the following comments on this =
draft:</FONT><FONT FACE=3D"Arial"> </FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">1.=A0 You are currently missing an =
analogus statement to &quot;Only 128-bit RC2 keys may be used as =
key-encryption keys, and they must be used with the RC2ParameterVersion =
parameter set to 58.&quot; (from section 12.3.3.2 of RFC 2630).=A0 This =
was deemed important by the group for inclusion to prevent the usage of =
weaker KEK than CEK keys.=A0 (I do note that you have a should be equal =
in size in the security considerations.=A0 I believe this should be =
moved up to the main document however to match CMS.)</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">2.=A0 Section 3 Para 1.=A0 You state =
that you must include the above OIDs in the symmetric algorithms =
section of capabilities, but only one of the oids is a symmetric =
algorithm.=A0 At the current time we are &quot;implying&quot; the key =
wrap from the symmetric algorithm as only same key wrap is supported in =
CMS.=A0 Please change to the correct OID reference.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">3.=A0 Section 3. Para 1.=A0 You appear =
to state that the parameters could be either the =
SMIMECapabilitiesParametersForCAST5CBC or cast5CMSkeywrapParameter or =
cast5CBCParameters.=A0 The last would lead to a different encoding from =
the first two and RFC 2633 states in section 2.5.2 that capabilties =
must be single value.=A0 Please determine which of the parameters is to =
be used.=A0 I would also like to see the encoded binary sequence =
included in the document so that there is no question on the single =
encoding.=A0 I plan to suggest that this be done for RFC 2633 on =
progression as well.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">4.=A0 Section 2.1 para 5.=A0 I'm =
sorry, but I don't have RFC 2144 in front of me.=A0 If this document =
contains clear language on the use of the default IV of 0 then =
everything is fine.=A0 If not please include a SHOULD NOT use the =
default IV.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">jim</FONT>=20
</P>
<BR>
</UL>
</BODY>
</HTML>
------_=_NextPart_001_01BF35E0.13921370--


Received: by ns.secondary.com (8.9.3/8.9.3) id OAA28291 for ietf-smime-bks; Mon, 22 Nov 1999 14:37:50 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA28287; Mon, 22 Nov 1999 14:37:45 -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.9.3/8.8.6/cs-master) with SMTP id LAA25088; Tue, 23 Nov 1999 11:39:09 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <94331035024854>; Tue, 23 Nov 1999 11:39:10 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: elaine.barker@nist.gov, ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com, skeller@nist.gov
Subject: Re: FIPS 186 and X9.42: One of these things is not like the other
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 Nov 1999 11:39:10 (NZDT)
Message-ID: <94331035024854@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

[Recipient list trimmed somewhat, I hope this is going to appropriate people]

Russ Housley <housley@spyrus.com> writes:

>Both of these parameter structures are included in RFC 2459.  Concerns about
>alignment of the two structures should have been raised many months ago.
>
>While it might have been nice to have the two parameter definitions use the
>same order for p, q, and g, this is not a show stopper.  People have
>implemented with against the current specifications, and I am strongly
>opposed to changes at this late date.

I had the impression that for an outsider to influence ANSI standards was close
to impossible (if it wasn't for P1363 I'd never even have seen X9.42), which is
why I never commented on it.  Besides, I can't go around nitpicking *every*
standard around, there are only so many hours in the day :-).  That's why, in
my original message, I merely suggested that any new work which uses X9.42 and
FIPS 186/X9.30/whatever other standard it appears in point out that although
the keys look the same and quack the same, they have two of the parameters
(with names which look almost identical) reversed in the ASN.1 form.  This is a
trap just waiting to catch the unwary.

[Having said that, I'd certainly like to see the ASN.1 fixed so the two match
 up, but I guess that's unlikely to happen at this stage].

Peter.




Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id MAA25902 for ietf-smime-bks; Mon, 22 Nov 1999 12:50:34 -0800 (PST)
Received: from gandalf.trustpoint.com (IDENT:root@gandalf.trustpoint.com [216.100.231.61]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA25898; Mon, 22 Nov 1999 12:50:32 -0800 (PST)
Received: from himansu (himansu [192.168.42.5]) by gandalf.trustpoint.com (8.8.7/8.8.7) with SMTP id MAA09550; Mon, 22 Nov 1999 12:52:06 -0800
From: "John C. Kennedy" <jkennedy@trustpoint.com>
To: "Russ Housley" <housley@spyrus.com>
Cc: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>, <ietf-smime@imc.org>, <ipsec@lists.tislabs.com>, <ekr@rtfm.com>, <robert.zuccherato@entrust.com>, <djohnson@certicom.com>, <wpolk@nist.gov>, <jis@mit.edu>, <mleech@nortelnetworks.com>, "Elaine Barker" <elaine.barker@nist.gov>, "Sharon Keller" <skeller@nist.gov>, "Simon Blake-Wilson" <sblakewi@certicom.com>, "Phil Griffin" <Phil_Griffin@certicom.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Date: Mon, 22 Nov 1999 12:57:13 -0800
MIME-Version: 1.0
Message-ID: <NDBBKGCMPJCKIDPKAHACGEPBCAAA.jkennedy@trustpoint.com>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0056_01BF34E9.03F25260"
Importance: Normal
In-Reply-To: <4.2.0.58.19991122105512.009c6e00@mail.spyrus.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a multi-part message in MIME format.

------=_NextPart_000_0056_01BF34E9.03F25260
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Russ,

1. With all due respect, saying that I have been "out of the loop" is not
quite correct.  I have continued to track the output of both X9F1 and IETF
with regards to X9.42 and DH for the last couple of years. I have copies
of X9.42 drafts up through February 1999.  One does not have to be "in the
loop" to see the inconsistencies I have pointed out.

2. The PKIX "son-of-2459" work, of which mostly only the ASN.1 portion of
X9.42 is relevant, is probably correct.  What is a bigger problem is that
RFC 2631 (Diffie-Hellman Key Agreement Method) by Eric Rescorla references
a 1998 draft. The related drafts, <draft-ietf-smime-small-subgroup-02.txt>
and <draft-ietf-pkix-dhpop-02.txt>, reference RFC 2631.  Is there proper
alignment in these works with the current state of X9.42?  I don't think
so.  How would the larger IETF community know if they were?  Is ANSI
keeping all these authors "in the loop"?

3. FIPS 186-1 on DSA and rDSA is a good example.  If the X9.42
specification had been kept as simple as FIPS 186 we wouldn't be where we
are now.  It is unfortunate that crypto-politics and other machinations
did not allow NIST to handle this work independent of ANSI from the
beginning.


-John
jkennedy@trustpoint.com


> -----Original Message-----
> From: Russ Housley [mailto:housley@spyrus.com]

> John:
>
> You have been out of the loop for over two years, and your
> observation are
> simply incorrect!
>



> The people that have been working on the PKIX and S/MIME standards that
> refer to X9.42 have been given every version of the document as it
became
> available to the X9F1 working group participants.  And, X9F1 has
> worked to
> ensure that they did not change the parts of X9.42 that were
> adopted by the
> IETF.
>
> Peter may not like the minor differences between X9.42 and DSA.  But the
> IETF documents are aligned with the X9.42 (just as they claim).  By the
> way, FIPS 186 contains no ASN.1; it only contains the algorithm
> specification.
>
> Russ
>
>
> At 01:17 AM 11/21/99 -0800, John C. Kennedy wrote:
> >(A long but hopefully illuminating follow-up regarding ANSI X9.42)
> >
> >(**Summary: The use or referencing of the ANSI X9.42
> (Diffie-Hellman) drafts
> >in IETF standards has resulted in the propagation of a number of
> errors and
> >inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
> >whether the still unratified ANSI X9.42 draft should be used as
> a basis or
> >even a reference for ongoing IETF Diffie-Hellman protocol
standardization
> >work.)
> >
> >Peter,
> >
> >I was the editor of the ANSI X9.42 Diffie-Hellman draft up until
> about April
> >of 1997 when I changed employers and passed the X9.42 editing
> torch.  Since
> >my current work has given me a reason to wade back into the IETF
> process, I
> >wanted to share a few comments and provide some additional data on the
> >apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
> >years later it seems to still be a bit of a mess in need of some
> tidying up.
> >
> >(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
> >believe this may be a draft that I "strategically distributed" to a few
> >select people working in IPSEC, PKIX, and other IETF working
> groups around
> >that time.  ANSI X9F has never had a lot of interest in seeing X9.42
> >reviewed or adopted by IETF.  [In fact, it is ridiculous that
> after almost
> >five years of work and innumerable rewrites, neither ANSI or NIST have
> >published an authoritative interoperability standard for one the most
> >fundamental and powerful public key techniques for key agreement we
have.
> >(Hint: It is not because of patents or because it is too difficult to
> >communicate.)]
> >
> >(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a
> 1998 draft
> >of X9.42.  This X9.42 draft is probably the one made available by ANSI
to
> >IEEE P1363 members at
> >http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You
will
> >need an IEEE P1363 password to get at this.)  This draft is
> better than the
> >1997 draft, but still has problems.  Since I have not been involved
with
> >ANSI for about 3 years, I can't comment on where the X9.42 draft
> currently
> >stands.  Since the X9.42 draft document is (still!) not public, it is
not
> >clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
> >currently a proposed standard in IETF.  Since RFC 2631 propagates
errors
> >that existed in the 1998 X9.42 draft, a second look at it is
> probably called
> >for. (These errors are noted below)
> >
> >(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any
Diffie-Hellman
> >standards.  While the techniques given in this document are
> mathematically
> >accurate and certainly filled a gap in the IPSEC work at the time, the
> >OAKLEY RFC doesn't quite provide all the pieces needed to link
> up with PKIX
> >and some other security standards.
> >
> >(4) The following drafts contain relevant references to Diffie-Hellman
or
> >related protocols.  The first two reference RFC 2631 and the second
> >specifies a new DH variant altogether:
> >draft-ietf-smime-small-subgroup-02.txt
> >draft-ietf-pkix-dhpop-02.txt
> >draft-ietf-secsh-transport-06.txt
> >
> >(5) Both of the ANSI documents currently referenced were drafts
> and probably
> >weren't the best basis for IETF standards.  Given the lack of
> anything else
> >to point to, I can't say I blame the authors, however.  They
> certainly meant
> >well.  What is also unfortunate is that IETF community has not
> been provided
> >with access to more current X9.42 drafts.  This is, IMHO,
> probably related
> >to the situation I pointed out in (1).
> >
> >Now, in reponse to your observations:
> >
> >(6) RFC 2631 states "X9.42 requires that the private key x be in the
> >interval [2, (q - 2)]"
> >In other words, (1 < x < q-1).  **It is quite clear that the referenced
> >X9.42 draft is not only wrong but inconsistent**.  And in a number of
> >places.  The Diffie-Hellman private key x should be chosen in the
closed
> >interval [2^(m-1), q-1], where m is the minimum length in bits
acceptable
> >for the private key.  (Typically m>=160, but your mileage may
> vary...)  This
> >is consistent with security recommendations in the current IEEE P1363
> >documents as well as definitions in
> draft-ietf-smime-small-subgroup-02.txt,
> >draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical
> subtlety I have
> >forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up
to
> >correct me.)
> >
> >Note that choosing x in [1, q-1] will work just fine mathematically,
but
> >does not reflect or enforce the minimum key size requirement.
> Note that if
> >the size of q is at least a few bit greater than m and you are
> using a good
> >RNG to pick x, the point is probably moot anyway.  If you are using a
> >long-term (aka "static") DH keys, however, it probably not a bad
> idea to put
> >the minimum keysize check in your keygen routine as a "belt and
> suspenders"
> >type measure.
> >
> >(7) The domain parameter generation routines in X9.42 were in
> fact derived
> >from those in the FIP 186 spec to allow re-use of DSA parameters
> (p, q, and
> >g) with X9.42 if desired.  I can't say I am a big fan of this because
it
> >forces q to 160 bits which is probably not appropriate if you intend to
> >enforce a minimum DH private key size greater than 160.
> >
> >(8) The parameter order switch was not a deliberate booby trap,
although
> >these types of things do help to keep crypto engineers on their
> toes. :)  As
> >I recall, the parameters q and j were added when concerns about small
> >subgroup attacks on Diffie-Hellman surfaced.  It is more of a
coincidence
> >that the DSA algorithm exploits the use of a subgroup also defined by a
> >prime called q.  In other words, DSA included q from the beginning
while
> >X9.42 added q as a security enhancement.  The ASN.1 encoding
> choices are an
> >artifact of the development process, not a deliberate reversal.
> If you feel
> >like lobbying ANSI X9F to change the ordering to make everyone's life
> >easier, have at it.  I wouldn't hold my breath however. :)
> >
> >(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
> >  DomainParameters ::= SEQUENCE {
> >               p       INTEGER, -- odd prime, p=jq +1
> >               g       INTEGER, -- generator, g
> >               q       INTEGER, -- factor of p-1
> >               j       INTEGER OPTIONAL, -- subgroup factor
> >               validationParms  ValidationParms OPTIONAL }
> >
> >         ValidationParms ::= SEQUENCE {
> >               seed             BIT STRING,
> >               pgenCounter      INTEGER }
> >
> >whereas the 1998 X9.42 draft shows them as:
> >
> >DomainParameters ::= SEQUENCE {  -- Galois field group parameters
> >    p                INTEGER,        -- odd prime, p = jq + 1
> >    g                INTEGER,        -- generator, g
> >    q                INTEGER,        -- prime factor of p-1
> >    j                INTEGER,        -- subgroup factor, j >= 2
> >    validationParms  ValidationParms OPTIONAL
> >(**Note q is no longer optional.** JK)
> >
> >if you can find a copy of the 1997 draft (which I happen to
> have) we see the
> >original version:
> >
> >DomainParameters ::= SEQUENCE {  -- Galois field group parameters
> >    p                INTEGER,        -- odd prime, p = jq + 1
> >    g                INTEGER,        -- generator, g
> >    q                INTEGER OPTIONAL,        -- prime factor of p-1
> >    j                INTEGER OPTIONAL,        -- subgroup factor, j >=
2
> >    validationParms  ValidationParms OPTIONAL
> >
> >(This early draft reflects my admitted ignorance of proper ASN.1 at the
> >time. You cannot have multiple optional INTEGERS without tags on them.)
> >
> >My guess is that the middle version (i.e., with only ValidationParms
> >optional) is the preferred version, which means RFC 2459 should
> probably be
> >changed.  I do not know what the current X9.42 draft gives.
> >
> >****Conclusion****
> >(10) Because of the aforementioned errors and inconsistencies, I have
> >serious reservations about the continued use or referencing of
> ANSI X9.42 in
> >IETF drafts or standards.  The use or referencing of the ANSI
> X9.42 draft in
> >IETF standards has resulted in the propagation of a number of errors
and
> >inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
> >whether the apparently still unratified and possibly unstable ANSI
X9.42
> >draft should be used as a basis or reference for ongoing IETF
> Diffie-Hellman
> >protocol standardization efforts.  Because of this, I respectfully
submit
> >that the IETF should consider whether RFC 2631 should be deprecated and
> >rewritten in a manner which removes unnecessary references to
> the mysterious
> >and forever-unpublished ANSI X9.42 draft.
> >
> >
> >-John Kennedy
> >jkennedy@trustpoint.com
> >
> >
> >
> >-----Original Message-----
> >From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
> >Sent: Sunday, November 21, 1999 1:58 PM
> >To: ietf-pkix@imc.org; ietf-smime@imc.org
> >Subject: FIPS 186 and X9.42: One of these things is not like the other
> >
> >
> >FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
> >generation algorithm, and have domain parameters which look identical,
> >however
> >there are two subtle differences between them, one of which is really
> >annoying.
> >
> >The annoying difference is that when writing the domain parameters, the
> >order
> >of q and g is reversed for FIPS 186 and X9.42 keys, so that
> while DSA domain
> >parameters are written (p, q, g), exactly the same domain parameters
when
> >viewed as X9.42 values are written (p, g, q).  This isn't helped
> by the fact
> >that in many fonts lowercase q and g look very similar.  Apart
> from the fact
> >that it's a booby-trap for implementors, it also means that if the
domain
> >parameters are identified in the traditional way (SHA-1 hash),
identical
> >parameters will appear to be different depending on whether you're
> >interpreting
> >them as DSA/KEA or DH parameters.
> >
> >The second difference is in the allowed range for x:
> >
> >   FIPS 186: 0 < x < q (ie x = 1...q-1)
> >   X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x =
2..q-2)
> >
> >This looks like a transcription error from FIPS 186, given that using
any
> >x < ~2^160 is unsound I can't see why there'd be any difference between
1
> >and 2
> >as a lower bound.
> >
> >Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
> >warnings
> >to the effect that although the parameters are the same internally,
their
> >external representations differ.
> >
> >Does anyone know why X9.42 decided to reverse the parameter order?
> >
> >(The motivation for this post is that ages ago I solved the
> problem of the
> >  reversed parameters by swapping the pointers for the X9.42 g
> and q values
> >so
> >  they were read and written in the correct order, recently I was
looking
> >  through the code and wondered why it was working fine for both
> >interpretations
> >  of parameter ordering.  There's now a big comment block by the code
> >explaining
> >  the Bug which Isn't)
> >
> >Peter.

------=_NextPart_000_0056_01BF34E9.03F25260
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGhzCCAo8w
ggH6oAMCAQICFQDZ+E/k9gGxjXStLkDx9Qm6iCXqjTALBgkqhkiG9w0BAQUwNTEWMBQGA1UEAxMN
U01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01lbWUxCzAJBgNVBAYTAlVTMB4XDTk5MDYyNDIzNDQw
OFoXDTE0MDYyNDIzNDQwOFowNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01l
bWUxCzAJBgNVBAYTAlVTMIGdMAsGCSqGSIb3DQEBAQOBjQAwgYkCgYEAoh2u/ZzVrjTtXzowWcH1
vVHqUSJRsAF+TunEsqbZsn755D6Y0xe2ruYlNMEW7sExSoUYPQNR7cTQWwcFSyE3FtDhGGkYUt5O
UgPXZ5HVuG/Q4UwocCbOx4CIIfNJJevfEw9MvthYugg2J13XBW5iUonP5aY5rO6VrQedIa1+q8kC
AwEAAaOBoDCBnTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNn4T+T2AbGNdK0uQPH1CbqI
JeqNMB0GA1UdDgQWBBTZ+E/k9gGxjXStLkDx9Qm6iCXqjTAOBgNVHQ8BAf8EBAMCAP4wJwYDVR0l
BCAwHgYIKwYBBQUHAwIGCCsGAQUFBwMDBggrBgEFBQcDBDARBglghkgBhvhCAQEEBAMCALcwCwYJ
KoZIhvcNAQEFA4GBAJLpYU+A1SKEVesAvpylZ//Fhq/fOZrVnxBgEVHC0RpLMnlPG/Y2XaZqmr42
bIwvqZ50m6R5o41mob2N4a78ty30kAOLEvsxFaK06iezfHFJGn9TbLPEi2BTaIWCJv77skLSVjUe
zzm5JAmaKwJ3txI6s4sbM6/rrnQ2oPa2/n+JMIID8DCCA1ugAwIBAgIVANnXVOID136qfHqgNaDC
u+cYaTDNMAsGCSqGSIb3DQEBBTA1MRYwFAYDVQQDEw1TTWVtZSBSb290IENBMQ4wDAYDVQQKEwVT
TWVtZTELMAkGA1UEBhMCVVMwHhcNOTkwODI1MDEzNjEyWhcNMDAwODI1MDEzNjEyWjBkMQswCQYD
VQQGEwJVUzETMBEGA1UEChMKVHJ1c3Rwb2ludDEYMBYGA1UEAxMPSm9obiBDLiBLZW5uZWR5MSYw
JAYJKoZIhvcNAQkBFhdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTCBnzANBgkqhkiG9w0BAQEFAAOB
jQAwgYkCgYEAm/78rZZNYaJ67AZjKMwFb3ky+57qdCpI0oAbPpQQqYJOAzm0f2Y4Nlz3QMC0scMp
lGvIpxr8qwMoPIReFo+X4e7QiyumvXfNkKSgFw43rA6ne0zACHX7dbx0U4c6NLLDYer+3lFAGe8M
9y2ICgWk9aBnRaPaUKKIJhDpp4zEepMCAwEAAaOCAc8wggHLMB0GA1UdDgQWBBRBz7sIilZiDESP
GwAbpRjKtTIrajAhBgNVHSMEGgQYMBaAFNn4T+T2AbGNdK0uQPH1CbqIJeqNMA4GA1UdDwEB/wQE
AwIA+DAnBgNVHSUEIDAeBggrBgEFBQcDAgYIKwYBBQUHAwMGCCsGAQUFBwMEMBEGCWCGSAGG+EIB
AQQEAwIAsDAiBgNVHREEGzAZgRdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTBRBgNVHSAESjBIMEYG
CCsGBAGYVB4BMDowOAYIKwYBBQUHAgEWLGh0dHA6Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3Jl
ZW1lbnRfMS5odG1sMEQGCWCGSAGG+EIBAwQ3FjVodHRwOi8vd3d3LnNtZW1lLmNvbS9zZXJ2bGV0
cy9zbWVtZV9jYS9jaGVja19yZXZva2VkPzBBBglghkgBhvhCAQcENBYyaHR0cDovL3d3dy5zbWVt
ZS5jb20vc2VydmxldHMvc21lbWVfY2EvcmVuZXdfY2VydD8wOwYJYIZIAYb4QgEIBC4WLGh0dHA6
Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3JlZW1lbnRfMS5odG1sMAsGCSqGSIb3DQEBBQOBgQB3
OYc+W2F6MemxaU4Udxf7CRVZ/fR8/zEs+mpb9WIT2Dsft7XRVKP/XWZeQwx5iBoFOaU6/Xf3yqr4
k6nqhEoj1sPYD5QuTS9M/NhPYovbyf/zzUcXGTV+JRK6TgTMbIbfyuMDfBKKfHXIv5gmJfZUCNhY
N8C00T8yX9sEVYpzfzGCAg4wggIKAgEBME4wNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwG
A1UEChMFU01lbWUxCzAJBgNVBAYTAlVTAhUA2ddU4gPXfqp8eqA1oMK75xhpMM0wCQYFKw4DAhoF
AKCCARYwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNOTkxMTIyMjA1
NjM4WjAjBgkqhkiG9w0BCQQxFgQUG7z6EA/nfah6ILD1P+sSefziq/AwWAYJKoZIhvcNAQkPMUsw
STAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwBwYF
Kw4DAhowCgYIKoZIhvcNAgUwXQYJKwYBBAGCNxAEMVAwTjA1MRYwFAYDVQQDEw1TTWVtZSBSb290
IENBMQ4wDAYDVQQKEwVTTWVtZTELMAkGA1UEBhMCVVMCFQDZ11TiA9d+qnx6oDWgwrvnGGkwzTAN
BgkqhkiG9w0BAQEFAASBgHwXLP1sgy74hdtWvoz4y9Z2lt4LTBnorA5tLYxSD3XMKSmaPvNr8/b4
rS5foo+1N5YyVBy+G/MDwM21PeyUZeneUwJ+XJaZOLRLavB2z7diCcuDd3A1nY/xPRoTQfsK587o
Yoad3QzhM3tgTFSZg+OLV72KiwfSgKX+3YH/hb0yAAAAAAAA

------=_NextPart_000_0056_01BF34E9.03F25260--



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id MAA25402 for ietf-smime-bks; Mon, 22 Nov 1999 12:23:46 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA25398; Mon, 22 Nov 1999 12:23:44 -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 PAA28840; Mon, 22 Nov 1999 15:29:15 -0500 (EST) (envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.4  (830.2 3-23-1999))  id 85256831.006FFF43 ; Mon, 22 Nov 1999 15:23:18 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: "John C. Kennedy" <jkennedy@trustpoint.com>
cc: pgut001@cs.aucKland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, housley@spyrus.com, jis@mit.edu, mleech@nortelnetworks.com, "Elaine Barker" <elaine.barker@nist.gov>, "Sharon Keller" <skeller@nist.gov>, "Simon Blake-Wilson" <sblakewi@certicom.com>, asn1@mindspring.com
Message-ID: <85256831.006FFE00.00@domino2.certicom.com>
Date: Mon, 22 Nov 1999 15:17:00 -0500
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Mime-Version: 1.0
Content-type: multipart/mixed;  Boundary="0__=ACDP3UzyXR808KoURSahabzWVpJ5vRGS4kMPU5dQEQ0kvhjbvaZoHErM"
Content-Disposition: inline
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

--0__=ACDP3UzyXR808KoURSahabzWVpJ5vRGS4kMPU5dQEQ0kvhjbvaZoHErM
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline

John,

1. ANSI X9.42 is supposed to go shortly to final ballot.
2. Yes, it looks like the different orders of parms are now cast in concrete.
3. A duplicate private key can be detected by checking for a duplicate public
key, if this is a concern.  For example, if an ephemeral public key repeats,
then the forward secrecy property may fail.  But this is often handled as being
a event so rare it does not need to be checked.  If it is a concern, it can be
checked.
Don Johnson






"John C. Kennedy" <jkennedy@trustpoint.com> on 11/22/99 03:08:47 PM

To:   Don Johnson/Certicom@Certicom
cc:   pgut001@cs.auckland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
      ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com,
      wpolk@nist.gov, housley@spyrus.com, jis@mit.edu,
      mleech@nortelnetworks.com, "Elaine Barker" <elaine.barker@nist.gov>,
      "Sharon Keller" <skeller@nist.gov>, Simon Blake-Wilson/Certicom@Certicom,
      "Phil Griffin" <Phil_Griffin@certicom.com>

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the other




Don,

1. I truly hope it is ready for final ballot.  Many people have been
patiently waiting for it and respectfully referencing and including
placeholders in code and other standards in anticipation of it.  It is not
ANSI X9F1's responsibility to supply IETF with algorithm standards in a
timely fashion.  By the same token, IETF security working groups must be
vigilant to not delay important work by continuing to hitch its wagon to a
Diffie-Hellman draft that the ANSI committee continues to revise and which
is *still* not ratified.  My first post gave valid evidence of the results
of this decision thus far.

2. IMHO, the order of the parameters is irrelevant as long as they are
labeled and encoded correctly.

3. Is the private key now called 'd' instead of 'x'? <sigh>
As for the range of the private key, the checks to be performed during
generation should be unambiguous.  Whether or not the receiver of the
corresponding public number can verify that these checks were done is
somewhat meaningless.  For example, can the receiver tell whether or not
the sender's private number was generated with a robust PRNG that won't
repeat itself every tenth time it is accessed?

-John

-----Original Message-----
From: Don Johnson [mailto:djohnson@certicom.com]
Sent: Monday, November 22, 1999 6:36 AM
To: John C. Kennedy
Cc: pgut001@cs.auckland.ac.nz; ietf-pkix@imc.org; ietf-smime@imc.org;
ipsec@lists.tislabs.com; ekr@rtfm.com; robert.zuccherato@entrust.com;
wpolk@nist.gov; housley@spyrus.com; jis@mit.edu;
mleech@nortelnetworks.com; Elaine Barker; Sharon Keller; Simon
Blake-Wilson; Phil Griffin
Subject: RE: FIPS 186 and X9.42: One of these things is not like the
other


John,

A few comments on X9.42.
1. Elaine Barkey and Sharon Keller of NIST are the editors of ANSI X9.42.
I am
copying them on your note.  It should be ready for final ballot.
2. The order of the parameters in the domain parameters should be made
consistent with X9.30 DSA, I think.  If this is not the way it is, it
should be
changed in X9.42.
3. The private key d should be a value from 1 to q-1 in X9.42.  It is
allowed to
chop off the ends and make it 2 to q-2.  Any further reduction risks
reducing
the keysize and therefore aiding the adversary.  The reason that "low"
values
are allowed sometimes is that it is not known how to detect such a
situation.
In fact, if it were, then DH would unravel anyway.

Don Johnson






"John C. Kennedy" <jkennedy@trustpoint.com> on 11/21/99 04:17:21 AM

To:   pgut001@cs.auckland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
      ipsec@lists.tislabs.com
cc:   ekr@rtfm.com, robert.zuccherato@entrust.com, Don
      Johnson/Certicom@Certicom, wpolk@nist.gov, housley@spyrus.com,
      jis@mit.edu, mleech@nortelnetworks.com

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the
other




(A long but hopefully illuminating follow-up regarding ANSI X9.42)

(**Summary: The use or referencing of the ANSI X9.42 (Diffie-Hellman)
drafts
in IETF standards has resulted in the propagation of a number of errors
and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the still unratified ANSI X9.42 draft should be used as a basis or
even a reference for ongoing IETF Diffie-Hellman protocol standardization
work.)

Peter,

I was the editor of the ANSI X9.42 Diffie-Hellman draft up until about
April
of 1997 when I changed employers and passed the X9.42 editing torch.
Since
my current work has given me a reason to wade back into the IETF process,
I
wanted to share a few comments and provide some additional data on the
apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
years later it seems to still be a bit of a mess in need of some tidying
up.

(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
believe this may be a draft that I "strategically distributed" to a few
select people working in IPSEC, PKIX, and other IETF working groups around
that time.  ANSI X9F has never had a lot of interest in seeing X9.42
reviewed or adopted by IETF.  [In fact, it is ridiculous that after almost
five years of work and innumerable rewrites, neither ANSI or NIST have
published an authoritative interoperability standard for one the most
fundamental and powerful public key techniques for key agreement we have.
(Hint: It is not because of patents or because it is too difficult to
communicate.)]

(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a 1998 draft
of X9.42.  This X9.42 draft is probably the one made available by ANSI to
IEEE P1363 members at
http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You will
need an IEEE P1363 password to get at this.)  This draft is better than
the
1997 draft, but still has problems.  Since I have not been involved with
ANSI for about 3 years, I can't comment on where the X9.42 draft currently
stands.  Since the X9.42 draft document is (still!) not public, it is not
clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
currently a proposed standard in IETF.  Since RFC 2631 propagates errors
that existed in the 1998 X9.42 draft, a second look at it is probably
called
for. (These errors are noted below)

(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any Diffie-Hellman
standards.  While the techniques given in this document are mathematically
accurate and certainly filled a gap in the IPSEC work at the time, the
OAKLEY RFC doesn't quite provide all the pieces needed to link up with
PKIX
and some other security standards.

(4) The following drafts contain relevant references to Diffie-Hellman or
related protocols.  The first two reference RFC 2631 and the second
specifies a new DH variant altogether:
draft-ietf-smime-small-subgroup-02.txt
draft-ietf-pkix-dhpop-02.txt
draft-ietf-secsh-transport-06.txt

(5) Both of the ANSI documents currently referenced were drafts and
probably
weren't the best basis for IETF standards.  Given the lack of anything
else
to point to, I can't say I blame the authors, however.  They certainly
meant
well.  What is also unfortunate is that IETF community has not been
provided
with access to more current X9.42 drafts.  This is, IMHO, probably related
to the situation I pointed out in (1).

Now, in reponse to your observations:

(6) RFC 2631 states "X9.42 requires that the private key x be in the
interval [2, (q - 2)]"
In other words, (1 < x < q-1).  **It is quite clear that the referenced
X9.42 draft is not only wrong but inconsistent**.  And in a number of
places.  The Diffie-Hellman private key x should be chosen in the closed
interval [2^(m-1), q-1], where m is the minimum length in bits acceptable
for the private key.  (Typically m>=160, but your mileage may vary...)
This
is consistent with security recommendations in the current IEEE P1363
documents as well as definitions in
draft-ietf-smime-small-subgroup-02.txt,
draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical subtlety I have
forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up to
correct me.)

Note that choosing x in [1, q-1] will work just fine mathematically, but
does not reflect or enforce the minimum key size requirement.  Note that
if
the size of q is at least a few bit greater than m and you are using a
good
RNG to pick x, the point is probably moot anyway.  If you are using a
long-term (aka "static") DH keys, however, it probably not a bad idea to
put
the minimum keysize check in your keygen routine as a "belt and
suspenders"
type measure.

(7) The domain parameter generation routines in X9.42 were in fact derived
from those in the FIP 186 spec to allow re-use of DSA parameters (p, q,
and
g) with X9.42 if desired.  I can't say I am a big fan of this because it
forces q to 160 bits which is probably not appropriate if you intend to
enforce a minimum DH private key size greater than 160.

(8) The parameter order switch was not a deliberate booby trap, although
these types of things do help to keep crypto engineers on their toes. :)
As
I recall, the parameters q and j were added when concerns about small
subgroup attacks on Diffie-Hellman surfaced.  It is more of a coincidence
that the DSA algorithm exploits the use of a subgroup also defined by a
prime called q.  In other words, DSA included q from the beginning while
X9.42 added q as a security enhancement.  The ASN.1 encoding choices are
an
artifact of the development process, not a deliberate reversal.  If you
feel
like lobbying ANSI X9F to change the ordering to make everyone's life
easier, have at it.  I wouldn't hold my breath however. :)

(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
 DomainParameters ::= SEQUENCE {
              p       INTEGER, -- odd prime, p=jq +1
              g       INTEGER, -- generator, g
              q       INTEGER, -- factor of p-1
              j       INTEGER OPTIONAL, -- subgroup factor
              validationParms  ValidationParms OPTIONAL }

        ValidationParms ::= SEQUENCE {
              seed             BIT STRING,
              pgenCounter      INTEGER }

whereas the 1998 X9.42 draft shows them as:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER,        -- prime factor of p-1
   j                INTEGER,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL
(**Note q is no longer optional.** JK)

if you can find a copy of the 1997 draft (which I happen to have) we see
the
original version:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER OPTIONAL,        -- prime factor of p-1
   j                INTEGER OPTIONAL,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL

(This early draft reflects my admitted ignorance of proper ASN.1 at the
time. You cannot have multiple optional INTEGERS without tags on them.)

My guess is that the middle version (i.e., with only ValidationParms
optional) is the preferred version, which means RFC 2459 should probably
be
changed.  I do not know what the current X9.42 draft gives.

****Conclusion****
(10) Because of the aforementioned errors and inconsistencies, I have
serious reservations about the continued use or referencing of ANSI X9.42
in
IETF drafts or standards.  The use or referencing of the ANSI X9.42 draft
in
IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the apparently still unratified and possibly unstable ANSI X9.42
draft should be used as a basis or reference for ongoing IETF
Diffie-Hellman
protocol standardization efforts.  Because of this, I respectfully submit
that the IETF should consider whether RFC 2631 should be deprecated and
rewritten in a manner which removes unnecessary references to the
mysterious
and forever-unpublished ANSI X9.42 draft.


-John Kennedy
jkennedy@trustpoint.com



-----Original Message-----
From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
Sent: Sunday, November 21, 1999 1:58 PM
To: ietf-pkix@imc.org; ietf-smime@imc.org
Subject: FIPS 186 and X9.42: One of these things is not like the other


FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
generation algorithm, and have domain parameters which look identical,
however
there are two subtle differences between them, one of which is really
annoying.

The annoying difference is that when writing the domain parameters, the
order
of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA
domain
parameters are written (p, q, g), exactly the same domain parameters when
viewed as X9.42 values are written (p, g, q).  This isn't helped by the
fact
that in many fonts lowercase q and g look very similar.  Apart from the
fact
that it's a booby-trap for implementors, it also means that if the domain
parameters are identified in the traditional way (SHA-1 hash), identical
parameters will appear to be different depending on whether you're
interpreting
them as DSA/KEA or DH parameters.

The second difference is in the allowed range for x:

  FIPS 186: 0 < x < q (ie x = 1...q-1)
  X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)

This looks like a transcription error from FIPS 186, given that using any
x < ~2^160 is unsound I can't see why there'd be any difference between 1
and 2
as a lower bound.

Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
warnings
to the effect that although the parameters are the same internally, their
external representations differ.

Does anyone know why X9.42 decided to reverse the parameter order?

(The motivation for this post is that ages ago I solved the problem of the
 reversed parameters by swapping the pointers for the X9.42 g and q values
so
 they were read and written in the correct order, recently I was looking
 through the code and wondered why it was working fine for both
interpretations
 of parameter ordering.  There's now a big comment block by the code
explaining
 the Bug which Isn't)

Peter.





--0__=ACDP3UzyXR808KoURSahabzWVpJ5vRGS4kMPU5dQEQ0kvhjbvaZoHErM
Content-type: application/octet-stream; 
	name="smime.p7s"
Content-Disposition: attachment; filename="smime.p7s"
Content-transfer-encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGhzCCAo8w
ggH6oAMCAQICFQDZ+E/k9gGxjXStLkDx9Qm6iCXqjTALBgkqhkiG9w0BAQUwNTEWMBQGA1UEAxMN
U01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01lbWUxCzAJBgNVBAYTAlVTMB4XDTk5MDYyNDIzNDQw
OFoXDTE0MDYyNDIzNDQwOFowNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01l
bWUxCzAJBgNVBAYTAlVTMIGdMAsGCSqGSIb3DQEBAQOBjQAwgYkCgYEAoh2u/ZzVrjTtXzowWcH1
vVHqUSJRsAF+TunEsqbZsn755D6Y0xe2ruYlNMEW7sExSoUYPQNR7cTQWwcFSyE3FtDhGGkYUt5O
UgPXZ5HVuG/Q4UwocCbOx4CIIfNJJevfEw9MvthYugg2J13XBW5iUonP5aY5rO6VrQedIa1+q8kC
AwEAAaOBoDCBnTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNn4T+T2AbGNdK0uQPH1CbqI
JeqNMB0GA1UdDgQWBBTZ+E/k9gGxjXStLkDx9Qm6iCXqjTAOBgNVHQ8BAf8EBAMCAP4wJwYDVR0l
BCAwHgYIKwYBBQUHAwIGCCsGAQUFBwMDBggrBgEFBQcDBDARBglghkgBhvhCAQEEBAMCALcwCwYJ
KoZIhvcNAQEFA4GBAJLpYU+A1SKEVesAvpylZ//Fhq/fOZrVnxBgEVHC0RpLMnlPG/Y2XaZqmr42
bIwvqZ50m6R5o41mob2N4a78ty30kAOLEvsxFaK06iezfHFJGn9TbLPEi2BTaIWCJv77skLSVjUe
zzm5JAmaKwJ3txI6s4sbM6/rrnQ2oPa2/n+JMIID8DCCA1ugAwIBAgIVANnXVOID136qfHqgNaDC
u+cYaTDNMAsGCSqGSIb3DQEBBTA1MRYwFAYDVQQDEw1TTWVtZSBSb290IENBMQ4wDAYDVQQKEwVT
TWVtZTELMAkGA1UEBhMCVVMwHhcNOTkwODI1MDEzNjEyWhcNMDAwODI1MDEzNjEyWjBkMQswCQYD
VQQGEwJVUzETMBEGA1UEChMKVHJ1c3Rwb2ludDEYMBYGA1UEAxMPSm9obiBDLiBLZW5uZWR5MSYw
JAYJKoZIhvcNAQkBFhdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTCBnzANBgkqhkiG9w0BAQEFAAOB
jQAwgYkCgYEAm/78rZZNYaJ67AZjKMwFb3ky+57qdCpI0oAbPpQQqYJOAzm0f2Y4Nlz3QMC0scMp
lGvIpxr8qwMoPIReFo+X4e7QiyumvXfNkKSgFw43rA6ne0zACHX7dbx0U4c6NLLDYer+3lFAGe8M
9y2ICgWk9aBnRaPaUKKIJhDpp4zEepMCAwEAAaOCAc8wggHLMB0GA1UdDgQWBBRBz7sIilZiDESP
GwAbpRjKtTIrajAhBgNVHSMEGgQYMBaAFNn4T+T2AbGNdK0uQPH1CbqIJeqNMA4GA1UdDwEB/wQE
AwIA+DAnBgNVHSUEIDAeBggrBgEFBQcDAgYIKwYBBQUHAwMGCCsGAQUFBwMEMBEGCWCGSAGG+EIB
AQQEAwIAsDAiBgNVHREEGzAZgRdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTBRBgNVHSAESjBIMEYG
CCsGBAGYVB4BMDowOAYIKwYBBQUHAgEWLGh0dHA6Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3Jl
ZW1lbnRfMS5odG1sMEQGCWCGSAGG+EIBAwQ3FjVodHRwOi8vd3d3LnNtZW1lLmNvbS9zZXJ2bGV0
cy9zbWVtZV9jYS9jaGVja19yZXZva2VkPzBBBglghkgBhvhCAQcENBYyaHR0cDovL3d3dy5zbWVt
ZS5jb20vc2VydmxldHMvc21lbWVfY2EvcmVuZXdfY2VydD8wOwYJYIZIAYb4QgEIBC4WLGh0dHA6
Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3JlZW1lbnRfMS5odG1sMAsGCSqGSIb3DQEBBQOBgQB3
OYc+W2F6MemxaU4Udxf7CRVZ/fR8/zEs+mpb9WIT2Dsft7XRVKP/XWZeQwx5iBoFOaU6/Xf3yqr4
k6nqhEoj1sPYD5QuTS9M/NhPYovbyf/zzUcXGTV+JRK6TgTMbIbfyuMDfBKKfHXIv5gmJfZUCNhY
N8C00T8yX9sEVYpzfzGCAg4wggIKAgEBME4wNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwG
A1UEChMFU01lbWUxCzAJBgNVBAYTAlVTAhUA2ddU4gPXfqp8eqA1oMK75xhpMM0wCQYFKw4DAhoF
AKCCARYwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNOTkxMTIyMjAw
ODAwWjAjBgkqhkiG9w0BCQQxFgQUBdgjSDcpnR2EJcDFK2skB/DlnoEwWAYJKoZIhvcNAQkPMUsw
STAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwBwYF
Kw4DAhowCgYIKoZIhvcNAgUwXQYJKwYBBAGCNxAEMVAwTjA1MRYwFAYDVQQDEw1TTWVtZSBSb290
IENBMQ4wDAYDVQQKEwVTTWVtZTELMAkGA1UEBhMCVVMCFQDZ11TiA9d+qnx6oDWgwrvnGGkwzTAN
BgkqhkiG9w0BAQEFAASBgDZrQXq3paFT0/wSmjF07F1aFaSLQDaVMzPFcaDkEiXIAMneugvSdduZ
o/W6+y9R89kXdg9DJyGTym1wDe0fR3l9zbraPCh/U4jmU15SpoVyftjdWpZDwWdb43x4im44uXxj
xuc9jnthCBqtWlsqtfo9ue0jBaYy0wB7QjmfOanKAAAAAAAA

--0__=ACDP3UzyXR808KoURSahabzWVpJ5vRGS4kMPU5dQEQ0kvhjbvaZoHErM--



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id MAA24800 for ietf-smime-bks; Mon, 22 Nov 1999 12:02:31 -0800 (PST)
Received: from gandalf.trustpoint.com (IDENT:root@gandalf.trustpoint.com [216.100.231.61]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA24796; Mon, 22 Nov 1999 12:02:29 -0800 (PST)
Received: from himansu (himansu [192.168.42.5]) by gandalf.trustpoint.com (8.8.7/8.8.7) with SMTP id MAA09227; Mon, 22 Nov 1999 12:03:40 -0800
From: "John C. Kennedy" <jkennedy@trustpoint.com>
To: "Don Johnson" <djohnson@certicom.com>
Cc: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>, <ietf-smime@imc.org>, <ipsec@lists.tislabs.com>, <ekr@rtfm.com>, <robert.zuccherato@entrust.com>, <wpolk@nist.gov>, <housley@spyrus.com>, <jis@mit.edu>, <mleech@nortelnetworks.com>, "Elaine Barker" <elaine.barker@nist.gov>, "Sharon Keller" <skeller@nist.gov>, "Simon Blake-Wilson" <sblakewi@certicom.com>, "Phil Griffin" <Phil_Griffin@certicom.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Date: Mon, 22 Nov 1999 12:08:47 -0800
MIME-Version: 1.0
Message-ID: <NDBBKGCMPJCKIDPKAHACIEOOCAAA.jkennedy@trustpoint.com>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_003E_01BF34E2.38788920"
Importance: Normal
In-Reply-To: <85256831.0050D9FB.00@domino2.certicom.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a multi-part message in MIME format.

------=_NextPart_000_003E_01BF34E2.38788920
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Don,

1. I truly hope it is ready for final ballot.  Many people have been
patiently waiting for it and respectfully referencing and including
placeholders in code and other standards in anticipation of it.  It is not
ANSI X9F1's responsibility to supply IETF with algorithm standards in a
timely fashion.  By the same token, IETF security working groups must be
vigilant to not delay important work by continuing to hitch its wagon to a
Diffie-Hellman draft that the ANSI committee continues to revise and which
is *still* not ratified.  My first post gave valid evidence of the results
of this decision thus far.

2. IMHO, the order of the parameters is irrelevant as long as they are
labeled and encoded correctly.

3. Is the private key now called 'd' instead of 'x'? <sigh>
As for the range of the private key, the checks to be performed during
generation should be unambiguous.  Whether or not the receiver of the
corresponding public number can verify that these checks were done is
somewhat meaningless.  For example, can the receiver tell whether or not
the sender's private number was generated with a robust PRNG that won't
repeat itself every tenth time it is accessed?

-John

-----Original Message-----
From: Don Johnson [mailto:djohnson@certicom.com]
Sent: Monday, November 22, 1999 6:36 AM
To: John C. Kennedy
Cc: pgut001@cs.auckland.ac.nz; ietf-pkix@imc.org; ietf-smime@imc.org;
ipsec@lists.tislabs.com; ekr@rtfm.com; robert.zuccherato@entrust.com;
wpolk@nist.gov; housley@spyrus.com; jis@mit.edu;
mleech@nortelnetworks.com; Elaine Barker; Sharon Keller; Simon
Blake-Wilson; Phil Griffin
Subject: RE: FIPS 186 and X9.42: One of these things is not like the
other


John,

A few comments on X9.42.
1. Elaine Barkey and Sharon Keller of NIST are the editors of ANSI X9.42.
I am
copying them on your note.  It should be ready for final ballot.
2. The order of the parameters in the domain parameters should be made
consistent with X9.30 DSA, I think.  If this is not the way it is, it
should be
changed in X9.42.
3. The private key d should be a value from 1 to q-1 in X9.42.  It is
allowed to
chop off the ends and make it 2 to q-2.  Any further reduction risks
reducing
the keysize and therefore aiding the adversary.  The reason that "low"
values
are allowed sometimes is that it is not known how to detect such a
situation.
In fact, if it were, then DH would unravel anyway.

Don Johnson






"John C. Kennedy" <jkennedy@trustpoint.com> on 11/21/99 04:17:21 AM

To:   pgut001@cs.auckland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
      ipsec@lists.tislabs.com
cc:   ekr@rtfm.com, robert.zuccherato@entrust.com, Don
      Johnson/Certicom@Certicom, wpolk@nist.gov, housley@spyrus.com,
      jis@mit.edu, mleech@nortelnetworks.com

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the
other




(A long but hopefully illuminating follow-up regarding ANSI X9.42)

(**Summary: The use or referencing of the ANSI X9.42 (Diffie-Hellman)
drafts
in IETF standards has resulted in the propagation of a number of errors
and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the still unratified ANSI X9.42 draft should be used as a basis or
even a reference for ongoing IETF Diffie-Hellman protocol standardization
work.)

Peter,

I was the editor of the ANSI X9.42 Diffie-Hellman draft up until about
April
of 1997 when I changed employers and passed the X9.42 editing torch.
Since
my current work has given me a reason to wade back into the IETF process,
I
wanted to share a few comments and provide some additional data on the
apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
years later it seems to still be a bit of a mess in need of some tidying
up.

(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
believe this may be a draft that I "strategically distributed" to a few
select people working in IPSEC, PKIX, and other IETF working groups around
that time.  ANSI X9F has never had a lot of interest in seeing X9.42
reviewed or adopted by IETF.  [In fact, it is ridiculous that after almost
five years of work and innumerable rewrites, neither ANSI or NIST have
published an authoritative interoperability standard for one the most
fundamental and powerful public key techniques for key agreement we have.
(Hint: It is not because of patents or because it is too difficult to
communicate.)]

(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a 1998 draft
of X9.42.  This X9.42 draft is probably the one made available by ANSI to
IEEE P1363 members at
http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You will
need an IEEE P1363 password to get at this.)  This draft is better than
the
1997 draft, but still has problems.  Since I have not been involved with
ANSI for about 3 years, I can't comment on where the X9.42 draft currently
stands.  Since the X9.42 draft document is (still!) not public, it is not
clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
currently a proposed standard in IETF.  Since RFC 2631 propagates errors
that existed in the 1998 X9.42 draft, a second look at it is probably
called
for. (These errors are noted below)

(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any Diffie-Hellman
standards.  While the techniques given in this document are mathematically
accurate and certainly filled a gap in the IPSEC work at the time, the
OAKLEY RFC doesn't quite provide all the pieces needed to link up with
PKIX
and some other security standards.

(4) The following drafts contain relevant references to Diffie-Hellman or
related protocols.  The first two reference RFC 2631 and the second
specifies a new DH variant altogether:
draft-ietf-smime-small-subgroup-02.txt
draft-ietf-pkix-dhpop-02.txt
draft-ietf-secsh-transport-06.txt

(5) Both of the ANSI documents currently referenced were drafts and
probably
weren't the best basis for IETF standards.  Given the lack of anything
else
to point to, I can't say I blame the authors, however.  They certainly
meant
well.  What is also unfortunate is that IETF community has not been
provided
with access to more current X9.42 drafts.  This is, IMHO, probably related
to the situation I pointed out in (1).

Now, in reponse to your observations:

(6) RFC 2631 states "X9.42 requires that the private key x be in the
interval [2, (q - 2)]"
In other words, (1 < x < q-1).  **It is quite clear that the referenced
X9.42 draft is not only wrong but inconsistent**.  And in a number of
places.  The Diffie-Hellman private key x should be chosen in the closed
interval [2^(m-1), q-1], where m is the minimum length in bits acceptable
for the private key.  (Typically m>=160, but your mileage may vary...)
This
is consistent with security recommendations in the current IEEE P1363
documents as well as definitions in
draft-ietf-smime-small-subgroup-02.txt,
draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical subtlety I have
forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up to
correct me.)

Note that choosing x in [1, q-1] will work just fine mathematically, but
does not reflect or enforce the minimum key size requirement.  Note that
if
the size of q is at least a few bit greater than m and you are using a
good
RNG to pick x, the point is probably moot anyway.  If you are using a
long-term (aka "static") DH keys, however, it probably not a bad idea to
put
the minimum keysize check in your keygen routine as a "belt and
suspenders"
type measure.

(7) The domain parameter generation routines in X9.42 were in fact derived
from those in the FIP 186 spec to allow re-use of DSA parameters (p, q,
and
g) with X9.42 if desired.  I can't say I am a big fan of this because it
forces q to 160 bits which is probably not appropriate if you intend to
enforce a minimum DH private key size greater than 160.

(8) The parameter order switch was not a deliberate booby trap, although
these types of things do help to keep crypto engineers on their toes. :)
As
I recall, the parameters q and j were added when concerns about small
subgroup attacks on Diffie-Hellman surfaced.  It is more of a coincidence
that the DSA algorithm exploits the use of a subgroup also defined by a
prime called q.  In other words, DSA included q from the beginning while
X9.42 added q as a security enhancement.  The ASN.1 encoding choices are
an
artifact of the development process, not a deliberate reversal.  If you
feel
like lobbying ANSI X9F to change the ordering to make everyone's life
easier, have at it.  I wouldn't hold my breath however. :)

(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
 DomainParameters ::= SEQUENCE {
              p       INTEGER, -- odd prime, p=jq +1
              g       INTEGER, -- generator, g
              q       INTEGER, -- factor of p-1
              j       INTEGER OPTIONAL, -- subgroup factor
              validationParms  ValidationParms OPTIONAL }

        ValidationParms ::= SEQUENCE {
              seed             BIT STRING,
              pgenCounter      INTEGER }

whereas the 1998 X9.42 draft shows them as:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER,        -- prime factor of p-1
   j                INTEGER,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL
(**Note q is no longer optional.** JK)

if you can find a copy of the 1997 draft (which I happen to have) we see
the
original version:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER OPTIONAL,        -- prime factor of p-1
   j                INTEGER OPTIONAL,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL

(This early draft reflects my admitted ignorance of proper ASN.1 at the
time. You cannot have multiple optional INTEGERS without tags on them.)

My guess is that the middle version (i.e., with only ValidationParms
optional) is the preferred version, which means RFC 2459 should probably
be
changed.  I do not know what the current X9.42 draft gives.

****Conclusion****
(10) Because of the aforementioned errors and inconsistencies, I have
serious reservations about the continued use or referencing of ANSI X9.42
in
IETF drafts or standards.  The use or referencing of the ANSI X9.42 draft
in
IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the apparently still unratified and possibly unstable ANSI X9.42
draft should be used as a basis or reference for ongoing IETF
Diffie-Hellman
protocol standardization efforts.  Because of this, I respectfully submit
that the IETF should consider whether RFC 2631 should be deprecated and
rewritten in a manner which removes unnecessary references to the
mysterious
and forever-unpublished ANSI X9.42 draft.


-John Kennedy
jkennedy@trustpoint.com



-----Original Message-----
From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
Sent: Sunday, November 21, 1999 1:58 PM
To: ietf-pkix@imc.org; ietf-smime@imc.org
Subject: FIPS 186 and X9.42: One of these things is not like the other


FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
generation algorithm, and have domain parameters which look identical,
however
there are two subtle differences between them, one of which is really
annoying.

The annoying difference is that when writing the domain parameters, the
order
of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA
domain
parameters are written (p, q, g), exactly the same domain parameters when
viewed as X9.42 values are written (p, g, q).  This isn't helped by the
fact
that in many fonts lowercase q and g look very similar.  Apart from the
fact
that it's a booby-trap for implementors, it also means that if the domain
parameters are identified in the traditional way (SHA-1 hash), identical
parameters will appear to be different depending on whether you're
interpreting
them as DSA/KEA or DH parameters.

The second difference is in the allowed range for x:

  FIPS 186: 0 < x < q (ie x = 1...q-1)
  X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)

This looks like a transcription error from FIPS 186, given that using any
x < ~2^160 is unsound I can't see why there'd be any difference between 1
and 2
as a lower bound.

Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
warnings
to the effect that although the parameters are the same internally, their
external representations differ.

Does anyone know why X9.42 decided to reverse the parameter order?

(The motivation for this post is that ages ago I solved the problem of the
 reversed parameters by swapping the pointers for the X9.42 g and q values
so
 they were read and written in the correct order, recently I was looking
 through the code and wondered why it was working fine for both
interpretations
 of parameter ordering.  There's now a big comment block by the code
explaining
 the Bug which Isn't)

Peter.




------=_NextPart_000_003E_01BF34E2.38788920
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGhzCCAo8w
ggH6oAMCAQICFQDZ+E/k9gGxjXStLkDx9Qm6iCXqjTALBgkqhkiG9w0BAQUwNTEWMBQGA1UEAxMN
U01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01lbWUxCzAJBgNVBAYTAlVTMB4XDTk5MDYyNDIzNDQw
OFoXDTE0MDYyNDIzNDQwOFowNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwGA1UEChMFU01l
bWUxCzAJBgNVBAYTAlVTMIGdMAsGCSqGSIb3DQEBAQOBjQAwgYkCgYEAoh2u/ZzVrjTtXzowWcH1
vVHqUSJRsAF+TunEsqbZsn755D6Y0xe2ruYlNMEW7sExSoUYPQNR7cTQWwcFSyE3FtDhGGkYUt5O
UgPXZ5HVuG/Q4UwocCbOx4CIIfNJJevfEw9MvthYugg2J13XBW5iUonP5aY5rO6VrQedIa1+q8kC
AwEAAaOBoDCBnTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNn4T+T2AbGNdK0uQPH1CbqI
JeqNMB0GA1UdDgQWBBTZ+E/k9gGxjXStLkDx9Qm6iCXqjTAOBgNVHQ8BAf8EBAMCAP4wJwYDVR0l
BCAwHgYIKwYBBQUHAwIGCCsGAQUFBwMDBggrBgEFBQcDBDARBglghkgBhvhCAQEEBAMCALcwCwYJ
KoZIhvcNAQEFA4GBAJLpYU+A1SKEVesAvpylZ//Fhq/fOZrVnxBgEVHC0RpLMnlPG/Y2XaZqmr42
bIwvqZ50m6R5o41mob2N4a78ty30kAOLEvsxFaK06iezfHFJGn9TbLPEi2BTaIWCJv77skLSVjUe
zzm5JAmaKwJ3txI6s4sbM6/rrnQ2oPa2/n+JMIID8DCCA1ugAwIBAgIVANnXVOID136qfHqgNaDC
u+cYaTDNMAsGCSqGSIb3DQEBBTA1MRYwFAYDVQQDEw1TTWVtZSBSb290IENBMQ4wDAYDVQQKEwVT
TWVtZTELMAkGA1UEBhMCVVMwHhcNOTkwODI1MDEzNjEyWhcNMDAwODI1MDEzNjEyWjBkMQswCQYD
VQQGEwJVUzETMBEGA1UEChMKVHJ1c3Rwb2ludDEYMBYGA1UEAxMPSm9obiBDLiBLZW5uZWR5MSYw
JAYJKoZIhvcNAQkBFhdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTCBnzANBgkqhkiG9w0BAQEFAAOB
jQAwgYkCgYEAm/78rZZNYaJ67AZjKMwFb3ky+57qdCpI0oAbPpQQqYJOAzm0f2Y4Nlz3QMC0scMp
lGvIpxr8qwMoPIReFo+X4e7QiyumvXfNkKSgFw43rA6ne0zACHX7dbx0U4c6NLLDYer+3lFAGe8M
9y2ICgWk9aBnRaPaUKKIJhDpp4zEepMCAwEAAaOCAc8wggHLMB0GA1UdDgQWBBRBz7sIilZiDESP
GwAbpRjKtTIrajAhBgNVHSMEGgQYMBaAFNn4T+T2AbGNdK0uQPH1CbqIJeqNMA4GA1UdDwEB/wQE
AwIA+DAnBgNVHSUEIDAeBggrBgEFBQcDAgYIKwYBBQUHAwMGCCsGAQUFBwMEMBEGCWCGSAGG+EIB
AQQEAwIAsDAiBgNVHREEGzAZgRdqa2VubmVkeUB0cnVzdHBvaW50LmNvbTBRBgNVHSAESjBIMEYG
CCsGBAGYVB4BMDowOAYIKwYBBQUHAgEWLGh0dHA6Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3Jl
ZW1lbnRfMS5odG1sMEQGCWCGSAGG+EIBAwQ3FjVodHRwOi8vd3d3LnNtZW1lLmNvbS9zZXJ2bGV0
cy9zbWVtZV9jYS9jaGVja19yZXZva2VkPzBBBglghkgBhvhCAQcENBYyaHR0cDovL3d3dy5zbWVt
ZS5jb20vc2VydmxldHMvc21lbWVfY2EvcmVuZXdfY2VydD8wOwYJYIZIAYb4QgEIBC4WLGh0dHA6
Ly93d3cuc21lbWUuY29tL3NlcnZpY2VhZ3JlZW1lbnRfMS5odG1sMAsGCSqGSIb3DQEBBQOBgQB3
OYc+W2F6MemxaU4Udxf7CRVZ/fR8/zEs+mpb9WIT2Dsft7XRVKP/XWZeQwx5iBoFOaU6/Xf3yqr4
k6nqhEoj1sPYD5QuTS9M/NhPYovbyf/zzUcXGTV+JRK6TgTMbIbfyuMDfBKKfHXIv5gmJfZUCNhY
N8C00T8yX9sEVYpzfzGCAg4wggIKAgEBME4wNTEWMBQGA1UEAxMNU01lbWUgUm9vdCBDQTEOMAwG
A1UEChMFU01lbWUxCzAJBgNVBAYTAlVTAhUA2ddU4gPXfqp8eqA1oMK75xhpMM0wCQYFKw4DAhoF
AKCCARYwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNOTkxMTIyMjAw
ODAwWjAjBgkqhkiG9w0BCQQxFgQUBdgjSDcpnR2EJcDFK2skB/DlnoEwWAYJKoZIhvcNAQkPMUsw
STAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwBwYF
Kw4DAhowCgYIKoZIhvcNAgUwXQYJKwYBBAGCNxAEMVAwTjA1MRYwFAYDVQQDEw1TTWVtZSBSb290
IENBMQ4wDAYDVQQKEwVTTWVtZTELMAkGA1UEBhMCVVMCFQDZ11TiA9d+qnx6oDWgwrvnGGkwzTAN
BgkqhkiG9w0BAQEFAASBgDZrQXq3paFT0/wSmjF07F1aFaSLQDaVMzPFcaDkEiXIAMneugvSdduZ
o/W6+y9R89kXdg9DJyGTym1wDe0fR3l9zbraPCh/U4jmU15SpoVyftjdWpZDwWdb43x4im44uXxj
xuc9jnthCBqtWlsqtfo9ue0jBaYy0wB7QjmfOanKAAAAAAAA

------=_NextPart_000_003E_01BF34E2.38788920--



Received: by ns.secondary.com (8.9.3/8.9.3) id LAA24497 for ietf-smime-bks; Mon, 22 Nov 1999 11:57:55 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA24493; Mon, 22 Nov 1999 11:57:54 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id LAA04995; Mon, 22 Nov 1999 11:57:47 -0800 (PST)
Message-Id: <4.2.0.58.19991122144732.00a45f00@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Mon, 22 Nov 1999 14:56:30 -0500
To: "Don Johnson" <djohnson@certicom.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Cc: "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, jis@mit.edu, mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, Sharon Keller <skeller@nist.gov>, "Simon Blake-Wilson" <sblakewi@certicom.com>, "Phil Griffin" <Phil_Griffin@certicom.com>
In-Reply-To: <85256831.0069D316.00@domino2.certicom.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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Don:

The ASN.1 associated with DSA in X9.57 is completely aligned with PKIX (RFC 
2459).  The DSA parameters contain p, q, and g.

The ASN.1 associated with Diffie-Hellman in the draft X9.42 is completely 
aligned with PKIX (RFC 2459) and S/MIME (RFC 2631).  The D-H parameters 
contain p, g, q, j (optional), and validationParms (also optional).

Both of these parameter structures are included in RFC 2459.  Concerns 
about alignment of the two structures should have been raised many months ago.

While it might have been nice to have the two parameter definitions use the 
same order for p, q, and g, this is not a show stopper.  People have 
implemented with against the current specifications, and I am strongly 
opposed to changes at this late date.

Russ


At 02:06 PM 11/22/99 -0500, Don Johnson wrote:
>Russ,
>
>Yes, the ASN.1 for X9.30 is/was in X9.57 Certificate Management, DSA was the
>only public key ANSI X9 had at that time.
>Don Johnson
>
>
>
>
>
>Russ Housley <housley@spyrus.com> on 11/22/99 01:50:56 PM
>
>To:   Don Johnson/Certicom@Certicom
>cc:   "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz,
>       ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com,
>       ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, 
> jis@mit.edu,
>       mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, 
> Sharon
>       Keller <skeller@nist.gov>, Simon Blake-Wilson/Certicom@Certicom, "Phil
>       Griffin" <Phil_Griffin@certicom.com>
>
>Subject:  RE: FIPS 186 and X9.42: One of these things is not like the  other
>
>
>
>
>Don:
>
>At 09:36 AM 11/22/99 -0500, Don Johnson wrote:
> >2. The order of the parameters in the domain parameters should be made
> >consistent with X9.30 DSA, I think.  If this is not the way it is, it
> >should be
> >changed in X9.42.
>
>I find no ASN.1 in X9.30 part 1.
>
>Russ
>
>



Received: by ns.secondary.com (8.9.3/8.9.3) id LAA23072 for ietf-smime-bks; Mon, 22 Nov 1999 11:16:28 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA23063; Mon, 22 Nov 1999 11:16:25 -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 OAA12997; Mon, 22 Nov 1999 14:21:52 -0500 (EST) (envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.4  (830.2 3-23-1999))  id 85256831.0069D4E2 ; Mon, 22 Nov 1999 14:15:57 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: Russ Housley <housley@spyrus.com>
cc: "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, jis@mit.edu, mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, Sharon Keller <skeller@nist.gov>, "Simon Blake-Wilson" <sblakewi@certicom.com>, "Phil Griffin" <Phil_Griffin@certicom.com>
Message-ID: <85256831.0069D316.00@domino2.certicom.com>
Date: Mon, 22 Nov 1999 14:07:00 -0500
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

Also, I am not suggesting it MUST be changed, just that it would be preferred to
be consistent, if at all possible,
Don Johnson





Russ Housley <housley@spyrus.com> on 11/22/99 01:50:56 PM

To:   Don Johnson/Certicom@Certicom
cc:   "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz,
      ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com,
      ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, jis@mit.edu,
      mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, Sharon
      Keller <skeller@nist.gov>, Simon Blake-Wilson/Certicom@Certicom, "Phil
      Griffin" <Phil_Griffin@certicom.com>

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the  other




Don:

At 09:36 AM 11/22/99 -0500, Don Johnson wrote:
>2. The order of the parameters in the domain parameters should be made
>consistent with X9.30 DSA, I think.  If this is not the way it is, it
>should be
>changed in X9.42.

I find no ASN.1 in X9.30 part 1.

Russ






Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id LAA23071 for ietf-smime-bks; Mon, 22 Nov 1999 11:16:28 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA23064; Mon, 22 Nov 1999 11:16:25 -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 OAA13000; Mon, 22 Nov 1999 14:21:52 -0500 (EST) (envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.4  (830.2 3-23-1999))  id 85256831.0069D4A8 ; Mon, 22 Nov 1999 14:15:57 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: Russ Housley <housley@spyrus.com>
cc: "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, jis@mit.edu, mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, Sharon Keller <skeller@nist.gov>, "Simon Blake-Wilson" <sblakewi@certicom.com>, "Phil Griffin" <Phil_Griffin@certicom.com>
Message-ID: <85256831.0069D316.00@domino2.certicom.com>
Date: Mon, 22 Nov 1999 14:06:17 -0500
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Russ,

Yes, the ASN.1 for X9.30 is/was in X9.57 Certificate Management, DSA was the
only public key ANSI X9 had at that time.
Don Johnson





Russ Housley <housley@spyrus.com> on 11/22/99 01:50:56 PM

To:   Don Johnson/Certicom@Certicom
cc:   "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz,
      ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com,
      ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, jis@mit.edu,
      mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, Sharon
      Keller <skeller@nist.gov>, Simon Blake-Wilson/Certicom@Certicom, "Phil
      Griffin" <Phil_Griffin@certicom.com>

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the  other




Don:

At 09:36 AM 11/22/99 -0500, Don Johnson wrote:
>2. The order of the parameters in the domain parameters should be made
>consistent with X9.30 DSA, I think.  If this is not the way it is, it
>should be
>changed in X9.42.

I find no ASN.1 in X9.30 part 1.

Russ






Received: by ns.secondary.com (8.9.3/8.9.3) id KAA22239 for ietf-smime-bks; Mon, 22 Nov 1999 10:50:57 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA22235; Mon, 22 Nov 1999 10:50:56 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id KAA03222; Mon, 22 Nov 1999 10:50:44 -0800 (PST)
Message-Id: <4.2.0.58.19991122135026.00956aa0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Mon, 22 Nov 1999 13:50:56 -0500
To: "Don Johnson" <djohnson@certicom.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Cc: "John C. Kennedy" <jkennedy@trustpoint.com>, pgut001@cs.aucKland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, jis@mit.edu, mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, Sharon Keller <skeller@nist.gov>, "Simon Blake-Wilson" <sblakewi@certicom.com>, "Phil Griffin" <Phil_Griffin@certicom.com>
In-Reply-To: <85256831.0050D9FB.00@domino2.certicom.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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Don:

At 09:36 AM 11/22/99 -0500, Don Johnson wrote:
>2. The order of the parameters in the domain parameters should be made
>consistent with X9.30 DSA, I think.  If this is not the way it is, it 
>should be
>changed in X9.42.

I find no ASN.1 in X9.30 part 1.

Russ


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id IAA18817 for ietf-smime-bks; Mon, 22 Nov 1999 08:06:04 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id IAA18807; Mon, 22 Nov 1999 08:06:00 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id IAA29659; Mon, 22 Nov 1999 08:05:52 -0800 (PST)
Message-Id: <4.2.0.58.19991122105512.009c6e00@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Mon, 22 Nov 1999 11:00:16 -0500
To: "John C. Kennedy" <jkennedy@trustpoint.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Cc: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>, <ietf-smime@imc.org>, <ipsec@lists.tislabs.com>, <ekr@rtfm.com>, <robert.zuccherato@entrust.com>, <djohnson@certicom.com>, <wpolk@nist.gov>, <jis@mit.edu>, <mleech@nortelnetworks.com>
In-Reply-To: <NDBBKGCMPJCKIDPKAHACIENDCAAA.jkennedy@trustpoint.com>
References: <94314589412790@cs26.cs.auckland.ac.nz>
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John:

You have been out of the loop for over two years, and your observation are 
simply incorrect!

The people that have been working on the PKIX and S/MIME standards that 
refer to X9.42 have been given every version of the document as it became 
available to the X9F1 working group participants.  And, X9F1 has worked to 
ensure that they did not change the parts of X9.42 that were adopted by the 
IETF.

Peter may not like the minor differences between X9.42 and DSA.  But the 
IETF documents are aligned with the X9.42 (just as they claim).  By the 
way, FIPS 186 contains no ASN.1; it only contains the algorithm specification.

Russ


At 01:17 AM 11/21/99 -0800, John C. Kennedy wrote:
>(A long but hopefully illuminating follow-up regarding ANSI X9.42)
>
>(**Summary: The use or referencing of the ANSI X9.42 (Diffie-Hellman) drafts
>in IETF standards has resulted in the propagation of a number of errors and
>inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
>whether the still unratified ANSI X9.42 draft should be used as a basis or
>even a reference for ongoing IETF Diffie-Hellman protocol standardization
>work.)
>
>Peter,
>
>I was the editor of the ANSI X9.42 Diffie-Hellman draft up until about April
>of 1997 when I changed employers and passed the X9.42 editing torch.  Since
>my current work has given me a reason to wade back into the IETF process, I
>wanted to share a few comments and provide some additional data on the
>apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
>years later it seems to still be a bit of a mess in need of some tidying up.
>
>(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
>believe this may be a draft that I "strategically distributed" to a few
>select people working in IPSEC, PKIX, and other IETF working groups around
>that time.  ANSI X9F has never had a lot of interest in seeing X9.42
>reviewed or adopted by IETF.  [In fact, it is ridiculous that after almost
>five years of work and innumerable rewrites, neither ANSI or NIST have
>published an authoritative interoperability standard for one the most
>fundamental and powerful public key techniques for key agreement we have.
>(Hint: It is not because of patents or because it is too difficult to
>communicate.)]
>
>(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a 1998 draft
>of X9.42.  This X9.42 draft is probably the one made available by ANSI to
>IEEE P1363 members at
>http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You will
>need an IEEE P1363 password to get at this.)  This draft is better than the
>1997 draft, but still has problems.  Since I have not been involved with
>ANSI for about 3 years, I can't comment on where the X9.42 draft currently
>stands.  Since the X9.42 draft document is (still!) not public, it is not
>clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
>currently a proposed standard in IETF.  Since RFC 2631 propagates errors
>that existed in the 1998 X9.42 draft, a second look at it is probably called
>for. (These errors are noted below)
>
>(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any Diffie-Hellman
>standards.  While the techniques given in this document are mathematically
>accurate and certainly filled a gap in the IPSEC work at the time, the
>OAKLEY RFC doesn't quite provide all the pieces needed to link up with PKIX
>and some other security standards.
>
>(4) The following drafts contain relevant references to Diffie-Hellman or
>related protocols.  The first two reference RFC 2631 and the second
>specifies a new DH variant altogether:
>draft-ietf-smime-small-subgroup-02.txt
>draft-ietf-pkix-dhpop-02.txt
>draft-ietf-secsh-transport-06.txt
>
>(5) Both of the ANSI documents currently referenced were drafts and probably
>weren't the best basis for IETF standards.  Given the lack of anything else
>to point to, I can't say I blame the authors, however.  They certainly meant
>well.  What is also unfortunate is that IETF community has not been provided
>with access to more current X9.42 drafts.  This is, IMHO, probably related
>to the situation I pointed out in (1).
>
>Now, in reponse to your observations:
>
>(6) RFC 2631 states "X9.42 requires that the private key x be in the
>interval [2, (q - 2)]"
>In other words, (1 < x < q-1).  **It is quite clear that the referenced
>X9.42 draft is not only wrong but inconsistent**.  And in a number of
>places.  The Diffie-Hellman private key x should be chosen in the closed
>interval [2^(m-1), q-1], where m is the minimum length in bits acceptable
>for the private key.  (Typically m>=160, but your mileage may vary...)  This
>is consistent with security recommendations in the current IEEE P1363
>documents as well as definitions in draft-ietf-smime-small-subgroup-02.txt,
>draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical subtlety I have
>forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up to
>correct me.)
>
>Note that choosing x in [1, q-1] will work just fine mathematically, but
>does not reflect or enforce the minimum key size requirement.  Note that if
>the size of q is at least a few bit greater than m and you are using a good
>RNG to pick x, the point is probably moot anyway.  If you are using a
>long-term (aka "static") DH keys, however, it probably not a bad idea to put
>the minimum keysize check in your keygen routine as a "belt and suspenders"
>type measure.
>
>(7) The domain parameter generation routines in X9.42 were in fact derived
>from those in the FIP 186 spec to allow re-use of DSA parameters (p, q, and
>g) with X9.42 if desired.  I can't say I am a big fan of this because it
>forces q to 160 bits which is probably not appropriate if you intend to
>enforce a minimum DH private key size greater than 160.
>
>(8) The parameter order switch was not a deliberate booby trap, although
>these types of things do help to keep crypto engineers on their toes. :)  As
>I recall, the parameters q and j were added when concerns about small
>subgroup attacks on Diffie-Hellman surfaced.  It is more of a coincidence
>that the DSA algorithm exploits the use of a subgroup also defined by a
>prime called q.  In other words, DSA included q from the beginning while
>X9.42 added q as a security enhancement.  The ASN.1 encoding choices are an
>artifact of the development process, not a deliberate reversal.  If you feel
>like lobbying ANSI X9F to change the ordering to make everyone's life
>easier, have at it.  I wouldn't hold my breath however. :)
>
>(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
>  DomainParameters ::= SEQUENCE {
>               p       INTEGER, -- odd prime, p=jq +1
>               g       INTEGER, -- generator, g
>               q       INTEGER, -- factor of p-1
>               j       INTEGER OPTIONAL, -- subgroup factor
>               validationParms  ValidationParms OPTIONAL }
>
>         ValidationParms ::= SEQUENCE {
>               seed             BIT STRING,
>               pgenCounter      INTEGER }
>
>whereas the 1998 X9.42 draft shows them as:
>
>DomainParameters ::= SEQUENCE {  -- Galois field group parameters
>    p                INTEGER,        -- odd prime, p = jq + 1
>    g                INTEGER,        -- generator, g
>    q                INTEGER,        -- prime factor of p-1
>    j                INTEGER,        -- subgroup factor, j >= 2
>    validationParms  ValidationParms OPTIONAL
>(**Note q is no longer optional.** JK)
>
>if you can find a copy of the 1997 draft (which I happen to have) we see the
>original version:
>
>DomainParameters ::= SEQUENCE {  -- Galois field group parameters
>    p                INTEGER,        -- odd prime, p = jq + 1
>    g                INTEGER,        -- generator, g
>    q                INTEGER OPTIONAL,        -- prime factor of p-1
>    j                INTEGER OPTIONAL,        -- subgroup factor, j >= 2
>    validationParms  ValidationParms OPTIONAL
>
>(This early draft reflects my admitted ignorance of proper ASN.1 at the
>time. You cannot have multiple optional INTEGERS without tags on them.)
>
>My guess is that the middle version (i.e., with only ValidationParms
>optional) is the preferred version, which means RFC 2459 should probably be
>changed.  I do not know what the current X9.42 draft gives.
>
>****Conclusion****
>(10) Because of the aforementioned errors and inconsistencies, I have
>serious reservations about the continued use or referencing of ANSI X9.42 in
>IETF drafts or standards.  The use or referencing of the ANSI X9.42 draft in
>IETF standards has resulted in the propagation of a number of errors and
>inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
>whether the apparently still unratified and possibly unstable ANSI X9.42
>draft should be used as a basis or reference for ongoing IETF Diffie-Hellman
>protocol standardization efforts.  Because of this, I respectfully submit
>that the IETF should consider whether RFC 2631 should be deprecated and
>rewritten in a manner which removes unnecessary references to the mysterious
>and forever-unpublished ANSI X9.42 draft.
>
>
>-John Kennedy
>jkennedy@trustpoint.com
>
>
>
>-----Original Message-----
>From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
>Sent: Sunday, November 21, 1999 1:58 PM
>To: ietf-pkix@imc.org; ietf-smime@imc.org
>Subject: FIPS 186 and X9.42: One of these things is not like the other
>
>
>FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
>generation algorithm, and have domain parameters which look identical,
>however
>there are two subtle differences between them, one of which is really
>annoying.
>
>The annoying difference is that when writing the domain parameters, the
>order
>of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA domain
>parameters are written (p, q, g), exactly the same domain parameters when
>viewed as X9.42 values are written (p, g, q).  This isn't helped by the fact
>that in many fonts lowercase q and g look very similar.  Apart from the fact
>that it's a booby-trap for implementors, it also means that if the domain
>parameters are identified in the traditional way (SHA-1 hash), identical
>parameters will appear to be different depending on whether you're
>interpreting
>them as DSA/KEA or DH parameters.
>
>The second difference is in the allowed range for x:
>
>   FIPS 186: 0 < x < q (ie x = 1...q-1)
>   X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)
>
>This looks like a transcription error from FIPS 186, given that using any
>x < ~2^160 is unsound I can't see why there'd be any difference between 1
>and 2
>as a lower bound.
>
>Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
>warnings
>to the effect that although the parameters are the same internally, their
>external representations differ.
>
>Does anyone know why X9.42 decided to reverse the parameter order?
>
>(The motivation for this post is that ages ago I solved the problem of the
>  reversed parameters by swapping the pointers for the X9.42 g and q values
>so
>  they were read and written in the correct order, recently I was looking
>  through the code and wondered why it was working fine for both
>interpretations
>  of parameter ordering.  There's now a big comment block by the code
>explaining
>  the Bug which Isn't)
>
>Peter.



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id GAA17384 for ietf-smime-bks; Mon, 22 Nov 1999 06:44:15 -0800 (PST)
Received: from eng1.certicom.com (mailhost.certicom.com [209.121.99.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id GAA17380; Mon, 22 Nov 1999 06:44:13 -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 JAA06563; Mon, 22 Nov 1999 09:49:12 -0500 (EST) (envelope-from djohnson@certicom.com)
Received: by domino2.certicom.com(Lotus SMTP MTA v4.6.4  (830.2 3-23-1999))  id 85256831.0050DC08 ; Mon, 22 Nov 1999 09:43:12 -0500
X-Lotus-FromDomain: CERTICOM
From: "Don Johnson" <djohnson@certicom.com>
To: "John C. Kennedy" <jkennedy@trustpoint.com>
cc: pgut001@cs.aucKland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com, wpolk@nist.gov, housley@spyrus.com, jis@mit.edu, mleech@nortelnetworks.com, Elaine Barker <elaine.barker@nist.gov>, Sharon Keller <skeller@nist.gov>, "Simon Blake-Wilson" <sblakewi@certicom.com>, "Phil Griffin" <Phil_Griffin@certicom.com>
Message-ID: <85256831.0050D9FB.00@domino2.certicom.com>
Date: Mon, 22 Nov 1999 09:36:04 -0500
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

John,

A few comments on X9.42.
1. Elaine Barkey and Sharon Keller of NIST are the editors of ANSI X9.42.  I am
copying them on your note.  It should be ready for final ballot.
2. The order of the parameters in the domain parameters should be made
consistent with X9.30 DSA, I think.  If this is not the way it is, it should be
changed in X9.42.
3. The private key d should be a value from 1 to q-1 in X9.42.  It is allowed to
chop off the ends and make it 2 to q-2.  Any further reduction risks reducing
the keysize and therefore aiding the adversary.  The reason that "low" values
are allowed sometimes is that it is not known how to detect such a situation.
In fact, if it were, then DH would unravel anyway.

Don Johnson






"John C. Kennedy" <jkennedy@trustpoint.com> on 11/21/99 04:17:21 AM

To:   pgut001@cs.auckland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org,
      ipsec@lists.tislabs.com
cc:   ekr@rtfm.com, robert.zuccherato@entrust.com, Don
      Johnson/Certicom@Certicom, wpolk@nist.gov, housley@spyrus.com,
      jis@mit.edu, mleech@nortelnetworks.com

Subject:  RE: FIPS 186 and X9.42: One of these things is not like the other




(A long but hopefully illuminating follow-up regarding ANSI X9.42)

(**Summary: The use or referencing of the ANSI X9.42 (Diffie-Hellman) drafts
in IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the still unratified ANSI X9.42 draft should be used as a basis or
even a reference for ongoing IETF Diffie-Hellman protocol standardization
work.)

Peter,

I was the editor of the ANSI X9.42 Diffie-Hellman draft up until about April
of 1997 when I changed employers and passed the X9.42 editing torch.  Since
my current work has given me a reason to wade back into the IETF process, I
wanted to share a few comments and provide some additional data on the
apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
years later it seems to still be a bit of a mess in need of some tidying up.

(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
believe this may be a draft that I "strategically distributed" to a few
select people working in IPSEC, PKIX, and other IETF working groups around
that time.  ANSI X9F has never had a lot of interest in seeing X9.42
reviewed or adopted by IETF.  [In fact, it is ridiculous that after almost
five years of work and innumerable rewrites, neither ANSI or NIST have
published an authoritative interoperability standard for one the most
fundamental and powerful public key techniques for key agreement we have.
(Hint: It is not because of patents or because it is too difficult to
communicate.)]

(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a 1998 draft
of X9.42.  This X9.42 draft is probably the one made available by ANSI to
IEEE P1363 members at
http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You will
need an IEEE P1363 password to get at this.)  This draft is better than the
1997 draft, but still has problems.  Since I have not been involved with
ANSI for about 3 years, I can't comment on where the X9.42 draft currently
stands.  Since the X9.42 draft document is (still!) not public, it is not
clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
currently a proposed standard in IETF.  Since RFC 2631 propagates errors
that existed in the 1998 X9.42 draft, a second look at it is probably called
for. (These errors are noted below)

(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any Diffie-Hellman
standards.  While the techniques given in this document are mathematically
accurate and certainly filled a gap in the IPSEC work at the time, the
OAKLEY RFC doesn't quite provide all the pieces needed to link up with PKIX
and some other security standards.

(4) The following drafts contain relevant references to Diffie-Hellman or
related protocols.  The first two reference RFC 2631 and the second
specifies a new DH variant altogether:
draft-ietf-smime-small-subgroup-02.txt
draft-ietf-pkix-dhpop-02.txt
draft-ietf-secsh-transport-06.txt

(5) Both of the ANSI documents currently referenced were drafts and probably
weren't the best basis for IETF standards.  Given the lack of anything else
to point to, I can't say I blame the authors, however.  They certainly meant
well.  What is also unfortunate is that IETF community has not been provided
with access to more current X9.42 drafts.  This is, IMHO, probably related
to the situation I pointed out in (1).

Now, in reponse to your observations:

(6) RFC 2631 states "X9.42 requires that the private key x be in the
interval [2, (q - 2)]"
In other words, (1 < x < q-1).  **It is quite clear that the referenced
X9.42 draft is not only wrong but inconsistent**.  And in a number of
places.  The Diffie-Hellman private key x should be chosen in the closed
interval [2^(m-1), q-1], where m is the minimum length in bits acceptable
for the private key.  (Typically m>=160, but your mileage may vary...)  This
is consistent with security recommendations in the current IEEE P1363
documents as well as definitions in draft-ietf-smime-small-subgroup-02.txt,
draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical subtlety I have
forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up to
correct me.)

Note that choosing x in [1, q-1] will work just fine mathematically, but
does not reflect or enforce the minimum key size requirement.  Note that if
the size of q is at least a few bit greater than m and you are using a good
RNG to pick x, the point is probably moot anyway.  If you are using a
long-term (aka "static") DH keys, however, it probably not a bad idea to put
the minimum keysize check in your keygen routine as a "belt and suspenders"
type measure.

(7) The domain parameter generation routines in X9.42 were in fact derived
from those in the FIP 186 spec to allow re-use of DSA parameters (p, q, and
g) with X9.42 if desired.  I can't say I am a big fan of this because it
forces q to 160 bits which is probably not appropriate if you intend to
enforce a minimum DH private key size greater than 160.

(8) The parameter order switch was not a deliberate booby trap, although
these types of things do help to keep crypto engineers on their toes. :)  As
I recall, the parameters q and j were added when concerns about small
subgroup attacks on Diffie-Hellman surfaced.  It is more of a coincidence
that the DSA algorithm exploits the use of a subgroup also defined by a
prime called q.  In other words, DSA included q from the beginning while
X9.42 added q as a security enhancement.  The ASN.1 encoding choices are an
artifact of the development process, not a deliberate reversal.  If you feel
like lobbying ANSI X9F to change the ordering to make everyone's life
easier, have at it.  I wouldn't hold my breath however. :)

(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
 DomainParameters ::= SEQUENCE {
              p       INTEGER, -- odd prime, p=jq +1
              g       INTEGER, -- generator, g
              q       INTEGER, -- factor of p-1
              j       INTEGER OPTIONAL, -- subgroup factor
              validationParms  ValidationParms OPTIONAL }

        ValidationParms ::= SEQUENCE {
              seed             BIT STRING,
              pgenCounter      INTEGER }

whereas the 1998 X9.42 draft shows them as:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER,        -- prime factor of p-1
   j                INTEGER,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL
(**Note q is no longer optional.** JK)

if you can find a copy of the 1997 draft (which I happen to have) we see the
original version:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER OPTIONAL,        -- prime factor of p-1
   j                INTEGER OPTIONAL,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL

(This early draft reflects my admitted ignorance of proper ASN.1 at the
time. You cannot have multiple optional INTEGERS without tags on them.)

My guess is that the middle version (i.e., with only ValidationParms
optional) is the preferred version, which means RFC 2459 should probably be
changed.  I do not know what the current X9.42 draft gives.

****Conclusion****
(10) Because of the aforementioned errors and inconsistencies, I have
serious reservations about the continued use or referencing of ANSI X9.42 in
IETF drafts or standards.  The use or referencing of the ANSI X9.42 draft in
IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the apparently still unratified and possibly unstable ANSI X9.42
draft should be used as a basis or reference for ongoing IETF Diffie-Hellman
protocol standardization efforts.  Because of this, I respectfully submit
that the IETF should consider whether RFC 2631 should be deprecated and
rewritten in a manner which removes unnecessary references to the mysterious
and forever-unpublished ANSI X9.42 draft.


-John Kennedy
jkennedy@trustpoint.com



-----Original Message-----
From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
Sent: Sunday, November 21, 1999 1:58 PM
To: ietf-pkix@imc.org; ietf-smime@imc.org
Subject: FIPS 186 and X9.42: One of these things is not like the other


FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
generation algorithm, and have domain parameters which look identical,
however
there are two subtle differences between them, one of which is really
annoying.

The annoying difference is that when writing the domain parameters, the
order
of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA domain
parameters are written (p, q, g), exactly the same domain parameters when
viewed as X9.42 values are written (p, g, q).  This isn't helped by the fact
that in many fonts lowercase q and g look very similar.  Apart from the fact
that it's a booby-trap for implementors, it also means that if the domain
parameters are identified in the traditional way (SHA-1 hash), identical
parameters will appear to be different depending on whether you're
interpreting
them as DSA/KEA or DH parameters.

The second difference is in the allowed range for x:

  FIPS 186: 0 < x < q (ie x = 1...q-1)
  X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)

This looks like a transcription error from FIPS 186, given that using any
x < ~2^160 is unsound I can't see why there'd be any difference between 1
and 2
as a lower bound.

Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
warnings
to the effect that although the parameters are the same internally, their
external representations differ.

Does anyone know why X9.42 decided to reverse the parameter order?

(The motivation for this post is that ages ago I solved the problem of the
 reversed parameters by swapping the pointers for the X9.42 g and q values
so
 they were read and written in the correct order, recently I was looking
 through the code and wondered why it was working fine for both
interpretations
 of parameter ordering.  There's now a big comment block by the code
explaining
 the Bug which Isn't)

Peter.







Received: by ns.secondary.com (8.9.3/8.9.3) id NAA28558 for ietf-smime-bks; Sun, 21 Nov 1999 13:36:55 -0800 (PST)
Received: from gandalf.trustpoint.com (IDENT:root@gandalf.trustpoint.com [216.100.231.61]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA28554; Sun, 21 Nov 1999 13:36:53 -0800 (PST)
Received: from himansu (himansu [192.168.42.5]) by gandalf.trustpoint.com (8.8.7/8.8.7) with SMTP id NAA06054; Sun, 21 Nov 1999 13:38:17 -0800
From: "John C. Kennedy" <jkennedy@trustpoint.com>
To: "Ben Laurie" <ben@algroup.co.uk>
Cc: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>, <ietf-smime@imc.org>, <ipsec@lists.tislabs.com>, <ekr@rtfm.com>, <djohnson@certicom.com>, <housley@spyrus.com>, <amit@trustpoint.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Date: Sun, 21 Nov 1999 13:43:23 -0800
Message-ID: <NDBBKGCMPJCKIDPKAHACMENICAAA.jkennedy@trustpoint.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 IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
In-Reply-To: <3837CD01.1910F28A@algroup.co.uk>
Disposition-Notification-To: "John C. Kennedy" <jkennedy@trustpoint.com>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

As I recall, I argued the same point and lost.  I believe the prevailing
argument was that including both j and q saved a parameter validator the
cost of doing a division to derive the other value.  If j=2, the most common
case, the division is simply a right-shift, and the argument is moot.  If
you are using a q of 160 and j>>2, say in the case where DSA parameters are
being overloaded for use as DH parameters, the p/q calculation is more
expensive.  If you are doing the calculation on a memory/CPU limited smart
card the inclusion of p,q,j may be useful.

The values q and j are made available for verification of domain parameters
and for guiding selection of appropriately sized private keys.

-John
jkennedy@trustpoint.com

-----Original Message-----
From: Ben Laurie [mailto:ben@algroup.co.uk]
Sent: Sunday, November 21, 1999 2:44 AM
To: John C. Kennedy
Cc: pgut001@cs.auckland.ac.nz; ietf-pkix@imc.org; ietf-smime@imc.org;
ipsec@lists.tislabs.com; ekr@rtfm.com; robert.zuccherato@entrust.com;
djohnson@certicom.com; wpolk@nist.gov; housley@spyrus.com; jis@mit.edu;
mleech@nortelnetworks.com
Subject: Re: FIPS 186 and X9.42: One of these things is not like the
other


"John C. Kennedy" wrote:
> (9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
>  DomainParameters ::= SEQUENCE {
>               p       INTEGER, -- odd prime, p=jq +1
>               g       INTEGER, -- generator, g
>               q       INTEGER, -- factor of p-1
>               j       INTEGER OPTIONAL, -- subgroup factor
>               validationParms  ValidationParms OPTIONAL }

I was perusing the OpenSSL DH code recently, and I noticed that DH was
using a Germain prime for p (miscommented as a strong prime, btw),
which, of course, makes j=2. But q and j are not kept - what are they
actually used for? (Answers in the form "read XXX" are welcome)

BTW, why the redundancy? If you have any two of p, j and q, you don't
need the other, and surely the work involved to recover the third one is
minimal in comparison to anything else you'd need to do, sumswise?

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi



Received: by ns.secondary.com (8.9.3/8.9.3) id CAA21261 for ietf-smime-bks; Sun, 21 Nov 1999 02:51:23 -0800 (PST)
Received: from eastwood.aldigital.algroup.co.uk (eastwood.aldigital.algroup.co.uk [194.128.162.193]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id CAA21093; Sun, 21 Nov 1999 02:48:17 -0800 (PST)
Received: from freeby.ben.algroup.co.uk (freeby.ben.algroup.co.uk [193.133.15.6]) by eastwood.aldigital.algroup.co.uk (8.8.8/8.6.12) with ESMTP id KAA09568; Sun, 21 Nov 1999 10:45:36 GMT
Received: from algroup.co.uk (naughty.ben.algroup.co.uk [193.133.15.107]) by freeby.ben.algroup.co.uk (8.6.12/8.6.12) with ESMTP id KAA06724; Sun, 21 Nov 1999 10:44:26 GMT
Message-ID: <3837CD01.1910F28A@algroup.co.uk>
Date: Sun, 21 Nov 1999 10:44:17 +0000
From: Ben Laurie <ben@algroup.co.uk>
Organization: A.L. Group plc
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
MIME-Version: 1.0
To: "John C. Kennedy" <jkennedy@trustpoint.com>
CC: pgut001@cs.aucKland.ac.nz, ietf-pkix@imc.org, ietf-smime@imc.org, ipsec@lists.tislabs.com, ekr@rtfm.com, robert.zuccherato@entrust.com, djohnson@certicom.com, wpolk@nist.gov, housley@spyrus.com, jis@mit.edu, mleech@nortelnetworks.com
Subject: Re: FIPS 186 and X9.42: One of these things is not like the other
References: <NDBBKGCMPJCKIDPKAHACIENDCAAA.jkennedy@trustpoint.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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"John C. Kennedy" wrote:
> (9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
>  DomainParameters ::= SEQUENCE {
>               p       INTEGER, -- odd prime, p=jq +1
>               g       INTEGER, -- generator, g
>               q       INTEGER, -- factor of p-1
>               j       INTEGER OPTIONAL, -- subgroup factor
>               validationParms  ValidationParms OPTIONAL }

I was perusing the OpenSSL DH code recently, and I noticed that DH was
using a Germain prime for p (miscommented as a strong prime, btw),
which, of course, makes j=2. But q and j are not kept - what are they
actually used for? (Answers in the form "read XXX" are welcome)

BTW, why the redundancy? If you have any two of p, j and q, you don't
need the other, and surely the work involved to recover the third one is
minimal in comparison to anything else you'd need to do, sumswise?

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id BAA19847 for ietf-smime-bks; Sun, 21 Nov 1999 01:10:50 -0800 (PST)
Received: from gandalf.trustpoint.com (IDENT:root@gandalf.trustpoint.com [216.100.231.61]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id BAA19840; Sun, 21 Nov 1999 01:10:44 -0800 (PST)
Received: from himansu (himansu [192.168.42.5]) by gandalf.trustpoint.com (8.8.7/8.8.7) with SMTP id BAA04256; Sun, 21 Nov 1999 01:12:16 -0800
From: "John C. Kennedy" <jkennedy@trustpoint.com>
To: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>, <ietf-smime@imc.org>, <ipsec@lists.tislabs.com>
Cc: <ekr@rtfm.com>, <robert.zuccherato@entrust.com>, <djohnson@certicom.com>, <wpolk@nist.gov>, <housley@spyrus.com>, <jis@mit.edu>, <mleech@nortelnetworks.com>
Subject: RE: FIPS 186 and X9.42: One of these things is not like the other
Date: Sun, 21 Nov 1999 01:17:21 -0800
Message-ID: <NDBBKGCMPJCKIDPKAHACIENDCAAA.jkennedy@trustpoint.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 IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
In-Reply-To: <94314589412790@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

(A long but hopefully illuminating follow-up regarding ANSI X9.42)

(**Summary: The use or referencing of the ANSI X9.42 (Diffie-Hellman) drafts
in IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the still unratified ANSI X9.42 draft should be used as a basis or
even a reference for ongoing IETF Diffie-Hellman protocol standardization
work.)

Peter,

I was the editor of the ANSI X9.42 Diffie-Hellman draft up until about April
of 1997 when I changed employers and passed the X9.42 editing torch.  Since
my current work has given me a reason to wade back into the IETF process, I
wanted to share a few comments and provide some additional data on the
apparent state of Diffie-Hellman in IETF work.  As I revisit things 2.5
years later it seems to still be a bit of a mess in need of some tidying up.

(1) RFC 2459 (PKIX) references a December 1997 draft of ANSI X9.42.  I
believe this may be a draft that I "strategically distributed" to a few
select people working in IPSEC, PKIX, and other IETF working groups around
that time.  ANSI X9F has never had a lot of interest in seeing X9.42
reviewed or adopted by IETF.  [In fact, it is ridiculous that after almost
five years of work and innumerable rewrites, neither ANSI or NIST have
published an authoritative interoperability standard for one the most
fundamental and powerful public key techniques for key agreement we have.
(Hint: It is not because of patents or because it is too difficult to
communicate.)]

(2) RFC 2631 (Diffie-Hellman Key Agreement Method) references a 1998 draft
of X9.42.  This X9.42 draft is probably the one made available by ANSI to
IEEE P1363 members at
http://grouper.ieee.org/groups/1363/private/x9-42-10-02-98.doc (You will
need an IEEE P1363 password to get at this.)  This draft is better than the
1997 draft, but still has problems.  Since I have not been involved with
ANSI for about 3 years, I can't comment on where the X9.42 draft currently
stands.  Since the X9.42 draft document is (still!) not public, it is not
clear whether it is relevant to the IETF's work anyway.  RFC 2631 is
currently a proposed standard in IETF.  Since RFC 2631 propagates errors
that existed in the 1998 X9.42 draft, a second look at it is probably called
for. (These errors are noted below)

(3) RFC 2412 (OAKLEY Key Agreement) doesn't reference any Diffie-Hellman
standards.  While the techniques given in this document are mathematically
accurate and certainly filled a gap in the IPSEC work at the time, the
OAKLEY RFC doesn't quite provide all the pieces needed to link up with PKIX
and some other security standards.

(4) The following drafts contain relevant references to Diffie-Hellman or
related protocols.  The first two reference RFC 2631 and the second
specifies a new DH variant altogether:
draft-ietf-smime-small-subgroup-02.txt
draft-ietf-pkix-dhpop-02.txt
draft-ietf-secsh-transport-06.txt

(5) Both of the ANSI documents currently referenced were drafts and probably
weren't the best basis for IETF standards.  Given the lack of anything else
to point to, I can't say I blame the authors, however.  They certainly meant
well.  What is also unfortunate is that IETF community has not been provided
with access to more current X9.42 drafts.  This is, IMHO, probably related
to the situation I pointed out in (1).

Now, in reponse to your observations:

(6) RFC 2631 states "X9.42 requires that the private key x be in the
interval [2, (q - 2)]"
In other words, (1 < x < q-1).  **It is quite clear that the referenced
X9.42 draft is not only wrong but inconsistent**.  And in a number of
places.  The Diffie-Hellman private key x should be chosen in the closed
interval [2^(m-1), q-1], where m is the minimum length in bits acceptable
for the private key.  (Typically m>=160, but your mileage may vary...)  This
is consistent with security recommendations in the current IEEE P1363
documents as well as definitions in draft-ietf-smime-small-subgroup-02.txt,
draft-ietf-pkix-dhpop-02.txt.  (If there is a mathematical subtlety I have
forgotten and x should be in [2^(m-1), q-2], I hope someone speaks up to
correct me.)

Note that choosing x in [1, q-1] will work just fine mathematically, but
does not reflect or enforce the minimum key size requirement.  Note that if
the size of q is at least a few bit greater than m and you are using a good
RNG to pick x, the point is probably moot anyway.  If you are using a
long-term (aka "static") DH keys, however, it probably not a bad idea to put
the minimum keysize check in your keygen routine as a "belt and suspenders"
type measure.

(7) The domain parameter generation routines in X9.42 were in fact derived
from those in the FIP 186 spec to allow re-use of DSA parameters (p, q, and
g) with X9.42 if desired.  I can't say I am a big fan of this because it
forces q to 160 bits which is probably not appropriate if you intend to
enforce a minimum DH private key size greater than 160.

(8) The parameter order switch was not a deliberate booby trap, although
these types of things do help to keep crypto engineers on their toes. :)  As
I recall, the parameters q and j were added when concerns about small
subgroup attacks on Diffie-Hellman surfaced.  It is more of a coincidence
that the DSA algorithm exploits the use of a subgroup also defined by a
prime called q.  In other words, DSA included q from the beginning while
X9.42 added q as a security enhancement.  The ASN.1 encoding choices are an
artifact of the development process, not a deliberate reversal.  If you feel
like lobbying ANSI X9F to change the ordering to make everyone's life
easier, have at it.  I wouldn't hold my breath however. :)

(9) RFC 2459 (PKIX) shows ASN.1 encoding of the DH parameters as:
 DomainParameters ::= SEQUENCE {
              p       INTEGER, -- odd prime, p=jq +1
              g       INTEGER, -- generator, g
              q       INTEGER, -- factor of p-1
              j       INTEGER OPTIONAL, -- subgroup factor
              validationParms  ValidationParms OPTIONAL }

        ValidationParms ::= SEQUENCE {
              seed             BIT STRING,
              pgenCounter      INTEGER }

whereas the 1998 X9.42 draft shows them as:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER,        -- prime factor of p-1
   j                INTEGER,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL
(**Note q is no longer optional.** JK)

if you can find a copy of the 1997 draft (which I happen to have) we see the
original version:

DomainParameters ::= SEQUENCE {  -- Galois field group parameters
   p                INTEGER,        -- odd prime, p = jq + 1
   g                INTEGER,        -- generator, g
   q                INTEGER OPTIONAL,        -- prime factor of p-1
   j                INTEGER OPTIONAL,        -- subgroup factor, j >= 2
   validationParms  ValidationParms OPTIONAL

(This early draft reflects my admitted ignorance of proper ASN.1 at the
time. You cannot have multiple optional INTEGERS without tags on them.)

My guess is that the middle version (i.e., with only ValidationParms
optional) is the preferred version, which means RFC 2459 should probably be
changed.  I do not know what the current X9.42 draft gives.

****Conclusion****
(10) Because of the aforementioned errors and inconsistencies, I have
serious reservations about the continued use or referencing of ANSI X9.42 in
IETF drafts or standards.  The use or referencing of the ANSI X9.42 draft in
IETF standards has resulted in the propagation of a number of errors and
inconsistencies within IETF drafts and RFCs.  IMHO, it is questionable
whether the apparently still unratified and possibly unstable ANSI X9.42
draft should be used as a basis or reference for ongoing IETF Diffie-Hellman
protocol standardization efforts.  Because of this, I respectfully submit
that the IETF should consider whether RFC 2631 should be deprecated and
rewritten in a manner which removes unnecessary references to the mysterious
and forever-unpublished ANSI X9.42 draft.


-John Kennedy
jkennedy@trustpoint.com



-----Original Message-----
From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
Sent: Sunday, November 21, 1999 1:58 PM
To: ietf-pkix@imc.org; ietf-smime@imc.org
Subject: FIPS 186 and X9.42: One of these things is not like the other


FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
generation algorithm, and have domain parameters which look identical,
however
there are two subtle differences between them, one of which is really
annoying.

The annoying difference is that when writing the domain parameters, the
order
of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA domain
parameters are written (p, q, g), exactly the same domain parameters when
viewed as X9.42 values are written (p, g, q).  This isn't helped by the fact
that in many fonts lowercase q and g look very similar.  Apart from the fact
that it's a booby-trap for implementors, it also means that if the domain
parameters are identified in the traditional way (SHA-1 hash), identical
parameters will appear to be different depending on whether you're
interpreting
them as DSA/KEA or DH parameters.

The second difference is in the allowed range for x:

  FIPS 186: 0 < x < q (ie x = 1...q-1)
  X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)

This looks like a transcription error from FIPS 186, given that using any
x < ~2^160 is unsound I can't see why there'd be any difference between 1
and 2
as a lower bound.

Perhaps new RFC's which cover this (eg son-of-RFC2459) could include
warnings
to the effect that although the parameters are the same internally, their
external representations differ.

Does anyone know why X9.42 decided to reverse the parameter order?

(The motivation for this post is that ages ago I solved the problem of the
 reversed parameters by swapping the pointers for the X9.42 g and q values
so
 they were read and written in the correct order, recently I was looking
 through the code and wondered why it was working fine for both
interpretations
 of parameter ordering.  There's now a big comment block by the code
explaining
 the Bug which Isn't)

Peter.



Received: by ns.secondary.com (8.9.3/8.9.3) id QAA04484 for ietf-smime-bks; Sat, 20 Nov 1999 16:56:39 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id QAA04480; Sat, 20 Nov 1999 16:56: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.9.3/8.8.6/cs-master) with SMTP id NAA05024; Sun, 21 Nov 1999 13:58:13 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <94314589412790>; Sun, 21 Nov 1999 13:58:14 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-pkix@imc.org, ietf-smime@imc.org
Subject: FIPS 186 and X9.42: One of these things is not like the other
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 Nov 1999 13:58:14 (NZDT)
Message-ID: <94314589412790@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

FIPS 186/X9.30 and X9.42 (and by extension RFC 2631) share the same key
generation algorithm, and have domain parameters which look identical, however
there are two subtle differences between them, one of which is really annoying.

The annoying difference is that when writing the domain parameters, the order
of q and g is reversed for FIPS 186 and X9.42 keys, so that while DSA domain
parameters are written (p, q, g), exactly the same domain parameters when
viewed as X9.42 values are written (p, g, q).  This isn't helped by the fact
that in many fonts lowercase q and g look very similar.  Apart from the fact
that it's a booby-trap for implementors, it also means that if the domain
parameters are identified in the traditional way (SHA-1 hash), identical
parameters will appear to be different depending on whether you're interpreting
them as DSA/KEA or DH parameters.

The second difference is in the allowed range for x:

  FIPS 186: 0 < x < q (ie x = 1...q-1)
  X9.42: 1 < x <= q-2 in one place, [2...q-2] in another (ie x = 2..q-2)

This looks like a transcription error from FIPS 186, given that using any
x < ~2^160 is unsound I can't see why there'd be any difference between 1 and 2
as a lower bound.

Perhaps new RFC's which cover this (eg son-of-RFC2459) could include warnings
to the effect that although the parameters are the same internally, their
external representations differ.

Does anyone know why X9.42 decided to reverse the parameter order?

(The motivation for this post is that ages ago I solved the problem of the
 reversed parameters by swapping the pointers for the X9.42 g and q values so
 they were read and written in the correct order, recently I was looking
 through the code and wondered why it was working fine for both interpretations
 of parameter ordering.  There's now a big comment block by the code explaining
 the Bug which Isn't)
 
Peter.



Received: by ns.secondary.com (8.9.3/8.9.3) id WAA19334 for ietf-smime-bks; Fri, 19 Nov 1999 22:11:44 -0800 (PST)
Received: from speedy.rtfm.com ([216.98.239.228]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id WAA19328 for <ietf-smime@imc.org>; Fri, 19 Nov 1999 22:11:42 -0800 (PST)
Received: from romeo.rtfm.com (romeo.rtfm.com [216.98.239.227]) by speedy.rtfm.com (8.9.1/8.6.4) with ESMTP id WAA01877; Thu, 18 Nov 1999 22:21:38 -0800 (PST)
Received: (ekr@localhost) by romeo.rtfm.com (8.9.2/8.6.4) id WAA25365; Thu, 18 Nov 1999 22:01:31 -0800 (PST)
To: Vin McLellan <vin@shore.net>
Cc: Carlisle Adams <carlisle.adams@entrust.com>, "'Russ Housley'" <housley@spyrus.com>, "'pgut001@cs.auckland.ac.nz'" <pgut001@cs.aucKland.ac.nz>, "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Subject: Re: Password-based Encryption for S/MIME...
References: <E11oIv4-0006WM-00@polaris.shore.net>
From: EKR <ekr@rtfm.com>
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 18 Nov 1999 22:01:30 -0800
In-Reply-To: Vin McLellan's message of "Wed, 17 Nov 1999 23:11:38 -0500"
Message-ID: <kjogcr58at.fsf@romeo.rtfm.com>
Lines: 35
X-Mailer: Gnus v5.6.45/XEmacs 20.4 - "Emerald"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Vin McLellan <vin@shore.net> writes:
>     Pass phrases for cryptographic keys???  Simple static reusable passwords??!
> 
>     I beg your pardon for delurking at this late stage in the WG
> discussions, but I was under the impression that the question of how to
> resolve a cryptographicly strong key from a small password has been a
> solved problem since the early 1990s, with the various ancestors of Bellovin
> & Merritt's DH-EKE family, including Dave Jablon's SPEKE,  Tom Wu's SRP-3,
> and a slew of others: Augmented EKE, Mike Roe's S3P series, Stefan Lucks's
> OKE, etc., etc. 
AFAIK, all of these techniques are interactive. Certainly EKE, SPEKE,
AEKE and SRP are. S/MIME is nearly always used in a store-and-forward
context and therefore any technique used for this purpose must
be noninteractive.

>     Suggesting a password-based S/MIME which does not take advantage of any
> of the well-documented and proven methods for safely expanding a small
> password into a cryptographically respectable key  sounds like the WG is
> proposing something like 40-bit  symmetric crypto as a future standard.  Are
> the IP issues so entangled that the WG is left with such a meager and
> embarrassingly fragile offering?
I don't believe that IP is the issue. Rather, I'm not aware of any
techniques that are substantially superior to the one described
here.

That's not to say that this technique is satisfactory, merely
that if you want to use a password as the basis for an encryption
key in S/MIME it's pretty much you only alternative.

-Ekr

-- 
[Eric Rescorla                                   ekr@rtfm.com]
          PureTLS - free SSLv3/TLS software for Java
                http://www.rtfm.com/puretls/


Received: by ns.secondary.com (8.9.3/8.9.3) id NAA27762 for ietf-smime-bks; Fri, 19 Nov 1999 13:00:35 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA27758 for <ietf-smime@imc.org>; Fri, 19 Nov 1999 13:00:34 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id NAA27363; Fri, 19 Nov 1999 13:00:53 -0800 (PST)
Message-Id: <4.2.0.58.19991119154359.00991d50@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 19 Nov 1999 15:46:14 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: Comments on draft-ietf-smime-password-00
Cc: ietf-smime@imc.org
In-Reply-To: <94296202324805@cs26.cs.auckland.ac.nz>
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter:

> >2.  Section 2.1.  The S/MIME working group is using 88 ASN syntax.  The
> >syntax in this section is not.  Please correct.
>
>PKCS #5 uses current ASN.1 syntax and not the 1988 version, the ASN.1 used
>is taken straight from the standard.

Since there are many tools that support ASN.1-1998, and there are very few 
tools that support ASN.1-1993, we use ASN.1-1998 in all S/MIME standards 
track documents.  Remember that interoperable implementations from 
different code bases are required for progression from Proposed Standard to 
Draft Standard.

Russ



Received: by ns.secondary.com (8.9.3/8.9.3) id MAA27630 for ietf-smime-bks; Fri, 19 Nov 1999 12:48:11 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA27626 for <ietf-smime@imc.org>; Fri, 19 Nov 1999 12:48:10 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id MAA27138; Fri, 19 Nov 1999 12:48:31 -0800 (PST)
Message-Id: <4.2.0.58.19991119154206.00a9e900@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 19 Nov 1999 15:43:39 -0500
To: pgut001@cs.aucKland.ac.nz
From: Russ Housley <housley@spyrus.com>
Subject: Re: Comments on draft-ietf-smime-password-00
Cc: ietf-smime@imc.org
In-Reply-To: <94296202324805@cs26.cs.auckland.ac.nz>
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Peter:

> >1. Section 2.1.  What is the timing you expect to see relative to PKCS5v2
> >being advanced to an RFC of some type?
>
>I have no idea.  Does it need to be?  Like the other PKCS's I assume it can
>be turned into an RFC in no time, but is that a requirement?


If you want this on the standards track this will greatly ease progression.

Russ




Received: by ns.secondary.com (8.9.3/8.9.3) id KAA17839 for ietf-smime-bks; Fri, 19 Nov 1999 10:05:05 -0800 (PST)
Received: from tholian.securitydynamics.com (tholian.securid.com [204.167.112.129]) by ns.secondary.com (8.9.3/8.9.3) with SMTP id KAA17835 for <ietf-smime@imc.org>; Fri, 19 Nov 1999 10:05:03 -0800 (PST)
Received: from sdtihq24.securitydynamics.com by tholian.securitydynamics.com via smtpd (for mail.imc.org [208.184.76.43]) with SMTP; 19 Nov 1999 18:05:01 UT
Received: from exna00.securitydynamics.com (exna00.securitydynamics.com [10.2.1.110]) by sdtihq24.securid.com (Pro-8.9.3/Pro-8.9.3) with ESMTP id NAA25900; Fri, 19 Nov 1999 13:00:07 -0500 (EST)
Received: by exna00.securitydynamics.com with Internet Mail Service (5.5.2448.0) id <W2NW9VJK>; Fri, 19 Nov 1999 13:08:01 -0500
Message-ID: <D104150098E6D111B7830000F8D90AE801480087@exna02.securitydynamics.com>
From: "Kaliski, Burt" <bkaliski@rsasecurity.com>
To: "'pgut001@cs.auckland.ac.nz'" <pgut001@cs.aucKland.ac.nz>, ietf-smime@imc.org
Cc: pkcs-editor@RSA.COM
Subject: RE: Comments on draft-ietf-smime-password-00
Date: Fri, 19 Nov 1999 13:13:31 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

A couple issues with the proposed RFC version of PKCS #5 v2 draft needed to
be resolved, we should be submitting a revised version shortly. Thanks for
the encouragement.

-- Burt Kaliski
RSA Laboratories

-----Original Message-----
From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]
Sent: Friday, November 19, 1999 8:46 AM
To: ietf-smime@imc.org
Cc: pkcs-editor@rsa.com
Subject: Re: Comments on draft-ietf-smime-password-00


"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:

>>From: pgut001@cs.aucKland.ac.nz [mailto:pgut001@cs.aucKland.ac.nz]
>>
>>"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:
>>
>>>1. Section 2.1.  What is the timing you expect to see relative to PKCS5v2
>>>being advanced to an RFC of some type?
>>
>>I have no idea.  Does it need to be?  Like the other PKCS's I assume it
can
>>be turned into an RFC in no time, but is that a requirement?
>
>It is my understanding that if you want this document to following
standards
>track, you are not going to be able to reference a non-fixed document.  The

>PKCS documents have not meet that criteria in the past and thus the reason 
>why we got them published as informational to get the S/MIME v2 drafts in. 
>I believe this is also a requirement for publishing the password draft as
>informational as well but am not sure.  Therefore this is a blocking factor

>for moving the document forward.

I've cc'd this to the PKCS editors address to get their comments on this, 
RFC 231[345] are all informational RFC's which are just the PKCS originals 
with RFC boilerplate, if that's required then it shouldn't be too hard to do
the same for PKCS #5v2.

Peter.


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id TAA20562 for ietf-smime-bks; Thu, 18 Nov 1999 19:28:53 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id TAA20558 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 19:28: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.9.3/8.8.6/cs-master) with SMTP id QAA05457 for <ietf-smime@imc.org>; Fri, 19 Nov 1999 16:30:18 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <94298221926136>; Fri, 19 Nov 1999 16:30:19 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: RE: Comments on draft-ietf-smime-password-00
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Fri, 19 Nov 1999 16:30:19 (NZDT)
Message-ID: <94298221926136@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:

>>>3.  Section 2.1  Why is there ASN here that does not actually provide any
>>>useful information.  What are the parameters.  What is the OID associated
>>>with this set of parameters.
>>
>>It's copied from PKCS #5 for completeness, I didn't want to include the
>>whole thing verbatim but did want to include enough information that readers
>>wouldn't have to keep flipping back and forth between the two.
>
>I believe that you failed at this.  There is not enough information in this
>draft to know anything.  For all of the good what is there did me, you might
>as well have omitted it entirely for all of the good it did me when reading
>the draft.

I can't include all of PKCS #5 (it's thirty pages long even when it's in a
proportional font), and I can't omit it entirely either because something other
than PKCS #5 may at some point define key derivation algorithms and you need to
have somewhere to list them.  Do you have any suggestions about what I could
replace the current text with?  I can't drop the ASN.1 because it's needed in
Appendix A to define/constrain the algorithm(s) used.

>Also given that the new CAST and IDEA drafts both use the RFC2630 key
>wrapping algorithm makes me believe that it is easily extendable to any
>algorithm.

The reason they use the new algorithm is because the AlgorithmIdentifier it
requires is completely incompatible with any existing one, so that no existing
cipher can be used with CMS without an update of whatever standard they're
defined in.  The only reason the new CAST and IDEA drafts exist is to define
this new AlgorithmIdentifier (if you don't believe me, check the drafts again -
the existence of the RFC2630 algorithm is requiring people to write custom
drafts to accomodate it).  Once CAST and IDEA are updated, we also need to
update the standards for RC5, DES, Skipjack, Misty, Blowfish, and every other
algorithm which anyone might want to use with their own personal "Use of the
<foo> Encryption Algorithm in S/MIME" draft.  Even then it's not going to work
in many cases because the standards only define X-in-X wrap, not X-in-Y wrap.
The example I gave in a previous message (3DES CEK wrapped in an IDEA KEK held
in a smart card) can't be done with RFC 2630, and the example I use in my draft
(80-bit key wrapped in a 192-bit key, with a note elsewhere to say that this
isn't a good match :-) can't be done either, because neither Skipjack nor
3DES-in-Skipjack drafts have been written to define what's necessary for RFC
2630.

>That's an interesting statement.  I explicitly worked with Russ to make sure
>that we could do variable length RC2 keys using the key wrap algorithm from
>RFC 2630.

Parts of it don't seem terribly variable, for example RFC 2630, section
12.3.3.2, says:

  Only 128-bit RC2 keys may be used as key-encryption keys, and they
  must be used with the RC2ParameterVersion parameter set to 58.

which doesn't seem to allow for much variation (see the comments further down
for more).

>I understood that the RC2 CEK algorithm was changing from 1.2.840.113549.3.2
>to 1.3.6.1.4.1.3029.666.13 (provesional)

I wanted to make sure that even someone who hadn't read the spec would get the
hint that this was something they should be avoiding :-).  The only reason that
OID is necessary is to handle implementations which do unexpected things with
key lengths (previously you've had to use guesswork or rely on PKCS #1 padding
to tell you how many bytes you had on hand or whatever, I wanted to provide
something a bit more rigorous).

>in the event that the effective key size and actual key size did not match.
>This means that if I am doing a password KEK and an RSA key transport, the
>value is not well defined depending on which one I meant to use.  If this is
>not what you meant then please clarify.  My reasoning went as following:
>1.  CEK key length is obtained from the CEK algorithm description
>2.  The new algoirthm parameters contain the actualKey lenght and must
>therefore be part of the CEK.
>3.  All other code that uses CMS needs to understand this new CEK algorithm
>in the event that a password receipient is included.

OK, to go through the various parameters (from RFC 2630, "actual" = no.bits
before RC2 mangling, "effective" = no.bits after RC2 mangling):

  CEK actual: For RSA, given in PKCS #1 padding or guesswork or whatever
        people are using now.
  CEK effective: Given in content-encryption OID.
  PW-KEK actual, effective: Either RFC 2268 default or as per the kludge OID
        if you want to use nonstandard values.

I can't see why all other code needs to know about the PW-KEK, it can just keep
on using the KeyTrans information as before.  I can see that there's one
possible parameter which I haven't allowed for in PW-KEK (the CEK actual rather
than effective size), if people are worried that some implementation will want
to do odd things to this as well then it can be added to the kludge OID too, so
you have four different key size parameters you can vary with RC2.  If that's
necessary then I might have to insist that more values like the current '666'
and '13' be added to the OID as a warning to implementors.

Peter.



Received: by ns.secondary.com (8.9.3/8.9.3) id QAA10242 for ietf-smime-bks; Thu, 18 Nov 1999 16:44:09 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id QAA10238 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 16:44:07 -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.9.3/8.8.6/cs-master) with SMTP id NAA31599; Fri, 19 Nov 1999 13:45:35 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <94297233525470>; Fri, 19 Nov 1999 13:45:35 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: Comments on draft-ietf-smime-password-00
Cc: pkcs-editor@RSA.COM
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Fri, 19 Nov 1999 13:45:35 (NZDT)
Message-ID: <94297233525470@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:

>>From: pgut001@cs.aucKland.ac.nz [mailto:pgut001@cs.aucKland.ac.nz]
>>
>>"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:
>>
>>>1. Section 2.1.  What is the timing you expect to see relative to PKCS5v2
>>>being advanced to an RFC of some type?
>>
>>I have no idea.  Does it need to be?  Like the other PKCS's I assume it can
>>be turned into an RFC in no time, but is that a requirement?
>
>It is my understanding that if you want this document to following standards
>track, you are not going to be able to reference a non-fixed document.  The 
>PKCS documents have not meet that criteria in the past and thus the reason 
>why we got them published as informational to get the S/MIME v2 drafts in. 
>I believe this is also a requirement for publishing the password draft as
>informational as well but am not sure.  Therefore this is a blocking factor 
>for moving the document forward.

I've cc'd this to the PKCS editors address to get their comments on this, 
RFC 231[345] are all informational RFC's which are just the PKCS originals 
with RFC boilerplate, if that's required then it shouldn't be too hard to do
the same for PKCS #5v2.

Peter.



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id PAA08274 for ietf-smime-bks; Thu, 18 Nov 1999 15:21:44 -0800 (PST)
Received: from v4j31 (ip12.proper.com [165.227.249.12]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA08269 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 15:21:42 -0800 (PST)
Message-Id: <4.2.1.19991118152056.02253f00@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.1 
Date: Thu, 18 Nov 1999 15:23:06 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: Password-based Encryption for S/MIME...
In-Reply-To: <94295795824604@cs26.cs.auckland.ac.nz>
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 09:45 AM 11/19/99 +0000, Peter Gutmann wrote:
>Carlisle Adams <carlisle.adams@entrust.com> writes:
> >"More importantly, however, the security of this information type rests 
> on the
> >entropy of the user-selected password, which is typically quite low. Pass
> >phrases (as opposed to simple passwords) are STRONGLY RECOMMENDED, 
> although it
> >should be recognized that even with pass phrases it will be difficult to use
> >this recipient information type to derive a KEK with sufficient entropy to
> >properly protect a 128-bit (or higher) CEK."
>
>Is it worth going into this sort of thing?

Yes, it is. That's exactly what the security considerations section is for. 
Some of them are really pedantic, but that's OK. Novice implementors 
actually read those sections.


--Paul Hoffman, Director
--Internet Mail Consortium



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id PAA08154 for ietf-smime-bks; Thu, 18 Nov 1999 15:16:31 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA08150 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 15:16:30 -0800 (PST)
Received: by dfssl with Internet Mail Service (5.5.2650.21) id <W8XXN5VQ>; Thu, 18 Nov 1999 15:17:27 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD194A7138@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'pgut001@cs.aucKland.ac.nz'" <pgut001@cs.aucKland.ac.nz>, ietf-smime@imc.org
Subject: RE: Comments on draft-ietf-smime-password-00
Date: Thu, 18 Nov 1999 15:16:30 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF321B.1326C25A"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF321B.1326C25A
Content-Type: text/plain

> -----Original Message-----
> From: pgut001@cs.aucKland.ac.nz [mailto:pgut001@cs.aucKland.ac.nz]
> 
> "Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:
> 
> >1. Section 2.1.  What is the timing you expect to see 
> relative to PKCS5v2
> >being advanced to an RFC of some type?
> 
> I have no idea.  Does it need to be?  Like the other PKCS's I 
> assume it can
> be turned into an RFC in no time, but is that a requirement?

It is my understanding that if you want this document to following standards
track, you are not going to be able to reference a non-fixed document.  The
PKCS documents have not meet that criteria in the past and thus the reason
why we got them published as informational to get the S/MIME v2 drafts in.
I believe this is also a requirement for publishing the password draft as
informational as well but am not sure.  Therefore this is a blocking factor
for moving the document forward.

> 
> >2.  Section 2.1.  The S/MIME working group is using 88 ASN 
> syntax.  The
> >syntax in this section is not.  Please correct.
> 
> PKCS #5 uses current ASN.1 syntax and not the 1988 version, 
> the ASN.1 used
> is taken straight from the standard.
> 
> >3.  Section 2.1  Why is there ASN here that does not 
> actually provide any
> >useful information.  What are the parameters.  What is the 
> OID associated
> >with this set of parameters.
> 
> It's copied from PKCS #5 for completeness, I didn't want to 
> include the
> whole thing verbatim but did want to include enough 
> information that readers
> wouldn't have to keep flipping back and forth between the two.

I believe that you failed at this.  There is not enough information in this
draft to know anything.  For all of the good what is there did me, you might
as well have omitted it entirely for all of the good it did me when reading
the draft. 

> >4. Section 2.3.1  We have a key wrap algorithm specified in 
> RFC 2630.  You
> >are using a different key wrap algorithm.  I would prefer to 
> see a single
> >one for simplity of implementation.  What is your 
> justification for added
> >complexity?
> 
> The RFC 2630 algorithm doesn't work for anything other than 
> fixed-length RC2
> and 3DES keys.  This algorithm works with anything (well, 
> anything with an OID
> defined, which in practice means pretty much any 
> commonly-used algorithm).
> It's also a lot simpler than the RFC 2630 algorithm, you just 
> run any old
> block cipher over the data twice without needing additional 
> hashing, byte-
> reversal, or anything else - if all you've got to do your 
> crypto is a smart
> card which does 3DES (eg Gemplus' MPCOS) or IDEA (see my 
> previous message) you
> can't even implement the RFC 2630 algorithm.
> 
> [I assume that when you're saying you can use 256 bits of key 
> for a 128-bit
>  algorithm what you mean is that you have 256 bits of actual 
> key which is
>  transformed to 128 bits of effective key by the RC2 
> key-transformation].
> 
> The same thing occurs with RFC 2630 and it doesn't seem to be 
> a problem there.
> In any case I think I've addressed it in "Special Handling 
> for RC2 Keys".
> 

That's an interesting statement.  I explicitly worked with Russ to make sure
that we could do variable length RC2 keys using the key wrap algorithm from
RFC 2630.  I find it difficult to believe that your algorithm is "much"
simpler than the one in RFC2630 given the partial decryptions and so forth.
(I don't know it is really alot harder either.)  Given that most people
implemented the one in RFC2630 in a couple of hours at most I don't see that
complexity of implemenation is real hard.  Also given that the new CAST and
IDEA drafts both use the RFC2630 key wrapping algorithm makes me believe
that it is easily extendable to any algorithm.

> >6.  Sectoin 2.3.1.  Questions  about your algorithm:  1) 
> what is the IV that
> >should be used initially on the first pass encryption (not 
> explicity stated
> >but implied later).  2) Where is the IV saved?
> 
> It's part of the AlgorithmIdentifier for the KEK algorithm.  
> I assumed it
> wouldn't be necessary to mention this because it's the 
> standard usage for an IV
> given in the AlgorithmIdentifier, but I can move the text in 
> the example
> (2.3.3, "Using the IV given in the 
> KeyEncryptionAlgorithmIdentifer...") up to
> 2.3.1 if the current text isn't clear.
> 
> >3) What does step 1 of section 2.3.2 do?  I don't see a 
> corresponding step
> >in section 2.3.1.
> 
> It recovers the IV used for the second pass of encrption 
> (step 3 of 2.3.1).
> 
> >This thing might work, but I should don't believe it from 
> just reading the
> >document.
> 
> I would hope it does, or the people who have been using it 
> almost daily since
> it was first published in 1993 are in for a rude shock :-).
> 
> >7.  Section 2.3.4 -- Can this issue also be addressed by the 
> addition of a
> >random salt to the KEK creation process?  This means one is 
> not using the
> >same KEK for every CEK encrption from a single password.
> 
> PKCS #5 already adds the salt, however I wanted to create a 
> failsafe design
> which works even if no salt (or a fixed salt) is used.  The 
> double-wrapping
> also prevents bit-flipping attacks, I'll amend the text to 
> mention this.
> 
> >8.  Section 2.4.1 -- You cannot change the CEK for RC2 in 
> this document.  I
> >don't want two different versions for this depending on 
> wheither I have a
> >Password KEK mixed in the set of recipients.  This just will not fly.
> 
> Uhhh... I don't understand the comment.  How can you have two 
> different CEK's
> for the same data?

I understood that the RC2 CEK algorithm was changing from 1.2.840.113549.3.2
to 1.3.6.1.4.1.3029.666.13 (provesional) in the event that the effective key
size and actual key size did not match.  This means that if I am doing a
password KEK and an RSA key transport, the value is not well defined
depending on which one I meant to use.  If this is not what you meant then
please clarify.  My reasoning went as following:
1.  CEK key length is obtained from the CEK algorithm description
2.  The new algoirthm parameters contain the actualKey lenght and must
therefore be part of the CEK.
3.  All other code that uses CMS needs to  understand this new CEK algorithm
in the event that a password receipient is included.

> 
> Peter.
> 

jim


------_=_NextPart_001_01BF321B.1326C25A
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: Comments on draft-ietf-smime-password-00</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: pgut001@cs.aucKland.ac.nz [<A =
HREF=3D"mailto:pgut001@cs.aucKland.ac.nz">mailto:pgut001@cs.aucKland.ac.=
nz</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &quot;Jim Schaad (Exchange)&quot; =
&lt;jimsch@Exchange.Microsoft.com&gt; writes:</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;1. Section 2.1.&nbsp; What is the timing =
you expect to see </FONT>
<BR><FONT SIZE=3D2>&gt; relative to PKCS5v2</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;being advanced to an RFC of some =
type?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I have no idea.&nbsp; Does it need to be?&nbsp; =
Like the other PKCS's I </FONT>
<BR><FONT SIZE=3D2>&gt; assume it can</FONT>
<BR><FONT SIZE=3D2>&gt; be turned into an RFC in no time, but is that a =
requirement?</FONT>
</P>

<P><FONT SIZE=3D2>It is my understanding that if you want this document =
to following standards track, you are not going to be able to reference =
a non-fixed document.&nbsp; The PKCS documents have not meet that =
criteria in the past and thus the reason why we got them published as =
informational to get the S/MIME v2 drafts in.&nbsp; I believe this is =
also a requirement for publishing the password draft as informational =
as well but am not sure.&nbsp; Therefore this is a blocking factor for =
moving the document forward.</FONT></P>

<P><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;2.&nbsp; Section 2.1.&nbsp; The S/MIME =
working group is using 88 ASN </FONT>
<BR><FONT SIZE=3D2>&gt; syntax.&nbsp; The</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;syntax in this section is not.&nbsp; Please =
correct.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; PKCS #5 uses current ASN.1 syntax and not the =
1988 version, </FONT>
<BR><FONT SIZE=3D2>&gt; the ASN.1 used</FONT>
<BR><FONT SIZE=3D2>&gt; is taken straight from the standard.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;3.&nbsp; Section 2.1&nbsp; Why is there ASN =
here that does not </FONT>
<BR><FONT SIZE=3D2>&gt; actually provide any</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;useful information.&nbsp; What are the =
parameters.&nbsp; What is the </FONT>
<BR><FONT SIZE=3D2>&gt; OID associated</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;with this set of parameters.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; It's copied from PKCS #5 for completeness, I =
didn't want to </FONT>
<BR><FONT SIZE=3D2>&gt; include the</FONT>
<BR><FONT SIZE=3D2>&gt; whole thing verbatim but did want to include =
enough </FONT>
<BR><FONT SIZE=3D2>&gt; information that readers</FONT>
<BR><FONT SIZE=3D2>&gt; wouldn't have to keep flipping back and forth =
between the two.</FONT>
</P>

<P><FONT SIZE=3D2>I believe that you failed at this.&nbsp; There is not =
enough information in this draft to know anything.&nbsp; For all of the =
good what is there did me, you might as well have omitted it entirely =
for all of the good it did me when reading the draft. </FONT></P>

<P><FONT SIZE=3D2>&gt; &gt;4. Section 2.3.1&nbsp; We have a key wrap =
algorithm specified in </FONT>
<BR><FONT SIZE=3D2>&gt; RFC 2630.&nbsp; You</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;are using a different key wrap =
algorithm.&nbsp; I would prefer to </FONT>
<BR><FONT SIZE=3D2>&gt; see a single</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;one for simplity of implementation.&nbsp; =
What is your </FONT>
<BR><FONT SIZE=3D2>&gt; justification for added</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;complexity?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; The RFC 2630 algorithm doesn't work for =
anything other than </FONT>
<BR><FONT SIZE=3D2>&gt; fixed-length RC2</FONT>
<BR><FONT SIZE=3D2>&gt; and 3DES keys.&nbsp; This algorithm works with =
anything (well, </FONT>
<BR><FONT SIZE=3D2>&gt; anything with an OID</FONT>
<BR><FONT SIZE=3D2>&gt; defined, which in practice means pretty much =
any </FONT>
<BR><FONT SIZE=3D2>&gt; commonly-used algorithm).</FONT>
<BR><FONT SIZE=3D2>&gt; It's also a lot simpler than the RFC 2630 =
algorithm, you just </FONT>
<BR><FONT SIZE=3D2>&gt; run any old</FONT>
<BR><FONT SIZE=3D2>&gt; block cipher over the data twice without =
needing additional </FONT>
<BR><FONT SIZE=3D2>&gt; hashing, byte-</FONT>
<BR><FONT SIZE=3D2>&gt; reversal, or anything else - if all you've got =
to do your </FONT>
<BR><FONT SIZE=3D2>&gt; crypto is a smart</FONT>
<BR><FONT SIZE=3D2>&gt; card which does 3DES (eg Gemplus' MPCOS) or =
IDEA (see my </FONT>
<BR><FONT SIZE=3D2>&gt; previous message) you</FONT>
<BR><FONT SIZE=3D2>&gt; can't even implement the RFC 2630 =
algorithm.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; [I assume that when you're saying you can use =
256 bits of key </FONT>
<BR><FONT SIZE=3D2>&gt; for a 128-bit</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; algorithm what you mean is that you have =
256 bits of actual </FONT>
<BR><FONT SIZE=3D2>&gt; key which is</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; transformed to 128 bits of effective key =
by the RC2 </FONT>
<BR><FONT SIZE=3D2>&gt; key-transformation].</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; The same thing occurs with RFC 2630 and it =
doesn't seem to be </FONT>
<BR><FONT SIZE=3D2>&gt; a problem there.</FONT>
<BR><FONT SIZE=3D2>&gt; In any case I think I've addressed it in =
&quot;Special Handling </FONT>
<BR><FONT SIZE=3D2>&gt; for RC2 Keys&quot;.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

<P><FONT SIZE=3D2>That's an interesting statement.&nbsp; I explicitly =
worked with Russ to make sure that we could do variable length RC2 keys =
using the key wrap algorithm from RFC 2630.&nbsp; I find it difficult =
to believe that your algorithm is &quot;much&quot; simpler than the one =
in RFC2630 given the partial decryptions and so forth.&nbsp; (I don't =
know it is really alot harder either.)&nbsp; Given that most people =
implemented the one in RFC2630 in a couple of hours at most I don't see =
that complexity of implemenation is real hard.&nbsp; Also given that =
the new CAST and IDEA drafts both use the RFC2630 key wrapping =
algorithm makes me believe that it is easily extendable to any =
algorithm.</FONT></P>

<P><FONT SIZE=3D2>&gt; &gt;6.&nbsp; Sectoin 2.3.1.&nbsp; =
Questions&nbsp; about your algorithm:&nbsp; 1) </FONT>
<BR><FONT SIZE=3D2>&gt; what is the IV that</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;should be used initially on the first pass =
encryption (not </FONT>
<BR><FONT SIZE=3D2>&gt; explicity stated</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;but implied later).&nbsp; 2) Where is the =
IV saved?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; It's part of the AlgorithmIdentifier for the =
KEK algorithm.&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; I assumed it</FONT>
<BR><FONT SIZE=3D2>&gt; wouldn't be necessary to mention this because =
it's the </FONT>
<BR><FONT SIZE=3D2>&gt; standard usage for an IV</FONT>
<BR><FONT SIZE=3D2>&gt; given in the AlgorithmIdentifier, but I can =
move the text in </FONT>
<BR><FONT SIZE=3D2>&gt; the example</FONT>
<BR><FONT SIZE=3D2>&gt; (2.3.3, &quot;Using the IV given in the </FONT>
<BR><FONT SIZE=3D2>&gt; KeyEncryptionAlgorithmIdentifer...&quot;) up =
to</FONT>
<BR><FONT SIZE=3D2>&gt; 2.3.1 if the current text isn't clear.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;3) What does step 1 of section 2.3.2 =
do?&nbsp; I don't see a </FONT>
<BR><FONT SIZE=3D2>&gt; corresponding step</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;in section 2.3.1.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; It recovers the IV used for the second pass of =
encrption </FONT>
<BR><FONT SIZE=3D2>&gt; (step 3 of 2.3.1).</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;This thing might work, but I should don't =
believe it from </FONT>
<BR><FONT SIZE=3D2>&gt; just reading the</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;document.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I would hope it does, or the people who have =
been using it </FONT>
<BR><FONT SIZE=3D2>&gt; almost daily since</FONT>
<BR><FONT SIZE=3D2>&gt; it was first published in 1993 are in for a =
rude shock :-).</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;7.&nbsp; Section 2.3.4 -- Can this issue =
also be addressed by the </FONT>
<BR><FONT SIZE=3D2>&gt; addition of a</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;random salt to the KEK creation =
process?&nbsp; This means one is </FONT>
<BR><FONT SIZE=3D2>&gt; not using the</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;same KEK for every CEK encrption from a =
single password.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; PKCS #5 already adds the salt, however I wanted =
to create a </FONT>
<BR><FONT SIZE=3D2>&gt; failsafe design</FONT>
<BR><FONT SIZE=3D2>&gt; which works even if no salt (or a fixed salt) =
is used.&nbsp; The </FONT>
<BR><FONT SIZE=3D2>&gt; double-wrapping</FONT>
<BR><FONT SIZE=3D2>&gt; also prevents bit-flipping attacks, I'll amend =
the text to </FONT>
<BR><FONT SIZE=3D2>&gt; mention this.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;8.&nbsp; Section 2.4.1 -- You cannot change =
the CEK for RC2 in </FONT>
<BR><FONT SIZE=3D2>&gt; this document.&nbsp; I</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;don't want two different versions for this =
depending on </FONT>
<BR><FONT SIZE=3D2>&gt; wheither I have a</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;Password KEK mixed in the set of =
recipients.&nbsp; This just will not fly.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Uhhh... I don't understand the comment.&nbsp; =
How can you have two </FONT>
<BR><FONT SIZE=3D2>&gt; different CEK's</FONT>
<BR><FONT SIZE=3D2>&gt; for the same data?</FONT>
</P>

<P><FONT SIZE=3D2>I understood that the RC2 CEK algorithm was changing =
from 1.2.840.113549.3.2 to 1.3.6.1.4.1.3029.666.13 (provesional) in the =
event that the effective key size and actual key size did not =
match.&nbsp; This means that if I am doing a password KEK and an RSA =
key transport, the value is not well defined depending on which one I =
meant to use.&nbsp; If this is not what you meant then please =
clarify.&nbsp; My reasoning went as following:</FONT></P>

<P><FONT SIZE=3D2>1.&nbsp; CEK key length is obtained from the CEK =
algorithm description</FONT>
<BR><FONT SIZE=3D2>2.&nbsp; The new algoirthm parameters contain the =
actualKey lenght and must therefore be part of the CEK.</FONT>
<BR><FONT SIZE=3D2>3.&nbsp; All other code that uses CMS needs to&nbsp; =
understand this new CEK algorithm in the event that a password =
receipient is included.</FONT></P>

<P><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Peter.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

<P><FONT SIZE=3D2>jim</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF321B.1326C25A--


Received: by ns.secondary.com (8.9.3/8.9.3) id NAA06725 for ietf-smime-bks; Thu, 18 Nov 1999 13:55:45 -0800 (PST)
Received: from polaris.shore.net (polaris.shore.net [207.244.124.105]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA06721 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 13:55:44 -0800 (PST)
Received: from vin.shore.net (computername) [198.115.179.81]  by polaris.shore.net with smtp (Exim) id 11oZY1-0007Yh-00; Thu, 18 Nov 1999 16:56:58 -0500
X-Sender: vin@shell1.shore.net
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: pgut001@cs.aucKland.ac.nz, ietf-smime@imc.org
From: Vin McLellan <vin@shore.net>
Subject: Re: Password-based Encryption for S/MIME...
Message-Id: <E11oZY1-0007Yh-00@polaris.shore.net>
Date: Thu, 18 Nov 1999 16:56:58 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

        Thank you, Peter.

        My apologies to the list for my apparently out of context note.
<blush> Let this serve as a caution to anyone else who might be tempted to
answer e-mail while flying, when RFCs and suchlike are unavailable. 

                        _Vin

At 09:45 AM 11/19/99, Peter Gutmann wrote:
>
>The title of the document is somewhat misleading, because it's ietf-smime the
>documents are typically called "X for S/MIME" but it's actually "Password-based
>Encryption for CMS", which is what the text refers to it as.  The expected use
>is for encrypting things like disk files, private keys, data blobs, etc etc.  
>In addition there are users who are using things like non-public-key-capable 
>smart cards to handle KEK's (typically 128 or 192-bit values for IDEA or 3DES) 
>which are hardly in the same class as "simple static reusable passwords".



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id NAA06646 for ietf-smime-bks; Thu, 18 Nov 1999 13:52:17 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA06642 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 13:52:15 -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.9.3/8.8.6/cs-master) with SMTP id KAA24630 for <ietf-smime@imc.org>; Fri, 19 Nov 1999 10:53:43 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <94296202324805>; Fri, 19 Nov 1999 10:53:43 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: Comments on draft-ietf-smime-password-00
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Fri, 19 Nov 1999 10:53:43 (NZDT)
Message-ID: <94296202324805@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

"Jim Schaad (Exchange)" <jimsch@Exchange.Microsoft.com> writes:

>1. Section 2.1.  What is the timing you expect to see relative to PKCS5v2
>being advanced to an RFC of some type?

I have no idea.  Does it need to be?  Like the other PKCS's I assume it can
be turned into an RFC in no time, but is that a requirement?

>2.  Section 2.1.  The S/MIME working group is using 88 ASN syntax.  The
>syntax in this section is not.  Please correct.

PKCS #5 uses current ASN.1 syntax and not the 1988 version, the ASN.1 used
is taken straight from the standard.

>3.  Section 2.1  Why is there ASN here that does not actually provide any
>useful information.  What are the parameters.  What is the OID associated
>with this set of parameters.

It's copied from PKCS #5 for completeness, I didn't want to include the
whole thing verbatim but did want to include enough information that readers
wouldn't have to keep flipping back and forth between the two.

>4. Section 2.3.1  We have a key wrap algorithm specified in RFC 2630.  You
>are using a different key wrap algorithm.  I would prefer to see a single
>one for simplity of implementation.  What is your justification for added
>complexity?

The RFC 2630 algorithm doesn't work for anything other than fixed-length RC2
and 3DES keys.  This algorithm works with anything (well, anything with an OID
defined, which in practice means pretty much any commonly-used algorithm).
It's also a lot simpler than the RFC 2630 algorithm, you just run any old
block cipher over the data twice without needing additional hashing, byte-
reversal, or anything else - if all you've got to do your crypto is a smart
card which does 3DES (eg Gemplus' MPCOS) or IDEA (see my previous message) you
can't even implement the RFC 2630 algorithm.

[I assume that when you're saying you can use 256 bits of key for a 128-bit
 algorithm what you mean is that you have 256 bits of actual key which is
 transformed to 128 bits of effective key by the RC2 key-transformation].

The same thing occurs with RFC 2630 and it doesn't seem to be a problem there.
In any case I think I've addressed it in "Special Handling for RC2 Keys".

>6.  Sectoin 2.3.1.  Questions  about your algorithm:  1) what is the IV that
>should be used initially on the first pass encryption (not explicity stated
>but implied later).  2) Where is the IV saved?

It's part of the AlgorithmIdentifier for the KEK algorithm.  I assumed it
wouldn't be necessary to mention this because it's the standard usage for an IV
given in the AlgorithmIdentifier, but I can move the text in the example
(2.3.3, "Using the IV given in the KeyEncryptionAlgorithmIdentifer...") up to
2.3.1 if the current text isn't clear.

>3) What does step 1 of section 2.3.2 do?  I don't see a corresponding step
>in section 2.3.1.

It recovers the IV used for the second pass of encrption (step 3 of 2.3.1).

>This thing might work, but I should don't believe it from just reading the
>document.

I would hope it does, or the people who have been using it almost daily since
it was first published in 1993 are in for a rude shock :-).

>7.  Section 2.3.4 -- Can this issue also be addressed by the addition of a
>random salt to the KEK creation process?  This means one is not using the
>same KEK for every CEK encrption from a single password.

PKCS #5 already adds the salt, however I wanted to create a failsafe design
which works even if no salt (or a fixed salt) is used.  The double-wrapping
also prevents bit-flipping attacks, I'll amend the text to mention this.

>8.  Section 2.4.1 -- You cannot change the CEK for RC2 in this document.  I
>don't want two different versions for this depending on wheither I have a
>Password KEK mixed in the set of recipients.  This just will not fly.

Uhhh... I don't understand the comment.  How can you have two different CEK's
for the same data?

Peter.




Received: by ns.secondary.com (8.9.3/8.9.3) id MAA05429 for ietf-smime-bks; Thu, 18 Nov 1999 12:48:32 -0800 (PST)
Received: from lornadoon.akc.com (lornadoon.donet.com [205.133.113.5]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA05425 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 12:48:30 -0800 (PST)
Received: from poops (union5-bk1-hfc-0252-d8d82236.rdc1.nj.comcastatwork.com [216.216.34.54]) by lornadoon.akc.com (8.9.3/8.9.3) with SMTP id PAA14973 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 15:47:21 -0500
Message-ID: <009e01bf3206$a72d0000$0401a8c0@comcastwork.com>
Reply-To: "Al Costanzo" <al@akc.com>
From: "Al Costanzo" <al@akc.com>
To: <ietf-smime@imc.org>
Subject: s/mime mail interaction with SSL website and sendmail
Date: Thu, 18 Nov 1999 15:51:13 -0500
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 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Hello,

I was wondering if anyone could explain this to me.

We just set up a secure webserver for clients and would like a program like
FormMail.pl to be able to send the mail to the client securely.

The client in question uses MS Outlook Express which does support s/mime.

I know how to do this for PGP -but- what do I need to do to the server's
sendmail program (or) what do I need to add to the server so that the server
will automatically wrap up the data formmail.pl will send out using S/Mime.
and how and were does the client's public key go on the server?

Thanks for any help in advance,,,

-al



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id MAA05358 for ietf-smime-bks; Thu, 18 Nov 1999 12:44:33 -0800 (PST)
Received: from mail.student.auckland.ac.nz (mail.student.auckland.ac.nz [130.216.35.101]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA05354 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 12:44:30 -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.9.3/8.8.6/cs-master) with SMTP id JAA22576 for <ietf-smime@imc.org>; Fri, 19 Nov 1999 09:45:57 +1300 (NZDT) (sender pgut001@cs.auckland.ac.nz)
Received: by cs26.cs.auckland.ac.nz (relaymail v0.9) id <94295795824604>; Fri, 19 Nov 1999 09:45:58 (NZDT)
From: pgut001@cs.aucKland.ac.nz (Peter Gutmann)
To: ietf-smime@imc.org
Subject: Re: Password-based Encryption for S/MIME...
Reply-To: pgut001@cs.aucKland.ac.nz
X-Charge-To: pgut001
X-Authenticated: relaymail v0.9 on cs26.cs.auckland.ac.nz
Date: Fri, 19 Nov 1999 09:45:58 (NZDT)
Message-ID: <94295795824604@cs26.cs.auckland.ac.nz>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Carlisle Adams <carlisle.adams@entrust.com> writes:

>At the meeting last week, Russ solicited more comments on a few of the
>current drafts, prior to going to Last Call.  One of the specifically cited
>drafts was "Password-based Encryption for S/MIME".

I actually submitted a (mildly) updated version based on previous discussions
for the IETF meeting but it got bounced because it arrived about 5 minutes
after the cutoff time taken from some arbitrary time zone which is about 5am
for me :-(.  I'll submit a newer version based on current feedback.

>1) "Musts", "shoulds", etc., should be capitalized (this is not absolutely
>necessary, but it does help to make conformance requirements clear and
>easy-to-find).

Although I dislike shouting (unless it's about broken X.509 stuff :-), I'll
change the text.

>2) The Security Considerations section currently contains only the following
>sentence:  "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."  I suggest adding a new paragraph along the
>following lines.
>
>"More importantly, however, the security of this information type rests on the
>entropy of the user-selected password, which is typically quite low. Pass
>phrases (as opposed to simple passwords) are STRONGLY RECOMMENDED, although it
>should be recognized that even with pass phrases it will be difficult to use
>this recipient information type to derive a KEK with sufficient entropy to
>properly protect a 128-bit (or higher) CEK."

Is it worth going into this sort of thing?  I deliberately avoided covering
this because it's very obvious (it's just stating "If you pick an easily-
guessed password, you're toast"), it's mentioned in virtually every security
text and tutorial, and it's not something an implementor has much control over
(that is, it's unlikely that end users will read the draft and note that it's
recommending they use a strong password).  If people think it's worth adding
I'm happy to add it, but it seemed like it wouldn't add any real value to me.

Vin McLellan <vin@shore.net> writes:

>Pass phrases for cryptographic keys???  Simple static reusable passwords??!
>
>Suggesting a password-based S/MIME which does not take advantage of any of
>the well-documented and proven methods for safely expanding a small password
>into a cryptographically respectable key  sounds like the WG is proposing
>something like 40-bit  symmetric crypto as a future standard.  Are the IP
>issues so entangled that the WG is left with such a meager and
>embarrassingly fragile offering?

The title of the document is somewhat misleading, because it's ietf-smime the
documents are typically called "X for S/MIME" but it's actually "Password-based
Encryption for CMS", which is what the text refers to it as.  The expected use
is for encrypting things like disk files, private keys, data blobs, etc etc.  
In addition there are users who are using things like non-public-key-capable 
smart cards to handle KEK's (typically 128 or 192-bit values for IDEA or 3DES) 
which are hardly in the same class as "simple static reusable passwords".

Incidentally, the use of pre-shared passwords among (at least) PGP users isn't
unheard-of, I've used it myself occasionally when I've met people in person and
neither of us had anything other than pencil and paper handy - it's a good way
to bootstrap secure communications based on personal contact.  Using random
passwords as authenticators is also fairly common at PGP key-signing BOF's.

Peter.



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id MAA05146 for ietf-smime-bks; Thu, 18 Nov 1999 12:28:32 -0800 (PST)
Received: from doggate.exchange.microsoft.com (doggate.exchange.microsoft.com [131.107.88.55]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA05142 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 12:28:31 -0800 (PST)
Received: by doggate.exchange.microsoft.com with Internet Mail Service (5.5.2232.9) id <XB2W25ZY>; Thu, 18 Nov 1999 12:29:30 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD194A7135@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "'Pawling, John'" <jsp@jgvandyke.com>, "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: RE: Comments on draft-ietf-smime-cmskea-02
Date: Thu, 18 Nov 1999 12:28:33 -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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Not having anyting for item 2 is fine with me.  I have no arguments with the
proposed text.

-----Original Message-----
From: Pawling, John [mailto:jsp@jgvandyke.com]
Sent: Thursday, November 18, 1999 12:10 PM
To: Ietf-Smime (E-mail)
Subject: RE: Comments on draft-ietf-smime-cmskea-02


Jim,
 
Thank you very much for your comments.  I have the following responses:
 
1) Agree.
 
2) I don't believe that we need to add text regarding the validation of the
originator's cert.  RFC 2632 (CERT), section 1 states: "Before using a
public key to provide security services, the S/MIME agent MUST certify that
the public key is valid."  I believe that covers the case of validating the
originator's cert.
 
3) Agree.  Recommend the following text: 
 
"7.   SMIMECapabilities Attribute Conventions
 
7.1.  RFC 2633, Section 2.5.2 defines the SMIMECapabilities signed attribute
(defined as a SEQUENCE of SMIMECapability SEQUNCEs) to be used to specify a
partial list of algorithms that the software announcing the
SMIMECapabilities can support.  When constructing a signedData object,
compliant software MAY include the SMIMECapabilities signed attribute
announcing that it supports the KEA and SKIPJACK algorithms. 
 
7.2.  The SMIMECapability SEQUENCE representing KEA MUST include the
id-kEAKeyEncryptionAlgorithm OID in the capabilityID field and MUST include
a KeyWrapAlgorithm SEQUENCE in the parameters field.  The algorithm field of
KeyWrapAlgorithm MUST be the id-fortezzaWrap80 OID.  The parameters field of
KeyWrapAlgorithm MUST be absent. The SMIMECapability SEQUENCE for KEA SHOULD
be included in the key management algorithms portion of the
SMIMECapabilities list.  The SMIMECapability SEQUENCE representing KEA MUST
be DER-encoded as follows:  <TBD: insert ASCII characters representing hex
values here>.
 
7.3.  The SMIMECapability SEQUENCE representing SKIPJACK MUST include the
id-fortezzaConfidentialityAlgorithm OID in the capabilityID field and the
parameters field MUST be absent.  The SMIMECapability SEQUENCE for SKIPJACK
SHOULD be included in the symmetric encryption algorithms portion of the
SMIMECapabilities list.  The SMIMECapability SEQUENCE representing SKIPJACK
MUST be DER-encoded as follows:  <TBD: Insert ASCII characters representing
hex values here>."
 
Does anybody disagree with these changes?

============================================
John Pawling, Director - Systems Engineering
J.G. Van Dyke & Associates, Inc;
a Wang Government Services Company
john.pawling@wang.com <mailto:john.pawling@wang.com> 
============================================ 

  -----Original Message-----
From: Jim Schaad (Exchange) [ mailto:jimsch@Exchange.Microsoft.com
<mailto:jimsch@Exchange.Microsoft.com> ]
Sent: Thursday, November 18, 1999 1:41 PM
To: John Pawling (E-mail)
Cc: Ietf-Smime (E-mail)
Subject: Comments on draft-ietf-smime-cmskea-02



1.  It would be useful if section references to CMS included section numbers
rather than just section titles.  An example is the first paragraph of
section 4.

2.  Section 4.2.2 --- One of the discussion that I have every so often with
you and Russ deals with the question of validating the originators
certificate during the decrypt process.  The current text makes no reference
to doing this or what should happen if this validation fails.  Is this what
you want?  Do you want to put in some text about doing the validation and
what to do if it fails?  Suggested text could run along the lines of "If the
originators certificate is used for the purposes of origination
authenticiation, then the originators certificate MUST be validated prior to
decrypting the message and the decryption MUST NOT proceed if the validation
fails."

3.  The document is missing the specification of the SMimeCapability field
to be used for CMSKEA.  Please include a small section with the necessary
parameters and a binary version of the encoded attribute so that everyone
uses the same byte sequence.

jim 


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id MAA04656 for ietf-smime-bks; Thu, 18 Nov 1999 12:09:01 -0800 (PST)
Received: from wfhqex05.wangfed.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA04652 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 12:09:00 -0800 (PST)
Received: by wfhqex05.wangfed.com with Internet Mail Service (5.5.2650.21) id <V36RYSBS>; Thu, 18 Nov 1999 15:11:07 -0500
Message-ID: <33BD629222C0D211B6DB0060085ACF315A0457@WFHQEX03>
From: "Pawling, John" <jsp@jgvandyke.com>
To: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: RE: Comments on draft-ietf-smime-cmskea-02
Date: Thu, 18 Nov 1999 15:10:16 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Jim,
 
Thank you very much for your comments.  I have the following responses:
 
1) Agree.
 
2) I don't believe that we need to add text regarding the validation of the
originator's cert.  RFC 2632 (CERT), section 1 states: "Before using a
public key to provide security services, the S/MIME agent MUST certify that
the public key is valid."  I believe that covers the case of validating the
originator's cert.
 
3) Agree.  Recommend the following text: 
 
"7.   SMIMECapabilities Attribute Conventions
 
7.1.  RFC 2633, Section 2.5.2 defines the SMIMECapabilities signed attribute
(defined as a SEQUENCE of SMIMECapability SEQUNCEs) to be used to specify a
partial list of algorithms that the software announcing the
SMIMECapabilities can support.  When constructing a signedData object,
compliant software MAY include the SMIMECapabilities signed attribute
announcing that it supports the KEA and SKIPJACK algorithms. 
 
7.2.  The SMIMECapability SEQUENCE representing KEA MUST include the
id-kEAKeyEncryptionAlgorithm OID in the capabilityID field and MUST include
a KeyWrapAlgorithm SEQUENCE in the parameters field.  The algorithm field of
KeyWrapAlgorithm MUST be the id-fortezzaWrap80 OID.  The parameters field of
KeyWrapAlgorithm MUST be absent. The SMIMECapability SEQUENCE for KEA SHOULD
be included in the key management algorithms portion of the
SMIMECapabilities list.  The SMIMECapability SEQUENCE representing KEA MUST
be DER-encoded as follows:  <TBD: insert ASCII characters representing hex
values here>.
 
7.3.  The SMIMECapability SEQUENCE representing SKIPJACK MUST include the
id-fortezzaConfidentialityAlgorithm OID in the capabilityID field and the
parameters field MUST be absent.  The SMIMECapability SEQUENCE for SKIPJACK
SHOULD be included in the symmetric encryption algorithms portion of the
SMIMECapabilities list.  The SMIMECapability SEQUENCE representing SKIPJACK
MUST be DER-encoded as follows:  <TBD: Insert ASCII characters representing
hex values here>."
 
Does anybody disagree with these changes?

============================================
John Pawling, Director - Systems Engineering
J.G. Van Dyke & Associates, Inc;
a Wang Government Services Company
john.pawling@wang.com <mailto:john.pawling@wang.com> 
============================================ 

  -----Original Message-----
From: Jim Schaad (Exchange) [ mailto:jimsch@Exchange.Microsoft.com
<mailto:jimsch@Exchange.Microsoft.com> ]
Sent: Thursday, November 18, 1999 1:41 PM
To: John Pawling (E-mail)
Cc: Ietf-Smime (E-mail)
Subject: Comments on draft-ietf-smime-cmskea-02



1.  It would be useful if section references to CMS included section numbers
rather than just section titles.  An example is the first paragraph of
section 4.

2.  Section 4.2.2 --- One of the discussion that I have every so often with
you and Russ deals with the question of validating the originators
certificate during the decrypt process.  The current text makes no reference
to doing this or what should happen if this validation fails.  Is this what
you want?  Do you want to put in some text about doing the validation and
what to do if it fails?  Suggested text could run along the lines of "If the
originators certificate is used for the purposes of origination
authenticiation, then the originators certificate MUST be validated prior to
decrypting the message and the decryption MUST NOT proceed if the validation
fails."

3.  The document is missing the specification of the SMimeCapability field
to be used for CMSKEA.  Please include a small section with the necessary
parameters and a binary version of the encoded attribute so that everyone
uses the same byte sequence.

jim 



Received: by ns.secondary.com (8.9.3/8.9.3) id KAA02985 for ietf-smime-bks; Thu, 18 Nov 1999 10:56:23 -0800 (PST)
Received: from doggate.exchange.microsoft.com (doggate.exchange.microsoft.com [131.107.88.55]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA02981 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 10:56:21 -0800 (PST)
Received: by doggate.exchange.microsoft.com with Internet Mail Service (5.5.2232.9) id <XB2W2Z2A>; Thu, 18 Nov 1999 10:57:20 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD194A7132@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: 
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: Comments on draft-ietf-smime-ecc-00
Date: Thu, 18 Nov 1999 10:56: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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

1.  Please use the correct MUST/SHOULD conventions.

2.  Section 2, para 1:  Can we change the should not to MUST NOT to be
uniform with DSA and not deal with parameters in multiple places?

3.  Section 2.1, para 2 - Note this is a must not and is not consistent with
section 2 para 1 (see comment 2)

4.  Section 3 step 1.  Please use CEK not K for the content encryption key.

5.  Section 3, step 2c:  I have not looked at the EC algorithm, but I assume
that the shared secret is not actually computed using the two public keys as
it would not be very secret.

6.  Section 3, step 3d:  Using a KDF of SHA-1 is bad.  This leaves the
encryption algorithm open for attack especially if the key sizes can change.
Please look at the use of OtherKeyInfo in RFC 2631.




Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id KAA02688 for ietf-smime-bks; Thu, 18 Nov 1999 10:40:39 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA02683 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 10:40:38 -0800 (PST)
Received: by dfssl with Internet Mail Service (5.5.2650.21) id <W8XXNPP5>; Thu, 18 Nov 1999 10:41:33 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD194A7131@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: "John Pawling (E-mail)" <jsp@jgvandyke.com>
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: Comments on draft-ietf-smime-cmskea-02
Date: Thu, 18 Nov 1999 10:40:38 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF31F4.896D87C2"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF31F4.896D87C2
Content-Type: text/plain;
	charset="iso-8859-1"

1.  It would be useful if section references to CMS included section numbers
rather than just section titles.  An example is the first paragraph of
section 4.

2.  Section 4.2.2 --- One of the discussion that I have every so often with
you and Russ deals with the question of validating the originators
certificate during the decrypt process.  The current text makes no reference
to doing this or what should happen if this validation fails.  Is this what
you want?  Do you want to put in some text about doing the validation and
what to do if it fails?  Suggested text could run along the lines of "If the
originators certificate is used for the purposes of origination
authenticiation, then the originators certificate MUST be validated prior to
decrypting the message and the decryption MUST NOT proceed if the validation
fails."

3.  The document is missing the specification of the SMimeCapability field
to be used for CMSKEA.  Please include a small section with the necessary
parameters and a binary version of the encoded attribute so that everyone
uses the same byte sequence.

jim




------_=_NextPart_001_01BF31F4.896D87C2
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Comments on draft-ietf-smime-cmskea-02</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">1.&nbsp; It would be useful if section =
references to CMS included section numbers rather than just section =
titles.&nbsp; An example is the first paragraph of section =
4.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">2.&nbsp; Section 4.2.2 --- One of the =
discussion that I have every so often with you and Russ deals with the =
question of validating the originators certificate during the decrypt =
process.&nbsp; The current text makes no reference to doing this or =
what should happen if this validation fails.&nbsp; Is this what you =
want?&nbsp; Do you want to put in some text about doing the validation =
and what to do if it fails?&nbsp; Suggested text could run along the =
lines of &quot;If the originators certificate is used for the purposes =
of origination authenticiation, then the originators certificate MUST =
be validated prior to decrypting the message and the decryption MUST =
NOT proceed if the validation fails.&quot;</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">3.&nbsp; The document is missing the =
specification of the SMimeCapability field to be used for CMSKEA.&nbsp; =
Please include a small section with the necessary parameters and a =
binary version of the encoded attribute so that everyone uses the same =
byte sequence.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">jim</FONT>
</P>
<BR>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01BF31F4.896D87C2--


Received: by ns.secondary.com (8.9.3/8.9.3) id JAA01792 for ietf-smime-bks; Thu, 18 Nov 1999 09:55:34 -0800 (PST)
Received: from dmz1.it-sec.com (dmz1.itsec.ch [195.141.254.202] (may be forged)) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA01787 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 09:55:27 -0800 (PST)
Received: from svzh0004.itsec.ch (localhost [127.0.0.1]) by dmz1.it-sec.com (8.9.3/8.9.3) with ESMTP id SAA01752; Thu, 18 Nov 1999 18:54:52 +0100 (MET)
Received: by SVZH0004 with Internet Mail Service (5.5.2448.0) id <WF2YAP8G>; Thu, 18 Nov 1999 18:55:54 +0100
Message-ID: <F5545CEFBE7CD31190C90004AC4C1B6402EC13@SVZH0004>
From: Teiwes  Stephan <stephan.teiwes@it-sec.com>
To: "'Jim Schaad (Exchange)'" <jimsch@EXCHANGE.MICROSOFT.com>
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: RE: Comments on draft-ietf-smime-idea-01
Date: Thu, 18 Nov 1999 18:55:53 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Jim,

thanks a lot for your comments. I'll work on the corrections.

*Stephan

-----Original Message-----
From: Jim Schaad (Exchange) [mailto:jimsch@Exchange.Microsoft.com]
Sent: Donnerstag, 18. November 1999 18:46
To: stephan.teiwes@itsec.ch
Cc: Ietf-Smime (E-mail)
Subject: Comments on draft-ietf-smime-idea-01


1.  Please include the standard text relating to RFC2119 and then capitalize
the approprate wording in the document.

2. Section 2, para 6:  I would like it if the alternative of not including
the IV in the IDEA-CBC parameters had a SHOULD NOT on it.

3.  Section 4:  Please include the actual encoded bytes used in the S/MIME
capabilty so there is no mistake on the correct sequence to use when doing
the byte compares.


jim


Received: by ns.secondary.com (8.9.3/8.9.3) id JAA01570 for ietf-smime-bks; Thu, 18 Nov 1999 09:44:35 -0800 (PST)
Received: from doggate.exchange.microsoft.com (doggate.exchange.microsoft.com [131.107.88.55]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA01561 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 09:44:34 -0800 (PST)
Received: by doggate.exchange.microsoft.com with Internet Mail Service (5.5.2232.9) id <XB2W2X9Z>; Thu, 18 Nov 1999 09:45:33 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD190201D3A5@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: stephan.teiwes@itsec.ch
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: Comments on draft-ietf-smime-idea-01
Date: Thu, 18 Nov 1999 09:45:31 -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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

1.  Please include the standard text relating to RFC2119 and then capitalize
the approprate wording in the document.

2. Section 2, para 6:  I would like it if the alternative of not including
the IV in the IDEA-CBC parameters had a SHOULD NOT on it.

3.  Section 4:  Please include the actual encoded bytes used in the S/MIME
capabilty so there is no mistake on the correct sequence to use when doing
the byte compares.


jim



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id JAA01569 for ietf-smime-bks; Thu, 18 Nov 1999 09:44:35 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA01559 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 09:44:34 -0800 (PST)
Received: by dfssl with Internet Mail Service (5.5.2650.21) id <W8XXNNF9>; Thu, 18 Nov 1999 09:45:30 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD190201D3A3@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: cadams@entrust.com
Cc: ietf-smime@imc.org
Subject: Comments on draft-ietf-smime-cast-128-00.txt
Date: Thu, 18 Nov 1999 09:45:29 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF31EC.B3C73304"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF31EC.B3C73304
Content-Type: text/plain

I have the following comments on this draft:

1.  You are currently missing an analogus statement to "Only 128-bit RC2
keys may be used as key-encryption keys, and they must be used with the
RC2ParameterVersion parameter set to 58." (from section 12.3.3.2 of RFC
2630).  This was deemed important by the group for inclusion to prevent the
usage of weaker KEK than CEK keys.  (I do note that you have a should be
equal in size in the security considerations.  I believe this should be
moved up to the main document however to match CMS.)

2.  Section 3 Para 1.  You state that you must include the above OIDs in the
symmetric algorithms section of capabilities, but only one of the oids is a
symmetric algorithm.  At the current time we are "implying" the key wrap
from the symmetric algorithm as only same key wrap is supported in CMS.
Please change to the correct OID reference.

3.  Section 3. Para 1.  You appear to state that the parameters could be
either the SMIMECapabilitiesParametersForCAST5CBC or
cast5CMSkeywrapParameter or cast5CBCParameters.  The last would lead to a
different encoding from the first two and RFC 2633 states in section 2.5.2
that capabilties must be single value.  Please determine which of the
parameters is to be used.  I would also like to see the encoded binary
sequence included in the document so that there is no question on the single
encoding.  I plan to suggest that this be done for RFC 2633 on progression
as well.

4.  Section 2.1 para 5.  I'm sorry, but I don't have RFC 2144 in front of
me.  If this document contains clear language on the use of the default IV
of 0 then everything is fine.  If not please include a SHOULD NOT use the
default IV.

jim 


------_=_NextPart_001_01BF31EC.B3C73304
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Comments on draft-ietf-smime-cast-128-00.txt</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I have the following comments on this draft:</FONT>
</P>

<P><FONT SIZE=3D2>1.&nbsp; You are currently missing an analogus =
statement to &quot;Only 128-bit RC2 keys may be used as key-encryption =
keys, and they must be used with the RC2ParameterVersion parameter set =
to 58.&quot; (from section 12.3.3.2 of RFC 2630).&nbsp; This was deemed =
important by the group for inclusion to prevent the usage of weaker KEK =
than CEK keys.&nbsp; (I do note that you have a should be equal in size =
in the security considerations.&nbsp; I believe this should be moved up =
to the main document however to match CMS.)</FONT></P>

<P><FONT SIZE=3D2>2.&nbsp; Section 3 Para 1.&nbsp; You state that you =
must include the above OIDs in the symmetric algorithms section of =
capabilities, but only one of the oids is a symmetric algorithm.&nbsp; =
At the current time we are &quot;implying&quot; the key wrap from the =
symmetric algorithm as only same key wrap is supported in CMS.&nbsp; =
Please change to the correct OID reference.</FONT></P>

<P><FONT SIZE=3D2>3.&nbsp; Section 3. Para 1.&nbsp; You appear to state =
that the parameters could be either the =
SMIMECapabilitiesParametersForCAST5CBC or cast5CMSkeywrapParameter or =
cast5CBCParameters.&nbsp; The last would lead to a different encoding =
from the first two and RFC 2633 states in section 2.5.2 that =
capabilties must be single value.&nbsp; Please determine which of the =
parameters is to be used.&nbsp; I would also like to see the encoded =
binary sequence included in the document so that there is no question =
on the single encoding.&nbsp; I plan to suggest that this be done for =
RFC 2633 on progression as well.</FONT></P>

<P><FONT SIZE=3D2>4.&nbsp; Section 2.1 para 5.&nbsp; I'm sorry, but I =
don't have RFC 2144 in front of me.&nbsp; If this document contains =
clear language on the use of the default IV of 0 then everything is =
fine.&nbsp; If not please include a SHOULD NOT use the default =
IV.</FONT></P>

<P><FONT SIZE=3D2>jim </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF31EC.B3C73304--


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id JAA01568 for ietf-smime-bks; Thu, 18 Nov 1999 09:44:35 -0800 (PST)
Received: from dfssl.exchange.microsoft.com (dfssl.exchange.microsoft.com [131.107.88.59]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA01556 for <ietf-smime@imc.org>; Thu, 18 Nov 1999 09:44:33 -0800 (PST)
Received: by dfssl with Internet Mail Service (5.5.2650.21) id <W8XXNNF0>; Thu, 18 Nov 1999 09:45:30 -0800
Message-ID: <EAB5B8B61A04684198FF1D0C1B3ACD190201D3A4@dino.dns.microsoft.com>
From: "Jim Schaad (Exchange)" <jimsch@EXCHANGE.MICROSOFT.com>
To: pgut001@cs.aucKland.ac.nz
Cc: "Ietf-Smime (E-mail)" <ietf-smime@imc.org>
Subject: Comments on draft-ietf-smime-password-00
Date: Thu, 18 Nov 1999 09:45:31 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF31EC.B47EC816"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF31EC.B47EC816
Content-Type: text/plain;
	charset="iso-8859-1"

1.  Section 2.1.  What is the timing you expect to see relative to PKCS5v2
being advanced to an RFC of some type?

2.  Section 2.1.  The S/MIME working group is using 88 ASN syntax.  The
syntax in this section is not.  Please correct.

3.  Section 2.1  Why is there ASN here that does not actually provide any
useful information.  What are the parameters.  What is the OID associated
with this set of parameters.

4. Section 2.3.1  We have a key wrap algorithm specified in RFC 2630.  You
are using a different key wrap algorithm.  I would prefer to see a single
one for simplity of implementation.  What is your justification for added
complexity?

5.  Section 2.3.2.  You state that the length of the key can be determined
from the CEK parameters.  This is not always true.  A counter example would
be to use 256-bits of key material for a RC2/128-bit process.  In this case
you would only pull 128-bits of key material and be unable to decrypt the
content.

6.  Sectoin 2.3.1.  Questions  about your algorithm:  1) what is the IV that
should be used initially on the first pass encryption (not explicity stated
but implied later).  2) Where is the IV saved?  3) What does step 1 of
section 2.3.2 do?  I don't see a corresponding step in section 2.3.1.  This
thing might work, but I should don't believe it from just reading the
document.

7.  Section 2.3.4 -- Can this issue also be addressed by the addition of a
random salt to the KEK creation process?  This means one is not using the
same KEK for every CEK encrption from a single password.

8.  Section 2.4.1 -- You cannot change the CEK for RC2 in this document.  I
don't want two different versions for this depending on wheither I have a
Password KEK mixed in the set of recipients.  This just will not fly.



------_=_NextPart_001_01BF31EC.B47EC816
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Comments on draft-ietf-smime-password-00</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">1.&nbsp; Section 2.1.&nbsp; What is =
the timing you expect to see relative to PKCS5v2 being advanced to an =
RFC of some type?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">2.&nbsp; Section 2.1.&nbsp; The S/MIME =
working group is using 88 ASN syntax.&nbsp; The syntax in this section =
is not.&nbsp; Please correct.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">3.&nbsp; Section 2.1&nbsp; Why is =
there ASN here that does not actually provide any useful =
information.&nbsp; What are the parameters.&nbsp; What is the OID =
associated with this set of parameters.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">4. Section 2.3.1&nbsp; We have a key =
wrap algorithm specified in RFC 2630.&nbsp; You are using a different =
key wrap algorithm.&nbsp; I would prefer to see a single one for =
simplity of implementation.&nbsp; What is your justification for added =
complexity?</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">5.&nbsp; Section 2.3.2.&nbsp; You =
state that the length of the key can be determined from the CEK =
parameters.&nbsp; This is not always true.&nbsp; A counter example =
would be to use 256-bits of key material for a RC2/128-bit =
process.&nbsp; In this case you would only pull 128-bits of key =
material and be unable to decrypt the content.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">6.&nbsp; Sectoin 2.3.1.&nbsp; =
Questions&nbsp; about your algorithm:&nbsp; 1) what is the IV that =
should be used initially on the first pass encryption (not explicity =
stated but implied later).&nbsp; 2) Where is the IV saved?&nbsp; 3) =
What does step 1 of section 2.3.2 do?&nbsp; I don't see a corresponding =
step in section 2.3.1.&nbsp; This thing might work, but I should don't =
believe it from just reading the document.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">7.&nbsp; Section 2.3.4 -- Can this =
issue also be addressed by the addition of a random salt to the KEK =
creation process?&nbsp; This means one is not using the same KEK for =
every CEK encrption from a single password.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">8.&nbsp; Section 2.4.1 -- You cannot =
change the CEK for RC2 in this document.&nbsp; I don't want two =
different versions for this depending on wheither I have a Password KEK =
mixed in the set of recipients.&nbsp; This just will not =
fly.</FONT></P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01BF31EC.B47EC816--


Received: by ns.secondary.com (8.9.3/8.9.3) id UAA06283 for ietf-smime-bks; Wed, 17 Nov 1999 20:11:06 -0800 (PST)
Received: from polaris.shore.net (polaris.shore.net [207.244.124.105]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id UAA06277 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 20:11:03 -0800 (PST)
Received: from vin.shore.net (computername) [198.115.179.81]  by polaris.shore.net with smtp (Exim) id 11oIv4-0006WM-00; Wed, 17 Nov 1999 23:11:38 -0500
X-Sender: vin@shell1.shore.net
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Carlisle Adams <carlisle.adams@entrust.com>, "'Russ Housley'" <housley@spyrus.com>, "'pgut001@cs.auckland.ac.nz'" <pgut001@cs.aucKland.ac.nz>
From: Vin McLellan <vin@shore.net>
Subject: Re: Password-based Encryption for S/MIME...
Cc: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Message-Id: <E11oIv4-0006WM-00@polaris.shore.net>
Date: Wed, 17 Nov 1999 23:11:38 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 05:23 PM 11/17/99 -0500, Carlisle Adams wrote:

>2) The Security Considerations section currently contains only the following
>sentence:  "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."  I suggest adding a new
>paragraph along the following lines.
>
>"More importantly, however, the security of this information type rests on
>the entropy of the user-selected password, which is typically quite low.
>Pass phrases (as opposed to simple passwords) are STRONGLY RECOMMENDED,
>although it should be recognized that even with pass phrases it will be
>difficult to use this recipient information type to derive a KEK with
>sufficient entropy to properly protect a 128-bit (or higher) CEK."

    Pass phrases for cryptographic keys???  Simple static reusable passwords??!

    I beg your pardon for delurking at this late stage in the WG
discussions, but I was under the impression that the question of how to
resolve a cryptographicly strong key from a small password has been a
solved problem since the early 1990s, with the various ancestors of Bellovin
& Merritt's DH-EKE family, including Dave Jablon's SPEKE,  Tom Wu's SRP-3,
and a slew of others: Augmented EKE, Mike Roe's S3P series, Stefan Lucks's
OKE, etc., etc. 

   Jablon's firm, IntegritySciences, -- which I believe recently license
SPEKE to Entrust -- has a fullsome page of references and live URLs for the
relevant work at: <http://www.IntegritySciences.com/links.html#PK99>

    Suggesting a password-based S/MIME which does not take advantage of any
of the well-documented and proven methods for safely expanding a small
password into a cryptographically respectable key  sounds like the WG is
proposing something like 40-bit  symmetric crypto as a future standard.  Are
the IP issues so entangled that the WG is left with such a meager and
embarrassingly fragile offering?

    



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id OAA14888 for ietf-smime-bks; Wed, 17 Nov 1999 14:38:54 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170]) by ns.secondary.com (8.9.3/8.9.3) with SMTP id OAA14883 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 14:38:52 -0800 (PST)
Received: 	id RAA02269; Wed, 17 Nov 1999 17:21:02 -0500
Received: by gateway id <XDMD9JA9>; Wed, 17 Nov 1999 17:23:49 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B1017156D3@sothmxs06.entrust.com>
From: Carlisle Adams <carlisle.adams@entrust.com>
To: "'Russ Housley'" <housley@spyrus.com>, "'pgut001@cs.auckland.ac.nz'" <pgut001@cs.aucKland.ac.nz>
Cc: "'ietf-smime@imc.org'" <ietf-smime@imc.org>
Subject: Password-based Encryption for S/MIME...
Date: Wed, 17 Nov 1999 17:23:47 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF314A.6AAAAA36"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF314A.6AAAAA36
Content-Type: text/plain

Hi,

At the meeting last week, Russ solicited more comments on a few of the
current drafts, prior to going to Last Call.  One of the specifically cited
drafts was "Password-based Encryption for S/MIME".  I only have 2 comments
on this draft.

1) "Musts", "shoulds", etc., should be capitalized (this is not absolutely
necessary, but it does help to make conformance requirements clear and
easy-to-find).

2) The Security Considerations section currently contains only the following
sentence:  "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."  I suggest adding a new
paragraph along the following lines.

"More importantly, however, the security of this information type rests on
the entropy of the user-selected password, which is typically quite low.
Pass phrases (as opposed to simple passwords) are STRONGLY RECOMMENDED,
although it should be recognized that even with pass phrases it will be
difficult to use this recipient information type to derive a KEK with
sufficient entropy to properly protect a 128-bit (or higher) CEK."

Carlisle.


------_=_NextPart_001_01BF314A.6AAAAA36
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>Password-based Encryption for S/MIME...</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Hi,</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">At the =
meeting last week, Russ solicited more comments on a few of the current =
drafts, prior to going to Last Call.&nbsp; One of the specifically =
cited drafts was &quot;Password-based Encryption for =
S/MIME&quot;.&nbsp; I only have 2 comments on this draft.</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">1) =
&quot;Musts&quot;, &quot;shoulds&quot;, etc., should be capitalized =
(this is not absolutely necessary, but it does help to make conformance =
requirements clear and easy-to-find).</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">2) The =
Security Considerations section currently contains only the following =
sentence:&nbsp; &quot;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.&quot;&nbsp; I =
suggest adding a new paragraph along the following lines.</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">&quot;More =
importantly, however, the security of this information type rests on =
the entropy of the user-selected password, which is typically quite =
low.&nbsp; Pass phrases (as opposed to simple passwords) are STRONGLY =
RECOMMENDED, although it should be recognized that even with pass =
phrases it will be difficult to use this recipient information type to =
derive a KEK with sufficient entropy to properly protect a 128-bit (or =
higher) CEK.&quot;</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New =
Roman">Carlisle.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF314A.6AAAAA36--


Received: by ns.secondary.com (8.9.3/8.9.3) id KAA09115 for ietf-smime-bks; Wed, 17 Nov 1999 10:52:23 -0800 (PST)
Received: from v4j31 (ip12.proper.com [165.227.249.12]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA09107 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 10:52:21 -0800 (PST)
Message-Id: <4.2.1.19991117104841.00cf3780@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.1 
Date: Wed, 17 Nov 1999 10:54:09 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: I-D ACTION:draft-ietf-smime-ecc-00.txt
In-Reply-To: <199911171824.NAA14954@ara.missi.ncsc.mil>
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

At 01:24 PM 11/17/99 -0500, David P. Kemp wrote:
>If you are proposing to preclude discussion or progression of this
>draft until an acceptable IPR statement has been provided to the IETF,
>I support the proposal.

Thanks!

>The PKIX WG was fully prepared to strike all mention of CRL
>Distribution Points from the profile after an ugly IPR issue surfaced.
>As a result of the Working Group's position a satisfactory IPR
>statement was produced, in record time.

I'll disagree with you here. Many companies have been much speedier about 
giving much more liberal licenses than Entrust did in the CRL DP case. And, 
many other companies are much more forthright than Entrust was about their 
patent applications *before* the WG tries to standardize technology.

>The cellular telephone industry in particular does not automatically
>disqualify a technology simply because it is encumbered, even if
>royalties are involved.  But it demands that the terms be spelled out
>up front, so that the participants can make meaningful decisions on
>whether to standardize or ignore a technology.

I'm certainly not saying we should disqualify EC in S/MIME; there may be 
market demand for it. I'm saying that Certicom's IPR statement is so 
purposely vague that we shouldn't be helping them in the market until they 
do much more work to clarify what it is they claim. At that point, we can 
decide whether or not to go ahead.

This is not a new issue with Certicom. They have claimed for years that 
they have patents or pending patents on "all interesting variations of 
elliptic curve cryptography". Such threats are what have made so many 
companies stay away from them.

--Paul Hoffman, Director
--Internet Mail Consortium



Received: by ns.secondary.com (8.9.3/8.9.3) id KAA07946 for ietf-smime-bks; Wed, 17 Nov 1999 10:27:21 -0800 (PST)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA07941 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 10:27:19 -0800 (PST)
Received: from stingray.missi.ncsc.mil (root@localhost) by stingray.missi.ncsc.mil with ESMTP id NAA01112 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 13:29:05 -0500 (EST)
Received: from missi.ncsc.mil (depot.missi.ncsc.mil [144.51.60.1]) by stingray.missi.ncsc.mil with ESMTP id NAA01107 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 13:29:05 -0500 (EST)
Received: from ara.missi.ncsc.mil (ara.missi.ncsc.mil [144.51.58.9]) by missi.ncsc.mil (8.8.8/8.8.8) with ESMTP id NAA00940 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 13:28:22 -0500 (EST)
Received: from ara.missi.ncsc.mil (ara.missi.ncsc.mil [144.51.58.9]) by ara.missi.ncsc.mil (8.9.1b+Sun/8.9.1) with SMTP id NAA14954 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 13:24:14 -0500 (EST)
Message-Id: <199911171824.NAA14954@ara.missi.ncsc.mil>
Date: Wed, 17 Nov 1999 13:24:14 -0500 (EST)
From: "David P. Kemp" <dpkemp@missi.ncsc.mil>
Reply-To: "David P. Kemp" <dpkemp@missi.ncsc.mil>
Subject: Re: I-D ACTION:draft-ietf-smime-ecc-00.txt
To: ietf-smime@imc.org
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: KUO2smFVFXyr+7foduH0BQ==
X-Mailer: dtmail 1.3.0 CDE Version 1.3 SunOS 5.7 sun4u sparc 
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

If you are proposing to preclude discussion or progression of this
draft until an acceptable IPR statement has been provided to the IETF,
I support the proposal.

The PKIX WG was fully prepared to strike all mention of CRL
Distribution Points from the profile after an ugly IPR issue surfaced.
As a result of the Working Group's position a satisfactory IPR
statement was produced, in record time.

The cellular telephone industry in particular does not automatically
disqualify a technology simply because it is encumbered, even if
royalties are involved.  But it demands that the terms be spelled out
up front, so that the participants can make meaningful decisions on
whether to standardize or ignore a technology.



> Date: Wed, 17 Nov 1999 09:17:47 -0800
> To: ietf-smime@imc.org
> From: Paul Hoffman / IMC <phoffman@imc.org>
> Subject: Re: I-D ACTION:draft-ietf-smime-ecc-00.txt
> 
> I am very uncomfortable discussing this draft in the WG. Certicom has just 
> posted their intellectual property statement at 
> <http://www.ietf.org/ietf/IPR/CERTICOM-SMIME>, and it is completely vague 
> and useless. It doesn't even say which of our protocols they think they 
> have patents in.
> 
> Why are we helping a company like this make threats against the S/MIME market?
> 
> --Paul Hoffman, Director
> --Internet Mail Consortium
> 



Received: by ns.secondary.com (8.9.3/8.9.3) id JAA06550 for ietf-smime-bks; Wed, 17 Nov 1999 09:15:59 -0800 (PST)
Received: from v4j31 (ip12.proper.com [165.227.249.12]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA06545 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 09:15:57 -0800 (PST)
Message-Id: <4.2.1.19991117091402.00c52100@mail.imc.org>
X-Sender: phoffman@mail.imc.org
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.1 
Date: Wed, 17 Nov 1999 09:17:47 -0800
To: ietf-smime@imc.org
From: Paul Hoffman / IMC <phoffman@imc.org>
Subject: Re: I-D ACTION:draft-ietf-smime-ecc-00.txt
In-Reply-To: <4.2.0.58.19991112152457.00a68ea0@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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I am very uncomfortable discussing this draft in the WG. Certicom has just 
posted their intellectual property statement at 
<http://www.ietf.org/ietf/IPR/CERTICOM-SMIME>, and it is completely vague 
and useless. It doesn't even say which of our protocols they think they 
have patents in.

Why are we helping a company like this make threats against the S/MIME market?

--Paul Hoffman, Director
--Internet Mail Consortium



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id IAA05875 for ietf-smime-bks; Wed, 17 Nov 1999 08:40:00 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170]) by ns.secondary.com (8.9.3/8.9.3) with SMTP id IAA05871 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 08:39:58 -0800 (PST)
Received: 	id LAA27284; Wed, 17 Nov 1999 11:13:35 -0500
Received: by gateway id <XC5LCQSD>; Wed, 17 Nov 1999 11:16:23 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B10106314A@sothmxs06.entrust.com>
From: Robert Zuccherato <robert.zuccherato@entrust.com>
To: "'Russ Housley'" <housley@spyrus.com>
Cc: ietf-smime@imc.org
Subject: RE: Working Group Last Call: draft-ietf-smime-small-subgroup-02.t xt
Date: Wed, 17 Nov 1999 11:16:20 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF3117.15A8C898"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF3117.15A8C898
Content-Type: text/plain

Russ;

Thanks for the comments.

> ----------
> From: 	Russ Housley[SMTP:housley@spyrus.com]
> Sent: 	Tuesday, November 16, 1999 8:35 PM
> To: 	robert.zuccherato@entrust.com
> Cc: 	ietf-smime@imc.org
> Subject: 	Re: Working Group Last Call:
> draft-ietf-smime-small-subgroup-02.txt
> 
> 1.  Section 1.2, 3rd paragraph: Please explain "r<<q".  This is the only 
> use of the "<<" symbol.
> 
I will change "r<<q" to "r is much less than q".  This should be more
explanatory/helpful.

> 2.  Section 2.2, 2nd paragraph: Please explain that any protocol event
> that 
> allows the attacker to conclude that decryption was successful is also 
> relevant.  Such events include replies and returning signed receipts.
> 
How about if I add the following to the 3rd paragraph?  "In particular,
protection is required if any protocol event allows any other party to
conclude that decryption was successful.  Such events include replies and
returning signed receipts."

> 3.  Section 2.2, 3rd paragraph: Please remove the extra space after
> "party".
> 
Okay.

> 4.  Section 4, 4th paragraph: Any integrity protection for the public keys
> 
> (not just signatures), will thwart the attack.  Please expand the text to 
> cover any integrity mechanism.
> 
How about if I change the first sentence to read:  "Protection from these
attacks is not required however if the other party's ephemeral public key
has been authenticated by the other party.  The authentication may be in the
form of a signature, MAC, or any other integrity protection mechanism."

> 5.  Section 7:  Please update the [CMS], [MSG], and [x942] references to 
> point to the RFCs.
> 
Of course.

	Robert.



------_=_NextPart_001_01BF3117.15A8C898
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: Working Group Last Call: =
draft-ietf-smime-small-subgroup-02.txt</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Russ;</FONT>
</P>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Thanks for the =
comments.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"MS Sans Serif">----------</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">From:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Russ =
Housley[SMTP:housley@spyrus.com]</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Sent:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Tuesday, November 16, 1999 8:35 =
PM</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">To:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">robert.zuccherato@entrust.com</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Cc:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">ietf-smime@imc.org</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Subject:</FONT></B> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">Re: Working Group Last Call: =
draft-ietf-smime-small-subgroup-02.txt</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">1.&nbsp; Section 1.2, 3rd paragraph: =
Please explain &quot;r&lt;&lt;q&quot;.&nbsp; This is the only </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">use of the &quot;&lt;&lt;&quot; =
symbol.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">I will change =
&quot;r&lt;&lt;q&quot; to &quot;r is much less than q&quot;.&nbsp; This =
should be more explanatory/helpful.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">2.&nbsp; Section 2.2, 2nd paragraph: =
Please explain that any protocol event that </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">allows the attacker to conclude that =
decryption was successful is also </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">relevant.&nbsp; Such events include =
replies and returning signed receipts.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">How about if I add =
the following to the 3rd paragraph?&nbsp; &quot;In particular, =
protection is required if any protocol event allows any other party to =
conclude that decryption was successful.&nbsp; Such events include =
replies and returning signed receipts.&quot;</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">3.&nbsp; Section 2.2, 3rd paragraph: =
Please remove the extra space after &quot;party&quot;.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Okay.</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">4.&nbsp; Section 4, 4th paragraph: Any =
integrity protection for the public keys </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">(not just signatures), will thwart =
the attack.&nbsp; Please expand the text to </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">cover any integrity mechanism.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">How about if I =
change the first sentence to read:&nbsp; &quot;Protection from these =
attacks is not required however if the other party's ephemeral public =
key has been authenticated by the other party.&nbsp; The authentication =
may be in the form of a signature, MAC, or any other integrity =
protection mechanism.&quot;</FONT></P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">5.&nbsp; Section 7:&nbsp; Please =
update the [CMS], [MSG], and [x942] references to </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">point to the RFCs.</FONT>
</P>
</UL>
<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Arial">Of course.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#800000" =
SIZE=3D2 FACE=3D"Arial">Robert.</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01BF3117.15A8C898--


Received: by ns.secondary.com (8.9.3/8.9.3) id DAA00983 for ietf-smime-bks; Wed, 17 Nov 1999 03:57:59 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id DAA00979 for <ietf-smime@imc.org>; Wed, 17 Nov 1999 03:57:58 -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 GAA17169; Wed, 17 Nov 1999 06:59:18 -0500 (EST)
Message-Id: <199911171159.GAA17169@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-02.txt
Date: Wed, 17 Nov 1999 06:59:18 -0500
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
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-02.txt
	Pages		: 8
	Date		: 16-Nov-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 
relevant to implementations of S/MIME version 3 in which protection is 
required and the methods that can be used to prevent these attacks.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-small-subgroup-02.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-02.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-02.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:	<19991116110555.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-small-subgroup-02.txt

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

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

--OtherAccess--

--NextPart--




Received: by ns.secondary.com (8.9.3/8.9.3) id RAA07563 for ietf-smime-bks; Tue, 16 Nov 1999 17:46:53 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id RAA07559 for <ietf-smime@imc.org>; Tue, 16 Nov 1999 17:46:52 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (216-164-128-228.s228.tnt1.lnhva.md.dialup.rcn.com [216.164.128.228]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id RAA00835; Tue, 16 Nov 1999 17:47:08 -0800 (PST)
Message-Id: <4.2.0.58.19991116201924.00a66cf0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Tue, 16 Nov 1999 20:35:18 -0500
To: robert.zuccherato@entrust.com
From: Russ Housley <housley@spyrus.com>
Subject: Re: Working Group Last Call: draft-ietf-smime-small-subgroup-02.txt
Cc: ietf-smime@imc.org
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

I have a few comments on draft-ietf-smime-small-subgroup-02.txt.

1.  Section 1.2, 3rd paragraph: Please explain "r<<q".  This is the only 
use of the "<<" symbol.

2.  Section 2.2, 2nd paragraph: Please explain that any protocol event that 
allows the attacker to conclude that decryption was successful is also 
relevant.  Such events include replies and returning signed receipts.

3.  Section 2.2, 3rd paragraph: Please remove the extra space after "party".

4.  Section 4, 4th paragraph: Any integrity protection for the public keys 
(not just signatures), will thwart the attack.  Please expand the text to 
cover any integrity mechanism.

5.  Section 7:  Please update the [CMS], [MSG], and [x942] references to 
point to the RFCs.




Received: by ns.secondary.com (8.9.3/8.9.3) id RAA07558 for ietf-smime-bks; Tue, 16 Nov 1999 17:46:52 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id RAA07554 for <ietf-smime@imc.org>; Tue, 16 Nov 1999 17:46:50 -0800 (PST)
Received: from rhousley_laptop.spyrus.com (216-164-128-228.s228.tnt1.lnhva.md.dialup.rcn.com [216.164.128.228]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id RAA00832 for <ietf-smime@imc.org>; Tue, 16 Nov 1999 17:47:04 -0800 (PST)
Message-Id: <4.2.0.58.19991116201517.00a6bce0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Tue, 16 Nov 1999 20:18:17 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Working Group Last Call: draft-ietf-smime-small-subgroup-02.txt
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Announcing S/MIME Working Group Last Call.

	Title		: Methods for Avoiding the "Small-Subgroup" Attacks on
			: the Diffie-Hellman Key Agreement Method for S/MIME
	Author		: R. Zuccherato
	Filename	: draft-ietf-smime-small-subgroup-02.txt
	Date		: November 1999
	
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
relevant to implementations of S/MIME version 3 in which protection is
required and the methods that can be used to prevent these attacks.

This document will become an Informational RFC.

Working Group Last Call will close on 30 November.

S/MIME WG Chair,
    Russ 


Received: by ns.secondary.com (8.9.3/8.9.3) id LAA01944 for ietf-smime-bks; Tue, 16 Nov 1999 11:53:10 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA01934 for <ietf-smime@imc.org>; Tue, 16 Nov 1999 11:53:08 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id LAA24615; Tue, 16 Nov 1999 11:53:24 -0800 (PST)
Message-Id: <4.2.0.58.19991116144712.00a85b10@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Tue, 16 Nov 1999 14:48:29 -0500
To: Carlisle Adams <carlisle.adams@entrust.com>
From: Russ Housley <housley@spyrus.com>
Subject: RE: draft-ietf-smime-cast-128-00.txt
Cc: ietf-smime@imc.org
In-Reply-To: <01E1D01C12D7D211AFC70090273D20B1017156C7@sothmxs06.entrust .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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Carlisle:

I do not have any problem with the progression as it is, but I would not 
like to forward an document to the IESG with any known errors.  Let's see 
what else comes out during working group last call....

Russ

At 11:26 AM 11/16/99 -0500, Carlisle Adams wrote:

>Hi Russ,
>----------  From:   Russ Housley[SMTP:housley@spyrus.com]  Sent:   Friday, 
>November 12, 1999 4:11 
>PM  To:     cadams@entrust.com  Cc:     ietf-smime@imc.org  Subject: 
 > draft-ietf-smime-cast-128-00.txt

>The document is presently called: "Use of the CAST-128 Encryption 
>Algorithm  in S/MIME."  I would like to see it renamed to: "Use of the 
>CAST-128 Encryption Algorithm in CMS."  Basically, other applications that 
>use CMS should be able to make use of CAST-128.
>
>Good point.  I have no problem with this modification.
>
>Does this actually require a new draft, or can we just pass this 
>name-change instruction along to the IESG and RFC editor after the working 
>group Last Call has completed?
>
>Carlisle.



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id IAA28717 for ietf-smime-bks; Tue, 16 Nov 1999 08:31:30 -0800 (PST)
Received: from gatekeeper.entrust.com (gatekeeper.entrust.com [204.101.128.170]) by ns.secondary.com (8.9.3/8.9.3) with SMTP id IAA28713 for <ietf-smime@imc.org>; Tue, 16 Nov 1999 08:31:27 -0800 (PST)
Received: 	id LAA26862; Tue, 16 Nov 1999 11:24:13 -0500
Received: by gateway id <W8293BYP>; Tue, 16 Nov 1999 11:27:00 -0500
Message-ID: <01E1D01C12D7D211AFC70090273D20B1017156C7@sothmxs06.entrust.com>
From: Carlisle Adams <carlisle.adams@entrust.com>
To: "'Russ Housley'" <housley@spyrus.com>
Cc: ietf-smime@imc.org
Subject: RE: draft-ietf-smime-cast-128-00.txt
Date: Tue, 16 Nov 1999 11:26:59 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF304F.683025DE"
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF304F.683025DE
Content-Type: text/plain

Hi Russ,

> ----------
> From: 	Russ Housley[SMTP:housley@spyrus.com]
> Sent: 	Friday, November 12, 1999 4:11 PM
> To: 	cadams@entrust.com
> Cc: 	ietf-smime@imc.org
> Subject: 	draft-ietf-smime-cast-128-00.txt
> 
> The document is presently called: "Use of the CAST-128 Encryption
> Algorithm 
> in S/MIME."  I would like to see it renamed to: "Use of the CAST-128 
> Encryption Algorithm in CMS."  Basically, other applications that use CMS 
> should be able to make use of CAST-128.
 
Good point.  I have no problem with this modification.

Does this actually require a new draft, or can we just pass this name-change
instruction along to the IESG and RFC editor after the working group Last
Call has completed?

Carlisle.


------_=_NextPart_001_01BF304F.683025DE
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: draft-ietf-smime-cast-128-00.txt</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Hi =
Russ,</FONT>
</P>
<UL>
<P><FONT SIZE=3D2 FACE=3D"MS Sans Serif">----------</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">From:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Russ =
Housley[SMTP:housley@spyrus.com]</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Sent:</FONT></B> &nbsp; =
<FONT SIZE=3D2 FACE=3D"MS Sans Serif">Friday, November 12, 1999 4:11 =
PM</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">To:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">cadams@entrust.com</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Cc:</FONT></B> =
&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">ietf-smime@imc.org</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"MS Sans Serif">Subject:</FONT></B> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 FACE=3D"MS Sans =
Serif">draft-ietf-smime-cast-128-00.txt</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">The document is presently called: =
&quot;Use of the CAST-128 Encryption Algorithm </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">in S/MIME.&quot;&nbsp; I would like =
to see it renamed to: &quot;Use of the CAST-128 </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Encryption Algorithm in =
CMS.&quot;&nbsp; Basically, other applications that use CMS </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">should be able to make use of =
CAST-128.</FONT>
</UL>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Good =
point.&nbsp; I have no problem with this modification.</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New Roman">Does this =
actually require a new draft, or can we just pass this name-change =
instruction along to the IESG and RFC editor after the working group =
Last Call has completed?</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New =
Roman">Carlisle.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF304F.683025DE--


Received: by ns.secondary.com (8.9.3/8.9.3) id KAA20582 for ietf-smime-bks; Sun, 14 Nov 1999 10:37:49 -0800 (PST)
Received: from cane.deming.com (mail.deming.com [208.236.41.137]) by ns.secondary.com (8.9.3/8.9.3) with SMTP id KAA20578 for <ietf-smime@imc.org>; Sun, 14 Nov 1999 10:37:48 -0800 (PST)
Received: from 208.236.41.137 by cane.deming.com with ESMTP (WorldSecure Server SMTP Relay(WSS) v3.6.2); Sun, 14 Nov 99 10:38:25 -0800
X-Server-Uuid: 1a012586-24e9-11d1-adae-00a024bc53c5
Received: by mail.deming.com with Internet Mail Service (5.5.2650.21) id <WGL8D6Q8>; Sun, 14 Nov 1999 10:38:25 -0800
Message-ID: <01FF24001403D011AD7B00A024BC53C563EAF5@mail.deming.com>
From: "Blake Ramsdell" <BlakeR@deming.com>
To: "'Russ Housley'" <housley@spyrus.com>, cadams@entrust.com
cc: ietf-smime@imc.org
Subject: RE: draft-ietf-smime-cast-128-00.txt
Date: Sun, 14 Nov 1999 10:38:24 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
X-WSS-ID: 1431DE2B35611-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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Agree.  Would this be a good convention for the -ecc draft also?

Blake

-----Original Message-----
From: Russ Housley [mailto:housley@spyrus.com]
Sent: Friday, November 12, 1999 1:11 PM
To: cadams@entrust.com
Cc: ietf-smime@imc.org
Subject: draft-ietf-smime-cast-128-00.txt


The document is presently called: "Use of the CAST-128 Encryption Algorithm 
in S/MIME."  I would like to see it renamed to: "Use of the CAST-128 
Encryption Algorithm in CMS."  Basically, other applications that use CMS 
should be able to make use of CAST-128.

Russ




Received: by ns.secondary.com (8.9.3/8.9.3) id OAA22546 for ietf-smime-bks; Fri, 12 Nov 1999 14:54:12 -0800 (PST)
Received: from bldr.0mm.com (bldr.0mm.com [199.239.68.119]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA22542 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 14:54:10 -0800 (PST)
Received: from messagemedia.com (bdingae.messagemedia.com [199.239.69.195]) by bldr.0mm.com (8.9.3/8.9.3) with ESMTP id PAA10221 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 15:54:31 -0700 (MST)
Message-ID: <382C9A88.11F72F67@messagemedia.com>
Date: Fri, 12 Nov 1999 15:54:00 -0700
From: Brandon Dingae <brandon@messagemedia.com>
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: ietf-smime@imc.org
Subject: MIME User Agent Check List
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Hello,

I am currently doing some research for an internet company concerning
MUA capabilities and one of our major concerns is
Multi-part/alternative.  The reason that I am writing you, is to ask if
there are any current resources that will outline the capabilities of
current MUA's ?  I appreciate any help that can be offered.  Thank you
for your time and consideration of my request.

Brandon

--
--------------------------------------------------------------------
Brandon D.
Technical Service
brandon@messagemedia.com
Direct line: 303.381.7119
http://www.messagemedia.com
"The leading source of e-messaging services for building
 customer relationships online."
--------------------------------------------------------------------




Received: by ns.secondary.com (8.9.3/8.9.3) id NAA21896 for ietf-smime-bks; Fri, 12 Nov 1999 13:57:03 -0800 (PST)
Received: from smtpproxy1.mitre.org (mbunix.mitre.org [129.83.20.100]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA21892 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:57:02 -0800 (PST)
Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy1.mitre.org (8.9.3/8.9.3) with ESMTP id QAA14038 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 16:58:00 -0500 (EST)
Received: from MAILHUB2 (mailhub2.mitre.org [129.83.221.18]) by smtpsrv1.mitre.org (8.9.3/8.9.3) with ESMTP id QAA22672 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 16:56:05 -0500 (EST)
Received: from mwestc012-mwmp1port9.mitre.org (128.29.250.9) by mailhub2.mitre.org with SMTP id 2017589; Fri, 12 Nov 1999 16:57:57 EST
Message-ID: <382C8C37.590459C2@mitre.org>
Date: Fri, 12 Nov 1999 16:52:55 -0500
From: "Ella P. Gardner" <egardner@mitre.org>
Organization: The MITRE Corporation
X-Mailer: Mozilla 4.5 [en]C-19990120M  (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: ietf-smime@imc.org
Subject: Re: Working Group Last Call:draft-ietf-smime-certdist-04.txt
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Folks:

I would like to see the PKIX standard userCertificate attribute used for
S/MIME certificates. Supporting that, I would like to see several items
in David Chadwick's recent drafts supported:

	certificate matching rules
	returned matched value service control
	multiple attributes for RDNs

As I understand it, Microsoft has a requirement for an additional
attribute which would be signed and include pairs of certificates and
capabilities.

If the group agrees that this additional attribute is required, I think
that the draft should include a complete definition of the attribute in
directory speak. Maybe the current draft is understandable to the
members of this list, but I don't understand it from a directory point
of view.

Regards,
Ella



Received: by ns.secondary.com (8.9.3/8.9.3) id NAA21344 for ietf-smime-bks; Fri, 12 Nov 1999 13:16:05 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA21340 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:16:04 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id NAA24161; Fri, 12 Nov 1999 13:16:08 -0800 (PST)
Message-Id: <4.2.0.58.19991112155524.00a77990@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 12 Nov 1999 16:11:15 -0500
To: cadams@entrust.com
From: Russ Housley <housley@spyrus.com>
Subject: draft-ietf-smime-cast-128-00.txt
Cc: ietf-smime@imc.org
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

The document is presently called: "Use of the CAST-128 Encryption Algorithm 
in S/MIME."  I would like to see it renamed to: "Use of the CAST-128 
Encryption Algorithm in CMS."  Basically, other applications that use CMS 
should be able to make use of CAST-128.

Russ



Received: by ns.secondary.com (8.9.3/8.9.3) id NAA21339 for ietf-smime-bks; Fri, 12 Nov 1999 13:16:01 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA21335 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:16:00 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id NAA24158 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:16:07 -0800 (PST)
Message-Id: <4.2.0.58.19991112154519.00a6ee30@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 12 Nov 1999 15:53:41 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Working Group Last Call:draft-ietf-smime-certdist-04.txt
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Announcing S/MIME Working Group Last Call.

	Title		: Use of the CAST-128 Encryption Algorithm in S/MIME
	Author(s)	: Carlisle Adams
	Filename	: draft-ietf-smime-cast-128-00.txt
	Date		: September 1999
	
This document specifies how to incorporate CAST-128 [RFC2144] into S/MIME 
as an additional algorithm for symmetric encryption. The relevant OIDs and 
processing steps are provided so that CAST-128 may be included in the 
S/MIME Cryptographic Message Syntax (CMS) specification [RFC2630] for 
symmetric content and key encryption.

This document will become a Standards Track RFC.

Working Group Last Call will close on 28 November.

S/MIME WG Chair,
    Russ 


Received: by ns.secondary.com (8.9.3/8.9.3) id NAA21334 for ietf-smime-bks; Fri, 12 Nov 1999 13:15:59 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA21329 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:15:58 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id NAA24155 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:16:06 -0800 (PST)
Message-Id: <4.2.0.58.19991112153252.00a72ea0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 12 Nov 1999 15:54:01 -0500
To: ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: Working Group Last Call: draft-ietf-smime-cmskea-02.txt
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Announcing S/MIME Working Group Last Call.

	Title		: CMS KEA and SKIPJACK Conventions
	Author		: John Pawling
	Filename	: draft-ietf-smime-cmskea-02.txt
	Date		: 29 July 1999
	
This document describes the conventions for using the Key Exchange
Algorithm (KEA) and SKIPJACK encryption algorithm in conjunction with the
Cryptographic Message Syntax (CMS) enveloped-data and encrypted-data
content types.

This document will become an Informational RFC.

Working Group Last Call will close on 28 November.

S/MIME WG Chair,
    Russ 


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id NAA21330 for ietf-smime-bks; Fri, 12 Nov 1999 13:15:59 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA21325 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:15:57 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id NAA24152 for <ietf-smime@imc.org>; Fri, 12 Nov 1999 13:16:05 -0800 (PST)
Message-Id: <4.2.0.58.19991112152457.00a68ea0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Fri, 12 Nov 1999 15:29:26 -0500
To: IETF-Announce:;
From: Russ Housley <housley@spyrus.com>
Subject: I-D ACTION:draft-ietf-smime-ecc-00.txt
Cc: ietf-smime@imc.org
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-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 S/MIME Mail Security Working Group of the 
IETF.

	Title		: Elliptic Curve S/MIME
	Author(s)	: P. Lambert
	Filename	: draft-ietf-smime-ecc-00.txt
	Date		: 26-Oct-99
	
This document is the first draft of a profile for the incorporation
of Elliptic Curve (EC) public key algorithms in the Cryptographic
Message Syntax (CMS).  The EC algorithms support the creation of
digital signatures and the distribution of keys to encrypt or authen-
ticate message content.  The definition of the algorithm processing
is based on the ANSI X9.63 draft, developed by the ANSI X9F1
working group.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-smime-ecc-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-ecc-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-ecc-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:	<19991026150244.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-smime-ecc-00.txt

<ftp://ftp.ietf.org/internet-drafts/draft-ietf-smime-ecc-00.txt> 


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id JAA28400 for ietf-smime-bks; Fri, 5 Nov 1999 09:24:26 -0800 (PST)
Received: from mailman.8760.com (portal.8760.com [209.149.125.2] (may be forged)) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA28395 for <ietf-smime@imc.org>; Fri, 5 Nov 1999 09:24:24 -0800 (PST)
Received: by mailman.8760.com from localhost (router,SLMail V3.2); Fri, 05 Nov 1999 11:22:49 -0600
Received: from dblaptop [192.168.21.122] by mailman.8760.com [192.168.21.90]  (SLmail 3.2.3113) with SMTP id 3F43EA7792E511D3BAFE0060974E38DD for <gcolla@baltimore.com> plus 1 more; Fri, 05 Nov 1999 11:22:48 -0600
Reply-To: <dick@8760.com>
From: "Dick Brooks" <dick@8760.com>
To: "Greg Colla" <gcolla@baltimore.com>, <ietf-smime@imc.org>
Subject: RE: Comparing rfc822 addresses to certificates
Date: Fri, 5 Nov 1999 11:22:24 -0800
Message-ID: <NBBBIIDLFBOEGGCJGMJJGEAHCFAA.dick@8760.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 IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Importance: Normal
In-Reply-To: <D44EACB40164D311BEF00090274EDCCA1B3D48@sydneymail1.jp.zergo.com.au>
X-SLUIDL: DC1ED909-93A111D3-BAFE0060-974E38DD
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Within the context of EDIINT AS2
http://www.ietf.org/internet-drafts/draft-ietf-ediint-as2-06.txt and the Gas
Industry Standard for Internet EDI, the sender and receiver ID's are allowed
to be DUNS numbers. Use of DUNS numbers makes comparison straight forward
(no concerns over case), it's just a ASCII integer. Obviously DUNS numbers
don't work well in inter-personal identification, but seems to work fine in
B2B scenarios.

Dick Brooks
www.8760.com


-----Original Message-----
From: owner-ietf-smime@imc.org [mailto:owner-ietf-smime@imc.org]On
Behalf Of Greg Colla
Sent: Thursday, November 04, 1999 3:46 PM
To: ietf-pkix@imc.org; ietf-smime@imc.org
Subject: RE: Comparing rfc822 addresses to certificates


Bob's e-mail has triggered a couple of other issues with RFC822 addresses
and certificates that have been doing the rounds here.

Does it need to be an RFC822 address?
Probably not. Here's an example. A closed user group that are using a
proprietary mail system wish to use S/MIME. In this case, each user's
proprietary mail address would be sufficient in both the certificate's
subjectAltName field and message's From address fields for the sender/signer
comparison.

Does there need to be a comparison?
Definitely yes. We need to ensure that the recipient is warned that the
signer is not the sender, even though the message can be verified.

Are there exceptions?
Also yes.
1. Quite often when companies change name or merge, each user will be given
another e-mail address. to make the make PKI system more useable, we don't
want to enforce key and cert rolling for the whole organisation - they
probably have enough problems without us adding to it ;-)
One solution is that the users associate secondary addresses to
certificates. This must be a secure association, the user will know if it
has been tampered with. If a message is received where the sender's address
is equivalent to the address in the cert, or an address associated with the
cert, then no warning is given.

2. Domain signing. In some installations, a domain gateway is used to sign
on behalf of the sender as it exits the domain. In this case, the address in
the domain's signing cert won't match the originator's address. (Refer to
the DOMSEC draft for further info). The receiving client needs to compensate
for this. There are various work-arounds for this, including (A) the
generation of certificates on-the-fly, each with the same public key, but
different e-mail addresses, (B) association of users' addresses with the
domain's certificate on the recipient's client and (C) the DOMSEC methods.

3. Countersigning and co-signing. This is a big enough issue by itself and
can be left for a later date.

So the conclusion is that there should be a sender/signer comparison,
although the comparison may not be direct.

Greg

-----Original Message-----
From: Bob Jueneman [mailto:BJUENEMAN@novell.com]
Sent: Friday, November 05, 1999 5:35 AM
To: pgut001@cs.aucKland.ac.nz; ietf-pkix@imc.org
Cc: ietf-smime@imc.org
Subject: Comparing rfc822 addresses to certificates


>BJUENEMAN@novell.com writes:
>
>>Contrary to how most public CAs do it, at least so far, the e-mail address
is
>>included in the subjectAltName as per the PKIX RFC, and to our pleasant
>>surprise all of the e-mail packages we have encountered to date have been
>>able to handle that format correctly.
>>
>>Although we could have, we chose not to include an e-mail address of the
form
>>subjectAltName="Robert R. Jueneman" <bjueneman@novell.com> , in part
because
>>most e-mail packages would just as easily accept "President William
Jefferson
>>Clinton" <bjueneman@novell.com>.
>
>D'you mean they'll accept that as an rfc822Name?  Are they supposed to do
that?
>
>Peter.
>
Let me clarify that.  I haven't tested that exhaustively across multiple
packages, but I believe that e-mail packages generally ignore the "junk"
prior to the rfc822 mailbox name itself, both on message origin and
message receipt.

Many packages I am familiar with allow you to specify your own From address
one way or the other, even though you may not be able to change the
portion of the address within the angle brackets.

They may or may not reflect that name in the From address that is
presented in the message window or header line, but I believe that most do.


Certainly it appears that you can put anything you wish in front of the
address, and the message will be both sent and received successfully.

That being the case, I doubt that many would complain about a
mismatched rfc822 address in the certificate in that case, but I don't
know that for a fact.

Now, SHOULD they?  Honestly, I'm not sure.

Browsing through rfc822, I find the following snippets of definitions:

  4.4.1.  FROM / RESENT-FROM

        This field contains the identity of the person(s)  who  wished
        this  message to be sent.  The message-creation process should
        default this field  to  be  a  single,  authenticated  machine
        address,  indicating  the  AGENT  (person,  system or process)
        entering the message.  If this is not done, the "Sender" field
        MUST  be  present.  If the "From" field IS defaulted this way,
        the "Sender" field is  optional  and  is  redundant  with  the
        "From"  field.   In  all  cases, addresses in the "From" field
        must be machine-usable (addr-specs) and may not contain  named
        lists (groups).

6.1.  SYNTAX

     address     =  mailbox                      ; one addressee
                 /  group                        ; named list

     group       =  phrase ":" [#mailbox] ";"

     mailbox     =  addr-spec                    ; simple address
                 /  phrase route-addr            ; name & addr-spec

     route-addr  =  "<" [route] addr-spec ">"

     route       =  1#("@" domain) ":"           ; path-relative

     addr-spec   =  local-part "@" domain        ; global address

     local-part  =  word *("." word)             ; uninterpreted
                                                 ; case-preserved

     domain      =  sub-domain *("." sub-domain)

     sub-domain  =  domain-ref / domain-literal

     domain-ref  =  atom                         ; symbolic reference

phrase      =  1*word                       ; Sequence of words

     word        =  atom / quoted-string

Parentheses ("(" and ")") are used  to  indicate  comments.

So ignoring the optional route indicator, which I haven't seen used
for at least five years, and excluding groups as required by the
semantics of From, we have as an allowable From address:

address = mailbox

mailbox = addr-spec /
                 phrase route-addr

route-addr = <addr-spec>

Unfortunately, the semantics of "phrase" or "word" don't seem
to be defined, but the implication seems to be that they are the name of
the originator in the case of a From or Sender field, and the name or
name of the desired recipient(s) in the case of a To or Cc field. This of
course gets even more complicated in the case of a shared mailbox,
as might be the case for a family.

Since the form of the "name" isn't defined, I have to assume that
"phrase" is essentially syntactic sugar, to be interpreted by the
human user.

So I conclude that the following are all legitimate rfc822 From addresses:

kent@bbn.com

Steve Kent@bbn.com

Stephen Kent@bbn.com

Also,

Bob Jueneman <bjueneman@novell.com>

"Robert R. Jueneman" <bjueneman@novell.com>

Robert "R." (Bob) Jueneman (the one who is not the
horse thief) <bjueneman@novell.com>

However, as a message from Tom Gindin points out (and
I'll take his word for it without checking the text of RFC
2459 section 4.2.1.7), PKIX defines an rfc822 attribute
within GeneralName as an addr-spec, NOT an "address".

The S/MIME spec also states that the end-entity certificates
MUST contain an Internet mail address, and that the
address must be an "addr-spec" as defined in Section 6.1.

X.509, however, is ambiguous, and needs to be corrected.

So that seems clear, now.  The above constructs would NOT be
legal as an rfc822 type DN or subjectAltName, although I strongly
suspect that many CAs and CA toolkits would accept them and
create certificates containing them.

Unfortunately, this leaves us with the case where the e-mail
package, if it performs correctly, will accept a message with
a From address of

From: "President William Jefferson Clinton                         "
(note the extra spaces, intended to cause truncation of the
name -- it's really slick Bob in disguise) <bjueneman@novell.com>

and then it will compare just the <bjueneman@novell.com> to the
subjectAltName in my certificate and conclude that all is well,
since the addr-spec in the From matches the content of the attribute
in the certificate.

Worse yet, since some mail programs don't bother to display
the "real" addr-spec, but only the name portion, and most will
truncate even the name if it's too long, the recipient may not see
that anything is amiss at all.

The S/MIME v2 Certificate Handling spec  (3.1, last paragraph)
states that "... Receiving agents MUST check that the address (sic)
in the From header of a mail message matches an Internet mail
address in the signer's certificate. ..."

That's somewhat ambiguous, since the "address" portion of a From
address is clearly the more general mailbox name.  But clarifying
the S/MIME spec by requiring that the addr-spec portion of the
>From address match the addr-spec in the certificate would
merely highlight the problem, not solve it.

So we clearly have a problem where the relying party may be
accidentally or even deliberately mislead, unless he is particularly
careful to compare the full From address (which may only be
available by looking at the mime.822 view of the message) against
the certificate content.

What should we do?  I'm not quite sure, but I'm concerned.

Bob



Received: by ns.secondary.com (8.9.3/8.9.3) id GAA25770 for ietf-smime-bks; Fri, 5 Nov 1999 06:54:22 -0800 (PST)
Received: from mail.spyrus.com (mail.spyrus.com [207.212.34.20]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id GAA25766 for <ietf-smime@imc.org>; Fri, 5 Nov 1999 06:54:21 -0800 (PST)
Received: from rhousley_laptop.spyrus.com ([209.172.119.101]) by mail.spyrus.com (8.9.3/8.9.3) with ESMTP id GAA13150; Fri, 5 Nov 1999 06:53:36 -0800 (PST)
Message-Id: <4.2.0.58.19991104091924.00a33bf0@mail.spyrus.com>
X-Sender: rhousley@mail.spyrus.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
Date: Thu, 04 Nov 1999 09:22:54 -0500
To: agenda@ietf.org, ietf-smime@imc.org
From: Russ Housley <housley@spyrus.com>
Subject: S/MIME WG Agenda for Wasington, DC Meeting
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

                 S/MIME Mail Security WG Agenda

Introductions                           Russ Housley
RFC 2630 - 2634 Status                  Russ Housley
Charter Revision                                Russ Housley
CERTDIST Draft Discussion               Jim Schaad
DOMSEC Draft Discussion                 Bill Ottaway
CMS/ESS Examples                                Paul Hoffman
Security Policies and Labels            Weston Nicolls
KEA and SKIPJACK Algorithms             John Pawling
CAST Algorithm                          Carlisle Adams
Elliptic Curve Algorithms               Paul Lambert
ETSI Electronic Signatures              Denis Pinkas
S/MIME Freeware Library         John Pawling
Wrap up                                 Russ Housley


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id RAA17448 for ietf-smime-bks; Thu, 4 Nov 1999 17:03:12 -0800 (PST)
Received: from sfemail.bankofamerica.com (sfemail.bankofamerica.com [171.159.64.14]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id RAA17257; Thu, 4 Nov 1999 17:01:37 -0800 (PST)
Received: from sfimail.bankofamerica.com (sfimail.bankofamerica.com [171.182.72.13]) by sfemail.bankofamerica.com (8.9.1/8.9.1) with ESMTP id RAA10243; Thu, 4 Nov 1999 17:01:21 -0800 (PST)
Received: from smtpsw03 (smtpsw03.bankofamerica.com [165.48.14.143]) by sfimail.bankofamerica.com (8.9.1/8.9.1) with ESMTP id RAA17141; Thu, 4 Nov 1999 17:01:23 -0800 (PST)
Date: Thu, 04 Nov 1999 17:02:46 -0800
From: Mack Hicks <mack.hicks@bankofamerica.com>
Subject: Real Life Example - RFC822 in a mergered firm
Cc: ietf-pkix@imc.org, ietf-smime@imc.org
Message-id: <38222CB6.D243E2D@bankofamerica.com>
MIME-version: 1.0
X-Mailer: Mozilla 4.6 [en] (WinNT; U)
Content-type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms90BE228F95E2D9D1FFFEC207"
X-Accept-Language: en
References: <D44EACB40164D311BEF00090274EDCCA1B3D48@sydneymail1.jp.zergo.com.au>
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a cryptographically signed message in MIME format.

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

To: IETF PKIX list, IETF SMIME list,

This is all too familiar to those of you who follow these lists, but I could not
resist sharing my own "troubles."

Since Bank of America (BankAmerica.com) and NationsBank (NationsBank.com)
merged, the preferred domain for email is BankofAmerica.com.  Our kind email
gateway changes all the outbound (and inbound) names for us so that internally
we are still using the two old domains.  (See signature validation messages on
this S/MIME signed message.)

We have also implemented the SMTP sender authentication mechanism so I must
remain
     mack.hicks@bankamerica.com
internally.

But you can all call me: Mack
See you in DC.

--
-------------------------------------------------------------------
Mack Hicks, SVP     mack.hicks@bankofamerica.com  ;-)
Bank of America, San Francisco, CA USA


--------------ms90BE228F95E2D9D1FFFEC207
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

MIIKqAYJKoZIhvcNAQcCoIIKmTCCCpUCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
CDQwggT+MIIEZ6ADAgECAhBX6XsSCzdMQqrLlRj8TZyCMA0GCSqGSIb3DQEBBAUAMIHMMRcw
FQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29y
azFGMEQGA1UECxM9d3d3LnZlcmlzaWduLmNvbS9yZXBvc2l0b3J5L1JQQSBJbmNvcnAuIEJ5
IFJlZi4sTElBQi5MVEQoYyk5ODFIMEYGA1UEAxM/VmVyaVNpZ24gQ2xhc3MgMSBDQSBJbmRp
dmlkdWFsIFN1YnNjcmliZXItUGVyc29uYSBOb3QgVmFsaWRhdGVkMB4XDTk5MDgyNjAwMDAw
MFoXDTAwMDgyNTIzNTk1OVowggEZMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0GA1UE
CxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazFGMEQGA1UECxM9d3d3LnZlcmlzaWduLmNvbS9y
ZXBvc2l0b3J5L1JQQSBJbmNvcnAuIGJ5IFJlZi4sTElBQi5MVEQoYyk5ODEeMBwGA1UECxMV
UGVyc29uYSBOb3QgVmFsaWRhdGVkMTMwMQYDVQQLEypEaWdpdGFsIElEIENsYXNzIDEgLSBO
ZXRzY2FwZSBGdWxsIFNlcnZpY2UxEzARBgNVBAMUCk1hY2sgSGlja3MxKzApBgkqhkiG9w0B
CQEWHG1hY2suaGlja3NAYmFua29mYW1lcmljYS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0A
MIGJAoGBAMJPErtnuX1efSb0Oig/IuB0TJ46Gt9R+oz74ai7mgfI1HvqdNlSP7LA3pPJsOf2
rwDux/4/g3nHjPyT2GQCuxPYDsRuLsW9A+fxqTSGb0g05iOm9i6a555/CjXPXSQVD5DrRPTl
ozim/4sEPVQ6CsgkNJOyCV+cOrw6oypr9l9TAgMBAAGjggGPMIIBizAJBgNVHRMEAjAAMIGs
BgNVHSAEgaQwgaEwgZ4GC2CGSAGG+EUBBwEBMIGOMCgGCCsGAQUFBwIBFhxodHRwczovL3d3
dy52ZXJpc2lnbi5jb20vQ1BTMGIGCCsGAQUFBwICMFYwFRYOVmVyaVNpZ24sIEluYy4wAwIB
ARo9VmVyaVNpZ24ncyBDUFMgaW5jb3JwLiBieSByZWZlcmVuY2UgbGlhYi4gbHRkLiAoYyk5
NyBWZXJpU2lnbjARBglghkgBhvhCAQEEBAMCB4AwgYYGCmCGSAGG+EUBBgMEeBZ2ZDQ2NTJi
ZDYzZjIwNDcwMjkyOTg3NjNjOWQyZjI3NTA2OWM3MzU5YmVkMWIwNTlkYTc1YmM0YmM5NzAx
NzQ3ZGE1ZDNmMjE0MWJlYWRiMmJkMmU4OTIxZmE5NmFmMmQwMTE0OTk3YTFiMjQ2ZjRmM2Vh
NDUwYzAzBgNVHR8ELDAqMCigJqAkhiJodHRwOi8vY3JsLnZlcmlzaWduLmNvbS9jbGFzczEu
Y3JsMA0GCSqGSIb3DQEBBAUAA4GBAI134mwkOQpKdM8R8JXXNi1h0zL764AowM7zYu5zyHRP
eKdcjW+npKn1KRblonVDbwRvFs7vothdfM3UdUlc2juny5upPK5W06Ws9RT9co36Fv0Dyn5o
ch2rRoW+LdIhA9axMzDvdCocQ3O0pNnwCJrqdF+8VGcu2nJJEUCfroboMIIDLjCCApegAwIB
AgIRANJ2Lo0UDD19sqglXa/uDXUwDQYJKoZIhvcNAQECBQAwXzELMAkGA1UEBhMCVVMxFzAV
BgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5
IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk4MDUxMjAwMDAwMFoXDTA4MDUxMjIzNTk1
OVowgcwxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVz
dCBOZXR3b3JrMUYwRAYDVQQLEz13d3cudmVyaXNpZ24uY29tL3JlcG9zaXRvcnkvUlBBIElu
Y29ycC4gQnkgUmVmLixMSUFCLkxURChjKTk4MUgwRgYDVQQDEz9WZXJpU2lnbiBDbGFzcyAx
IENBIEluZGl2aWR1YWwgU3Vic2NyaWJlci1QZXJzb25hIE5vdCBWYWxpZGF0ZWQwgZ8wDQYJ
KoZIhvcNAQEBBQADgY0AMIGJAoGBALtaRIoEFrtV/QN6ii2UTxV4NrgNSrJvnFS/vOh3Kp25
8Gi7ldkxQXB6gUu5SBNWLccI4YRCq8CikqtEXKpC8IIOAukv+8I7u77JJwpdtrA2QjO1blSI
T4dKvxna+RXoD4e2HOPMxpqOf2okkuP84GW6p7F+78nbN2rISsgJBuSZAgMBAAGjfDB6MBEG
CWCGSAGG+EIBAQQEAwIBBjBHBgNVHSAEQDA+MDwGC2CGSAGG+EUBBwEBMC0wKwYIKwYBBQUH
AgEWH3d3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9SUEEwDwYDVR0TBAgwBgEB/wIBADAL
BgNVHQ8EBAMCAQYwDQYJKoZIhvcNAQECBQADgYEAiLg3O93alDcAraqf4YEBcR6Sam0v9vGd
08pkONwbmAwHhluFFWoPuUmFpJXxF31ntH8tLN2aQp7DPrSOquULBt7yVir6M8e+GddTTMO9
yOMXtaRJQmPswqYXD11YGkk8kFxVo2UgAP0YIOVfgqaxqJLFWGrBjQM868PNBaKQrm4xggI8
MIICOAIBATCB4TCBzDEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlT
aWduIFRydXN0IE5ldHdvcmsxRjBEBgNVBAsTPXd3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9y
eS9SUEEgSW5jb3JwLiBCeSBSZWYuLExJQUIuTFREKGMpOTgxSDBGBgNVBAMTP1ZlcmlTaWdu
IENsYXNzIDEgQ0EgSW5kaXZpZHVhbCBTdWJzY3JpYmVyLVBlcnNvbmEgTm90IFZhbGlkYXRl
ZAIQV+l7Egs3TEKqy5UY/E2cgjAJBgUrDgMCGgUAoIGxMBgGCSqGSIb3DQEJAzELBgkqhkiG
9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTk5MTEwNTAxMDI0NlowIwYJKoZIhvcNAQkEMRYEFFkR
008ZA9l0BZrSz92iskGLVuFQMFIGCSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZI
hvcNAwICAgCAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgFAMA0GCCqGSIb3DQMCAgEoMA0GCSqG
SIb3DQEBAQUABIGAtk3TpjR8BGvWPVpyHklbolfhSrYP2Z2ghIX+LG3O1aJVUMDXO2ybxLYx
RPDeC9YKUoxTYAdGBOjx4sLLBjbKOgk9WIOFoaLux0u1Rky7sDIZ+KAAmsyzuwtgsbU+jnGV
b2bl2aSK3rLOZ/iwQy6znE4zW0tkXHKEvXLwvGdr3gA=
--------------ms90BE228F95E2D9D1FFFEC207--



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id PAA15985 for ietf-smime-bks; Thu, 4 Nov 1999 15:45:30 -0800 (PST)
Received: from stargate.zergo.com.au (IDENT:root@stargate.zergo.com.au [203.2.208.130]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA15981; Thu, 4 Nov 1999 15:45:26 -0800 (PST)
Received: from sydneymail1.baltimore.com.au (sydneymail1.jp.zergo.com.au [192.168.71.5]) by stargate.zergo.com.au (8.9.1/8.8.7) with ESMTP id KAA17613; Fri, 5 Nov 1999 10:48:11 +1100
Received: by sydneymail1.jp.zergo.com.au with Internet Mail Service (5.5.2448.0) id <WHJPWN7G>; Fri, 5 Nov 1999 10:46:25 +1100
Message-ID: <D44EACB40164D311BEF00090274EDCCA1B3D48@sydneymail1.jp.zergo.com.au>
From: Greg Colla <gcolla@baltimore.com>
To: ietf-pkix@imc.org, ietf-smime@imc.org
Subject: RE: Comparing rfc822 addresses to certificates
Date: Fri, 5 Nov 1999 10:46:24 +1100 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

Bob's e-mail has triggered a couple of other issues with RFC822 addresses
and certificates that have been doing the rounds here.

Does it need to be an RFC822 address?
Probably not. Here's an example. A closed user group that are using a
proprietary mail system wish to use S/MIME. In this case, each user's
proprietary mail address would be sufficient in both the certificate's
subjectAltName field and message's From address fields for the sender/signer
comparison. 

Does there need to be a comparison?
Definitely yes. We need to ensure that the recipient is warned that the
signer is not the sender, even though the message can be verified.

Are there exceptions?
Also yes. 
1. Quite often when companies change name or merge, each user will be given
another e-mail address. to make the make PKI system more useable, we don't
want to enforce key and cert rolling for the whole organisation - they
probably have enough problems without us adding to it ;-)
One solution is that the users associate secondary addresses to
certificates. This must be a secure association, the user will know if it
has been tampered with. If a message is received where the sender's address
is equivalent to the address in the cert, or an address associated with the
cert, then no warning is given.

2. Domain signing. In some installations, a domain gateway is used to sign
on behalf of the sender as it exits the domain. In this case, the address in
the domain's signing cert won't match the originator's address. (Refer to
the DOMSEC draft for further info). The receiving client needs to compensate
for this. There are various work-arounds for this, including (A) the
generation of certificates on-the-fly, each with the same public key, but
different e-mail addresses, (B) association of users' addresses with the
domain's certificate on the recipient's client and (C) the DOMSEC methods.

3. Countersigning and co-signing. This is a big enough issue by itself and
can be left for a later date.

So the conclusion is that there should be a sender/signer comparison,
although the comparison may not be direct.

Greg

-----Original Message-----
From: Bob Jueneman [mailto:BJUENEMAN@novell.com]
Sent: Friday, November 05, 1999 5:35 AM
To: pgut001@cs.aucKland.ac.nz; ietf-pkix@imc.org
Cc: ietf-smime@imc.org
Subject: Comparing rfc822 addresses to certificates


>BJUENEMAN@novell.com writes:
>
>>Contrary to how most public CAs do it, at least so far, the e-mail address
is
>>included in the subjectAltName as per the PKIX RFC, and to our pleasant
>>surprise all of the e-mail packages we have encountered to date have been 
>>able to handle that format correctly.
>>
>>Although we could have, we chose not to include an e-mail address of the
form
>>subjectAltName="Robert R. Jueneman" <bjueneman@novell.com> , in part
because
>>most e-mail packages would just as easily accept "President William
Jefferson
>>Clinton" <bjueneman@novell.com>. 
>
>D'you mean they'll accept that as an rfc822Name?  Are they supposed to do
that?
>
>Peter.
>
Let me clarify that.  I haven't tested that exhaustively across multiple 
packages, but I believe that e-mail packages generally ignore the "junk" 
prior to the rfc822 mailbox name itself, both on message origin and 
message receipt.

Many packages I am familiar with allow you to specify your own From address 
one way or the other, even though you may not be able to change the 
portion of the address within the angle brackets.

They may or may not reflect that name in the From address that is 
presented in the message window or header line, but I believe that most do.


Certainly it appears that you can put anything you wish in front of the
address, and the message will be both sent and received successfully.

That being the case, I doubt that many would complain about a 
mismatched rfc822 address in the certificate in that case, but I don't
know that for a fact.

Now, SHOULD they?  Honestly, I'm not sure.

Browsing through rfc822, I find the following snippets of definitions:

  4.4.1.  FROM / RESENT-FROM

        This field contains the identity of the person(s)  who  wished
        this  message to be sent.  The message-creation process should
        default this field  to  be  a  single,  authenticated  machine
        address,  indicating  the  AGENT  (person,  system or process)
        entering the message.  If this is not done, the "Sender" field
        MUST  be  present.  If the "From" field IS defaulted this way,
        the "Sender" field is  optional  and  is  redundant  with  the
        "From"  field.   In  all  cases, addresses in the "From" field
        must be machine-usable (addr-specs) and may not contain  named
        lists (groups).

6.1.  SYNTAX

     address     =  mailbox                      ; one addressee
                 /  group                        ; named list

     group       =  phrase ":" [#mailbox] ";"

     mailbox     =  addr-spec                    ; simple address
                 /  phrase route-addr            ; name & addr-spec

     route-addr  =  "<" [route] addr-spec ">"

     route       =  1#("@" domain) ":"           ; path-relative

     addr-spec   =  local-part "@" domain        ; global address

     local-part  =  word *("." word)             ; uninterpreted
                                                 ; case-preserved

     domain      =  sub-domain *("." sub-domain)

     sub-domain  =  domain-ref / domain-literal

     domain-ref  =  atom                         ; symbolic reference

phrase      =  1*word                       ; Sequence of words

     word        =  atom / quoted-string

Parentheses ("(" and ")") are used  to  indicate  comments.

So ignoring the optional route indicator, which I haven't seen used 
for at least five years, and excluding groups as required by the 
semantics of From, we have as an allowable From address:

address = mailbox  

mailbox = addr-spec /
                 phrase route-addr

route-addr = <addr-spec>

Unfortunately, the semantics of "phrase" or "word" don't seem 
to be defined, but the implication seems to be that they are the name of 
the originator in the case of a From or Sender field, and the name or
name of the desired recipient(s) in the case of a To or Cc field. This of 
course gets even more complicated in the case of a shared mailbox,
as might be the case for a family.

Since the form of the "name" isn't defined, I have to assume that 
"phrase" is essentially syntactic sugar, to be interpreted by the 
human user.

So I conclude that the following are all legitimate rfc822 From addresses:

kent@bbn.com 

Steve Kent@bbn.com 

Stephen Kent@bbn.com 

Also,

Bob Jueneman <bjueneman@novell.com>

"Robert R. Jueneman" <bjueneman@novell.com> 

Robert "R." (Bob) Jueneman (the one who is not the 
horse thief) <bjueneman@novell.com> 

However, as a message from Tom Gindin points out (and 
I'll take his word for it without checking the text of RFC 
2459 section 4.2.1.7), PKIX defines an rfc822 attribute 
within GeneralName as an addr-spec, NOT an "address".

The S/MIME spec also states that the end-entity certificates 
MUST contain an Internet mail address, and that the 
address must be an "addr-spec" as defined in Section 6.1.

X.509, however, is ambiguous, and needs to be corrected.

So that seems clear, now.  The above constructs would NOT be
legal as an rfc822 type DN or subjectAltName, although I strongly
suspect that many CAs and CA toolkits would accept them and
create certificates containing them.

Unfortunately, this leaves us with the case where the e-mail
package, if it performs correctly, will accept a message with
a From address of 

From: "President William Jefferson Clinton                         " 
(note the extra spaces, intended to cause truncation of the 
name -- it's really slick Bob in disguise) <bjueneman@novell.com> 

and then it will compare just the <bjueneman@novell.com> to the 
subjectAltName in my certificate and conclude that all is well,
since the addr-spec in the From matches the content of the attribute
in the certificate.

Worse yet, since some mail programs don't bother to display
the "real" addr-spec, but only the name portion, and most will
truncate even the name if it's too long, the recipient may not see 
that anything is amiss at all.

The S/MIME v2 Certificate Handling spec  (3.1, last paragraph) 
states that "... Receiving agents MUST check that the address (sic) 
in the From header of a mail message matches an Internet mail 
address in the signer's certificate. ..."

That's somewhat ambiguous, since the "address" portion of a From 
address is clearly the more general mailbox name.  But clarifying 
the S/MIME spec by requiring that the addr-spec portion of the 
>From address match the addr-spec in the certificate would 
merely highlight the problem, not solve it.

So we clearly have a problem where the relying party may be 
accidentally or even deliberately mislead, unless he is particularly 
careful to compare the full From address (which may only be 
available by looking at the mime.822 view of the message) against 
the certificate content.

What should we do?  I'm not quite sure, but I'm concerned.

Bob


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id KAA11030 for ietf-smime-bks; Thu, 4 Nov 1999 10:37:46 -0800 (PST)
Received: from prv-mail20.provo.novell.com (prv-mail20.provo.novell.com [137.65.82.195]) by ns.secondary.com (8.9.3/8.9.3) with SMTP id KAA10812; Thu, 4 Nov 1999 10:35:15 -0800 (PST)
Received: from INET-PRV-Message_Server by prv-mail20.provo.novell.com with Novell_GroupWise; Thu, 04 Nov 1999 11:35:03 -0700
Message-Id: <s8216f67.049@prv-mail20.provo.novell.com>
X-Mailer: Novell GroupWise Internet Agent 5.5.2.1
Date: Thu, 04 Nov 1999 11:34:54 -0700
From: "Bob Jueneman" <BJUENEMAN@novell.com>
To: <pgut001@cs.aucKland.ac.nz>, <ietf-pkix@imc.org>
Cc: <ietf-smime@imc.org>
Subject: Comparing rfc822 addresses to certificates
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 ns.secondary.com id KAA10813
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

>BJUENEMAN@novell.com writes:
>
>>Contrary to how most public CAs do it, at least so far, the e-mail address is
>>included in the subjectAltName as per the PKIX RFC, and to our pleasant
>>surprise all of the e-mail packages we have encountered to date have been 
>>able to handle that format correctly.
>>
>>Although we could have, we chose not to include an e-mail address of the form
>>subjectAltName="Robert R. Jueneman" <bjueneman@novell.com> , in part because
>>most e-mail packages would just as easily accept "President William Jefferson
>>Clinton" <bjueneman@novell.com>. 
>
>D'you mean they'll accept that as an rfc822Name?  Are they supposed to do that?
>
>Peter.
>
Let me clarify that.  I haven't tested that exhaustively across multiple 
packages, but I believe that e-mail packages generally ignore the "junk" 
prior to the rfc822 mailbox name itself, both on message origin and 
message receipt.

Many packages I am familiar with allow you to specify your own From address 
one way or the other, even though you may not be able to change the 
portion of the address within the angle brackets.

They may or may not reflect that name in the From address that is 
presented in the message window or header line, but I believe that most do.  

Certainly it appears that you can put anything you wish in front of the
address, and the message will be both sent and received successfully.

That being the case, I doubt that many would complain about a 
mismatched rfc822 address in the certificate in that case, but I don't
know that for a fact.

Now, SHOULD they?  Honestly, I'm not sure.

Browsing through rfc822, I find the following snippets of definitions:

  4.4.1.  FROM / RESENT-FROM

        This field contains the identity of the person(s)  who  wished
        this  message to be sent.  The message-creation process should
        default this field  to  be  a  single,  authenticated  machine
        address,  indicating  the  AGENT  (person,  system or process)
        entering the message.  If this is not done, the "Sender" field
        MUST  be  present.  If the "From" field IS defaulted this way,
        the "Sender" field is  optional  and  is  redundant  with  the
        "From"  field.   In  all  cases, addresses in the "From" field
        must be machine-usable (addr-specs) and may not contain  named
        lists (groups).

6.1.  SYNTAX

     address     =  mailbox                      ; one addressee
                 /  group                        ; named list

     group       =  phrase ":" [#mailbox] ";"

     mailbox     =  addr-spec                    ; simple address
                 /  phrase route-addr            ; name & addr-spec

     route-addr  =  "<" [route] addr-spec ">"

     route       =  1#("@" domain) ":"           ; path-relative

     addr-spec   =  local-part "@" domain        ; global address

     local-part  =  word *("." word)             ; uninterpreted
                                                 ; case-preserved

     domain      =  sub-domain *("." sub-domain)

     sub-domain  =  domain-ref / domain-literal

     domain-ref  =  atom                         ; symbolic reference

phrase      =  1*word                       ; Sequence of words

     word        =  atom / quoted-string

Parentheses ("(" and ")") are used  to  indicate  comments.

So ignoring the optional route indicator, which I haven't seen used 
for at least five years, and excluding groups as required by the 
semantics of From, we have as an allowable From address:

address = mailbox  

mailbox = addr-spec /
                 phrase route-addr

route-addr = <addr-spec>

Unfortunately, the semantics of "phrase" or "word" don't seem 
to be defined, but the implication seems to be that they are the name of 
the originator in the case of a From or Sender field, and the name or
name of the desired recipient(s) in the case of a To or Cc field. This of 
course gets even more complicated in the case of a shared mailbox,
as might be the case for a family.

Since the form of the "name" isn't defined, I have to assume that 
"phrase" is essentially syntactic sugar, to be interpreted by the 
human user.

So I conclude that the following are all legitimate rfc822 From addresses:

kent@bbn.com 

Steve Kent@bbn.com 

Stephen Kent@bbn.com 

Also,

Bob Jueneman <bjueneman@novell.com>

"Robert R. Jueneman" <bjueneman@novell.com> 

Robert "R." (Bob) Jueneman (the one who is not the 
horse thief) <bjueneman@novell.com> 

However, as a message from Tom Gindin points out (and 
I'll take his word for it without checking the text of RFC 
2459 section 4.2.1.7), PKIX defines an rfc822 attribute 
within GeneralName as an addr-spec, NOT an "address".

The S/MIME spec also states that the end-entity certificates 
MUST contain an Internet mail address, and that the 
address must be an "addr-spec" as defined in Section 6.1.

X.509, however, is ambiguous, and needs to be corrected.

So that seems clear, now.  The above constructs would NOT be
legal as an rfc822 type DN or subjectAltName, although I strongly
suspect that many CAs and CA toolkits would accept them and
create certificates containing them.

Unfortunately, this leaves us with the case where the e-mail
package, if it performs correctly, will accept a message with
a From address of 

From: "President William Jefferson Clinton                         " 
(note the extra spaces, intended to cause truncation of the 
name -- it's really slick Bob in disguise) <bjueneman@novell.com> 

and then it will compare just the <bjueneman@novell.com> to the 
subjectAltName in my certificate and conclude that all is well,
since the addr-spec in the From matches the content of the attribute
in the certificate.

Worse yet, since some mail programs don't bother to display
the "real" addr-spec, but only the name portion, and most will
truncate even the name if it's too long, the recipient may not see 
that anything is amiss at all.

The S/MIME v2 Certificate Handling spec  (3.1, last paragraph) 
states that "... Receiving agents MUST check that the address (sic) 
in the From header of a mail message matches an Internet mail 
address in the signer's certificate. ..."

That's somewhat ambiguous, since the "address" portion of a From 
address is clearly the more general mailbox name.  But clarifying 
the S/MIME spec by requiring that the addr-spec portion of the 
>From address match the addr-spec in the certificate would 
merely highlight the problem, not solve it.

So we clearly have a problem where the relying party may be 
accidentally or even deliberately mislead, unless he is particularly 
careful to compare the full From address (which may only be 
available by looking at the mime.822 view of the message) against 
the certificate content.

What should we do?  I'm not quite sure, but I'm concerned.

Bob


Received: by ns.secondary.com (8.9.3/8.9.3) id DAA00614 for ietf-smime-bks; Wed, 3 Nov 1999 03:07:06 -0800 (PST)
Received: from cmcltd.com ([196.12.38.91]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id DAA00609 for <ietf-smime@imc.org>; Wed, 3 Nov 1999 03:06:55 -0800 (PST)
Received: from ic-server ([172.16.16.200]) by cmcltd.com (8.8.7/8.8.7) with ESMTP id QAA19873 for <ietf-smime@imc.org>; Wed, 3 Nov 1999 16:33:32 +0530
Message-ID: <004a01bf25eb$1e384650$c81010ac@ic-server.cmcltd.com>
Reply-To: "V.Krishna Reddy" <kris@cmcltd.com>
From: "V.Krishna Reddy" <kris@cmcltd.com>
To: <ietf-smime@imc.org>
Subject: private key storage
Date: Wed, 3 Nov 1999 16:33:53 +0530
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0047_01BF2619.37A1ED20"
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-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

This is a multi-part message in MIME format.

------=_NextPart_000_0047_01BF2619.37A1ED20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have generated a X 509 v3 certificate for secure e-mail protection.I =
have installed the certificate on the system.But it is not signing the =
certificate.I think most probably it is due to the lack of the knowledge =
of the private key.
          Actually where is the private key corresponding to the public =
key stored.How does the e-mail client get it registered for use.
         Please clarify.
--krishna.

------=_NextPart_000_0047_01BF2619.37A1ED20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>I have generated a X 509 v3 =
certificate for=20
secure e-mail protection.I have installed the certificate on the =
system.But it=20
is not signing the certificate.I think most probably it is due to the =
lack of=20
the knowledge of the private key.</FONT></DIV>
<DIV><FONT color=3D#000000=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Actually =
where is=20
the private key corresponding to the public key stored.How does the =
e-mail=20
client get it registered for use.</FONT></DIV>
<DIV><FONT color=3D#000000 =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Please clarify.</FONT></DIV>
<DIV><FONT color=3D#000000 =
size=3D2>--krishna.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0047_01BF2619.37A1ED20--



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id PAA12436 for ietf-smime-bks; Tue, 2 Nov 1999 15:00:12 -0800 (PST)
Received: from relay.gw.tislabs.com (firewall-user@relay.gw.tislabs.com [192.94.214.100]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA12431 for <ietf-smime@imc.org>; Tue, 2 Nov 1999 15:00:10 -0800 (PST)
Received: by relay.gw.tislabs.com; id SAA23994; Tue, 2 Nov 1999 18:09:52 -0500 (EST)
Received: from clipper.gw.tislabs.com(10.33.1.2) by relay.gw.tislabs.com via smap (4.1) id xma023977; Tue, 2 Nov 99 18:09:39 -0500
Received: (from balenson@localhost) by clipper.gw.tislabs.com (8.9.3/8.9.1) id RAA10517 for ietf-smime@imc.org; Tue, 2 Nov 1999 17:58:38 -0500 (EST)
Date: Tue, 2 Nov 1999 17:58:38 -0500 (EST)
From: "David M. Balenson" <balenson@tislabs.com>
Message-Id: <199911022258.RAA10517@clipper.gw.tislabs.com>
To: ietf-smime@imc.org
Subject: ANNOUNCE: ISOC Netw. & Distr. Sys. Security Symp. (NDSS 2000)
Sender: owner-ietf-smime@imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-smime/mail-archive/>
List-ID: <ietf-smime.imc.org>
List-Unsubscribe: <mailto:ietf-smime-request@imc.org?body=unsubscribe>

                  R E G I S T E R   N O W ! !

THE INTERNET SOCIETY'S
Year 2000 NETWORK AND DISTRIBUTED SYSTEM SECURITY (NDSS) SYMPOSIUM
February 2-4, 2000
Catamaran Resort Hotel, San Diego, California
General Chair:   Steve Welke, Trusted Computer Solutions
Program Chairs:  Gene Tsudik, USC/Information Sciences Institute
		 Avi Rubin, AT&T Labs - Research

ONLINE INFORMATION AND REGISTRATION:  http://www.isoc.org/ndss2000
EARLY REGISTRATION DISCOUNT DEADLINE:  January 6, 2000

The 7th annual NDSS Symposium brings together researchers,
implementers, and users of network and distributed system security
technologies to discuss today's important security issues and
challenges.  The Symposium provides a mix of technical papers and
panel presentations that describe promising new approaches to
security problems that are practical and, to the extent possible,
have been implemented.  NDSS fosters the exchange of technical
information and encourages the Internet community to deploy available
security technologies and develop new solutions to unsolved problems.

KEYNOTE SPEAKER: Gene Spafford, Professor of Computer Sciences at
Purdue University, an expert in information security, computer crime
investigation and information ethics.  Spaf (as he is known to his
friends, colleagues, and students) is director of the Purdue CERIAS
(Center for Education and Research in Information Assurance and
Security), and was the founder and director of the (now superseded)
COAST Laboratory. 

THIS YEAR'S TOPICS INCLUDE:
- Automated Detection of Buffer Overrun Vulnerabilities
- User-Level Infrastructure for System Call Interposition
- Optimized Group Rekey for Group Communication Systems
- IPSec-based Host Architecture for Secure  Internet Multicast
- The Economics of Security
- Automatic Generation of Security Protocols
- Security Protocols for SPKI-based Delegation Systems
- Secure Border Gateway Protocol (S-BGP)
- Analysis of a Fair Exchange Protocol
- Secure Password-Based Protocols for TLS
- Chameleon Signatures
- Lightweight Tool for Detecting Web Server Attacks
- Adaptive and Agile Applications Using Intrusion Detection
- Secure Virtual Enclaves
- Encrypted rlogin Connections Created With Kerberos IV
- Accountability and Control of Process Creation in Metasystems
- Red Teaming and Network Security

PRE-CONFERENCE TECHNICAL TUTORIALS:
- Network Security Protocol Standards, Dr. Stephen T. Kent
- Deployed and Emerging Security Systems for the Internet, Dr. Radia
  Perlman and Charlie Kaufman
- Mobile Code Security and Java 2 Architecture, Dr. Gary McGraw
- Cryptography 101, Dr. Aviel D. Rubin
- Public Key Infrastructure - The Truth and How to Find It, Dr. Daniel
  E. Geer, Jr.
- Intrusion Detection Research, Instructor TBD

FOR MORE INFORMATION contact the Internet Society:
  Internet Society, 11150 Sunset Hills Road, Reston, VA, 20190 USA
  Phone: +1-703-326-9880         Fax: +1-703-326-9881
  E-mail: ndss2000reg@isoc.org   URL: http://www.isoc.org/ndss2000/

SPONSORSHIP OPPORTUNITIES AVAILABLE!  Take advantage of this high
visibility event.  Contact Carla Rosenfeld at the Internet Society
at +1-703-326-9880 or send e-mail to carla@isoc.org.

THE INTERNET SOCIETY is a non-governmental organization for global
cooperation and coordination for the Internet and its
internetworking technologies and applications.


