Information technology - Abstract Syntax Notation One (ASN.1)
Part 1: Specification of basic notation
1 Scope
This part of GB/T 16262 provides a standard notation called Abstract Syntax Notation One (ASN.1) that is used for the definition of data types, values, and constraints on data types.
This part
——defines a number of simple types, with their tags, and specifies a notation for referencing these types and for specifying values of these types;
——defines mechanisms for constructing new types from more basic types, and specifies a notation for defining such types and assigning them tags, and for specifying values of these types;
——defines character sets (by reference to other standards) for use within ASN.1;
The ASN.1 notation shall be applied whenever it is necessary to define the abstract syntax of information.
The ASN.1 notation is referenced by other standards which define encoding rules for the ASN.1 types.
2 Normative references
The following documents contain provisions which, through reference in this part of GB/T 16262, constitute provisions of this part. For dated references, subsequent amendments to (excluding correction to), or revisions of, any of these publications do not apply. However, parties to agreements based on this part are encouraged to investigate the possibility of applying the most recent editions of the standards indicated below. For undated references, the latest edition of the normative document applies.
GB/T 1988-1988 Information technology - 7-bit coded character set for information interchange (eqv ISO/IEC 646: 1991)
GB/T 2311-2000 Information technology - Character code structure and extension techniques (idt ISO/IEC 2022: 1994)
GB/T 2659-2000 Codes for the representation of names of countries and regions (eqv ISO 3116-1: 1997)
GB/T 7408-1994 Data elements and interchange formats - Information interchange - Representation of dates and time (eqv ISO 8601: 1988)
GB/T 13000.1-1993 Information technology - Universal Multiple-Octet Coded Character Set (UCS) – Part 1: Architecture and basic multilingual plane (idt ISO/IEC 10646-1: 1993)
GB/T 16262.2-2006 Information technology - Abstract Syntax Notation One (ASN.1) - Part 2: Information object specification (ISO/IEC 8824-2: 2002, IDT)
GB/T 16262.3-2006 Information technology - Abstract Syntax Notation One (ASN.1) - Part 3: Constraint specification (ISO/IEC 8824-3: 2002, IDT)
GB/T 16262.4-2006 Information technology - Abstract Syntax Notation One (ASN.1) - Part 4: Parameterization of ASN.1 specifications (ISO/IEC 8824-4: 2002, IDT)
GB/T 16263.1-2006 Information technology - ASN.1 encoding rules - Part 1: Specification of Basic Encoding Rules (BER),Canonical Encoding Rules(CER) and Distinguished Encoding Rules (DER) (ISO/IEC 8825-1: 2002, IDT)
GB/T 16263.2-2006 Information technology - ASN.1 encoding rules - Part 2: Specification of Packed Encoding Rules (PER) (ISO/IEC 8825-2: 2002, IDT)
GB/T 17969.1-2000 Information technology - Open systems interconnection - Procedures for the operation of OSI registration authorities - Part 1: General procedures (eqv ISO/IEC 9834-1: 1993)
GB/T 18793-2002 Information technology - Extensible Markup Language (XML) 1.0
SJ/Z 9090-1987 Data interchange - Structure for the identification of organizations (idt ISO 6523: 1984)
ISO/IEC 8825-3: 2002 Information technology - ASN.1 encoding rules: Specification of Encoding Control Notation (ECN)
ISO/IEC 8825-4: 2002 Information technology - ASN.1 encoding rules: XML Encoding Rules (XER)
ISO/IEC 7350: 1991 Information technology - Registration of repertoires of graphic characters from ISO/IEC 10367
ISO International Register of Coded Character Sets to be used with Escape Sequences
ITU-T Rec. TF.460-5: 1997 Standard-frequency and time-signal emissions
ITU-T Rec. T.101: 1994 International interworking for videotex services
CCITT Rec. T.100: 1988 International information exchange for interactive videotex
The Unicode Standard, Version 3.2.0: 2002. The Unicode Consortium. (Reading, MA, Addison-Wesley)
Note: The above reference is included because it provides names for control characters.
3 Terms and definitions
For the purposes of this part of GB/T 16262, the following terms and definitions apply.
3.1 Information object specification
This part uses the following terms defined in GB/T 16262.2-2006:
a) information object;
b) information object class;
c) information object set;
d) instance-of type;
e) object class field type.
3.2 Constraint specification
This part uses the following terms defined in GB/T 16262.3-2006:
a) component relation constraint;
b) table constraint.
3.3 Parameterization of ASN.1 specification
This part uses the following terms defined in GB/T 16262.4-2006:
c) parameterized type;
d) parameterized value.
3.4 Structure for identification of organizations
This part uses the following terms defined in SJ/Z 9090-1987:
a) issuing organization;
b) organization code;
c) International Code Designator.
3.5 Universal Multiple-Octet Coded Character Set (UCS)
This part uses the following terms defined in GB/T 13000.1-1993:
a) Basic Multilingual Plane (BMP);
b) cell;
c) combining character;
d) graphic symbol;
e) group;
f) limited subset;
Foreword i
Introduction iii
1 Scope
2 Normative references
3 Terms and definitions
4 Abbreviations
5 Notation
6 The ASN.1 model of type extension
7 Extensibility requirements on encoding rules
8 Tags
9 Use of the ASN.1 notation
10 The ASN.1 character set
11 ASN.1 lexical items
12 Module definition
13 Referencing type and value definitions
14 Notation to support references to ASN.1 components
15 Assigning types and values
16 Definition of types and values
17 Notation for the boolean type
18 Notation for the integer type
19 Notation for the enumerated type
20 Notation for the real type
21 Notation for the bitstring type
22 Notation for the octetstring type
23 Notation for the null type
24 Notation for sequence types
25 Notation for sequence-of types
26 Notation for set types
27 Notation for set-of types
28 Notation for choice types
29 Notation for selection types
30 Notation for tagged types
31 Notation for the object identifier type
32 Notation for the relative object identifier type
33 Notation for the embedded-pdv type
34 Notation for the external type
35 The character string types
36 Notation for character string types
37 Definition of restricted character string types
38 Naming characters and collections defined in GB/T 130
39 Canonical order of characters
40 Definition of unrestricted character string types
41 Notation for types defined in Clauses 42 to
42 Generalized time
43 Universal time
44 The object descriptor type
45 Constrained types
46 Element set specification
47 Subtype elements
48 The extension marker
49 The exception identifier
Annex A (Normative) ASN.1 regular expressions
Annex B (Normative) Rules for type and value compatibility
Annex C (Normative) Assigned object identifier values
Annex D (Informative) Assignment of object identifier component values
Annex E (Informative) Examples and hints
Annex F (Informative) Tutorial annex on ASN.1 character strings
Annex G (Informative) Tutorial annex on the ASN.1 model of type extension
Annex H (Informative) Summary of the ASN.1 notation