Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

# oids.h

    00001 #ifndef CRYPTOPP_OIDS_H
    00002 #define CRYPTOPP_OIDS_H
    00003
    00004 // crypto-related ASN.1 object identifiers
    00005
    00006 #include "asn.h"
    00007
    00008 NAMESPACE_BEGIN(CryptoPP)
    00009
    00010 NAMESPACE_BEGIN(ASN1)
    00011
    00012 #define DEFINE_OID(value, name) inline OID name() {return value;}
    00013
    00014 DEFINE_OID(1, iso)
    00015         DEFINE_OID(iso()+2, member_body)
    00016                 DEFINE_OID(member_body()+840, iso_us)
    00017                         DEFINE_OID(iso_us()+10040, ansi_x9_57)
    00018                                 DEFINE_OID(ansi_x9_57()+4+1, id_dsa)
    00019                         DEFINE_OID(iso_us()+10045, ansi_x9_62)
    00020                                 DEFINE_OID(ansi_x9_62()+1, id_fieldType)
    00021                                         DEFINE_OID(id_fieldType()+1, prime_field)
    00022                                         DEFINE_OID(id_fieldType()+2, characteristic_two_field)
    00023                                                 DEFINE_OID(characteristic_two_field()+3, id_characteristic_two_basis)
    00024                                                         DEFINE_OID(id_characteristic_two_basis()+1, gnBasis)
    00025                                                         DEFINE_OID(id_characteristic_two_basis()+2, tpBasis)
    00026                                                         DEFINE_OID(id_characteristic_two_basis()+3, ppBasis)
    00027                                 DEFINE_OID(ansi_x9_62()+2, id_publicKeyType)
    00028                                         DEFINE_OID(id_publicKeyType()+1, id_ecPublicKey)
    00029                                 DEFINE_OID(ansi_x9_62()+3, ansi_x9_62_curves)
    00030                                         DEFINE_OID(ansi_x9_62_curves()+1, ansi_x9_62_curves_prime)
    00031                                                 DEFINE_OID(ansi_x9_62_curves_prime()+1, secp192r1)
    00032                                                 DEFINE_OID(ansi_x9_62_curves_prime()+7, secp256r1)
    00033                         DEFINE_OID(iso_us()+113549, rsadsi)
    00034                                 DEFINE_OID(rsadsi()+1, pkcs)
    00035                                         DEFINE_OID(pkcs()+1, pkcs_1)
    00036                                                 DEFINE_OID(pkcs_1()+1, rsaEncryption);
    00037                                 DEFINE_OID(rsadsi()+2, rsadsi_digestAlgorithm)
    00038                                         DEFINE_OID(rsadsi_digestAlgorithm()+2, id_md2)
    00039                                         DEFINE_OID(rsadsi_digestAlgorithm()+5, id_md5)
    00040         DEFINE_OID(iso()+3, identified_organization);
    00041                 DEFINE_OID(identified_organization()+14, oiw);
    00042                         DEFINE_OID(oiw()+14, oiw_secsig);
    00043                                 DEFINE_OID(oiw_secsig()+2, oiw_secsig_algorithms);
    00044                                         DEFINE_OID(oiw_secsig_algorithms()+26, id_sha1);
    00045                 DEFINE_OID(identified_organization()+36, teletrust);
    00046                         DEFINE_OID(teletrust()+3+2+1, id_ripemd160)
    00047                 DEFINE_OID(identified_organization()+132, certicom);
    00048                         DEFINE_OID(certicom()+0, certicom_ellipticCurve);
    00049                                 // these are sorted by curve type and then by OID
    00050                                 // first curves based on GF(p)
    00051                                 DEFINE_OID(certicom_ellipticCurve()+6, secp112r1);
    00052                                 DEFINE_OID(certicom_ellipticCurve()+7, secp112r2);
    00053                                 DEFINE_OID(certicom_ellipticCurve()+8, secp160r1);
    00054                                 DEFINE_OID(certicom_ellipticCurve()+9, secp160k1);
    00055                                 DEFINE_OID(certicom_ellipticCurve()+10, secp256k1);
    00056                                 DEFINE_OID(certicom_ellipticCurve()+28, secp128r1);
    00057                                 DEFINE_OID(certicom_ellipticCurve()+29, secp128r2);
    00058                                 DEFINE_OID(certicom_ellipticCurve()+30, secp160r2);
    00059                                 DEFINE_OID(certicom_ellipticCurve()+31, secp192k1);
    00060                                 DEFINE_OID(certicom_ellipticCurve()+32, secp224k1);
    00061                                 DEFINE_OID(certicom_ellipticCurve()+33, secp224r1);
    00062                                 DEFINE_OID(certicom_ellipticCurve()+34, secp384r1);
    00063                                 DEFINE_OID(certicom_ellipticCurve()+35, secp521r1);
    00064                                 // then curves based on GF(2^n)
    00065                                 DEFINE_OID(certicom_ellipticCurve()+1, sect163k1);
    00066                                 DEFINE_OID(certicom_ellipticCurve()+2, sect163r1);
    00067                                 DEFINE_OID(certicom_ellipticCurve()+3, sect239k1);
    00068                                 DEFINE_OID(certicom_ellipticCurve()+4, sect113r1);
    00069                                 DEFINE_OID(certicom_ellipticCurve()+5, sect113r2);
    00070                                 DEFINE_OID(certicom_ellipticCurve()+15, sect163r2);
    00071                                 DEFINE_OID(certicom_ellipticCurve()+16, sect283k1);
    00072                                 DEFINE_OID(certicom_ellipticCurve()+17, sect283r1);
    00073                                 DEFINE_OID(certicom_ellipticCurve()+22, sect131r1);
    00074                                 DEFINE_OID(certicom_ellipticCurve()+23, sect131r2);
    00075                                 DEFINE_OID(certicom_ellipticCurve()+24, sect193r1);
    00076                                 DEFINE_OID(certicom_ellipticCurve()+25, sect193r2);
    00077                                 DEFINE_OID(certicom_ellipticCurve()+26, sect233k1);
    00078                                 DEFINE_OID(certicom_ellipticCurve()+27, sect233r1);
    00079                                 DEFINE_OID(certicom_ellipticCurve()+36, sect409k1);
    00080                                 DEFINE_OID(certicom_ellipticCurve()+37, sect409r1);
    00081                                 DEFINE_OID(certicom_ellipticCurve()+38, sect571k1);
    00082                                 DEFINE_OID(certicom_ellipticCurve()+39, sect571r1);
    00083 DEFINE_OID(2, joint_iso_ccitt)
    00084         DEFINE_OID(joint_iso_ccitt()+16, country)
    00085                 DEFINE_OID(country()+840, joint_iso_ccitt_us)
    00086                         DEFINE_OID(joint_iso_ccitt_us()+1, us_organization)
    00087                                 DEFINE_OID(us_organization()+101, us_gov)
    00088                                         DEFINE_OID(us_gov()+3, csor)
    00089                                                 DEFINE_OID(csor()+4, nistalgorithms)
    00090                                                         DEFINE_OID(nistalgorithms()+1, aes)
    00091                                                                 DEFINE_OID(aes()+1, id_aes128_ECB)
    00092                                                                 DEFINE_OID(aes()+2, id_aes128_cbc)
    00093                                                                 DEFINE_OID(aes()+3, id_aes128_ofb)
    00094                                                                 DEFINE_OID(aes()+4, id_aes128_cfb)
    00095                                                                 DEFINE_OID(aes()+21, id_aes192_ECB)
    00096                                                                 DEFINE_OID(aes()+22, id_aes192_cbc)
    00097                                                                 DEFINE_OID(aes()+23, id_aes192_ofb)
    00098                                                                 DEFINE_OID(aes()+24, id_aes192_cfb)
    00099                                                                 DEFINE_OID(aes()+41, id_aes256_ECB)
    00100                                                                 DEFINE_OID(aes()+42, id_aes256_cbc)
    00101                                                                 DEFINE_OID(aes()+43, id_aes256_ofb)
    00102                                                                 DEFINE_OID(aes()+44, id_aes256_cfb)
    00103                                                         DEFINE_OID(nistalgorithms()+2, nist_hashalgs)
    00104                                                                 DEFINE_OID(nist_hashalgs()+1, id_sha256)
    00105                                                                 DEFINE_OID(nist_hashalgs()+2, id_sha384)
    00106                                                                 DEFINE_OID(nist_hashalgs()+3, id_sha512)
    00107
    00108 NAMESPACE_END
    00109
    00110 NAMESPACE_END
    00111
    00112 #endif