ANSI INCITS ISO IEC 8825-1-2004 Information technology - ASN.1 encoding rules Specification of Basic Encoding Rules (BER) Canonical Encoding Rules (CER) and Distinguished Encoding .pdf

上传人:registerpick115 文档编号:436497 上传时间:2018-11-14 格式:PDF 页数:34 大小:673.10KB
下载 相关 举报
ANSI INCITS ISO IEC 8825-1-2004 Information technology - ASN.1 encoding rules Specification of Basic Encoding Rules (BER) Canonical Encoding Rules (CER) and Distinguished Encoding .pdf_第1页
第1页 / 共34页
ANSI INCITS ISO IEC 8825-1-2004 Information technology - ASN.1 encoding rules Specification of Basic Encoding Rules (BER) Canonical Encoding Rules (CER) and Distinguished Encoding .pdf_第2页
第2页 / 共34页
ANSI INCITS ISO IEC 8825-1-2004 Information technology - ASN.1 encoding rules Specification of Basic Encoding Rules (BER) Canonical Encoding Rules (CER) and Distinguished Encoding .pdf_第3页
第3页 / 共34页
ANSI INCITS ISO IEC 8825-1-2004 Information technology - ASN.1 encoding rules Specification of Basic Encoding Rules (BER) Canonical Encoding Rules (CER) and Distinguished Encoding .pdf_第4页
第4页 / 共34页
ANSI INCITS ISO IEC 8825-1-2004 Information technology - ASN.1 encoding rules Specification of Basic Encoding Rules (BER) Canonical Encoding Rules (CER) and Distinguished Encoding .pdf_第5页
第5页 / 共34页
亲,该文档总共34页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

1、 Reference numberISO/IEC 8825-1:2002(E)ISO/IEC 2002INTERNATIONAL STANDARD ISO/IEC8825-1Third edition2002-12-15Information technology ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER) Technologies de linformation R

2、gles de codage ASN.1: Spcification des rgles de codage de base, des rgles de codage canoniques et des rgles de codage distinctives Adopted by INCITS (InterNational Committee for Information Technology Standards) as an American National Standard.Date of ANSI Approval: 12/28/2004Published by American

3、National Standards Institute,25 West 43rd Street, New York, New York 10036Copyright 2004 by Information Technology Industry Council (ITI).All rights reserved.These materials are subject to copyright claims of International Standardization Organization (ISO), InternationalElectrotechnical Commission

4、(IEC), American National Standards Institute (ANSI), and Information Technology Industry Council(ITI). Not for resale. No part of this publication may be reproduced in any form, including an electronic retrieval system, withoutthe prior written permission of ITI. All requests pertaining to this stan

5、dard should be submitted to ITI, 1250 Eye Street NW,Washington, DC 20005.Printed in the United States of AmericaISO/IEC 8825-1:2002(E) PDF disclaimer This PDF file may contain embedded typefaces. In accordance with Adobes licensing policy, this file may be printed or viewed but shall not be edited u

6、nless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobes licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a tradem

7、ark of Adobe Systems Incorporated. Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies.

8、 In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below. ISO/IEC 2002 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanic

9、al, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.or

10、g Published by ISO in 2003 Published in Switzerland ii ISO/IEC 2002 All rights reservedISO/IEC 8825-1:2002(E) ISO/IEC 2002 All rights reserved iiiCONTENTS Page Introduction . vi 1 Scope 1 2 Normative references . 1 2.1 Identical Recommendations | International Standards 1 2.2 Additional references 1

11、 3 Definitions 2 4 Abbreviations . 2 5 Notation 2 6 Convention . 2 7 Conformance 3 8 Basic encoding rules. 3 8.1 General rules for encoding 3 8.1.1 Structure of an encoding . 3 8.1.2 Identifier octets . 4 8.1.3 Length octets. 5 8.1.4 Contents octets 6 8.1.5 End-of-contents octets. 6 8.2 Encoding of

12、a boolean value . 6 8.3 Encoding of an integer value. 7 8.4 Encoding of an enumerated value . 7 8.5 Encoding of a real value 7 8.6 Encoding of a bitstring value 8 8.7 Encoding of an octetstring value. 9 8.8 Encoding of a null value . 10 8.9 Encoding of a sequence value . 10 8.10 Encoding of a sequen

13、ce-of value 10 8.11 Encoding of a set value . 10 8.12 Encoding of a set-of value. 11 8.13 Encoding of a choice value . 11 8.14 Encoding of a tagged value . 11 8.15 Encoding of an open type 12 8.16 Encoding of an instance-of value 12 8.17 Encoding of a value of the embedded-pdv type 12 8.18 Encoding

14、of a value of the external type. 12 8.19 Encoding of an object identifier value 13 8.20 Encoding of a relative object identifier value 14 8.21 Encoding for values of the restricted character string types 14 8.22 Encoding for values of the unrestricted character string type . 17 9 Canonical encoding

15、rules . 17 9.1 Length forms . 17 9.2 String encoding forms . 17 9.3 Set components . 17 10 Distinguished encoding rules . 18 10.1 Length forms . 18 10.2 String encoding forms . 18 10.3 Set components . 18 11 Restrictions on BER employed by both CER and DER . 18 11.1 Boolean values 18 11.2 Unused bit

16、s 18 11.3 Real values 18 ISO/IEC 8825-1:2002(E) iv ISO/IEC 2002 All rights reserved11.4 GeneralString values . 19 11.5 Set and sequence components with default value . 19 11.6 Set-of components. 19 11.7 GeneralizedTime. 19 11.8 UTCTime 20 11.8.4 Examples of valid representations. 20 11.8.5 Examples

17、of invalid representations 20 12 Use of BER, CER and DER in transfer syntax definition 20 Annex A Example of encodings . 22 A.1 ASN.1 description of the record structure. 22 A.2 ASN.1 description of a record value . 22 A.3 Representation of this record value. 22 Annex B Assignment of object identifi

18、er values 24 Annex C Illustration of real value encoding . 25 ISO/IEC 8825-1:2002(E) ISO/IEC 2002 All rights reserved vForeword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization.

19、National bodies that are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual inte

20、rest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. International Standards are drafted in accordance with

21、 the rules given in the ISO/IEC Directives, Part 2. The main task of the joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requ

22、ires approval by at least 75 % of the national bodies casting a vote. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. ISO/IEC 8825-1 was prep

23、ared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 6, Telecommunications and information exchange between systems, in collaboration with ITU-T. The identical text is published as ITU-T Rec.X.690. This third edition cancels and replaces the second edition (ISO/IE

24、C 8825-1:1998), which has been technically revised. It also incorporates the Amendment ISO/IEC 8825-1:1998/Amd.1:2000 and the Technical Corrigenda ISO/IEC 8825-1:1998/Cor.1:1999 and ISO/IEC 8825-1:1998/Cor.2:2002. ISO/IEC 8825 consists of the following parts, under the general title Information tech

25、nology ASN.1 encoding rules: Part 1: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER) Part 2: Specification of Packed Encoding Rules (PER) Part 3: Specification of Encoding Control Notation (ECN) Part 4: XML Encoding Rules (XER) Part

26、5: Mapping W3C XML schema definitions into ASN.1 ISO/IEC 8825-1:2002(E) vi ISO/IEC 2002 All rights reservedIntroduction ITU-T Rec. X.680 | ISO/IEC 8824-1, ITU-T Rec. X.681 | ISO/IEC 8824-2, ITU-T Rec. X.682 | ISO/IEC 8824-3, ITU-T Rec. X.683 | ISO/IEC 8824-4 (Abstract Syntax Notation One or ASN.1) t

27、ogether specify a notation for the definition of abstract syntaxes, enabling application standards to define the types of information they need to transfer. It also specifies a notation for the specification of values of a defined type. This Recommendation | International Standard defines encoding r

28、ules that may be applied to values of types defined using the ASN.1 notation. Application of these encoding rules produces a transfer syntax for such values. It is implicit in the specification of these encoding rules that they are also to be used for decoding. There may be more than one set of enco

29、ding rules that can be applied to values of types that are defined using the ASN.1 notation. This Recommendation | International Standard defines three sets of encoding rules, called basic encoding rules, canonical encoding rules and distinguished encoding rules. Whereas the basic encoding rules giv

30、e the sender of an encoding various choices as to how data values may be encoded, the canonical and distinguished encoding rules select just one encoding from those allowed by the basic encoding rules, eliminating all of the senders options. The canonical and distinguished encoding rules differ from

31、 each other in the set of restrictions that they place on the basic encoding rules. The distinguished encoding rules is more suitable than the canonical encoding rules if the encoded value is small enough to fit into the available memory and there is a need to rapidly skip over some nested values. T

32、he canonical encoding rules is more suitable than the distinguished encoding rules if there is a need to encode values that are so large that they cannot readily fit into the available memory or it is necessary to encode and transmit a part of a value before the entire value is available. The basic

33、encoding rules is more suitable than the canonical or distinguished encoding rules if the encoding contains a set value or set-of value and there is no need for the restrictions that the canonical and distinguished encoding rules impose. This is due to the memory and CPU overhead that the latter enc

34、oding rules exact in order to guarantee that set values and set-of values have just one possible encoding. Annex A gives an example of the application of the basic encoding rules. It does not form an integral part of this Recommendation | International Standard. Annex B summarizes the assignment of

35、object identifier values made in this Recommendation | International Standard. It does not form an integral part of this Recommendation | International Standard. Annex C gives examples of applying the basic encoding rules for encoding reals. It does not form an integral part of this Recommendation |

36、 International Standard. ISO/IEC 8825-1:2002 (E) ITU-T Rec. X.690 (07/2002) 1 INTERNATIONAL STANDARD ISO/IEC 8825-1 : 1995 (E) ITU-T Rec. X.690 (1994 E) ITU-T RECOMMENDATION Information technology ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and D

37、istinguished Encoding Rules (DER) 1 Scope This Recommendation | International Standard specifies a set of basic encoding rules that may be used to derive the specification of a transfer syntax for values of types defined using the notation specified in ITU-T Rec. X.680 | ISO/IEC 8824-1, ITU-T Rec. X

38、.681 | ISO/IEC 8824-2, ITU-T Rec. X.682 | ISO/IEC 8824-3, and ITU-T Rec. X.683 | ISO/IEC 8824-4, collectively referred to as Abstract Syntax Notation One or ASN.1. These basic encoding rules are also to be applied for decoding such a transfer syntax in order to identify the data values being transfe

39、rred. It also specifies a set of canonical and distinguished encoding rules that restrict the encoding of values to just one of the alternatives provided by the basic encoding rules. 2 Normative references The following Recommendations and International Standards contain provisions which, through re

40、ference in this text, constitute provisions of this Recommendation | International Standard. At the time of publication, the editions indicated were valid. All Recommendations and Standards are subject to revision, and parties to agreements based on this Recommendation | International Standard are e

41、ncouraged to investigate the possibility of applying the most recent edition of the Recommendations and Standards listed below. Members of IEC and ISO maintain registers of currently valid International Standards. The Telecommunication Standardization Bureau of the ITU maintains a list of currently

42、valid ITU-T Recommendations. 2.1 Identical Recommendations | International Standards ITU-T Recommendation X.680 (2002) | ISO/IEC 8824-1:2002, Information technology Abstract Syntax Notation One (ASN.1): Specification of basic notation. ITU-T Recommendation X.681 (2002) | ISO/IEC 8824-2:2002, Informa

43、tion technology Abstract Syntax Notation One (ASN.1): Information object specification. ITU-T Recommendation X.682 (2002) | ISO/IEC 8824-3:2002, Information technology Abstract Syntax Notation One (ASN.1): Constraint specification. ITU-T Recommendation X.683 (2002) | ISO/IEC 8824-4:2002, Information

44、 technology Abstract Syntax Notation One (ASN.1): Parameterization of ASN.1 specifications. 2.2 Additional references ISO International Register of Coded Character Sets to be used with Escape Sequences. ISO/IEC 2022:1994, Information technology Character code structure and extension techniques. ISO

45、2375:1985, Data processing Procedure for registration of escape sequences. ISO 6093:1985, Information processing Representation of numerical values in character strings for information interchange. ISO/IEC 6429:1992, Information technology Control functions for coded character sets. ISO/IEC 10646-1:

46、2000, Information technology Universal Multiple-Octet Coded Character Set (UCS) Part 1: Architecture and Basic Multilingual Plane. ISO/IEC 8825-1:2002 (E) 2 ITU-T Rec. X.690 (07/2002) 3 Definitions For the purposes of this Recommendation | International Standard, the definitions of ITU-T Rec. X.200

47、| ISO/IEC 7498-1 and ITU-T Rec. X.680 | ISO/IEC 8824-1 and the following definitions apply. 3.1 canonical encoding: A complete encoding of an abstract value obtained by the application of encoding rules that have no implementation-dependent options. Such rules result in the definition of a 1-1 mappi

48、ng between unambiguous and unique encodings and values in the abstract syntax. 3.2 constructed encoding: A data value encoding in which the contents octets are the complete encoding of one or more data values. 3.3 contents octets: That part of a data value encoding which represents a particular valu

49、e, to distinguish it from other values of the same type. 3.4 data value: Information specified as the value of a type; the type and the value are defined using ASN.1. 3.5 dynamic conformance: A statement of the requirement for an implementation to adhere to the prescribed behaviour in an instance of communication. 3.6 encoding (of a data value): The complete sequence of octets used to represent the data value. 3.7 end-of-contents octets: Part of a data value encoding, occurring

展开阅读全文
相关资源
  • ANSI Z97 1-2009 American National Standard for Safety Glazing Materials used in Buildings - Safety Performance Specifications and Methods of Test《建筑物中窗用玻璃材料安全性用.pdfANSI Z97 1-2009 American National Standard for Safety Glazing Materials used in Buildings - Safety Performance Specifications and Methods of Test《建筑物中窗用玻璃材料安全性用.pdf
  • ANSI Z97 1 ERTA-2010 Re ANSI Z97 1 - 2009 Errata《修订版 美国国家标准学会Z97 1-2009标准的勘误表》.pdfANSI Z97 1 ERTA-2010 Re ANSI Z97 1 - 2009 Errata《修订版 美国国家标准学会Z97 1-2009标准的勘误表》.pdf
  • ANSI Z21 40 2a-1997 Gas-Fired Work Activated Air-Conditioning and Heat Pump Appliances (Same as CGA 2 92a)《燃气、工作激活空气调节和热泵器具(同 CGA 2 92a)》.pdfANSI Z21 40 2a-1997 Gas-Fired Work Activated Air-Conditioning and Heat Pump Appliances (Same as CGA 2 92a)《燃气、工作激活空气调节和热泵器具(同 CGA 2 92a)》.pdf
  • ANSI Z124 9-2004 American National Standard for Plastic Urinal Fixtures《塑料小便器用美国国家标准》.pdfANSI Z124 9-2004 American National Standard for Plastic Urinal Fixtures《塑料小便器用美国国家标准》.pdf
  • ANSI Z124 4-2006 American National Standard for Plastic Water Closet Bowls and Tanks《塑料抽水马桶和水箱用美国国家标准》.pdfANSI Z124 4-2006 American National Standard for Plastic Water Closet Bowls and Tanks《塑料抽水马桶和水箱用美国国家标准》.pdf
  • ANSI Z124 3-2005 American National Standard for Plastic Lavatories《塑料洗脸盆用美国国家标准》.pdfANSI Z124 3-2005 American National Standard for Plastic Lavatories《塑料洗脸盆用美国国家标准》.pdf
  • ANSI T1 659-1996 Telecommunications - Mobility Management Application Protocol (MMAP) RCF-RACF Operations《电信 可移动管理应用协议(MMAP) RCF-RACF操作》.pdfANSI T1 659-1996 Telecommunications - Mobility Management Application Protocol (MMAP) RCF-RACF Operations《电信 可移动管理应用协议(MMAP) RCF-RACF操作》.pdf
  • ANSI T1 651-1996 Telecommunications – Mobility Management Application Protocol (MMAP)《电信 可移动性管理应用协议》.pdfANSI T1 651-1996 Telecommunications – Mobility Management Application Protocol (MMAP)《电信 可移动性管理应用协议》.pdf
  • ANSI T1 609-1999 Interworking between the ISDN User-Network Interface Protocol and the Signalling System Number 7 ISDN User Part《电信 ISDN用户间网络接口协议和7号信令系统ISDN用户部分.pdfANSI T1 609-1999 Interworking between the ISDN User-Network Interface Protocol and the Signalling System Number 7 ISDN User Part《电信 ISDN用户间网络接口协议和7号信令系统ISDN用户部分.pdf
  • ANSI T1 605-1991 Integrated Services Digital Network (ISDN) - Basic Access Interface for S and T Reference Points (Layer 1 Specification)《综合服务数字网络(ISDN) S和T基准点的.pdfANSI T1 605-1991 Integrated Services Digital Network (ISDN) - Basic Access Interface for S and T Reference Points (Layer 1 Specification)《综合服务数字网络(ISDN) S和T基准点的.pdf
  • 猜你喜欢
    相关搜索

    当前位置:首页 > 标准规范 > 国际标准 > ANSI

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1