RSA BSAFE Cert-C Micro Edition

The power of PKI for the smallest of devices

r_nid.h

Go to the documentation of this file.
00001 /* $Id: r_nid.h,v 1.27 2002/09/30 06:17:16 sparki Exp $ */
00002 /*
00003  * Copyright (C) 1998-2002 RSA Security Inc. All rights reserved.
00004  *
00005  * This work contains proprietary information of RSA Security.
00006  * Distribution is limited to authorized licensees of RSA
00007  * Security. Any unauthorized reproduction, distribution or
00008  * modification of this work is strictly prohibited.
00009  *
00010  */
00011 /**
00012  * @file r_nid.h
00013  * This file defines the object identifiers used in ASN.1 processing.
00014  * The defines include:<br>
00015  * <li>Ciphers.</li>
00016  * <li>Public Key Cryptography Standards.</li>
00017  * <li>Padding types.</li>
00018  * <li>Certificate fields.</li>
00019  */
00020 #ifndef HEADER_COMMON_R_NID_H
00021 #define HEADER_COMMON_R_NID_H
00022 
00023 #ifdef  __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 #define SN_undef                        "UNDEF"
00028 #define LN_undef                        "undefined"
00029 #define NID_undef                       0
00030 #define OBJ_undef                       0L
00031 
00032 #define SN_Algorithm                    "Algorithm"
00033 #define LN_algorithm                    "algorithm"
00034 #define NID_algorithm                   38
00035 #define OBJ_algorithm                   1L,3L,14L,3L,2L
00036 
00037 #define LN_rsadsi                       "rsadsi"
00038 #define NID_rsadsi                      1
00039 #define OBJ_rsadsi                      1L,2L,840L,113549L
00040 
00041 #define LN_pkcs                         "pkcs"
00042 #define NID_pkcs                        2
00043 #define OBJ_pkcs                        OBJ_rsadsi,1L
00044 
00045 #define SN_md2                          "MD2"
00046 #define LN_md2                          "md2"
00047 #define NID_md2                         3
00048 #define OBJ_md2                         OBJ_rsadsi,2L,2L
00049 
00050 #define SN_md5                          "MD5"
00051 #define LN_md5                          "md5"
00052 #define NID_md5                         4
00053 #define OBJ_md5                         OBJ_rsadsi,2L,5L
00054 
00055 #define SN_rc4                          "RC4"
00056 #define LN_rc4                          "rc4"
00057 #define NID_rc4                         5
00058 #define OBJ_rc4                         OBJ_rsadsi,3L,4L
00059 
00060 #define LN_rsaEncryption                "rsaEncryption"
00061 #define NID_rsaEncryption               6
00062 #define OBJ_rsaEncryption               OBJ_pkcs,1L,1L
00063 
00064 #define SN_md2WithRSAEncryption         "RSA-MD2"
00065 #define LN_md2WithRSAEncryption         "md2WithRSAEncryption"
00066 #define NID_md2WithRSAEncryption        7
00067 #define OBJ_md2WithRSAEncryption        OBJ_pkcs,1L,2L
00068 
00069 #define SN_md5WithRSAEncryption         "RSA-MD5"
00070 #define LN_md5WithRSAEncryption         "md5WithRSAEncryption"
00071 #define NID_md5WithRSAEncryption        8
00072 #define OBJ_md5WithRSAEncryption        OBJ_pkcs,1L,4L
00073 
00074 #define LN_pbeWithMD2AndDES_CBC         "pbeWithMD2AndDES-CBC"
00075 #define NID_pbeWithMD2AndDES_CBC        9
00076 #define OBJ_pbeWithMD2AndDES_CBC        OBJ_pkcs,5L,1L
00077 
00078 #define LN_pbeWithMD5AndDES_CBC         "pbeWithMD5AndDES-CBC"
00079 #define NID_pbeWithMD5AndDES_CBC        10
00080 #define OBJ_pbeWithMD5AndDES_CBC        OBJ_pkcs,5L,3L
00081 
00082 #define LN_X500                         "X500"
00083 #define NID_X500                        11
00084 #define OBJ_X500                        2L,5L
00085 
00086 #define LN_X509                         "X509"
00087 #define NID_X509                        12
00088 #define OBJ_X509                        OBJ_X500,4L
00089 
00090 #define SN_commonName                   "CN"
00091 #define LN_commonName                   "commonName"
00092 #define NID_commonName                  13
00093 #define OBJ_commonName                  OBJ_X509,3L
00094 
00095 #define SN_countryName                  "C"
00096 #define LN_countryName                  "countryName"
00097 #define NID_countryName                 14
00098 #define OBJ_countryName                 OBJ_X509,6L
00099 
00100 #define SN_localityName                 "L"
00101 #define LN_localityName                 "localityName"
00102 #define NID_localityName                15
00103 #define OBJ_localityName                OBJ_X509,7L
00104 
00105 /* Postal Address? PA */
00106 
00107 /* should be "ST" (rfc1327) but MS uses 'S' */
00108 #define SN_stateOrProvinceName          "ST"
00109 #define LN_stateOrProvinceName          "stateOrProvinceName"
00110 #define NID_stateOrProvinceName         16
00111 #define OBJ_stateOrProvinceName         OBJ_X509,8L
00112 
00113 #define SN_organizationName             "O"
00114 #define LN_organizationName             "organizationName"
00115 #define NID_organizationName            17
00116 #define OBJ_organizationName            OBJ_X509,10L
00117 
00118 #define SN_organizationalUnitName       "OU"
00119 #define LN_organizationalUnitName       "organizationalUnitName"
00120 #define NID_organizationalUnitName      18
00121 #define OBJ_organizationalUnitName      OBJ_X509,11L
00122 
00123 #define SN_rsa                          "RSA"
00124 #define LN_rsa                          "rsa"
00125 #define NID_rsa                         19
00126 #define OBJ_rsa                         OBJ_X500,8L,1L,1L
00127 
00128 #define LN_pkcs7                        "pkcs7"
00129 #define NID_pkcs7                       20
00130 #define OBJ_pkcs7                       OBJ_pkcs,7L
00131 
00132 #define LN_pkcs7_data                   "pkcs7-data"
00133 #define NID_pkcs7_data                  21
00134 #define OBJ_pkcs7_data                  OBJ_pkcs7,1L
00135 
00136 #define LN_pkcs7_signed                 "pkcs7-signedData"
00137 #define NID_pkcs7_signed                22
00138 #define OBJ_pkcs7_signed                OBJ_pkcs7,2L
00139 
00140 #define LN_pkcs7_enveloped              "pkcs7-envelopedData"
00141 #define NID_pkcs7_enveloped             23
00142 #define OBJ_pkcs7_enveloped             OBJ_pkcs7,3L
00143 
00144 #define LN_pkcs7_signedAndEnveloped     "pkcs7-signedAndEnvelopedData"
00145 #define NID_pkcs7_signedAndEnveloped    24
00146 #define OBJ_pkcs7_signedAndEnveloped    OBJ_pkcs7,4L
00147 
00148 #define LN_pkcs7_digest                 "pkcs7-digestData"
00149 #define NID_pkcs7_digest                25
00150 #define OBJ_pkcs7_digest                OBJ_pkcs7,5L
00151 
00152 #define LN_pkcs7_encrypted              "pkcs7-encryptedData"
00153 #define NID_pkcs7_encrypted             26
00154 #define OBJ_pkcs7_encrypted             OBJ_pkcs7,6L
00155 
00156 #define LN_pkcs3                        "pkcs3"
00157 #define NID_pkcs3                       27
00158 #define OBJ_pkcs3                       OBJ_pkcs,3L
00159 
00160 #define LN_dhKeyAgreement               "dhKeyAgreement"
00161 #define NID_dhKeyAgreement              28
00162 #define OBJ_dhKeyAgreement              OBJ_pkcs3,1L
00163 
00164 #define SN_des_ecb                      "DES-ECB"
00165 #define LN_des_ecb                      "des-ecb"
00166 #define NID_des_ecb                     29
00167 #define OBJ_des_ecb                     OBJ_algorithm,6L
00168 
00169 #define SN_des_cfb64                    "DES-CFB"
00170 #define LN_des_cfb64                    "des-cfb"
00171 #define NID_des_cfb64                   30
00172 /* IV + num */
00173 #define OBJ_des_cfb64                   OBJ_algorithm,9L
00174 
00175 #define SN_des_cbc                      "DES-CBC"
00176 #define LN_des_cbc                      "des-cbc"
00177 #define NID_des_cbc                     31
00178 /* IV */
00179 #define OBJ_des_cbc                     OBJ_algorithm,7L
00180 
00181 #define SN_des_ede                      "DES-EDE"
00182 #define LN_des_ede                      "des-ede"
00183 #define NID_des_ede                     32
00184 /* ?? */
00185 #define OBJ_des_ede                     OBJ_algorithm,17L
00186 
00187 #define SN_des_ede3                     "DES-EDE3"
00188 #define LN_des_ede3                     "des-ede3"
00189 #define NID_des_ede3                    33
00190 
00191 #define SN_idea_cbc                     "IDEA-CBC"
00192 #define LN_idea_cbc                     "idea-cbc"
00193 #define NID_idea_cbc                    34
00194 
00195 #define SN_idea_cfb64                   "IDEA-CFB"
00196 #define LN_idea_cfb64                   "idea-cfb"
00197 #define NID_idea_cfb64                  35
00198 
00199 #define SN_idea_ecb                     "IDEA-ECB"
00200 #define LN_idea_ecb                     "idea-ecb"
00201 #define NID_idea_ecb                    36
00202 
00203 #define SN_rc2_cbc                      "RC2-CBC"
00204 #define LN_rc2_cbc                      "rc2-cbc"
00205 #define NID_rc2_cbc                     37
00206 #define OBJ_rc2_cbc                     OBJ_rsadsi,3L,2L
00207 
00208 #define SN_rc2_ecb                      "RC2-ECB"
00209 #define LN_rc2_ecb                      "rc2-ecb"
00210 #define NID_rc2_ecb                     38
00211 
00212 #define SN_rc2_cfb64                    "RC2-CFB"
00213 #define LN_rc2_cfb64                    "rc2-cfb"
00214 #define NID_rc2_cfb64                   39
00215 
00216 #define SN_rc2_ofb64                    "RC2-OFB"
00217 #define LN_rc2_ofb64                    "rc2-ofb"
00218 #define NID_rc2_ofb64                   40
00219 
00220 #define SN_sha                          "SHA"
00221 #define LN_sha                          "sha"
00222 #define NID_sha                         41
00223 #define OBJ_sha                         OBJ_algorithm,18L
00224 
00225 #define SN_shaWithRSAEncryption         "RSA-SHA"
00226 #define LN_shaWithRSAEncryption         "shaWithRSAEncryption"
00227 #define NID_shaWithRSAEncryption        42
00228 #define OBJ_shaWithRSAEncryption        OBJ_algorithm,15L
00229 
00230 #define SN_des_ede_cbc                  "DES-EDE-CBC"
00231 #define LN_des_ede_cbc                  "des-ede-cbc"
00232 #define NID_des_ede_cbc                 43
00233 
00234 #define SN_des_ede3_cbc                 "DES-EDE3-CBC"
00235 #define LN_des_ede3_cbc                 "des-ede3-cbc"
00236 #define NID_des_ede3_cbc                44
00237 #define OBJ_des_ede3_cbc                OBJ_rsadsi,3L,7L
00238 
00239 #define SN_des_ofb64                    "DES-OFB"
00240 #define LN_des_ofb64                    "des-ofb"
00241 #define NID_des_ofb64                   45
00242 #define OBJ_des_ofb64                   OBJ_algorithm,8L
00243 
00244 #define SN_idea_ofb64                   "IDEA-OFB"
00245 #define LN_idea_ofb64                   "idea-ofb"
00246 #define NID_idea_ofb64                  46
00247 
00248 #define LN_pkcs9                        "pkcs9"
00249 #define NID_pkcs9                       47
00250 #define OBJ_pkcs9                       OBJ_pkcs,9L
00251 
00252 #define SN_pkcs9_emailAddress           "EMAIL"
00253 #define LN_pkcs9_emailAddress           "emailAddress"
00254 #define NID_pkcs9_emailAddress          48
00255 #define OBJ_pkcs9_emailAddress          OBJ_pkcs9,1L
00256 
00257 #define LN_pkcs9_unstructuredName       "unstructuredName"
00258 #define NID_pkcs9_unstructuredName      49
00259 #define OBJ_pkcs9_unstructuredName      OBJ_pkcs9,2L
00260 
00261 #define LN_pkcs9_contentType            "contentType"
00262 #define NID_pkcs9_contentType           50
00263 #define OBJ_pkcs9_contentType           OBJ_pkcs9,3L
00264 
00265 #define LN_pkcs9_messageDigest          "messageDigest"
00266 #define NID_pkcs9_messageDigest         51
00267 #define OBJ_pkcs9_messageDigest         OBJ_pkcs9,4L
00268 
00269 #define LN_pkcs9_signingTime            "signingTime"
00270 #define NID_pkcs9_signingTime           52
00271 #define OBJ_pkcs9_signingTime           OBJ_pkcs9,5L
00272 
00273 #define LN_pkcs9_countersignature       "countersignature"
00274 #define NID_pkcs9_countersignature      53
00275 #define OBJ_pkcs9_countersignature      OBJ_pkcs9,6L
00276 
00277 #define LN_pkcs9_challengePassword      "challengePassword"
00278 #define NID_pkcs9_challengePassword     54
00279 #define OBJ_pkcs9_challengePassword     OBJ_pkcs9,7L
00280 
00281 #define LN_pkcs9_unstructuredAddress    "unstructuredAddress"
00282 #define NID_pkcs9_unstructuredAddress   55
00283 #define OBJ_pkcs9_unstructuredAddress   OBJ_pkcs9,8L
00284 
00285 #define LN_pkcs9_extCertAttributes      "extendedCertificateAttributes"
00286 #define NID_pkcs9_extCertAttributes     56
00287 #define OBJ_pkcs9_extCertAttributes     OBJ_pkcs9,9L
00288 
00289 #define SN_netscape                     "Netscape"
00290 #define LN_netscape                     "Netscape Communications Corp."
00291 #define NID_netscape                    57
00292 #define OBJ_netscape                    2L,16L,840L,1L,113730L
00293 
00294 #define SN_netscape_cert_extension      "nsCertExt"
00295 #define LN_netscape_cert_extension      "Netscape Certificate Extension"
00296 #define NID_netscape_cert_extension     58
00297 #define OBJ_netscape_cert_extension     OBJ_netscape,1L
00298 
00299 #define SN_netscape_data_type           "nsDataType"
00300 #define LN_netscape_data_type           "Netscape Data Type"
00301 #define NID_netscape_data_type          59
00302 #define OBJ_netscape_data_type          OBJ_netscape,2L
00303 
00304 #define SN_des_ede_cfb64                "DES-EDE-CFB"
00305 #define LN_des_ede_cfb64                "des-ede-cfb"
00306 #define NID_des_ede_cfb64               60
00307 
00308 #define SN_des_ede3_cfb64               "DES-EDE3-CFB"
00309 #define LN_des_ede3_cfb64               "des-ede3-cfb"
00310 #define NID_des_ede3_cfb64              61
00311 
00312 #define SN_des_ede_ofb64                "DES-EDE-OFB"
00313 #define LN_des_ede_ofb64                "des-ede-ofb"
00314 #define NID_des_ede_ofb64               62
00315 
00316 #define SN_des_ede3_ofb64               "DES-EDE3-OFB"
00317 #define LN_des_ede3_ofb64               "des-ede3-ofb"
00318 #define NID_des_ede3_ofb64              63
00319 
00320 #define SN_sha1                         "SHA1"
00321 #define LN_sha1                         "sha1"
00322 #define NID_sha1                        64
00323 #define OBJ_sha1                        OBJ_algorithm,26L
00324 
00325 #define SN_sha1WithRSAEncryption        "RSA-SHA1"
00326 #define LN_sha1WithRSAEncryption        "sha1WithRSAEncryption"
00327 #define NID_sha1WithRSAEncryption       65
00328 #define OBJ_sha1WithRSAEncryption       OBJ_pkcs,1L,5L
00329 
00330 #define SN_dsaWithSHA                   "DSA-SHA"
00331 #define LN_dsaWithSHA                   "dsaWithSHA"
00332 #define NID_dsaWithSHA                  66
00333 #define OBJ_dsaWithSHA                  OBJ_algorithm,13L
00334 
00335 #define SN_dsa_2                        "DSA-old"
00336 #define LN_dsa_2                        "dsaEncryption-old"
00337 #define NID_dsa_2                       67
00338 #define OBJ_dsa_2                       OBJ_algorithm,12L
00339 
00340 /* proposed by microsoft to RSA */
00341 #define LN_pbeWithSHA1AndRC2_CBC        "pbeWithSHA1AndRC2-CBC"
00342 #define NID_pbeWithSHA1AndRC2_CBC       68
00343 #define OBJ_pbeWithSHA1AndRC2_CBC       OBJ_pkcs,5L,11L
00344 
00345 /* proposed by microsoft to RSA */
00346 #define LN_pbeWithSHA1AndRC4            "pbeWithSHA1AndRC4"
00347 #define NID_pbeWithSHA1AndRC4           69
00348 #define OBJ_pbeWithSHA1AndRC4           OBJ_pkcs,5L,12L
00349 
00350 #define SN_dsaWithSHA1_2                "DSA-SHA1-old"
00351 #define LN_dsaWithSHA1_2                "dsaWithSHA1-old"
00352 #define NID_dsaWithSHA1_2               70
00353 #define OBJ_dsaWithSHA1_2               OBJ_algorithm,27L
00354 
00355 #define SN_netscape_cert_type           "nsCertType"
00356 #define LN_netscape_cert_type           "Netscape Cert Type"
00357 #define NID_netscape_cert_type          71
00358 #define OBJ_netscape_cert_type          OBJ_netscape_cert_extension,1L
00359 
00360 #define SN_netscape_base_url            "nsBaseUrl"
00361 #define LN_netscape_base_url            "Netscape Base Url"
00362 #define NID_netscape_base_url           72
00363 #define OBJ_netscape_base_url           OBJ_netscape_cert_extension,2L
00364 
00365 #define SN_netscape_revocation_url      "nsRevocationUrl"
00366 #define LN_netscape_revocation_url      "Netscape Revocation Url"
00367 #define NID_netscape_revocation_url     73
00368 #define OBJ_netscape_revocation_url     OBJ_netscape_cert_extension,3L
00369 
00370 #define SN_netscape_ca_revocation_url   "nsCaRevocationUrl"
00371 #define LN_netscape_ca_revocation_url   "Netscape CA Revocation Url"
00372 #define NID_netscape_ca_revocation_url  74
00373 #define OBJ_netscape_ca_revocation_url  OBJ_netscape_cert_extension,4L
00374 
00375 #define SN_netscape_renewal_url         "nsRenewalUrl"
00376 #define LN_netscape_renewal_url         "Netscape Renewal Url"
00377 #define NID_netscape_renewal_url        75
00378 #define OBJ_netscape_renewal_url        OBJ_netscape_cert_extension,7L
00379 
00380 #define SN_netscape_ca_policy_url       "nsCaPolicyUrl"
00381 #define LN_netscape_ca_policy_url       "Netscape CA Policy Url"
00382 #define NID_netscape_ca_policy_url      76
00383 #define OBJ_netscape_ca_policy_url      OBJ_netscape_cert_extension,8L
00384 
00385 #define SN_netscape_ssl_server_name     "nsSslServerName"
00386 #define LN_netscape_ssl_server_name     "Netscape SSL Server Name"
00387 #define NID_netscape_ssl_server_name    77
00388 #define OBJ_netscape_ssl_server_name    OBJ_netscape_cert_extension,12L
00389 
00390 #define SN_netscape_comment             "nsComment"
00391 #define LN_netscape_comment             "Netscape Comment"
00392 #define NID_netscape_comment            78
00393 #define OBJ_netscape_comment            OBJ_netscape_cert_extension,13L
00394 
00395 #define SN_netscape_cert_sequence       "nsCertSequence"
00396 #define LN_netscape_cert_sequence       "Netscape Certificate Sequence"
00397 #define NID_netscape_cert_sequence      79
00398 #define OBJ_netscape_cert_sequence      OBJ_netscape_data_type,5L
00399 
00400 #define SN_desx_cbc                     "DESX-CBC"
00401 #define LN_desx_cbc                     "desx-cbc"
00402 #define NID_desx_cbc                    80
00403 
00404 #define SN_ld_ce                        "ld-ce"
00405 #define NID_ld_ce                       81
00406 #define OBJ_ld_ce                       2L,5L,29L
00407 
00408 #define SN_subject_key_identifier       "subjectKeyIdentifier"
00409 #define LN_subject_key_identifier       "X509v3 Subject Key Identifier"
00410 #define NID_subject_key_identifier      82
00411 #define OBJ_subject_key_identifier      OBJ_ld_ce,14L
00412 
00413 #define SN_key_usage                    "keyUsage"
00414 #define LN_key_usage                    "X509v3 Key Usage"
00415 #define NID_key_usage                   83
00416 #define OBJ_key_usage                   OBJ_ld_ce,15L
00417 
00418 #define SN_private_key_usage_period     "privateKeyUsagePeriod"
00419 #define LN_private_key_usage_period     "X509v3 Private Key Usage Period"
00420 #define NID_private_key_usage_period    84
00421 #define OBJ_private_key_usage_period    OBJ_ld_ce,16L
00422 
00423 #define SN_subject_alt_name             "subjectAltName"
00424 #define LN_subject_alt_name             "X509v3 Subject Alternative Name"
00425 #define NID_subject_alt_name            85
00426 #define OBJ_subject_alt_name            OBJ_ld_ce,17L
00427 
00428 #define SN_issuer_alt_name              "issuerAltName"
00429 #define LN_issuer_alt_name              "X509v3 Issuer Alternative Name"
00430 #define NID_issuer_alt_name             86
00431 #define OBJ_issuer_alt_name             OBJ_ld_ce,18L
00432 
00433 #define SN_basic_constraints            "basicConstraints"
00434 #define LN_basic_constraints            "X509v3 Basic Constraints"
00435 #define NID_basic_constraints           87
00436 #define OBJ_basic_constraints           OBJ_ld_ce,19L
00437 
00438 #define SN_crl_number                   "crlNumber"
00439 #define LN_crl_number                   "X509v3 CRL Number"
00440 #define NID_crl_number                  88
00441 #define OBJ_crl_number                  OBJ_ld_ce,20L
00442 
00443 #define SN_certificate_policies         "certificatePolicies"
00444 #define LN_certificate_policies         "X509v3 Certificate Policies"
00445 #define NID_certificate_policies        89
00446 #define OBJ_certificate_policies        OBJ_ld_ce,32L
00447 
00448 #define SN_authority_key_identifier     "authorityKeyIdentifier"
00449 #define LN_authority_key_identifier     "X509v3 Authority Key Identifier"
00450 #define NID_authority_key_identifier    90
00451 #define OBJ_authority_key_identifier    OBJ_ld_ce,35L
00452 
00453 #define SN_bf_cbc                       "BF-CBC"
00454 #define LN_bf_cbc                       "bf-cbc"
00455 #define NID_bf_cbc                      91
00456 
00457 #define SN_bf_ecb                       "BF-ECB"
00458 #define LN_bf_ecb                       "bf-ecb"
00459 #define NID_bf_ecb                      92
00460 
00461 #define SN_bf_cfb64                     "BF-CFB"
00462 #define LN_bf_cfb64                     "bf-cfb"
00463 #define NID_bf_cfb64                    93
00464 
00465 #define SN_bf_ofb64                     "BF-OFB"
00466 #define LN_bf_ofb64                     "bf-ofb"
00467 #define NID_bf_ofb64                    94
00468 
00469 #define SN_mdc2                         "MDC2"
00470 #define LN_mdc2                         "mdc2"
00471 #define NID_mdc2                        95
00472 #define OBJ_mdc2                        2L,5L,8L,3L,101L
00473 /* An alternative?                      1L,3L,14L,3L,2L,19L */
00474 
00475 #define SN_mdc2WithRSA                  "RSA-MDC2"
00476 #define LN_mdc2WithRSA                  "mdc2withRSA"
00477 #define NID_mdc2WithRSA                 96
00478 #define OBJ_mdc2WithRSA                 2L,5L,8L,3L,100L
00479 
00480 #define SN_rc4_40                       "RC4-40"
00481 #define LN_rc4_40                       "rc4-40"
00482 #define NID_rc4_40                      97
00483 
00484 #define SN_rc2_40_cbc                   "RC2-40-CBC"
00485 #define LN_rc2_40_cbc                   "rc2-40-cbc"
00486 #define NID_rc2_40_cbc                  98
00487 
00488 #define SN_givenName                    "G"
00489 #define LN_givenName                    "givenName"
00490 #define NID_givenName                   99
00491 #define OBJ_givenName                   OBJ_X509,42L
00492 
00493 #define SN_surname                      "SN"
00494 #define LN_surname                      "surname"
00495 #define NID_surname                     100
00496 #define OBJ_surname                     OBJ_X509,4L
00497 
00498 #define SN_initials                     "I"
00499 #define LN_initials                     "initials"
00500 #define NID_initials                    101
00501 #define OBJ_initials                    OBJ_X509,43L
00502 
00503 #define SN_uniqueIdentifier             "X500UID"
00504 #define LN_uniqueIdentifier             "x500UniqueIdentifier"
00505 #define NID_uniqueIdentifier            102
00506 #define OBJ_uniqueIdentifier            OBJ_X509,45L
00507 
00508 #define SN_crl_distribution_points      "crlDistributionPoints"
00509 #define LN_crl_distribution_points      "X509v3 CRL Distribution Points"
00510 #define NID_crl_distribution_points     103
00511 #define OBJ_crl_distribution_points     OBJ_ld_ce,31L
00512 
00513 #define SN_md5WithRSA                   "RSA-NP-MD5"
00514 #define LN_md5WithRSA                   "md5WithRSA"
00515 #define NID_md5WithRSA                  104
00516 #define OBJ_md5WithRSA                  OBJ_algorithm,3L
00517 
00518 #define SN_serialNumber                 "SERIAL"
00519 #define LN_serialNumber                 "serialNumber"
00520 #define NID_serialNumber                105
00521 #define OBJ_serialNumber                OBJ_X509,5L
00522 
00523 #define SN_title                        "T"
00524 #define LN_title                        "title"
00525 #define NID_title                       106
00526 #define OBJ_title                       OBJ_X509,12L
00527 
00528 #define SN_description                  "D"
00529 #define LN_description                  "description"
00530 #define NID_description                 107
00531 #define OBJ_description                 OBJ_X509,13L
00532 
00533 /* CAST5 is CAST-128, corresponds to the documentation */
00534 #define SN_cast5_cbc                    "CAST5-CBC"
00535 #define LN_cast5_cbc                    "cast5-cbc"
00536 #define NID_cast5_cbc                   108
00537 #define OBJ_cast5_cbc                   1L,2L,840L,113533L,7L,66L,10L
00538 
00539 #define SN_cast5_ecb                    "CAST5-ECB"
00540 #define LN_cast5_ecb                    "cast5-ecb"
00541 #define NID_cast5_ecb                   109
00542 
00543 #define SN_cast5_cfb64                  "CAST5-CFB"
00544 #define LN_cast5_cfb64                  "cast5-cfb"
00545 #define NID_cast5_cfb64                 110
00546 
00547 #define SN_cast5_ofb64                  "CAST5-OFB"
00548 #define LN_cast5_ofb64                  "cast5-ofb"
00549 #define NID_cast5_ofb64                 111
00550 
00551 #define LN_pbeWithMD5AndCast5_CBC       "pbeWithMD5AndCast5CBC"
00552 #define NID_pbeWithMD5AndCast5_CBC      112
00553 #define OBJ_pbeWithMD5AndCast5_CBC      1L,2L,840L,113533L,7L,66L,12L
00554 
00555 /* Sun uses this identifier
00556  * id-dsa-with-sha1 ID  ::= {
00557  *   iso(1) member-body(2) us(840) x9-57 (10040) x9cm(4) 3 }
00558  */
00559 #define SN_dsaWithSHA1                  "DSA-SHA1"
00560 #define LN_dsaWithSHA1                  "dsaWithSHA1"
00561 #define NID_dsaWithSHA1                 113
00562 #define OBJ_dsaWithSHA1                 1L,2L,840L,10040L,4L,3L
00563 
00564 #define NID_md5_sha1                    114
00565 #define SN_md5_sha1                     "MD5-SHA1"
00566 #define LN_md5_sha1                     "md5-sha1"
00567 
00568 #define SN_sha1WithRSA                  "RSA-SHA1-2"
00569 #define LN_sha1WithRSA                  "sha1WithRSA"
00570 #define NID_sha1WithRSA                 115
00571 #define OBJ_sha1WithRSA                 OBJ_algorithm,29L
00572 
00573 #define SN_dsa                          "DSA"
00574 #define LN_dsa                          "dsaEncryption"
00575 #define NID_dsa                         116
00576 #define OBJ_dsa                         1L,2L,840L,10040L,4L,1L
00577 
00578 #define SN_ripemd160                    "RIPEMD160"
00579 #define LN_ripemd160                    "ripemd160"
00580 #define NID_ripemd160                   117
00581 #define OBJ_ripemd160                   1L,3L,36L,3L,2L,1L
00582 
00583 #define SN_rc5_cbc_no_pad               "RC5-CBC-NO-PAD"
00584 #define LN_rc5_cbc_no_pad               "rc5-cbc-no-pad"
00585 #define NID_rc5_cbc_no_pad              118
00586 #define OBJ_rc5_cbc_no_pad              OBJ_rsadsi,3L,8L
00587 
00588 /* The name should actually be rsaSignatureWithripemd160, but the form
00589  * here continues the convention used with other definitions here.
00590  */
00591 #define SN_ripemd160WithRSA             "RSA-RIPEMD160"
00592 #define LN_ripemd160WithRSA             "ripemd160WithRSA"
00593 #define NID_ripemd160WithRSA            119
00594 #define OBJ_ripemd160WithRSA            1L,3L,36L,3L,3L,1L,2L
00595 
00596 /* Taken from rfc2040
00597  *  RC5_CBC_Parameters ::= SEQUENCE {
00598  *      version           INTEGER (v1_0(16)),
00599  *      rounds            INTEGER (8..127),
00600  *      blockSizeInBits   INTEGER (64, 128),
00601  *      iv                OCTET STRING OPTIONAL
00602  *      }
00603  */
00604 #define SN_rc5_cbc                      "RC5-CBC"
00605 #define LN_rc5_cbc                      "rc5-cbc"
00606 #define NID_rc5_cbc                     120
00607 #define OBJ_rc5_cbc                     OBJ_rsadsi,3L,9L
00608 
00609 #define SN_rc5_ecb                      "RC5-ECB"
00610 #define LN_rc5_ecb                      "rc5-ecb"
00611 #define NID_rc5_ecb                     121
00612 
00613 #define SN_rc5_cfb64                    "RC5-CFB"
00614 #define LN_rc5_cfb64                    "rc5-cfb"
00615 #define NID_rc5_cfb64                   122
00616 
00617 #define SN_rc5_ofb64                    "RC5-OFB"
00618 #define LN_rc5_ofb64                    "rc5-ofb"
00619 #define NID_rc5_ofb64                   123
00620 
00621 #define SN_rle_compression              "RLE"
00622 #define LN_rle_compression              "run length compression"
00623 #define NID_rle_compression             124
00624 #define OBJ_rle_compression             1L,1L,1L,1L,666L.1L
00625 
00626 #define SN_zlib_compression             "ZLIB"
00627 #define LN_zlib_compression             "zlib compression"
00628 #define NID_zlib_compression            125
00629 #define OBJ_zlib_compression            1L,1L,1L,1L,666L.2L
00630 
00631 #define SN_ext_key_usage                "extendedKeyUsage"
00632 #define LN_ext_key_usage                "X509v3 Extended Key Usage"
00633 #define NID_ext_key_usage               126
00634 #define OBJ_ext_key_usage               OBJ_ld_ce,37L
00635 
00636 #define SN_ms_sgc                       "msSGC"
00637 #define LN_ms_sgc                       "Microsoft Server Gated Crypto"
00638 #define NID_ms_sgc                      137
00639 #define OBJ_ms_sgc                      1L,3L,6L,1L,4L,1L,311L,10L,3L,3L
00640 
00641 #define SN_ns_sgc                       "nsSGC"
00642 #define LN_ns_sgc                       "Netscape Server Gated Crypto"
00643 #define NID_ns_sgc                      139
00644 #define OBJ_ns_sgc                      OBJ_netscape,4L,1L
00645 
00646 /* Taken from csrc.nist.gov/csor/algorithms.htm
00647  * I am not shure about SN_xx,
00648  * This list 128,192 & 256 in all 4 modes
00649  * Please note all NIDs are relative to the nist-aes one.
00650  */
00651 
00652 #define SN_nistAlgorithms1              "nistAlgorithms1"
00653 #define LN_nistAlgorithms1              "nist Algorthms 1"
00654 #define NID_nistAlgorithms1             140
00655 #define OBJ_nistAlgorithms1             2L,16L,840L,1L,101L,3L,4L,1L
00656 
00657 #define SN_aes128_ecb                   "AES128-ECB"
00658 #define LN_aes128_ecb                   "aes128-ecb"
00659 #define NID_aes128_ecb                  (NID_nistAlgorithms1+1)
00660 #define OBJ_aes128_ecb                  OBJ_nistAlgorithms1,1L
00661 
00662 #define SN_aes128_cbc                   "AES128-CBC"
00663 #define LN_aes128_cbc                   "aes128-cbc"
00664 #define NID_aes128_cbc                  (NID_nistAlgorithms1+2)
00665 #define OBJ_aes128_cbc                  OBJ_nistAlgorithms1,2L
00666 
00667 #define SN_aes128_ofb                   "AES128-OFB"
00668 #define LN_aes128_ofb                   "aes128-ofb"
00669 #define NID_aes128_ofb                  (NID_nistAlgorithms1+3)
00670 #define OBJ_aes128_ofb                  OBJ_nistAlgorithms1,3L
00671 
00672 #define SN_aes128_cfb                   "AES128-CFB"
00673 #define LN_aes128_cfb                   "aes128-cfb"
00674 #define NID_aes128_cfb                  (NID_nistAlgorithms1+4)
00675 #define OBJ_aes128_cfb                  OBJ_nistAlgorithms1,4L
00676 
00677 #define SN_aes192_ecb                   "AES192-ECB"
00678 #define LN_aes192_ecb                   "aes192-ecb"
00679 #define NID_aes192_ecb                  (NID_nistAlgorithms1+5)
00680 #define OBJ_aes192_ecb                  OBJ_nistAlgorithms1,21L
00681 
00682 #define SN_aes192_cbc                   "AES192-CBC"
00683 #define LN_aes192_cbc                   "aes192-cbc"
00684 #define NID_aes192_cbc                  (NID_nistAlgorithms1+6)
00685 #define OBJ_aes192_cbc                  OBJ_nistAlgorithms1,22L
00686 
00687 #define SN_aes192_ofb                   "AES192-OFB"
00688 #define LN_aes192_ofb                   "aes192-ofb"
00689 #define NID_aes192_ofb                  (NID_nistAlgorithms1+7)
00690 #define OBJ_aes192_ofb                  OBJ_nistAlgorithms1,23L
00691 
00692 #define SN_aes192_cfb                   "AES192-CFB"
00693 #define LN_aes192_cfb                   "aes192-cfb"
00694 #define NID_aes192_cfb                  (NID_nistAlgorithms1+8)
00695 #define OBJ_aes192_cfb                  OBJ_nistAlgorithms1,24L
00696 
00697 #define SN_aes256_ecb                   "AES256-ECB"
00698 #define LN_aes256_ecb                   "aes256-ecb"
00699 #define NID_aes256_ecb                  (NID_nistAlgorithms1+9)
00700 #define OBJ_aes256_ecb                  OBJ_nistAlgorithms1,41L
00701 
00702 #define SN_aes256_cbc                   "AES256-CBC"
00703 #define LN_aes256_cbc                   "aes256-cbc"
00704 #define NID_aes256_cbc                  (NID_nistAlgorithms1+10)
00705 #define OBJ_aes256_cbc                  OBJ_nistAlgorithms1,42L
00706 
00707 #define SN_aes256_ofb                   "AES256-OFB"
00708 #define LN_aes256_ofb                   "aes256-ofb"
00709 #define NID_aes256_ofb                  (NID_nistAlgorithms1+11)
00710 #define OBJ_aes256_ofb                  OBJ_nistAlgorithms1,43L
00711 
00712 #define SN_aes256_cfb                   "AES256-CFB"
00713 #define LN_aes256_cfb                   "aes256-cfb"
00714 #define NID_aes256_cfb                  (NID_nistAlgorithms1+12)
00715 #define OBJ_aes256_cfb                  OBJ_nistAlgorithms1,44L
00716 
00717 #define SN_id_mgf                       "idMGF"
00718 #define LN_id_mgf                       "Mask Generation function OAEP padding"
00719 #define NID_id_mgf                      153
00720 #define OBJ_id_mgf                      OBJ_pkcs,1L,8L
00721 
00722 #define SN_id_pspecified                "idpSPEC"
00723 #define LN_id_pspecified                "Parameters Source Function OAEP padding"
00724 #define NID_id_pspecified               154
00725 #define OBJ_id_pspecified               OBJ_pkcs,1L,9L
00726 
00727 #define SN_rsaes_oaep                   "OAEP"
00728 #define LN_rsaes_oaep                   "RSAES OAEP encryption scheme"
00729 #define NID_rsaes_oaep                  155
00730 #define OBJ_rsaes_oaep                  OBJ_pkcs,1L,7L
00731 
00732 #define SN_des_40_cbc                   "DES-40-CBC"
00733 #define LN_des_40_cbc                   "des-40-cbc"
00734 #define NID_des_40_cbc                  156
00735 
00736 #define SN_des_40_cfb                   "DES-40-CFB"
00737 #define LN_des_40_cfb                   "des-40-cfb"
00738 #define NID_des_40_cfb                  157
00739 
00740 #define SN_rc6_ecb                      "RC6-ECB"
00741 #define LN_rc6_ecb                      "rc6-ecb"
00742 #define NID_rc6_ecb                     158
00743 #define OBJ_rc6_ebc                     OBJ_rsadsi,3L,11L,1L
00744 
00745 #define SN_rc6_cbc                      "RC6-CBC"
00746 #define LN_rc6_cbc                      "rc6-cbc"
00747 #define NID_rc6_cbc                     159
00748 #define OBJ_rc6_cbc                     OBJ_rsadsi,3L,11L,2L
00749 
00750 #define SN_rc6_ofb128                   "RC6-OFB"
00751 #define LN_rc6_ofb128                   "rc6-ofb"
00752 #define NID_rc6_ofb128                  160
00753 #define OBJ_rc6_ofb128                  OBJ_rsadsi,3L,11L,3L
00754 
00755 #define SN_rc6_cfb128                   "RC6-CFB"
00756 #define LN_rc6_cfb128                   "rc6-cfb"
00757 #define NID_rc6_cfb128                  161
00758 #define OBJ_rc6_cfb128                  OBJ_rsadsi,3L,11L,4L
00759 
00760 /* SHA2 - 256, 384 and 512 OID taken from:
00761 
00762         PKCS #1 v2.1: RSA Cryptography Standard
00763         RSA Laboratories
00764         DRAFT 2 - January 5, 2001
00765  */
00766 #define SN_sha256                       "SHA256"
00767 #define LN_sha256                       "sha256"
00768 #define NID_sha256                      162
00769 #define OBJ_sha256                      2L,16L,840L,1L,101L,3L,4L,2L,1L
00770 
00771 #define SN_sha384                       "SHA384"
00772 #define LN_sha384                       "sha384"
00773 #define NID_sha384                      163
00774 #define OBJ_sha384                      2L,16L,840L,1L,101L,3L,4L,2L,2L
00775 
00776 #define SN_sha512                       "SHA512"
00777 #define LN_sha512                       "sha512"
00778 #define NID_sha512                      164
00779 #define OBJ_sha512                      2L,16L,840L,1L,101L,3L,4L,2L,3L
00780 
00781 /* More X500 and LDAP attribute types */
00782 #define SN_street                       "STREET"
00783 #define LN_street                       "street"
00784 #define NID_street                      166
00785 #define OBJ_street                      OBJ_X509,9L
00786 
00787 #define SN_generationQualifier          "GQ"
00788 #define LN_generationQualifier          "generationQualifier"
00789 #define NID_generationQualifier         167
00790 #define OBJ_generationQualifier         OBJ_X509,44L
00791 
00792 #define SN_dnQualifier                  "DNQ"
00793 #define LN_dnQualifier                  "dnQualifier"
00794 #define NID_dnQualifier                 168
00795 #define OBJ_dnQualifier                 OBJ_X509,46L
00796 
00797 #define SN_userID                       "UID"
00798 #define LN_userID                       "userID"
00799 #define NID_userID                      169
00800 #define OBJ_userID                      0L,9L,2342L,19200300L,100L,1L,1L
00801 
00802 #define SN_domainComponent              "DC"
00803 #define LN_domainComponent              "domainComponent"
00804 #define NID_domainComponent             170
00805 #define OBJ_domainComponent             0L,9L,2342L,19200300L,100L,1L,25L
00806 
00807 #define SN_reason_code                  "reasonCode"
00808 #define LN_reason_code                  "X509v3 CRL Reason Code"
00809 #define NID_reason_code                 171
00810 #define OBJ_reason_code                 OBJ_ld_ce,21L
00811 
00812 #define SN_instruction_code             "instructionCode"
00813 #define LN_instruction_code             "X509v3 CRL Instruction Code"
00814 #define NID_instruction_code            172
00815 #define OBJ_instruction_code            OBJ_ld_ce,23L
00816 
00817 #define SN_invalidity_date              "invalidityDate"
00818 #define LN_invalidity_date              "X509v3 CRL Invalidity Date"
00819 #define NID_invalidity_date             173
00820 #define OBJ_invalidity_date             OBJ_ld_ce,24L
00821 
00822 #define SN_delta_crl_indicator          "deltaCRLIndicator"
00823 #define LN_delta_crl_indicator          "X509v3 Delta CRL Indicator"
00824 #define NID_delta_crl_indicator         174
00825 #define OBJ_delta_crl_indicator         OBJ_ld_ce,27L
00826 
00827 #define SN_issuing_distribution_point   "issuingDistributionPoint"
00828 #define LN_issuing_distribution_point   "X509v3 CRL Issuing Distribution Point"
00829 #define NID_issuing_distribution_point  175
00830 #define OBJ_issuing_distribution_point  OBJ_ld_ce,28L
00831 
00832 #define SN_certificate_issuer           "certificateIssuer"
00833 #define LN_certificate_issuer           "X509v3 CRL Certificate Issuer"
00834 #define NID_certificate_issuer          176
00835 #define OBJ_certificate_issuer          OBJ_ld_ce,29L
00836 
00837 #define SN_name_constraints             "nameConstraints"
00838 #define LN_name_constraints             "X509v3 CRL Name Constraints"
00839 #define NID_name_constraints            177
00840 #define OBJ_name_constraints            OBJ_ld_ce,30L
00841 
00842 #define SN_ecc                          "ecc"
00843 #define LN_ecc                          "Elliptic Curve Cryptography"
00844 #define NID_ecc                         178
00845 #define OBJ_ecc                         1L,2L,840L,10045L,2L,1L
00846 
00847 #define SN_ECDSAwithSHA1                "ECDSA-with-SHA1"
00848 #define LN_ECDSAwithSHA1                "Elliptic Curve DSA with SHA1"
00849 #define NID_ECDSAwithSHA1               179
00850 #define OBJ_ECDSAwithSHA1               1L,2L,840L,10045L,4L,1L
00851 
00852 
00853 /*
00854  * Exported function protoypes
00855  */
00856 
00857 int R_NID_DIGEST_to_string(int nid, size_t max_str_len, char *str);
00858 int R_NID_DIGEST_from_string(char *str, int *nid);
00859 
00860 #ifdef  __cplusplus
00861 }
00862 #endif
00863 #endif /* HEADER_COMMON_R_NID_H */
00864 

Copyright (c) 1999-2002 RSA Security Inc. All rights reserved. 061-001005-150-001-000-3768 - 1.5