RPKI Engine  1.0
oids.py (4025)
Go to the documentation of this file.
00001 """
00002 OID database.
00003 
00004 $Id: oids.py 4025 2011-10-07 20:08:54Z sra $
00005 
00006 Copyright (C) 2009--2011  Internet Systems Consortium ("ISC")
00007 
00008 Permission to use, copy, modify, and distribute this software for any
00009 purpose with or without fee is hereby granted, provided that the above
00010 copyright notice and this permission notice appear in all copies.
00011 
00012 THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00013 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00014 AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00015 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00016 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00017 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00018 PERFORMANCE OF THIS SOFTWARE.
00019 
00020 
00021 Portions copyright (C) 2007--2008  American Registry for Internet Numbers ("ARIN")
00022 
00023 Permission to use, copy, modify, and distribute this software for any
00024 purpose with or without fee is hereby granted, provided that the above
00025 copyright notice and this permission notice appear in all copies.
00026 
00027 THE SOFTWARE IS PROVIDED "AS IS" AND ARIN DISCLAIMS ALL WARRANTIES WITH
00028 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00029 AND FITNESS.  IN NO EVENT SHALL ARIN BE LIABLE FOR ANY SPECIAL, DIRECT,
00030 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00031 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00032 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00033 PERFORMANCE OF THIS SOFTWARE.
00034 """
00035 
00036 ## @var oid2name
00037 # Mapping table of OIDs to conventional string names.
00038 
00039 oid2name = {
00040   (1, 2, 840, 113549, 1, 1, 11)         : "sha256WithRSAEncryption",
00041   (1, 2, 840, 113549, 1, 1, 12)         : "sha384WithRSAEncryption",
00042   (1, 2, 840, 113549, 1, 1, 13)         : "sha512WithRSAEncryption",
00043   (1, 2, 840, 113549, 1, 7,  1)         : "id-data",
00044   (1, 2, 840, 113549, 1, 9, 16)         : "id-smime",
00045   (1, 2, 840, 113549, 1, 9, 16, 1)      : "id-ct",
00046   (1, 2, 840, 113549, 1, 9, 16, 1, 24)  : "id-ct-routeOriginAttestation",
00047   (1, 2, 840, 113549, 1, 9, 16, 1, 26)  : "id-ct-rpkiManifest",
00048   (1, 2, 840, 113549, 1, 9, 16, 1, 28)  : "id-ct-xml",
00049   (1, 2, 840, 113549, 1, 9, 16, 1, 35)  : "id-ct-rpkiGhostbusters",
00050   (1, 3, 6, 1, 5, 5, 7, 1, 1)           : "authorityInfoAccess",
00051   (1, 3, 6, 1, 5, 5, 7, 1, 11)          : "subjectInfoAccess",
00052   (1, 3, 6, 1, 5, 5, 7, 1, 7)           : "sbgp-ipAddrBlock",
00053   (1, 3, 6, 1, 5, 5, 7, 1, 8)           : "sbgp-autonomousSysNum",
00054   (1, 3, 6, 1, 5, 5, 7, 14, 2)          : "id-cp-ipAddr-asNumber",
00055   (1, 3, 6, 1, 5, 5, 7, 48, 2)          : "id-ad-caIssuers",
00056   (1, 3, 6, 1, 5, 5, 7, 48, 5)          : "id-ad-caRepository",
00057   (1, 3, 6, 1, 5, 5, 7, 48, 9)          : "id-ad-signedObjectRepository",
00058   (1, 3, 6, 1, 5, 5, 7, 48, 10)         : "id-ad-rpkiManifest",
00059   (1, 3, 6, 1, 5, 5, 7, 48, 11)         : "id-ad-signedObject",
00060   (2, 16, 840, 1, 101, 3, 4, 2, 1)      : "id-sha256",
00061   (2, 5, 29, 14)                        : "subjectKeyIdentifier",
00062   (2, 5, 29, 15)                        : "keyUsage",
00063   (2, 5, 29, 19)                        : "basicConstraints",
00064   (2, 5, 29, 20)                        : "cRLNumber",
00065   (2, 5, 29, 31)                        : "cRLDistributionPoints",
00066   (2, 5, 29, 32)                        : "certificatePolicies",
00067   (2, 5, 29, 35)                        : "authorityKeyIdentifier",
00068   (2, 5, 29, 37)                        : "extendedKeyUsage",
00069   (2, 5, 4, 3)                          : "commonName",
00070 }
00071 
00072 ## @var name2oid
00073 # Mapping table of string names to OIDs
00074 
00075 name2oid = dict((v, k) for k, v in oid2name.items())
 All Classes Namespaces Files Functions Variables Properties