|
Hi,
First, according to 10.5.7.4, "2560 - 0" will be
encoded as "0a 00".
That is 2 byte long.
Second, according to 12.2.6, the count of the number
of octets to represent
the range of (0..4294967295) is 4. In other words,
"lb" is 1, and "ub" is
4. Therefore the length of length determinant
is 2 bits long.
Since the result of "2 - 1" is 1, the encoding of
length determinant is "01".
Note that you need aligned encoding, so "01" is padded
to 8 bits long. That
is "01000000"(0x40). So the complete encoding of your
example is "40 0a 00"
Author Name: Wang
Hao
Phone:+86-755-89650628 EMail:[EMAIL PROTECTED] ***************************************************************** This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! *****************************************************************
|
_______________________________________________ ASN1 mailing list [EMAIL PROTECTED] http://lists.asn1.org/mailman/listinfo/asn1
