monotone

monotone Mtn Source Tree

Root/cryptopp/oids.h

1#ifndef CRYPTOPP_OIDS_H
2#define CRYPTOPP_OIDS_H
3
4// crypto-related ASN.1 object identifiers
5
6#include "asn.h"
7
8NAMESPACE_BEGIN(CryptoPP)
9
10NAMESPACE_BEGIN(ASN1)
11
12#define DEFINE_OID(value, name)inline OID name() {return value;}
13
14DEFINE_OID(1, iso)
15DEFINE_OID(iso()+2, member_body)
16DEFINE_OID(member_body()+840, iso_us)
17DEFINE_OID(iso_us()+10040, ansi_x9_57)
18DEFINE_OID(ansi_x9_57()+4+1, id_dsa)
19DEFINE_OID(iso_us()+10045, ansi_x9_62)
20DEFINE_OID(ansi_x9_62()+1, id_fieldType)
21DEFINE_OID(id_fieldType()+1, prime_field)
22DEFINE_OID(id_fieldType()+2, characteristic_two_field)
23DEFINE_OID(characteristic_two_field()+3, id_characteristic_two_basis)
24DEFINE_OID(id_characteristic_two_basis()+1, gnBasis)
25DEFINE_OID(id_characteristic_two_basis()+2, tpBasis)
26DEFINE_OID(id_characteristic_two_basis()+3, ppBasis)
27DEFINE_OID(ansi_x9_62()+2, id_publicKeyType)
28DEFINE_OID(id_publicKeyType()+1, id_ecPublicKey)
29DEFINE_OID(ansi_x9_62()+3, ansi_x9_62_curves)
30DEFINE_OID(ansi_x9_62_curves()+1, ansi_x9_62_curves_prime)
31DEFINE_OID(ansi_x9_62_curves_prime()+1, secp192r1)
32DEFINE_OID(ansi_x9_62_curves_prime()+7, secp256r1)
33DEFINE_OID(iso_us()+113549, rsadsi)
34DEFINE_OID(rsadsi()+1, pkcs)
35DEFINE_OID(pkcs()+1, pkcs_1)
36DEFINE_OID(pkcs_1()+1, rsaEncryption);
37DEFINE_OID(rsadsi()+2, rsadsi_digestAlgorithm)
38DEFINE_OID(rsadsi_digestAlgorithm()+2, id_md2)
39DEFINE_OID(rsadsi_digestAlgorithm()+5, id_md5)
40DEFINE_OID(iso()+3, identified_organization);
41DEFINE_OID(identified_organization()+14, oiw);
42DEFINE_OID(oiw()+14, oiw_secsig);
43DEFINE_OID(oiw_secsig()+2, oiw_secsig_algorithms);
44DEFINE_OID(oiw_secsig_algorithms()+26, id_sha1);
45DEFINE_OID(identified_organization()+36, teletrust);
46DEFINE_OID(teletrust()+3+2+1, id_ripemd160)
47DEFINE_OID(identified_organization()+132, certicom);
48DEFINE_OID(certicom()+0, certicom_ellipticCurve);
49// these are sorted by curve type and then by OID
50// first curves based on GF(p)
51DEFINE_OID(certicom_ellipticCurve()+6, secp112r1);
52DEFINE_OID(certicom_ellipticCurve()+7, secp112r2);
53DEFINE_OID(certicom_ellipticCurve()+8, secp160r1);
54DEFINE_OID(certicom_ellipticCurve()+9, secp160k1);
55DEFINE_OID(certicom_ellipticCurve()+10, secp256k1);
56DEFINE_OID(certicom_ellipticCurve()+28, secp128r1);
57DEFINE_OID(certicom_ellipticCurve()+29, secp128r2);
58DEFINE_OID(certicom_ellipticCurve()+30, secp160r2);
59DEFINE_OID(certicom_ellipticCurve()+31, secp192k1);
60DEFINE_OID(certicom_ellipticCurve()+32, secp224k1);
61DEFINE_OID(certicom_ellipticCurve()+33, secp224r1);
62DEFINE_OID(certicom_ellipticCurve()+34, secp384r1);
63DEFINE_OID(certicom_ellipticCurve()+35, secp521r1);
64// then curves based on GF(2^n)
65DEFINE_OID(certicom_ellipticCurve()+1, sect163k1);
66DEFINE_OID(certicom_ellipticCurve()+2, sect163r1);
67DEFINE_OID(certicom_ellipticCurve()+3, sect239k1);
68DEFINE_OID(certicom_ellipticCurve()+4, sect113r1);
69DEFINE_OID(certicom_ellipticCurve()+5, sect113r2);
70DEFINE_OID(certicom_ellipticCurve()+15, sect163r2);
71DEFINE_OID(certicom_ellipticCurve()+16, sect283k1);
72DEFINE_OID(certicom_ellipticCurve()+17, sect283r1);
73DEFINE_OID(certicom_ellipticCurve()+22, sect131r1);
74DEFINE_OID(certicom_ellipticCurve()+23, sect131r2);
75DEFINE_OID(certicom_ellipticCurve()+24, sect193r1);
76DEFINE_OID(certicom_ellipticCurve()+25, sect193r2);
77DEFINE_OID(certicom_ellipticCurve()+26, sect233k1);
78DEFINE_OID(certicom_ellipticCurve()+27, sect233r1);
79DEFINE_OID(certicom_ellipticCurve()+36, sect409k1);
80DEFINE_OID(certicom_ellipticCurve()+37, sect409r1);
81DEFINE_OID(certicom_ellipticCurve()+38, sect571k1);
82DEFINE_OID(certicom_ellipticCurve()+39, sect571r1);
83DEFINE_OID(2, joint_iso_ccitt)
84DEFINE_OID(joint_iso_ccitt()+16, country)
85DEFINE_OID(country()+840, joint_iso_ccitt_us)
86DEFINE_OID(joint_iso_ccitt_us()+1, us_organization)
87DEFINE_OID(us_organization()+101, us_gov)
88DEFINE_OID(us_gov()+3, csor)
89DEFINE_OID(csor()+4, nistalgorithms)
90DEFINE_OID(nistalgorithms()+1, aes)
91DEFINE_OID(aes()+1, id_aes128_ECB)
92DEFINE_OID(aes()+2, id_aes128_cbc)
93DEFINE_OID(aes()+3, id_aes128_ofb)
94DEFINE_OID(aes()+4, id_aes128_cfb)
95DEFINE_OID(aes()+21, id_aes192_ECB)
96DEFINE_OID(aes()+22, id_aes192_cbc)
97DEFINE_OID(aes()+23, id_aes192_ofb)
98DEFINE_OID(aes()+24, id_aes192_cfb)
99DEFINE_OID(aes()+41, id_aes256_ECB)
100DEFINE_OID(aes()+42, id_aes256_cbc)
101DEFINE_OID(aes()+43, id_aes256_ofb)
102DEFINE_OID(aes()+44, id_aes256_cfb)
103DEFINE_OID(nistalgorithms()+2, nist_hashalgs)
104DEFINE_OID(nist_hashalgs()+1, id_sha256)
105DEFINE_OID(nist_hashalgs()+2, id_sha384)
106DEFINE_OID(nist_hashalgs()+3, id_sha512)
107
108NAMESPACE_END
109
110NAMESPACE_END
111
112#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status