Lev:

Thanks for your reply, just to make sure I understood your example so
theoretically when encoding the open type with the length determinant
the ending position of the encoding may or may not end up at an octet
boundary although padding bits are inserted to make the content of the
open type have a multiple of eight bits. Is this correct?

Thanks for your time,

Chamira

-----Original Message-----
From: Lev Walkin [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 27, 2006 4:37 PM
To: Chamira Perera
Cc: [email protected]
Subject: Re: [ASN1] Question about PER

Chamira Perera wrote:
> Hi:
> 
>  
> 
> In UNALIGNED PER, when encoding an open type, say as part as an
> extension addition to a sequence type, should the encoding of the
length
> determinant start at an octet boundary? Or should it start at any
> location? 


The length determinant should start without regard to octet alignment.
The only thing which is octet aligned in case od UNALIGNED PER is the
number of bits in the field list of the type to be encoded.

For example, if we normally encode some type in 3 bits, then, in
case of an open type encoding, we shall construct a sequence
of

        a. The encoding of the length determinant for "n", where n=1
        b. 3 bits of meaningful content
        c. 5 bits of padding

Without any octet alignment.

-- 
Lev Walkin
[EMAIL PROTECTED]



---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.
_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to