00001 """OID database.
00002
00003 $Id: oids.py 1873 2008-06-12 02:49:41Z sra $
00004
00005 Copyright (C) 2007--2008 American Registry for Internet Numbers ("ARIN")
00006
00007 Permission to use, copy, modify, and distribute this software for any
00008 purpose with or without fee is hereby granted, provided that the above
00009 copyright notice and this permission notice appear in all copies.
00010
00011 THE SOFTWARE IS PROVIDED "AS IS" AND ARIN DISCLAIMS ALL WARRANTIES WITH
00012 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00013 AND FITNESS. IN NO EVENT SHALL ARIN BE LIABLE FOR ANY SPECIAL, DIRECT,
00014 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00015 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00016 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00017 PERFORMANCE OF THIS SOFTWARE.
00018 """
00019
00020
00021
00022
00023 oid2name = {
00024 (1, 2, 840, 113549, 1, 1, 11) : "sha256WithRSAEncryption",
00025 (1, 2, 840, 113549, 1, 1, 12) : "sha384WithRSAEncryption",
00026 (1, 2, 840, 113549, 1, 1, 13) : "sha512WithRSAEncryption",
00027 (1, 2, 840, 113549, 1, 7, 1) : "id-data",
00028 (1, 2, 840, 113549, 1, 9, 16) : "id-smime",
00029 (1, 2, 840, 113549, 1, 9, 16, 1) : "id-ct",
00030 (1, 2, 840, 113549, 1, 9, 16, 1, 24) : "id-ct-routeOriginAttestation",
00031 (1, 2, 840, 113549, 1, 9, 16, 1, 26) : "id-ct-rpkiManifest",
00032 (1, 2, 840, 113549, 1, 9, 16, 1, 28) : "id-ct-xml",
00033 (1, 3, 6, 1, 5, 5, 7, 1, 1) : "authorityInfoAccess",
00034 (1, 3, 6, 1, 5, 5, 7, 1, 11) : "subjectInfoAccess",
00035 (1, 3, 6, 1, 5, 5, 7, 1, 7) : "sbgp-ipAddrBlock",
00036 (1, 3, 6, 1, 5, 5, 7, 1, 8) : "sbgp-autonomousSysNum",
00037 (1, 3, 6, 1, 5, 5, 7, 14, 2) : "id-cp-ipAddr-asNumber",
00038 (1, 3, 6, 1, 5, 5, 7, 48, 10) : "id-ad-rpkiManifest",
00039 (1, 3, 6, 1, 5, 5, 7, 48, 11) : "id-ad-signedObject",
00040 (1, 3, 6, 1, 5, 5, 7, 48, 2) : "id-ad-caIssuers",
00041 (1, 3, 6, 1, 5, 5, 7, 48, 5) : "id-ad-caRepository",
00042 (1, 3, 6, 1, 5, 5, 7, 48, 9) : "id-ad-signedObjectRepository",
00043 (2, 16, 840, 1, 101, 3, 4, 2, 1) : "id-sha256",
00044 (2, 5, 29, 14) : "subjectKeyIdentifier",
00045 (2, 5, 29, 15) : "keyUsage",
00046 (2, 5, 29, 19) : "basicConstraints",
00047 (2, 5, 29, 20) : "cRLNumber",
00048 (2, 5, 29, 31) : "cRLDistributionPoints",
00049 (2, 5, 29, 32) : "certificatePolicies",
00050 (2, 5, 29, 35) : "authorityKeyIdentifier",
00051 (2, 5, 4, 3) : "commonName",
00052 }
00053
00054
00055
00056
00057 name2oid = dict((v,k) for k,v in oid2name.items())