1<?php 2/* 3 * Copyright 2008-2010 GuardTime AS 4 * 5 * This file is part of the GuardTime PHP SDK. 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20/** 21 * @package asn1 22 */ 23 24/** 25 * ASN.1 Boolean tag 26 * @see ASN1Boolean 27 */ 28define('ASN1_TAG_BOOLEAN', 0x01); 29 30/** 31 * ASN.1 Integer tag 32 * @see ASN1Integer 33 */ 34define('ASN1_TAG_INTEGER', 0x02); 35 36/** 37 * ASN.1 BitString tag 38 * @see ASN1BitString 39 */ 40define('ASN1_TAG_BIT_STRING', 0x03); 41 42/** 43 * ASN.1 OctetString tag 44 * @see ASN1OctetString 45 */ 46define('ASN1_TAG_OCTET_STRING', 0x04); 47 48/** 49 * ASN.1 Null tag 50 * @see ASN1Null 51 */ 52define('ASN1_TAG_NULL', 0x05); 53 54/** 55 * ASN.1 Object Id tag 56 * @see ASN1ObjectId 57 */ 58define('ASN1_TAG_OBJECT_ID', 0x06); 59 60/** 61 * ASN.1 External tag, not implemented 62 */ 63define('ASN1_TAG_EXTERNAL', 0x08); 64 65/** 66 * ASN.1 Enumerated tag, not implemented 67 */ 68define('ASN1_TAG_ENUMERATED', 0x0a); 69 70/** 71 * ASN.1 Sequence tag 72 * @see ASN1Sequence 73 */ 74define('ASN1_TAG_SEQUENCE', 0x10); 75 76/** 77 * ASN.1 Sequence Of tag 78 * @see ASN1Sequence 79 */ 80define('ASN1_TAG_SEQUENCE_OF', 0x10); 81 82/** 83 * ASN.1 Set tag 84 * @see ASN1Set 85 */ 86define('ASN1_TAG_SET', 0x11); 87 88/** 89 * ASN.1 Set Of tag 90 * @see ASN1Set 91 */ 92define('ASN1_TAG_SET_OF', 0x11); 93 94/** 95 * ASN/1 NumericString tag, not implemented 96 */ 97define('ASN1_TAG_NUMERIC_STRING', 0x12); 98 99/** 100 * ASN.1 PrintableString tag 101 * @see ASN1PrintableString 102 */ 103define('ASN1_TAG_PRINTABLE_STRING', 0x13); 104 105/** 106 * ASN.1 T61String tag 107 * @see ASN1T61String 108 */ 109define('ASN1_TAG_T61_STRING', 0x14); 110 111/** 112 * ASN.1 VideoTextString tag, not implemented 113 */ 114define('ASN1_TAG_VIDEOTEXT_STRING', 0x15); 115 116/** 117 * ASN.1 IA5String tag 118 * @see ASN1IA5String 119 */ 120define('ASN1_TAG_IA5_STRING', 0x16); 121 122/** 123 * ASN.1 UTCTime tag 124 * @see ASN1UTCTime 125 */ 126define('ASN1_TAG_UTC_TIME', 0x17); 127 128/** 129 * ASN.1 GeneralizedTime tag 130 * @see ASN1GeneralizedTime 131 */ 132define('ASN1_TAG_GENERALIZED_TIME', 0x18); 133 134/** 135 * ASN.1 GraphicString tag, not implemented 136 */ 137define('ASN1_TAG_GRAPHIC_STRING', 0x19); 138 139/** 140 * ASN.1 VisibleString tag, not implemented 141 */ 142define('ASN1_TAG_VISIBLE_STRING', 0x1a); 143 144/** 145 * ASN.1 GeneralString tag, not implemented 146 */ 147define('ASN1_TAG_GENERAL_STRING', 0x1b); 148 149/** 150 * ASN.1 UniversalString tag, not implemented 151 */ 152define('ASN1_TAG_UNIVERSAL_STRING', 0x1c); 153 154/** 155 * ASN.1 BMPString tag 156 * @see ASN1BMPString 157 */ 158define('ASN1_TAG_BMP_STRING', 0x1e); 159 160/** 161 * ASN.1 UTF8String tag 162 * @see ASN1UTF8String 163 */ 164define('ASN1_TAG_UTF8_STRING', 0x0c); 165 166/** 167 * ASN.1 universal tag class 168 */ 169define('ASN1_TAG_UNIVERSAL', 'UNIVERSAL'); 170 171/** 172 * ASN.1 application specific tag class 173 */ 174define('ASN1_TAG_APPLICATION', 'APPLICATION'); 175 176/** 177 * ASN.1 context specific tag class 178 */ 179define('ASN1_TAG_CONTEXT', 'CONTEXT'); 180 181/** 182 * ASN.1 private tag class 183 */ 184define('ASN1_TAG_PRIVATE', 'PRIVATE'); 185 186/** 187 * ASN.1 tag type constructed 188 */ 189define('ASN1_TAG_CONSTRUCTED', 'CONS'); 190 191/** 192 * ASN.1 tag type primitive 193 */ 194define('ASN1_TAG_PRIMITIVE', 'PRIM'); 195 196?> 197