Re: Compatibility between S/MIME v2 & v3 signatures

"Housley, Russ" <rhousley@rsasecurity.com> Tue, 04 June 2002 15:32 UTC

Received: from above.proper.com (mail.proper.com [208.184.76.45]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA02904 for <smime-archive@odin.ietf.org>; Tue, 4 Jun 2002 11:32:47 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g54FJkJ23263 for ietf-smime-bks; Tue, 4 Jun 2002 08:19:46 -0700 (PDT)
Received: from vulcan.rsasecurity.com (mail.rsasecurity.com [204.167.114.123]) by above.proper.com (8.11.6/8.11.3) with SMTP id g54FJhg23257 for <ietf-smime@imc.org>; Tue, 4 Jun 2002 08:19:43 -0700 (PDT)
Received: from no.name.available by vulcan.rsasecurity.com via smtpd (for mail.imc.org [208.184.76.43]) with SMTP; 4 Jun 2002 15:17:42 UT
Received: from ebola.securitydynamics.com (ebola.securid.com [192.80.211.4]) by sdtihq24.securid.com (Pro-8.9.3/Pro-8.9.3) with ESMTP id LAA21124 for <ietf-smime@imc.org>; Tue, 4 Jun 2002 11:19:44 -0400 (EDT)
Received: from exna00.securitydynamics.com (localhost [127.0.0.1]) by ebola.securitydynamics.com (8.10.2+Sun/8.10.2) with ESMTP id g54FHmW07720 for <ietf-smime@imc.org>; Tue, 4 Jun 2002 11:17:48 -0400 (EDT)
Received: by exna00.securitydynamics.com with Internet Mail Service (5.5.2653.19) id <M2T4ALTK>; Tue, 4 Jun 2002 11:19:41 -0400
Received: from HOUSLEY-LAP.rsasecurity.com (HOUSLEY-LAP [10.3.9.29]) by exna00.securitydynamics.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id M2T4ALT2; Tue, 4 Jun 2002 11:19:39 -0400
From: "Housley, Russ" <rhousley@rsasecurity.com>
To: rhee@sookmyung.ac.kr
Cc: ietf-smime@imc.org
Message-Id: <5.1.0.14.2.20020604095325.03652e48@exna07.securitydynamics.com>
X-Sender: rhousley@exna07.securitydynamics.com
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Tue, 04 Jun 2002 09:56:01 -0400
Subject: Re: Compatibility between S/MIME v2 & v3 signatures
In-Reply-To: <3CFCC3BE.2D3925@sookmyung.ac.kr>
References: <5.1.0.14.2.20020604082808.03627df8@exna07.securitydynamics.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format="flowed"
Sender: owner-ietf-smime@mail.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>

Gwangsoo:

If you review the details of PKCS#1 v1.5, I think that you will see that 
the same structure as DigestInfo is used there.  This structure is not used 
by other digital signature techniques.

Russ

At 10:42 PM 6/4/2002 +0900, Gwangsoo Rhee wrote:
>Russ:
>
>Thanks for your answer.
>But, my question wasn't about the algorithm, but about
>what is to be encrypted by the signature algorithm like RSA.
>Does the RSA in S/MIME v3 (or RFC 2630) encrypt the DigestInfo
>which includes the digestAlgorithm, too?
>If so, why didn't RFC 2630 mention about it, or
>why did RFC 2630 leave out the DigestInfo structure?
>
>Thanks again.
>
>"Housley, Russ" wrote:
>
> > Gwangsoo:
> >
> > RFC 2315 only supports PKCS#1 v1.5 RSA signatures.  RFC 2630 and rfc2630bis
> > support any signature algorithm.  So, the more correct backward
> > compatibility statement is: RFC 2630 is backwards compatible with RFC 2315
> > when PKCS#1 v1.5 RSA signatures are used.
> >
> > Russ
> >
> > At 10:08 AM 6/4/2002 +0900, Gwangsoo Rhee wrote:
> >
> > >Hello, everybody.
> > >
> > >Many documents including draft-ietf-smime-rfc2630bis-08.txt
> > >claim that S/MIME v2 & v3 signatures are compatible, BUT:
> > >
> > >Sec. 9.4 of RFC 2315 (PKCS #7 v1.5) states about the signature
> > >generation:
> > >
> > >    The result of the
> > >    digest-encryption process is the encryption with the signer's private
> > >
> > >    key of the BER encoding of a value of type DigestInfo:
> > >
> > >    DigestInfo ::= SEQUENCE {
> > >      digestAlgorithm DigestAlgorithmIdentifier,
> > >      digest Digest }
> > >
> > >And sec. 5.5 of RFC 2630 (CMS) states:
> > >
> > >    The input to the signature generation process includes the result of
> > >    the message digest calculation process and the signer's private key.
> > >
> > >This RFC has no mention of DigestInfo structure.
> > >It seems to me that DigestAlgorithmIdentifier doesn't
> > >contribute to the signature generation, and in that case
> > >those two signatures cannot be compatible.
> > >
> > >Can anyone please point out where I got this wrong?
> > >
> > >Thanks.
> > >
> > >--
> > >
> > >---------------------------------------
> > >Gwangsoo Rhee <rhee@sookmyung.ac.kr>
> > >tel: +82-2-710-9429  fax: 710-9296
> > >HP: 011-9691-9541
> > >---------------------------------------
>
>--
>
>---------------------------------------
>Gwangsoo Rhee <rhee@sookmyung.ac.kr>
>tel: +82-2-710-9429  fax: 710-9296
>HP: 011-9691-9541
>---------------------------------------