1、Reference numberISO/IEC 8825-1:1998(E)ISO/IEC 1998INTERNATIONALSTANDARDISO/IEC8825-1Second edition1998-12-15Information technology ASN.1encoding rules: Specification of BasicEncoding Rules (BER), CanonicalEncoding Rules (CER) and DistinguishedEncoding Rules (DER)Technologies de linformation Rgles de
2、 codage ASN.1:Spcification des rgles de codage de base, des rgles de codagecanoniques et des rgles de codage distinctivesAdopted by INCITS (InterNational Committee for Information Technology Standards) as an American National Standard.Date of ANSI Approval: 12/21/00Published by American National Sta
3、ndards Institute,25 West 43rd Street, New York, New York 10036Copyright 2002 by Information Technology Industry Council (ITI).All rights reserved.These materials are subject to copyright claims of International Standardization Organization (ISO), InternationalElectrotechnical Commission (IEC), Ameri
4、can 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 standard should
5、be submitted to ITI, 1250 Eye Street NW,Washington, DC 20005.Printed in the United States of AmericaCopyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-ISO/IEC 8825-1:1998(E)PDF disc
6、laimerThis PDF file may contain embedded typefaces. In accordance with Adobes licensing policy, this file may be printed or viewed but shall notbe edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading thisfile, parties acc
7、ept therein the responsibility of not infringing Adobes licensing policy. The ISO Central Secretariat accepts no liability in thisarea.Adobe is a trademark 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 fil
8、e; the PDF-creation parameterswere optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely eventthat a problem relating to it is found, please inform the Central Secretariat at the address given below. ISO/IEC 1998All rights
9、 reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronicor mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs member bodyin the country of the req
10、uester.ISO copyright officeCase postale 56 Gb7 CH-1211 Geneva 20Tel. + 41 22 749 01 11Fax + 41 22 734 10 79E-mail copyrightiso.chWeb www.iso.chPublished by ISO in 1999Printed in Switzerlandii ISO/IEC 1998 All rights reservedCopyright American National Standards Institute Provided by IHS under licens
11、e with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-ISO/IEC 8825-1:1998(E) ISO/IEC 1998 All rights reserved iii_ ,62 ,( _ ,62 ,( _ ,62 ,( _ ,62 ,( ( ,17(51$7,21$/ 67$1$5c44c54c50c18c44c40c38c3c27c27c21c24c16c20c3c29c3c20c28c28c24c3c11c40c12c44c55c56c16c55c3c
12、53c72c70c17c3c59c17c25c28c19c3c11c20c28c28c23c3c40c12,78 7 5( ( 7DEOH (QFRGLQJ RI FODVV RI WDJ)LJXUH LOOXVWUDWHV WKH IRUP RI DQ LGHQWLILHU RFWHW IRU D WSH ZLWK D WDJ ZKRVH QXPEHU LV LQ WKH UDQJH HURWR LQFOXVLYH 7,62 G ( )LJXUH LOOXVWUDWHV WKH IRUP RI WKH LGHQWLILHU RFWHWV IRU D WSH ZLWK D WDJ ZKRVH
13、QXPEHU LV JUHDWHU WKDQ 7,62 G _ ,62 ,( _ ,62 ,( ( %LWV WR RI WKH ILUVW VXEVHTXHQW RFWHW IROORZHG E ELWV WR RI WKH VHFRQG VXEVHTXHQW RFWHW IROORZHG LQ WXUQ E ELWV WR RI HDFK IXUWKHU RFWHW XS WR DQG LQFOXGLQJ WKH ODVW VXEVHTXHQW RFWHW VKDOO EH WKH HQFRGLQJ RI DQ XQVLJQHG ELQDULQWHJHU HTXDO WR WKH QXPE
14、HU RI RFWHWV LQ WKH FRQWHQWV RFWHWV ZLWK ELW RI WKH ILUVW VXEVHTXHQW RFWHW DV WKH PRVWVLJQLILFDQW ELW (DPSOH/ FDQ EH HQFRGHG DV 127( ,Q WKH ORQJ IRUP LW LV D VHQGHUV RSWLRQ ZKHWKHU WR XVH PRUH OHQJWK RFWHWV WKDQ WKH PLQLPXP QHFHVVDU )RU WKH LQGHILQLWH IRUP WKH OHQJWK RFWHWV LQGLFDWH WKDW WKH FRQWHQW
15、V RFWHWV DUH WHUPLQDWHG E HQG RI FRQWHQWVRFWHWV VHH DQG VKDOO FRQVLVW RI D VLQJOH RFWHW 7KH VLQJOH RFWHW VKDOO KDYH ELW VHW WR RQH DQG ELWV WR VHW WR HUR ,I WKLV IRUP RI OHQJWK LV XVHG WKHQ HQG RI FRQWHQWV RFWHWV VHH VKDOO EH SUHVHQW LQ WKH HQFRGLQJ IROORZLQJWKH FRQWHQWV RFWHWV ( (QFRGLQJ RI DQ LQWH
16、JHU YDOXH7KH HQFRGLQJ RI DQ LQWHJHU YDOXH VKDOO EH SULPLWLYH 7KH FRQWHQWV RFWHWV VKDOO FRQVLVW RI RQH RU PRUH RFWHWV ,I WKH FRQWHQWV RFWHWV RI DQ LQWHJHU YDOXH HQFRGLQJ FRQVLVW RI PRUH WKDQ RQH RFWHW WKHQ WKH ELWV RI WKH ILUVW RFWHWDQG ELW RI WKH VHFRQG RFWHW D VKDOO QRW DOO EH RQHV DQGE VKDOO QRW D
17、OO EH HUR 127( 7KHVH UXOHV HQVXUH WKDW DQ LQWHJHU YDOXH LV DOZDV HQFRGHG LQ WKH VPDOOHVW SRVVLEOH QXPEHU RI RFWHWV 7KH FRQWHQWV RFWHWV VKDOO EH D WZRV FRPSOHPHQW ELQDU QXPEHU HTXDO WR WKH LQWHJHU YDOXH DQG FRQVLVWLQJ RIELWV WR RI WKH ILUVW RFWHW IROORZHG E ELWV WR RI WKH VHFRQG RFWHW IROORZHG E ELWV
18、 WR RI HDFK RFWHW LQ WXUQ XS WRDQG LQFOXGLQJ WKH ODVW RFWHW RI WKH FRQWHQWV RFWHWV 127( 7KH YDOXH RI D WZRV FRPSOHPHQW ELQDU QXPEHU LV GHULYHG E QXPEHULQJ WKH ELWV LQ WKH FRQWHQWV RFWHWV VWDUWLQJ ZLWK ELWRI WKH ODVW RFWHW DV ELW HUR DQG HQGLQJ WKH QXPEHULQJ ZLWK ELW RI WKH ILUVW RFWHW (DFK ELW LV DV
19、VLJQHG D QXPHULFDO YDOXH RI 1ZKHUH 1 LV LWV SRVLWLRQ LQ WKH DERYH QXPEHULQJ VHTXHQFH 7KH YDOXH RI WKH WZRV FRPSOHPHQW ELQDU QXPEHU LV REWDLQHG EVXPPLQJ WKH QXPHULFDO YDOXHV DVVLJQHG WR HDFK ELW IRU WKRVH ELWV ZKLFK DUH VHW WR RQH HFOXGLQJ ELW RI WKH ILUVW RFWHW DQG WKHQUHGXFLQJ WKLV YDOXH E WKH QXPH
20、ULFDO YDOXH DVVLJQHG WR ELW RI WKH ILUVW RFWHW LI WKDW ELW LV VHW WR RQH (QFRGLQJ RI DQ HQXPHUDWHG YDOXH7KH HQFRGLQJ RI DQ HQXPHUDWHG YDOXH VKDOO EH WKDW RI WKH LQWHJHU YDOXH ZLWK ZKLFK LW LV DVVRFLDWHG 127( ,W LV SULPLWLYH (QFRGLQJ RI D UHDO YDOXH7KH HQFRGLQJ RI D UHDO YDOXH VKDOO EH SULPLWLYH ,I W
21、KH UHDO YDOXH LV WKH YDOXH HUR WKHUH VKDOO EH QR FRQWHQWV RFWHWV LQ WKH HQFRGLQJ ,I WKH UHDO YDOXH LV QRQ HUR WKHQ WKH EDVH XVHG IRU WKH HQFRGLQJ VKDOO EH % FKRVHQ E WKH VHQGHU ,I % LV RU D ELQDU HQFRGLQJ VSHFLILHG LQ VKDOO EH XVHG ,I % LV D FKDUDFWHU HQFRGLQJ VSHFLILHG LQ VKDOO EHXVHG 127( 7KH IRUP
22、 RI VWRUDJH JHQHUDWLRQ RU SURFHVVLQJ E VHQGHUV DQG UHFHLYHUV DQG WKH IRUP XVHG LQ WKH $61 YDOXH QRWDWLRQDUH DOO LQGHSHQGHQW RI WKH EDVH XVHG IRU WUDQVIHU %LW RI WKH ILUVW FRQWHQWV RFWHW VKDOO EH VHW DV IROORZV D LI ELW WKHQ WKH ELQDU HQFRGLQJ VSHFLILHG LQ DSSOLHV E LI ELW DQG ELW WKHQ WKH GHFLPDO HQ
23、FRGLQJ VSHFLILHG LQ DSSOLHV F LI ELW DQG ELW WKHQ D 6SHFLDO5HDO9DOXH VHH ,78 7 5HF ; _ ,62 ,( ( %LWV WR RI WKH ILUVW FRQWHQWV RFWHWV VKDOO HQFRGH WKH YDOXH RI WKH EDVH % DV IROORZV %LWV WR %DVHEDVH EDVH EDVH 5HVHUYHG IRU IXUWKHU HGLWLRQV RI WKLV 5HFRPPHQGDWLRQ _ ,QWHUQDWLRQDO 6WDQGDUG %LWV WR RI WKH
24、 ILUVW FRQWHQWV RFWHW VKDOO HQFRGH WKH YDOXH RI WKH ELQDU VFDOLQJ IDFWRU ) DV DQ XQVLJQHG ELQDULQWHJHU %LWV WR RI WKH ILUVW FRQWHQWV RFWHW VKDOO HQFRGH WKH IRUPDW RI WKH HSRQHQW DV IROORZV D LI ELWV WR DUH WKHQ WKH VHFRQG FRQWHQWV RFWHW HQFRGHV WKH YDOXH RI WKH HSRQHQW DV D WZRVFRPSOHPHQW ELQDU QXPE
25、HU E LI ELWV WR DUH WKHQ WKH VHFRQG DQG WKLUG FRQWHQWV RFWHWV HQFRGH WKH YDOXH RI WKH HSRQHQW DV D WZRVFRPSOHPHQW ELQDU QXPEHU F LI ELWV WR DUH WKHQ WKH VHFRQG WKLUG DQG IRXUWK FRQWHQWV RFWHWV HQFRGH WKH YDOXH RI WKH HSRQHQW DV DWZRV FRPSOHPHQW ELQDU QXPEHU G LI ELWV WR DUH WKHQ WKH VHFRQG FRQWHQWV
26、RFWHW HQFRGHV WKH QXPEHU RI RFWHWV ; VD DV DQ XQVLJQHGELQDU QXPEHU XVHG WR HQFRGH WKH YDOXH RI WKH HSRQHQW DQG WKH WKLUG XS WR WKH ; SOXV WKLQFOXVLYH FRQWHQWV RFWHWV HQFRGH WKH YDOXH RI WKH HSRQHQW DV D WZRV FRPSOHPHQW ELQDU QXPEHU WKH YDOXH RI ;VKDOO EH DW OHDVW RQH WKH ILUVW QLQH ELWV RI WKH WUDQV
27、PLWWHG HSRQHQW VKDOO QRW EH DOO HURV RU DOO RQHV 7KH UHPDLQLQJ FRQWHQWV RFWHWV HQFRGH WKH YDOXH RI WKH LQWHJHU 1 VHH DV DQ XQVLJQHG ELQDU QXPEHU 127( )RU QRQ FDQRQLFDO %(5 WKHUH LV QR UHTXLUHPHQW IRU IORDWLQJ SRLQW QRUPDOLDWLRQ RI WKH PDQWLVVD 7KLV DOORZV DQLPSOHPHQWRU WR WUDQVPLW RFWHWV FRQWDLQLQJ
28、WKH PDQWLVVD ZLWKRXW SHUIRUPLQJ VKLIW IXQFWLRQV RQ WKH PDQWLVVD LQ PHPRU ,Q WKH3/, _ ,62 ,( ( (QFRGLQJ RI D YDOXH RI WKH HPEHGGHG SGY WSH7KH HQFRGLQJ RI D YDOXH RI WKH HPEHGGHG SGY WSH VKDOO EH WKH %(5 HQFRGLQJ RI WKH WSH DV GHILQHG LQ RI,78 7 5HF ; _ ,62 ,( _ ,62 ,(3/, _ ,62 ,( _ ,62 ,( _ ,62 ,( (
29、,I WKH HQFRGLQJ RI WKH GDWD YDOXH XVLQJ WKH DJUHHG RU QHJRWLDWHG HQFRGLQJ LV DQ LQWHJUDO QXPEHU RI RFWHWV WKHQWKH VHQGLQJ LPSOHPHQWDWLRQ VKDOO XVH DQ RI WKH HQFRGLQJ FKRLFHV RFWHW DOLJQHG DUELWUDUDV DQ LPSOHPHQWDWLRQ RSWLRQ 127( $ GDWD YDOXH ZKLFK LV D VHULHV RI $61 WSHV DQG IRU ZKLFK WKH WUDQVIHU V
30、QWD VSHFLILHV VLPSOH FRQFDWHQDWLRQ RI WKHRFWHW VWULQJV SURGXFHG E DSSOLQJ WKH $61 %DVLF (QFRGLQJ 5XOHV WR HDFK $61 WSH IDOOV LQWR WKLV FDWHJRU QRW WKDW RI,I WKH HQFRGLQJ RI WKH GDWD YDOXH XVLQJ WKH DJUHHG RU QHJRWLDWHG HQFRGLQJ LV QRW DQ LQWHJUDO QXPEHU RI RFWHWV WKH HQFRGLQJ FKRLFH VKDOO EH DUELWUD
31、U ,I WKH HQFRGLQJ FKRLFH LV FKRVHQ DV VLQJOH $61 WSH WKHQ WKH $61 WSH VKDOO UHSODFH WKH RSHQ WSH ZLWK D YDOXH HTXDO WR WKH GDWD YDOXH WR EH HQFRGHG 127( 7KH UDQJH RI YDOXHV ZKLFK PLJKW RFFXU LQ WKH RSHQ WSH LV GHWHUPLQHG E WKH UHJLVWUDWLRQ RI WKH REMHFW LGHQWLILHU YDOXHDVVRFLDWHG ZLWK WKH GLUHFW UHI
32、HUHQFH DQG RU WKH LQWHJHU YDOXH DVVRFLDWHG ZLWK WKH LQGLUHFW UHIHUHQFH ,I WKH HQFRGLQJ FKRLFH LV FKRVHQ DV RFWHW DOLJQHG WKHQ WKH GDWD YDOXH VKDOO EH HQFRGHG DFFRUGLQJ WR WKHDJUHHG RU QHJRWLDWHG WUDQVIHU VQWD DQG WKH UHVXOWLQJ RFWHWV VKDOO IRUP WKH YDOXH RI WKH RFWHWVWULQJ ,I WKH HQFRGLQJ FKRLFH LV
33、FKRVHQ DV DUELWUDU WKHQ WKH GDWD YDOXH VKDOO EH HQFRGHG DFFRUGLQJ WR WKH DJUHHGRU QHJRWLDWHG WUDQVIHU VQWD DQG WKH UHVXOW VKDOO IRUP WKH YDOXH RI WKH ELWVWULQJ (QFRGLQJ RI DQ REMHFW LGHQWLILHU YDOXH7KH HQFRGLQJ RI DQ REMHFW LGHQWLILHU YDOXH VKDOO EH SULPLWLYH 7KH FRQWHQWV RFWHWV VKDOO EH DQ RUGHUHG
34、OLVW RI HQFRGLQJV RI VXELGHQWLILHUV VHH DQG FRQFDWHQDWHG WRJHWKHU (DFK VXELGHQWLILHU LV UHSUHVHQWHG DV D VHULHV RI RQH RU PRUH RFWHWV %LW RI HDFK RFWHW LQGLFDWHV ZKHWKHU LW LV WKH ODVW LQWKH VHULHV ELW RI WKH ODVW RFWHW LV HUR ELW RI HDFK SUHFHGLQJ RFWHW LV RQH %LWV WR RI WKH RFWHWV LQ WKH VHULHVFRO
35、OHFWLYHO HQFRGH WKH VXELGHQWLILHU + 81,9(56$/ ,03/, _,62 ,( _ ,62 ,( _ ,62 ,( _ ,62 ,( _ ,62 ,( ( L _ ,62 ,( _ ,62 ,( _ ,62 ,( ( 5HDO YDOXHV,I WKH HQFRGLQJ UHSUHVHQWV D UHDO YDOXH ZKRVH EDVH % LV WKHQ ELQDU HQFRGLQJ HPSORLQJ EDVH VKDOO EHXVHG %HIRUH HQFRGLQJ WKH PDQWLVVD 0 DQG HSRQHQW ( DUH FKRVHQ V
36、R WKDW 0 LV HLWKHU RU LV RGG 127( 7KLV LV QHFHVVDU EHFDXVH WKH VDPH UHDO YDOXH FDQ EH UHJDUGHG DV ERWK 0 ( DQG 0 ( ZLWK 0 0 LI IRUVRPH QRQ HUR LQWHJHU Q 0 0 Q( ( Q,Q HQFRGLQJ WKH YDOXH WKH ELQDU VFDOLQJ IDFWRU ) VKDOO EH HUR DQG 0 DQG ( VKDOO HDFK EH UHSUHVHQWHG LQ WKH IHZHVWRFWHWV QHFHVVDU ,I WKH H
37、QFRGLQJ UHSUHVHQWV D UHDO YDOXH ZKRVH EDVH % LV WKHQ GHFLPDO HQFRGLQJ VKDOO EH XVHG ,Q IRUPLQJ WKHHQFRGLQJ WKH IROORZLQJ DSSOLHV 7KH ,62 15 IRUP VKDOO EH XVHG VHH 63$ _ ,62 ,( ( 7KH GHFLPDO SRLQW HOHPHQW LI SUHVHQW VKDOO EH WKH SRLQW RSWLRQ 0LGQLJKW *07 VKDOO EH UHSUHVHQWHG LQ WKH IRUP $33/,&$7,21 ,
38、03/,&,7 6(7 QDPH 1DPH WLWOH 9LVLEOH6WULQJ QXPEHU (PSORHH1XPEHU GDWH2I+LUH DWH QDPH2I6SRXVH 1DPH FKLOGUHQ ,03/,&,76(48(1&( 2) &KLOG,QIRUPDWLRQ ()$8/7 &KLOG,QIRUPDWLRQ 6(7 QDPH 1DPH GDWH2I%LUWK DWH1DPH $33/,&$7,21 ,03/,&,7 6(48(1&(JLYHQ1DPH 9LVLEOH6WULQJ LQLWLDO 9LVLEOH6WULQJ IDPLO1DPH 9LVLEOH6WULQJ(P
39、SORHH1XPEHU $33/,&$7,21 ,03/,&,7 ,17(*(5DWH $33/,&$7,21 ,03/,&,7 9LVLEOH6WULQJ /HQJWK &RQWHQWV$ 6HW /HQJWK &RQWHQWV)1DPH /HQJWK &RQWHQWV9LVLEOH6WULQJ /HQJWK &RQWHQWV$ 5DOSK 9LVLEOH6WULQJ /HQJWK &RQWHQWV$ 7 9LVLEOH6WULQJ /HQJWK &RQWHQWV$ 6PLWK DWH RI%LUWK /HQJWK &RQWHQWV$ $DWH /HQJWK &RQWHQWVCopyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-