Information technology — ASN.1 encoding rules — Part 1: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)
Introduction: Rec. ITU-T X.680 | ISO/IEC 8824-1, Rec. ITU-T X.681 | ISO/IEC 8824-2, Rec. ITU-T X.682 | ISO/IEC 8824-3, Rec. ITU-T X.683 | ISO/IEC 8824-4 (Abstract Syntax Notation One or ASN.1) together 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 rules 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 encoding 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 give 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 sender's options. The canonical and distinguished encoding rules differ from each other in the set of restrictions that they place on the basic encoding rules. The distinguished encoding rules is
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 Rec. ITU-T X.680 | ISO/IEC 8824-1, Rec. ITU-T X.681 | ISO/IEC 8824-2, Rec. ITU-T X.682 | ISO/IEC 8824-3, and Rec. ITU-T 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 transferred. 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.
Contents:
- Introduction
- Scope
- 8.10 Encoding of a sequence-of value
- 8.11 Encoding of a set value
- 8.12 Encoding of a set-of value
- 8.13 Encoding of a choice value
- 8.14 Encoding of a value of a prefixed type
- 8.15 Encoding of an open type
- 8.16 Encoding of an instance-of value
- 8.17 Encoding of a value of the embedded-pdv type
- 8.18 Encoding of a value of the external type
- 8.19 Encoding of an object identifier value
- 8.20 Encoding of a relative object identifier value
- 8.21 Encoding of an OID internationalized resource identifier value
- 8.22 Encoding of a relative OID internationalized resource identifier value
- 8.23 Encoding for values of the restricted character string types
- 8.24 Encoding for values of the unrestricted character string type
- 8.25 Encoding for values of the Useful Types
- 8.26 Encoding for values of the TIME type and the useful time types