RE: Query regarding BER/DER encoding of CMS data

"Jim Schaad" <jimsch@nwlink.com> Sun, 17 August 2003 15:09 UTC

Received: from above.proper.com (above.proper.com [208.184.76.39]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA15284 for <smime-archive@lists.ietf.org>; Sun, 17 Aug 2003 11:09:28 -0400 (EDT)
Received: from above.proper.com (localhost [127.0.0.1]) by above.proper.com (8.12.9/8.12.8) with ESMTP id h7HELYqt014250 for <ietf-smime-bks@above.proper.com>; Sun, 17 Aug 2003 07:21:34 -0700 (PDT) (envelope-from owner-ietf-smime@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.9/8.12.9/Submit) id h7HELYWw014249 for ietf-smime-bks; Sun, 17 Aug 2003 07:21:34 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-smime@mail.imc.org using -f
Received: from hyatt_calgary ([66.46.110.132]) by above.proper.com (8.12.9/8.12.8) with ESMTP id h7HELWqt014242 for <ietf-smime@imc.org>; Sun, 17 Aug 2003 07:21:32 -0700 (PDT) (envelope-from jimsch@nwlink.com)
Received: from ROMANS ([192.168.1.175]) by hyatt_calgary (8.11.6/8.8.7) with ESMTP id h7HEHsT24042; Sun, 17 Aug 2003 08:17:54 -0600
Reply-To: jimsch@exmsft.com
From: Jim Schaad <jimsch@nwlink.com>
To: 'Deepak' <deepak_vn@yahoo.com>, ietf-smime@imc.org
Subject: RE: Query regarding BER/DER encoding of CMS data
Date: Sun, 17 Aug 2003 08:21:54 -0600
Message-ID: <000001c364ca$ee04f6e0$af01a8c0@augustcellars.local>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
Importance: Normal
In-Reply-To: <20030814162856.26664.qmail@web40511.mail.yahoo.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
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>
Content-Transfer-Encoding: 7bit

DER is a legal encoding when BER is called for.  BER is not required to
be indefinite length encoding.

jim

> -----Original Message-----
> From: owner-ietf-smime@mail.imc.org 
> [mailto:owner-ietf-smime@mail.imc.org] On Behalf Of Deepak
> Sent: Thursday, August 14, 2003 9:29 AM
> To: ietf-smime@imc.org
> Subject: Query regarding BER/DER encoding of CMS data
> 
> 
> 
> Hi,
> 
>   When i go through the CMS RFC's its saying, all the
> contenttype(SignedData,EnvelopedData) should be BER
> encoded. But when i go thorugh the some of the ietf
> examples, especially in EnvelopedData->RecipientInfo
> is encoded by DER.(its starting with 31 82 ..). It
> should be like sequence 30 80 .. ? 
> 
> Could you please explain why was it happend ?
> 
> Thanks,
> Deepak
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design 
> software http://sitebuilder.yahoo.com
>