Hey hey

noone has mentioned CER on this thread yet ?

Isent canonical encoding rules about taking the
length encoding freedom out of BER so different
applications encode excactly alike ?

Is that what you are after, Roberto ?

Steen Oluf Karlsen

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John
Larmouth
Sent: 16. september 2002 20:26
To: [EMAIL PROTECTED]
Subject: Re: [ASN.1] Encoding lenghts...


In principle you could do this using Encoding Control Notation, but
no-one would want to - that would be a steam-hammer to crack a nut!

Why do you want such control?  (We are looking at the possibility of
encoding instructions for "variant PER" to allow a user (mainly to
support legacy protocols) to force a choice index or an enumerated to
be
more bits than are strictly needed (or used in normal PER).  No-one
has
yet suggested anything useful for encoding instructions for variant
BER,
but I suppose that control of definite length v indefinite length,
where
both are possible, may be a candidate.)  So I say again, why would you
want this?

John L


Ed Day wrote:
>
> Hi Roberto,
>
> There is no way to specify within the syntax whether definite or
indefinite
> length should be used.  The best you can do is add a comment to the
spec as
> a recommendation as to how you think it should be done and for what
reasons.
> But any fully compliant decoder should be able to decode it in
either form.
> It is up to the sender how they want to encode it.
>
> Regards,
>
> Ed Day
> Objective Systems, Inc.
> Tel: +1 (484) 875-3020
> Fax: +1 (484) 875-2913
> Toll-free: (877) 307-6855 (USA only)
> mailto:[EMAIL PROTECTED]
> http://www.obj-sys.com
>
> ----- Original Message -----
> From: "Pino Roberto" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 13, 2002 6:36 AM
> Subject: [ASN.1] Encoding lenghts...
>
> > I want to specify that my question was not about a particular
tool.
> > My question was about ASN1 syntax and the existence of the
capability to
> > force from ASN1 source, in which way encode a structure. Nothing
more than
> > this.
> > Thanks to everybody for yours suggestions.
> > Regards,
> > Roberto Pino

--
   Prof John Larmouth
   Larmouth T&PDS Ltd
   (Training and Protocol Development Services)
   1 Blueberry Road
   Bowdon                               [EMAIL PROTECTED]
   Cheshire WA14 3LS                    Tel: +44 161 928 1605
   England                              Fax: +44 161 928 8069



Reply via email to