| 1 |
// SPDX-License-Identifier: MPL-2.0 |
| 2 |
// (c) Hare authors <https://harelang.org> |
| 3 |
// This is an auto generated file. Do not edit. |
| 4 |
|
| 5 |
use encoding::asn1; |
| 6 |
|
| 7 |
const _db = asn1::oiddb { |
| 8 |
lut = [ |
| 9 |
0x03, 0x2b, 0x65, 0x70, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, |
| 10 |
0x01, 0x01, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x05, |
| 11 |
0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x08, 0x09, 0x2a, |
| 12 |
0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0a, 0x09, 0x2a, 0x86, 0x48, |
| 13 |
0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0e, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, |
| 14 |
0x0d, 0x01, 0x01, 0x0b, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, |
| 15 |
0x01, 0x0c, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0d, |
| 16 |
0x05, 0x2b, 0x0e, 0x03, 0x02, 0x1a, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, |
| 17 |
0x03, 0x04, 0x02, 0x01, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, |
| 18 |
0x02, 0x02, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03, |
| 19 |
0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x04, 0x07, 0x2a, |
| 20 |
0x86, 0x48, 0xce, 0x3d, 0x02, 0x01, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, |
| 21 |
0x03, 0x01, 0x07, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07, |
| 22 |
0x05, 0x2b, 0x81, 0x04, 0x00, 0x22, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x23, |
| 23 |
0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x01, 0x08, 0x2a, 0x86, 0x48, |
| 24 |
0xce, 0x3d, 0x04, 0x03, 0x01, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, |
| 25 |
0x03, 0x02, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03, 0x03, 0x08, |
| 26 |
0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03, 0x04, 0x03, 0x55, 0x04, 0x03, |
| 27 |
0x03, 0x55, 0x04, 0x04, 0x03, 0x55, 0x04, 0x05, 0x03, 0x55, 0x04, 0x06, |
| 28 |
0x03, 0x55, 0x04, 0x07, 0x03, 0x55, 0x04, 0x08, 0x03, 0x55, 0x04, 0x0a, |
| 29 |
0x03, 0x55, 0x04, 0x0b, 0x03, 0x55, 0x04, 0x0c, 0x03, 0x55, 0x04, 0x2a, |
| 30 |
0x03, 0x55, 0x04, 0x2b, 0x03, 0x55, 0x04, 0x2b, 0x03, 0x55, 0x04, 0x2e, |
| 31 |
0x03, 0x55, 0x04, 0x41, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, |
| 32 |
0x01, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x02, 0x0a, 0x09, |
| 33 |
0x92, 0x26, 0x89, 0x93, 0xf2, 0x2c, 0x64, 0x01, 0x19, 0x03, 0x55, 0x1d, |
| 34 |
0x09, 0x03, 0x55, 0x1d, 0x0e, 0x03, 0x55, 0x1d, 0x0f, 0x03, 0x55, 0x1d, |
| 35 |
0x11, 0x03, 0x55, 0x1d, 0x12, 0x03, 0x55, 0x1d, 0x13, 0x03, 0x55, 0x1d, |
| 36 |
0x1e, 0x03, 0x55, 0x1d, 0x1f, 0x03, 0x55, 0x1d, 0x20, 0x03, 0x55, 0x1d, |
| 37 |
0x21, 0x03, 0x55, 0x1d, 0x23, 0x03, 0x55, 0x1d, 0x24, 0x03, 0x55, 0x1d, |
| 38 |
0x25, 0x03, 0x55, 0x1d, 0x2e, 0x03, 0x55, 0x1d, 0x36, 0x08, 0x2b, 0x06, |
| 39 |
0x01, 0x05, 0x05, 0x07, 0x01, 0x01, 0x04, 0x55, 0x1d, 0x25, 0x00, 0x08, |
| 40 |
0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01, 0x08, 0x2b, 0x06, 0x01, |
| 41 |
0x05, 0x05, 0x07, 0x03, 0x02, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, |
| 42 |
0x03, 0x03, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04, 0x08, |
| 43 |
0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08, 0x08, 0x2b, 0x06, 0x01, |
| 44 |
0x05, 0x05, 0x07, 0x03, 0x09, |
| 45 |
], |
| 46 |
index = [ |
| 47 |
0x0000, 0x0004, 0x000e, 0x0018, 0x0022, 0x002c, 0x0036, 0x0040, 0x004a, |
| 48 |
0x0054, 0x005a, 0x0064, 0x006e, 0x0078, 0x0082, 0x008a, 0x0093, 0x009c, |
| 49 |
0x00a2, 0x00a8, 0x00b0, 0x00b9, 0x00c2, 0x00cb, 0x00d4, 0x00d8, 0x00dc, |
| 50 |
0x00e0, 0x00e4, 0x00e8, 0x00ec, 0x00f0, 0x00f4, 0x00f8, 0x00fc, 0x0100, |
| 51 |
0x0104, 0x0108, 0x010c, 0x0115, 0x011e, 0x0129, 0x012d, 0x0131, 0x0135, |
| 52 |
0x0139, 0x013d, 0x0141, 0x0145, 0x0149, 0x014d, 0x0151, 0x0155, 0x0159, |
| 53 |
0x015d, 0x0161, 0x0165, 0x016e, 0x0173, 0x017c, 0x0185, 0x018e, 0x0197, |
| 54 |
0x01a0, |
| 55 |
], |
| 56 |
names = [ |
| 57 |
"ed25519", |
| 58 |
"rsaEncryption", |
| 59 |
"sha1WithRSAEncryption", |
| 60 |
"id-mgf1", |
| 61 |
"rsassa-pss", |
| 62 |
"sha224WithRSAEncryption", |
| 63 |
"sha256WithRSAEncryption", |
| 64 |
"sha384WithRSAEncryption", |
| 65 |
"sha512WithRSAEncryption", |
| 66 |
"id-sha1", |
| 67 |
"id-sha256", |
| 68 |
"id-sha384", |
| 69 |
"id-sha512", |
| 70 |
"id-sha224", |
| 71 |
"id-ecPublicKey", |
| 72 |
"prime256v1", |
| 73 |
"ansix9p256r1", |
| 74 |
"ansix9p384r1", |
| 75 |
"ansix9p521r1", |
| 76 |
"ecdsa-with-SHA1", |
| 77 |
"ecdsa-with-SHA224", |
| 78 |
"ecdsa-with-SHA256", |
| 79 |
"ecdsa-with-SHA384", |
| 80 |
"ecdsa-with-SHA512", |
| 81 |
"id-at-commonName", |
| 82 |
"id-at-surname", |
| 83 |
"id-at-serialNumber", |
| 84 |
"id-at-countryName", |
| 85 |
"id-at-localityName", |
| 86 |
"id-at-stateOrProvinceName", |
| 87 |
"id-at-organizationName", |
| 88 |
"id-at-organizationalUnitName", |
| 89 |
"id-at-title", |
| 90 |
"id-at-givenName", |
| 91 |
"id-at-initials", |
| 92 |
"id-at-generationQualifier", |
| 93 |
"id-at-dnQualifier", |
| 94 |
"id-at-pseudonym", |
| 95 |
"id-ad-ocsp", |
| 96 |
"id-ad-caIssuers", |
| 97 |
"id-domainComponent", |
| 98 |
"id-ce-subjectDirectoryAttributes", |
| 99 |
"id-ce-subjectKeyIdentifier", |
| 100 |
"id-ce-keyUsage", |
| 101 |
"id-ce-subjectAltName", |
| 102 |
"id-ce-issuerAltName", |
| 103 |
"id-ce-basicConstraints", |
| 104 |
"id-ce-nameConstraints", |
| 105 |
"id-ce-cRLDistributionPoints", |
| 106 |
"id-ce-certificatePolicies", |
| 107 |
"id-ce-policyMappings", |
| 108 |
"id-ce-authorityKeyIdentifier", |
| 109 |
"id-ce-policyConstraints", |
| 110 |
"id-ce-extKeyUsage", |
| 111 |
"id-ce-freshestCRL", |
| 112 |
"id-ce-inhibitAnyPolicy", |
| 113 |
"id-pe-authorityInfoAccess", |
| 114 |
"anyExtendedKeyUsage", |
| 115 |
"id-kp-serverAuth", |
| 116 |
"id-kp-clientAuth", |
| 117 |
"id-kp-codeSigning", |
| 118 |
"id-kp-emailProtection", |
| 119 |
"id-kp-timeStamping", |
| 120 |
"id-kp-OCSPSigning", |
| 121 |
], |
| 122 |
}; |
| 123 |
|
| 124 |
// Database |
| 125 |
export const db = &_db; |
| 126 |
|
| 127 |
// id: 1.3.101.112 |
| 128 |
// name: ed25519 |
| 129 |
export def ED25519: asn1::oid = 0; |
| 130 |
|
| 131 |
// id: 1.2.840.113549.1.1.1 |
| 132 |
// name: rsaEncryption |
| 133 |
export def RSA_ENCRYPTION: asn1::oid = 1; |
| 134 |
|
| 135 |
// id: 1.2.840.113549.1.1.5 |
| 136 |
// name: sha1WithRSAEncryption |
| 137 |
export def SHA1_WITH_RSAENCRYPTION: asn1::oid = 2; |
| 138 |
|
| 139 |
// id: 1.2.840.113549.1.1.8 |
| 140 |
// name: id-mgf1 |
| 141 |
export def ID_MGF1: asn1::oid = 3; |
| 142 |
|
| 143 |
// id: 1.2.840.113549.1.1.10 |
| 144 |
// name: rsassa-pss |
| 145 |
export def RSASSA_PSS: asn1::oid = 4; |
| 146 |
|
| 147 |
// id: 1.2.840.113549.1.1.14 |
| 148 |
// name: sha224WithRSAEncryption |
| 149 |
export def SHA224_WITH_RSAENCRYPTION: asn1::oid = 5; |
| 150 |
|
| 151 |
// id: 1.2.840.113549.1.1.11 |
| 152 |
// name: sha256WithRSAEncryption |
| 153 |
export def SHA256_WITH_RSAENCRYPTION: asn1::oid = 6; |
| 154 |
|
| 155 |
// id: 1.2.840.113549.1.1.12 |
| 156 |
// name: sha384WithRSAEncryption |
| 157 |
export def SHA384_WITH_RSAENCRYPTION: asn1::oid = 7; |
| 158 |
|
| 159 |
// id: 1.2.840.113549.1.1.13 |
| 160 |
// name: sha512WithRSAEncryption |
| 161 |
export def SHA512_WITH_RSAENCRYPTION: asn1::oid = 8; |
| 162 |
|
| 163 |
// id: 1.3.14.3.2.26 |
| 164 |
// name: id-sha1 |
| 165 |
export def ID_SHA1: asn1::oid = 9; |
| 166 |
|
| 167 |
// id: 2.16.840.1.101.3.4.2.1 |
| 168 |
// name: id-sha256 |
| 169 |
export def ID_SHA256: asn1::oid = 10; |
| 170 |
|
| 171 |
// id: 2.16.840.1.101.3.4.2.2 |
| 172 |
// name: id-sha384 |
| 173 |
export def ID_SHA384: asn1::oid = 11; |
| 174 |
|
| 175 |
// id: 2.16.840.1.101.3.4.2.3 |
| 176 |
// name: id-sha512 |
| 177 |
export def ID_SHA512: asn1::oid = 12; |
| 178 |
|
| 179 |
// id: 2.16.840.1.101.3.4.2.4 |
| 180 |
// name: id-sha224 |
| 181 |
export def ID_SHA224: asn1::oid = 13; |
| 182 |
|
| 183 |
// id: 1.2.840.10045.2.1 |
| 184 |
// name: id-ecPublicKey |
| 185 |
export def ID_EC_PUBLIC_KEY: asn1::oid = 14; |
| 186 |
|
| 187 |
// id: 1.2.840.10045.3.1.7 |
| 188 |
// name: prime256v1 |
| 189 |
export def PRIME256V1: asn1::oid = 15; |
| 190 |
|
| 191 |
// id: 1.2.840.10045.3.1.7 |
| 192 |
// name: ansix9p256r1 |
| 193 |
export def ANSIX9P256R1: asn1::oid = 16; |
| 194 |
|
| 195 |
// id: 1.3.132.0.34 |
| 196 |
// name: ansix9p384r1 |
| 197 |
export def ANSIX9P384R1: asn1::oid = 17; |
| 198 |
|
| 199 |
// id: 1.3.132.0.35 |
| 200 |
// name: ansix9p521r1 |
| 201 |
export def ANSIX9P521R1: asn1::oid = 18; |
| 202 |
|
| 203 |
// id: 1.2.840.10045.4.1 |
| 204 |
// name: ecdsa-with-SHA1 |
| 205 |
export def ECDSA_WITH_SHA1: asn1::oid = 19; |
| 206 |
|
| 207 |
// id: 1.2.840.10045.4.3.1 |
| 208 |
// name: ecdsa-with-SHA224 |
| 209 |
export def ECDSA_WITH_SHA224: asn1::oid = 20; |
| 210 |
|
| 211 |
// id: 1.2.840.10045.4.3.2 |
| 212 |
// name: ecdsa-with-SHA256 |
| 213 |
export def ECDSA_WITH_SHA256: asn1::oid = 21; |
| 214 |
|
| 215 |
// id: 1.2.840.10045.4.3.3 |
| 216 |
// name: ecdsa-with-SHA384 |
| 217 |
export def ECDSA_WITH_SHA384: asn1::oid = 22; |
| 218 |
|
| 219 |
// id: 1.2.840.10045.4.3.4 |
| 220 |
// name: ecdsa-with-SHA512 |
| 221 |
export def ECDSA_WITH_SHA512: asn1::oid = 23; |
| 222 |
|
| 223 |
// id: 2.5.4.3 |
| 224 |
// name: id-at-commonName |
| 225 |
export def ID_AT_COMMON_NAME: asn1::oid = 24; |
| 226 |
|
| 227 |
// id: 2.5.4.4 |
| 228 |
// name: id-at-surname |
| 229 |
export def ID_AT_SURNAME: asn1::oid = 25; |
| 230 |
|
| 231 |
// id: 2.5.4.5 |
| 232 |
// name: id-at-serialNumber |
| 233 |
export def ID_AT_SERIAL_NUMBER: asn1::oid = 26; |
| 234 |
|
| 235 |
// id: 2.5.4.6 |
| 236 |
// name: id-at-countryName |
| 237 |
export def ID_AT_COUNTRY_NAME: asn1::oid = 27; |
| 238 |
|
| 239 |
// id: 2.5.4.7 |
| 240 |
// name: id-at-localityName |
| 241 |
export def ID_AT_LOCALITY_NAME: asn1::oid = 28; |
| 242 |
|
| 243 |
// id: 2.5.4.8 |
| 244 |
// name: id-at-stateOrProvinceName |
| 245 |
export def ID_AT_STATE_OR_PROVINCE_NAME: asn1::oid = 29; |
| 246 |
|
| 247 |
// id: 2.5.4.10 |
| 248 |
// name: id-at-organizationName |
| 249 |
export def ID_AT_ORGANIZATION_NAME: asn1::oid = 30; |
| 250 |
|
| 251 |
// id: 2.5.4.11 |
| 252 |
// name: id-at-organizationalUnitName |
| 253 |
export def ID_AT_ORGANIZATIONAL_UNIT_NAME: asn1::oid = 31; |
| 254 |
|
| 255 |
// id: 2.5.4.12 |
| 256 |
// name: id-at-title |
| 257 |
export def ID_AT_TITLE: asn1::oid = 32; |
| 258 |
|
| 259 |
// id: 2.5.4.42 |
| 260 |
// name: id-at-givenName |
| 261 |
export def ID_AT_GIVEN_NAME: asn1::oid = 33; |
| 262 |
|
| 263 |
// id: 2.5.4.43 |
| 264 |
// name: id-at-initials |
| 265 |
export def ID_AT_INITIALS: asn1::oid = 34; |
| 266 |
|
| 267 |
// id: 2.5.4.43 |
| 268 |
// name: id-at-generationQualifier |
| 269 |
export def ID_AT_GENERATION_QUALIFIER: asn1::oid = 35; |
| 270 |
|
| 271 |
// id: 2.5.4.46 |
| 272 |
// name: id-at-dnQualifier |
| 273 |
export def ID_AT_DN_QUALIFIER: asn1::oid = 36; |
| 274 |
|
| 275 |
// id: 2.5.4.65 |
| 276 |
// name: id-at-pseudonym |
| 277 |
export def ID_AT_PSEUDONYM: asn1::oid = 37; |
| 278 |
|
| 279 |
// id: 1.3.6.1.5.5.7.48.1 |
| 280 |
// name: id-ad-ocsp |
| 281 |
export def ID_AD_OCSP: asn1::oid = 38; |
| 282 |
|
| 283 |
// id: 1.3.6.1.5.5.7.48.2 |
| 284 |
// name: id-ad-caIssuers |
| 285 |
export def ID_AD_CA_ISSUERS: asn1::oid = 39; |
| 286 |
|
| 287 |
// id: 0.9.2342.19200300.100.1.25 |
| 288 |
// name: id-domainComponent |
| 289 |
export def ID_DOMAIN_COMPONENT: asn1::oid = 40; |
| 290 |
|
| 291 |
// id: 2.5.29.9 |
| 292 |
// name: id-ce-subjectDirectoryAttributes |
| 293 |
export def ID_CE_SUBJECT_DIRECTORY_ATTRIBUTES: asn1::oid = 41; |
| 294 |
|
| 295 |
// id: 2.5.29.14 |
| 296 |
// name: id-ce-subjectKeyIdentifier |
| 297 |
export def ID_CE_SUBJECT_KEY_IDENTIFIER: asn1::oid = 42; |
| 298 |
|
| 299 |
// id: 2.5.29.15 |
| 300 |
// name: id-ce-keyUsage |
| 301 |
export def ID_CE_KEY_USAGE: asn1::oid = 43; |
| 302 |
|
| 303 |
// id: 2.5.29.17 |
| 304 |
// name: id-ce-subjectAltName |
| 305 |
export def ID_CE_SUBJECT_ALT_NAME: asn1::oid = 44; |
| 306 |
|
| 307 |
// id: 2.5.29.18 |
| 308 |
// name: id-ce-issuerAltName |
| 309 |
export def ID_CE_ISSUER_ALT_NAME: asn1::oid = 45; |
| 310 |
|
| 311 |
// id: 2.5.29.19 |
| 312 |
// name: id-ce-basicConstraints |
| 313 |
export def ID_CE_BASIC_CONSTRAINTS: asn1::oid = 46; |
| 314 |
|
| 315 |
// id: 2.5.29.30 |
| 316 |
// name: id-ce-nameConstraints |
| 317 |
export def ID_CE_NAME_CONSTRAINTS: asn1::oid = 47; |
| 318 |
|
| 319 |
// id: 2.5.29.31 |
| 320 |
// name: id-ce-cRLDistributionPoints |
| 321 |
export def ID_CE_C_RLDISTRIBUTION_POINTS: asn1::oid = 48; |
| 322 |
|
| 323 |
// id: 2.5.29.32 |
| 324 |
// name: id-ce-certificatePolicies |
| 325 |
export def ID_CE_CERTIFICATE_POLICIES: asn1::oid = 49; |
| 326 |
|
| 327 |
// id: 2.5.29.33 |
| 328 |
// name: id-ce-policyMappings |
| 329 |
export def ID_CE_POLICY_MAPPINGS: asn1::oid = 50; |
| 330 |
|
| 331 |
// id: 2.5.29.35 |
| 332 |
// name: id-ce-authorityKeyIdentifier |
| 333 |
export def ID_CE_AUTHORITY_KEY_IDENTIFIER: asn1::oid = 51; |
| 334 |
|
| 335 |
// id: 2.5.29.36 |
| 336 |
// name: id-ce-policyConstraints |
| 337 |
export def ID_CE_POLICY_CONSTRAINTS: asn1::oid = 52; |
| 338 |
|
| 339 |
// id: 2.5.29.37 |
| 340 |
// name: id-ce-extKeyUsage |
| 341 |
export def ID_CE_EXT_KEY_USAGE: asn1::oid = 53; |
| 342 |
|
| 343 |
// id: 2.5.29.46 |
| 344 |
// name: id-ce-freshestCRL |
| 345 |
export def ID_CE_FRESHEST_CRL: asn1::oid = 54; |
| 346 |
|
| 347 |
// id: 2.5.29.54 |
| 348 |
// name: id-ce-inhibitAnyPolicy |
| 349 |
export def ID_CE_INHIBIT_ANY_POLICY: asn1::oid = 55; |
| 350 |
|
| 351 |
// id: 1.3.6.1.5.5.7.1.1 |
| 352 |
// name: id-pe-authorityInfoAccess |
| 353 |
export def ID_PE_AUTHORITY_INFO_ACCESS: asn1::oid = 56; |
| 354 |
|
| 355 |
// id: 2.5.29.37.0 |
| 356 |
// name: anyExtendedKeyUsage |
| 357 |
export def ANY_EXTENDED_KEY_USAGE: asn1::oid = 57; |
| 358 |
|
| 359 |
// id: 1.3.6.1.5.5.7.3.1 |
| 360 |
// name: id-kp-serverAuth |
| 361 |
export def ID_KP_SERVER_AUTH: asn1::oid = 58; |
| 362 |
|
| 363 |
// id: 1.3.6.1.5.5.7.3.2 |
| 364 |
// name: id-kp-clientAuth |
| 365 |
export def ID_KP_CLIENT_AUTH: asn1::oid = 59; |
| 366 |
|
| 367 |
// id: 1.3.6.1.5.5.7.3.3 |
| 368 |
// name: id-kp-codeSigning |
| 369 |
export def ID_KP_CODE_SIGNING: asn1::oid = 60; |
| 370 |
|
| 371 |
// id: 1.3.6.1.5.5.7.3.4 |
| 372 |
// name: id-kp-emailProtection |
| 373 |
export def ID_KP_EMAIL_PROTECTION: asn1::oid = 61; |
| 374 |
|
| 375 |
// id: 1.3.6.1.5.5.7.3.8 |
| 376 |
// name: id-kp-timeStamping |
| 377 |
export def ID_KP_TIME_STAMPING: asn1::oid = 62; |
| 378 |
|
| 379 |
// id: 1.3.6.1.5.5.7.3.9 |
| 380 |
// name: id-kp-OCSPSigning |
| 381 |
export def ID_KP_OCSPSIGNING: asn1::oid = 63; |