[ASN.1] PER encoding
Hi, I need a clarification on how the following (marked in bold) will be encoded in PER. As far as my understaning of ITU-T document X.691 (section 13.3), value EnumType ::= 12 (value is not in the Extension root). Below, the corresponding ASN.1 spec is marked in bold. will be encoded as, 1 Extension bit 0 000110 (Encoding 12-6 as Normally small non-negative number). 6 is the maximum index of the enum values in the root. The hex equivalent is 0x86. Please let me know is it right? Do we need complement the value when it is not within the extension root? Kindly suggest. Below is the ASN.1 spec. EnumType ::= ENUMERATED { a, b, c, d, e, f, ... } Thank You. Regards, Murali. Sep 12th. -- ~ Synergy infotech (P) Ltd. (An ISO 9001:2000 company) www.synergy-infotech.com Tel : 080-6780026/7/8,6689904,6689938, Extn : 54. Home page : www.geocities.com/nidugala -- Information contained and transmitted by this E-MAIL is proprietary to Synergy Infotech Private Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. If you have received this communication in error, please delete this mail notify us immediately at mailto:[EMAIL PROTECTED] --
Re: [ASN.1] PER encoding
I need a clarification on how the following (marked in bold) will be encoded in PER. As far as my understaning of ITU-T document X.691 (section 13.3), value EnumType ::= 12 (value is not in the Extension root). Below, the corresponding ASN.1 spec is marked in bold. will be encoded as, 1 Extension bit 0 000110 (Encoding 12-6 as Normally small non-negative number). 6 is the maximum index of the enum values in the root. The hex equivalent is 0x86. Please let me know is it right? Do we need complement the value when it is not within the extension root? Kindly suggest. Below is the ASN.1 spec. EnumType ::= ENUMERATED { a, b, c, d, e, f, ... } Dear Mr. Nidugala: Yes, you are right about the 86. Assuming the ASN.1 looks like this EnumType ::= ENUMERATED { a, b, c, d, e, f, ..., g, h, i, j, k, l, m } the list of possible values up through your example, 12, follows name value hex bit breakout a 0 0x 0 (in root) + 000 (value) b 1 1x 0 (in root) + 001 (value) c 2 2x 0 (in root) + 010 (value) d 3 3x 0 (in root) + 011 (value) e 4 4x 0 (in root) + 100 (value) f 5 5x 0 (in root) + 101 (value) g 6 80 1 (in ext ) + 000 (value) h 7 81 1 (in ext ) + 001 (value) i 8 82 1 (in ext ) + 010 (value) j 9 83 1 (in ext ) + 011 (value) k 10 84 1 (in ext ) + 100 (value) l 11 85 1 (in ext ) + 101 (value) m 12 86 1 (in ext ) + 110 (value) Notice that the count restarts with 0 once we are in the extension. Also notice that the encoded values a through f are only 4 bits long. If we had Z ::= SEQUENCE { x EnumType, y EnumType } tworoots Z ::= { x d, y d } twoexts Z ::= { x m, y m } tworoots would encode as 33, while twoexts would encode as 8686. Please let me know if this helps. = Conrad Sigona Voice Mail : 1-732-302-9669 x400 OSS Nokalva Fax: 1-419-831-5035 [EMAIL PROTECTED]My direct line : 1-315-845-1773
[ASN.1] PER encoding
Hi All, I am having doubts on PER encoding. Please help in clearing the issues. Encoding of Normally small non negative whole number 10.6.2 lause of X691 says that "if n >= 64 .". But what is the maximum value it can take? If it is less than or equal to 255, why do we need to appended a length? I believe that only negative number has to be 2's complemented. Please tell me yes or no. Encoding of a constrained whole number In aligned variant, if 2= range =255, the number is encoded in upper bound(log2range) bits. Consider, the range (1..8). 4 bits are needed for the representation. If the number to be encoded is 1, its equivalent encoding is 0001. Please let me know what I have interpreted is right? I will keep posting encoding queries. Kindly clarify those doubts. Thanks a lot. regards, Murali. 19th Mar 03. -- ~ Synergy infotech (P) Ltd. (An ISO 9001:2000 company) www.synergy-infotech.com Tel : 080-6780026/7/8,6689904,6689938, Extn : 54. Home page : www.geocities.com/nidugala -- Information contained and transmitted by this E-MAIL is proprietary to Synergy Infotech Private Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. If you have received this communication in error, please delete this mail notify us immediately at mailto:[EMAIL PROTECTED] --
Re: [ASN.1] PER encoding
Murali wrote: Hi All, I am having doubts on PER encoding. Please help in clearing the issues. *Encoding of Normally small non negative whole number 10.6.2 lause of X691 says that if n = 64 .. But what is the maximum value it can take? If it is less than or equal to 255, why do we need to appended a length? *I believe that only negative number has to be 2's complemented. Please tell me yes or no. *Encoding of a constrained whole number In aligned variant, if 2= range =255, the number is encoded in upper bound(log2range) bits. Consider, the range (1..8). 4 bits are needed for the representation. If the number to be encoded is 1, its equivalent encoding is 0001. Please let me know what I have interpreted is right? I will keep posting encoding queries. Kindly clarify those doubts. You should find answers in my book that you can freely download from OSS Nokalva's web site at: http://www.oss.com/asn1/dubuisson.html -- Olivier DUBUISSON france telecom RD DTL/TAL - 22307 Lannion Cedex - France t: +33 2 96 05 38 50 - f: +33 2 96 05 39 45 - http://asn1.elibel.tm.fr/
RE: [ASN.1] PER encoding
?? -Original Message- From: Anuj Sethi [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 5:03 PM To: [EMAIL PROTECTED] Subject: RE: [ASN.1] PER encoding Hi There You can send ur query to the entire group. Cheers! Anuj -Original Message- From: Murali [mailto:[EMAIL PROTECTED] Sent: 05 March 2003 09:27 To: [EMAIL PROTECTED] Subject: [ASN.1] PER encoding Hi All, I have few queries on PER encoding. With whom should I ask? Shall I send the queries to the entire group? Kindly send me a reply. Regards, Murali. -- ~ Synergy infotech (P) Ltd. (An ISO 9001:2000 company) www.synergy-infotech.com Tel : 080-6780026/7/8,6689904,6689938, Extn : 54. Home page : www.geocities.com/nidugala -- Information contained and transmitted by this E-MAIL is proprietary to Synergy Infotech Private Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. If you have received this communication in error, please delete this mail notify us immediately at mailto:[EMAIL PROTECTED] -- The mail message has been scanned by MAILsweeper for content analysis. ** The information contained in this email and any attachments is likely to be confidential and legally privileged, and is for the intended recipient named above only. Any copying, dissemination, disclosure of or use of this email or its attachments unless authorised by us is prohibited, except that you may forward this email and/or attachments to a third party on a strict need to know basis. If you have received this email in error, please notify us immediately by replying to the email or by calling +91-80-2297030. Please then delete this email and any full or partial copies of it. You as the intended recipient must be aware and accept that emailis not a totally secure communications medium. Although we have taken all reasonable steps to make sure this email and any attachments are free from viruses, we do not (to the extent permitted by law) accept any liability whatsoever for any virus infection and/or compromise of security caused by this email and any attachment. No contract may be formed or documents served by you on or with us by this email or any attachments unless expressly agreed otherwise by us. Any views expressed in this email or attachments by an individual are not necessarily those of UbiNetics India (Private) Limited. **
Re: [ASN.1] PER encoding/decoding help
C. Wayne Buhrman wrote: Hello! In an attempt to learn Basic Aligned PER encoding/decoding, I am looking at the T38 example in the OSS ASN compiler. The t38.h file is not present, which precludes being able to compile and run the example. Where can I get t38.h so I can run the example and learn the encoding/decoding methodology? Download and compile the ASN.1 module for ITU-T Rec. T.38 that is freely provided to you by the ASN.1 Project of ITU-T: http://www.itu.int/ITU-T/asn1/database/itu-t/t/t38/1998/README.html Note that this module has already been checked and compiled, and thus contains no error at all. The database can be browsed from: http://www.itu.int/ITU-T/asn1/database/ -- Olivier DUBUISSON france telecom RD _ DTL/MSV - 22307 Lannion Cedex - France ( ) tel: +33 2 96 05 38 50 - fax: +33 2 96 05 39 45 / \/ -- \_/\ Site ASN.1 : http://asn1.elibel.tm.fr/
[ASN.1] PER encoding/decoding help
Hello! In an attempt to learn Basic Aligned PER encoding/decoding, I am looking at the T38 example in the OSS ASN compiler. The t38.h file is not present, which precludes being able to compile and run the example. Where can I get t38.h so I can run the example and learn the encoding/decoding methodology? Thanks. Wayne
Re: [ASN.1] PER encoding/decoding help
On Thu, 4 Oct 2001, C. Wayne Buhrman wrote: Hello! In an attempt to learn Basic Aligned PER encoding/decoding, I am looking at the T38 example in the OSS ASN compiler. The t38.h file is not present, which precludes being able to compile and run the example. Where can I get t38.h so I can run the example and learn the encoding/decoding methodology? Send tool-specific queries to the tool vendor. In this case, [EMAIL PROTECTED] We provide tech support 24 hours a day, 7 days a week. You will get a response shortly from OSS support. - Bancroft Scott Toll Free:1-888-OSS-ASN1 OSS Nokalva International:1-732-302-0750 [EMAIL PROTECTED] Tech Support :1-732-302-9669 x-1 1-732-302-9669 x-200 Fax :1-732-302-0023 http://www.oss.com