Você está na página 1de 10

AS/NZS 8825.

1:1998
ISO/IEC 8825-1:1995 ISO/IEC 8825-1:1995/Cor.1:1996

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

Australian/New Zealand Standard


Information technology ASN.1 encoding rules Part 1: Specification of basic encoding rules, canonical encoding rules and distinguished encoding rules
[ ISO/IEC title: Information technology ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)]

AS/NZS 8825.1:1998 This Joint Australian/New Zealand Standard was prepared by Joint Technical Committee IT/1, Information Systems Interconnection. It was approved on behalf of the Council of Standards Australia on 29 October 1997 and on behalf of the Council of Standards New Zealand on 16 December 1997. It was published on 5 February 1998.

The following interests are represented on Committee IT/1:


This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

Australian Bankers Association Australian Bureau of Statistics Australian Computer Society Australian Computer Users Association Australian Information Industry Association Australian Vice Chancellors Committee Department of Defence, Australia Department of Industry, Science and Tourism, Australia Government Computing Service, New Zealand Information Exchange Steering Committee, Australia Institute of Information and Communication Technologies, CSIRO, Australia Telstra Corporation, Australia Telecom New Zealand

Review of Standards. To keep abreast of progress in industry, Joint Australian/ New Zealand Standards are subject to periodic review and are kept up to date by the issue of amendments or new editions as necessary. It is important therefore that Standards users ensure that they are in possession of the latest edition, and any amendments thereto. Full details of all Joint Standards and related publications will be found in the Standards Australia and Standards New Zealand Catalogue of Publications; this information is supplemented each month by the magazines The Australian Standard and Standards New Zealand, which subscribing members receive, and which give details of new publications, new editions and amendments, and of withdrawn Standards. Suggestions for improvements to Joint Standards, addressed to the head office of either Standards Australia or Standards New Zealand, are welcomed. Notification of any inaccuracy or ambiguity found in a Joint Australian/New Zealand Standard should be made without delay in order that the matter may be investigated and appropriate action taken.

This Standard was issued in draft form for comment as DR 97226.

AS/NZS 8825.1:1998

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

Australian/New Zealand Standard


Information technology ASN.1 encoding rules Part 1: Specification of basic encoding rules, canonical encoding rules and distinguished encoding rules

Originated in Australia as AS 3626 1991. Jointly revised and redesignated AS/NZS 8825.1:1998.

PUBLISHED JOINTLY BY: STANDARDS AUSTRALIA 1 The Crescent, Homebush NSW 2140 Australia STANDARDS NEW ZEALAND Level 10, Radio New Zealand House, 155 The Terrace, Wellington 6001 New Zealand
ISBN 0 7337 1682 2

ii

PREFACE
This Standard was prepared by the Joint Standards Australia/ Standards New Zealand Committee IT/1, Information Systems Interconnection, to supersede AS 3626 1991, Information technology Open Systems Interconnection Specification of basic encoding rules for Abstract Syntax Notation One (ASN.1). It is identical with and has been reproduced from ISO/IEC 8825-1:1995, Information technology ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER). Technical Corrigendum 1:1996 is bound at the rear of this Standard. The objective of this Standard is to provide designers of communications and messaging systems with a definition of encoding rules that may be applied to values of types defined using the ASN.1 notation. It is implicit in the specification of these encoding rules that they are also to be used for decoding. This Standard is Part 1 of AS/NZS 8825, Information technology ASN.1 encoding rules, which is published in Parts as follows: Part 1: Specification of basic encoding rules, canonical encoding rules and distinguished encoding rules Part 2: Specification of packed encoding rules Users of this Standard are advised by Standards Australia and Standards New Zealand, under arrangements made with ISO and IEC, as well as certain other Standards organizations, that the number of this Standard is not reproduced on each page; its identity is shown only on the cover and title pages. As this Standard is reproduced from an international Standard, the following applies: (a) (b) (c) (i) (ii) (iii) Its number does not appear on each page of text and its identity is shown only on the cover and title page. In the source text this International Standard should read this Australian/New Zealand Standard. A full point substitutes for a comma when referring to a decimal marker. Terminology The words this Australian/New Zealand Standard should replace the words this International Standard wherever they appear. Decimal marker Substitute a full point for a comma where it appears as a decimal marker. References The references to international Standards should be replaced by references, where appropriate, to the following Australian or Joint Australian/New Zealand Standards: Australian or Joint Australian/New Zealand Standard AS 3767 Information processing Representation of numerical values in character strings for information interchange

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

For the purpose of this Standard, the source text should be modified as follows:

Reference to International Standard or other publication ISO 6093 Information processing Representation of numerical values in character strings for information interchange

ISO/IEC 2022 Information technology Character code structure and extension techniques

iii
ISO/IEC 6429 Information technology Control functions for coded character sets AS 2761 Character sets and information coding Control functions for 7-bit and 8-bit coded character sets

7498

7498-1 8823

Information technology Open Systems Interconnection Basic Reference Model Part 1: The basic model Information technology Open Systems Interconnection Connectionoriented presentation protocol Part 1: Protocol specification Information technology Abstract Syntax Notation One (ASN.1) Part 1: Specification of basic notation Part 2: Information object specification Part 3: Constraint specification Part 4: Parameterization of ASN.1 specifications

AS/NZS 2777 Information processing systems Open Systems Interconnection Basic reference model 2777.1 Part 1: The basic model

8823-1
This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

8824 8824.1 8824.2 8824.3 8824.4 4189 Information technology Abstract syntax notation one Part 1: Specification of basic notation Part 2: Information object specification Part 3: Constraint specification Part 4: Parameterization of ASN.1 specifications Information technology Universal multiple-octet coded Character Set (UCS) Part 1: Architecture and basic multilingual plane

8824 8824-1 8824-2 8824-3 8824-4 10646

Information technology Universal Multiple-Octet Coded Character Set (UCS) 10646-1 Part 1: Architecture and Basic Multilingual Plane

4189.1

Copyright

STANDARDS AUSTRALIA/ STANDARDS NEW ZEALAND

Users of Standards are reminded that copyright subsists in all Standards Australia and Standards New Zealand publications and software. Except where the Copyright Act allows and except where provided for below no publications or software produced by Standards Australia or Standards New Zealand may be reproduced, stored in a retrieval system in any form or transmitted by any means without prior permission in writing from Standards Australia or Standards New Zealand. Permission may be conditional on an appropriate royalty payment. Australian requests for permission and information on commercial software royalties should be directed to the head office of Standards Australia. New Zealand requests should be directed to Standards New Zealand. Up to 10 percent of the technical content pages of a Standard may be copied for use exclusively in-house by purchasers of the Standard without payment of a royalty or advice to Standards Australia or Standards New Zealand. Inclusion of copyright material in computer software programs is also permitted without royalty payment provided such programs are used exclusively in-house by the creators of the programs. Care should be taken to ensure that material used is from the current edition of the Standard and that it is updated whenever the Standard is amended or revised. The number and date of the Standard should therefore be clearly identified. The use of material in print form or in computer software programs to be used commercially, with or without payment, or in commercial contracts is subject to the payment of a royalty. This policy may be varied by Standards Australia or Standards New Zealand at any time.

iv

CONTENTS
Page
1 2 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Normative references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 Identical Recommendations International Standards . . . . . . . . . . . . . . . . . . . . 2.2 Additional references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Convention .... .. ... .. ..... ..... .................. .... .. .... .... 1 1 1 1 2 2 2 3 3 3 3 7 7 7 8 9 10 10 11 11 11 11 12 12 12 13 13 14 15 16 18 19 19 19 19 19 20 20 20

3 4
This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

5 6 7 8

Conformance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic 8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 8.9 8.10 8.11 8.12 8.13 8.14 8.15 8.16 8.17 8.18 8.19 8.20 8.21 encoding rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General rules for encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of a boolean value . . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of an integer value . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of an enumerated value . . . . . . . . . . . . . . . . . . . . . . Encoding of a real value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of a bitstring value . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of an octetstring value . . . . . . . . . . . . . . . . . . . . . . . Encoding of a null value . . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of a sequence value . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of a sequence-of value . . . . . . . . . . . . . . . . . . . . . . . Encoding of a set value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of a set-of value . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of a choice value . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of a tagged value . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of an open type . . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoding of an instance-of value . . . . . . . . . . . . . . . . . . . . . . . Encoding of a value of the embedded-pdv type . . . . . . . . . . . . . Encoding of a value of the external type . . . . . . . . . . . . . . . . . Encoding of an object identifier value . . . . . . . . . . . . . . . . . . . Encoding for values of the restricted character string types . . . . Encoding for values of the unrestricted character string type . . . .. .. .. . . . . . . . . . . .. . . .. .. .. . . .. .. ... . . ... .. .. .. .. .. . . .. .. .. .. .. .. . . . . . . . . .. . . .. .. .. . . .. .. .. .. .. .. .. .. .. .. . . . . . . . . .. . . .. .. .. . . .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .... . . .. .... .... ... . .... .... .... .... .... .... .... .... .... .... .. .. .. .. ... . . ... . ... .. .. . . . . . . . . ... . .. ... .. . .. . . .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .... .... .... .... .. .. .... ... ... ... ... ... ... . .. ... ... .. . . .. ... ... ... . .. . . . . . . . . . . . . . . . .

Canonical encoding rules . . . 9.1 Length forms . . . . . . 9.2 String encoding forms 9.3 Set components . . . . . Distinguished encoding rules 10.1 Length forms . . . . . . 10.2 String encoding forms 10.3 Set components . . . . .

.. . . .. .. .. . . .. ..

10

v
Page
11 Restrictions on BER employed by both CER and DER 11.1 Boolean values . . . . . . . . . . . . . . . . . . . . . . . 11.2 Unused bits . . . . . . . . . . . . . . . . . . . . . . . . . . 11.3 Real values . . . . . . . . . . . . . . . . . . . . . . . . . . 11.4 GeneralString values . . . . . . . . . . . . . . . . . . . 11.5 Set and sequence components with default value 11.6 Set-of components . . . . . . . . . . . . . . . . . . . . . 11.7 Generalized Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. . . .. .. .. .. .. . . . . . . . . .. .. .. .. .. .. .. .. .. .. . . .. .. .. .. .. . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. . . .. .. .. .. .. .. .. . . .. .. .. .. . . .. .. .. .. . . .. .. 20 20 20 20 21 21 21 21 21 23 23 23 23 25 26 28 28 29 29

12

Use of BER, CER and DER in transfer syntax definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... .. . . .. ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

Annex A - Example of encodings . . . . . . . . . . . . . . A.1 ASN.1 description of the record structure A.2 ASN.1 description of a record value . . . A.3 Representation of this record value . . . .

Annex B Assignment of object identifier values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Annex C Illustration of real value encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Annex D D.1 D.2 D.3 Use of the DER and CER in data origin The problem to be solved . . . . . . . . . The approach to a solution . . . . . . . . The implementation optimization . . . authentication .. ..... .... . .. ..... ... . .. ... .. ... . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

vi

NOTES

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

This is a free preview. Purchase the entire publication at the link below:

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

AS/NZS 8825.1:1998, Information technology ASN.1 encoding rules Specification of basic encoding rules, canonical encoding rules and distinguished encoding rules

Looking for additional Standards? Visit SAI Global Infostore Subscribe to our Free Newsletters about Australian Standards in Legislation; ISO, IEC, BSI and more Do you need to Manage Standards Collections Online? Learn about LexConnect, All Jurisdictions, Standards referenced in Australian legislation Do you want to know when a Standard has changed? Want to become an SAI Global Standards Sales Affiliate? Learn about other SAI Global Services: LOGICOM Military Parts and Supplier Database Metals Infobase Database of Metal Grades, Standards and Manufacturers Materials Infobase Database of Materials, Standards and Suppliers Database of European Law, CELEX and Court Decisions

Need to speak with a Customer Service Representative - Contact Us

Você também pode gostar