1 /* Do not modify this file. */
2 /* It is created automatically by the ASN.1 to Wireshark dissector compiler */
4 /* ../../tools/asn2wrs.py -b -p pkcs1 -c ./pkcs1.cnf -s ./packet-pkcs1-template -D . PKIXAlgs-2009.asn */
6 /* Input file: packet-pkcs1-template.c */
8 #line 1 "../../asn1/pkcs1/packet-pkcs1-template.c"
10 * Routines for PKCS#1/RFC2313 packet dissection
11 * Ronnie Sahlberg 2004
15 * Wireshark - Network traffic analyzer
16 * By Gerald Combs <gerald@wireshark.org>
17 * Copyright 1998 Gerald Combs
19 * This program is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU General Public License
21 * as published by the Free Software Foundation; either version 2
22 * of the License, or (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
39 #include <epan/packet.h>
40 #include <epan/oids.h>
41 #include <epan/asn1.h>
43 #include "packet-ber.h"
44 #include "packet-pkcs1.h"
45 #include "packet-x509af.h"
47 #define PNAME "PKCS#1"
48 #define PSNAME "PKCS-1"
49 #define PFNAME "pkcs-1"
51 /* Initialize the protocol and registered fields */
52 static int proto_pkcs1 = -1;
54 /*--- Included file: packet-pkcs1-hf.c ---*/
55 #line 1 "../../asn1/pkcs1/packet-pkcs1-hf.c"
56 static int hf_pkcs1_DSA_Params_PDU = -1; /* DSA_Params */
57 static int hf_pkcs1_DomainParameters_PDU = -1; /* DomainParameters */
58 static int hf_pkcs1_KEA_Params_Id_PDU = -1; /* KEA_Params_Id */
59 static int hf_pkcs1_ECParameters_PDU = -1; /* ECParameters */
60 static int hf_pkcs1_modulus = -1; /* INTEGER */
61 static int hf_pkcs1_publicExponent = -1; /* INTEGER */
62 static int hf_pkcs1_version = -1; /* Version */
63 static int hf_pkcs1_privateExponent = -1; /* INTEGER */
64 static int hf_pkcs1_prime1 = -1; /* INTEGER */
65 static int hf_pkcs1_prime2 = -1; /* INTEGER */
66 static int hf_pkcs1_exponent1 = -1; /* INTEGER */
67 static int hf_pkcs1_exponent2 = -1; /* INTEGER */
68 static int hf_pkcs1_coefficient = -1; /* INTEGER */
69 static int hf_pkcs1_digestAlgorithm = -1; /* DigestAlgorithmIdentifier */
70 static int hf_pkcs1_digest = -1; /* Digest */
71 static int hf_pkcs1_p = -1; /* INTEGER */
72 static int hf_pkcs1_q = -1; /* INTEGER */
73 static int hf_pkcs1_g = -1; /* INTEGER */
74 static int hf_pkcs1_j = -1; /* INTEGER */
75 static int hf_pkcs1_validationParams = -1; /* ValidationParams */
76 static int hf_pkcs1_seed = -1; /* BIT_STRING */
77 static int hf_pkcs1_pgenCounter = -1; /* INTEGER */
78 static int hf_pkcs1_namedCurve = -1; /* OBJECT_IDENTIFIER */
79 static int hf_pkcs1_r = -1; /* INTEGER */
80 static int hf_pkcs1_s = -1; /* INTEGER */
82 /*--- End of included file: packet-pkcs1-hf.c ---*/
83 #line 46 "../../asn1/pkcs1/packet-pkcs1-template.c"
85 /* Initialize the subtree pointers */
87 /*--- Included file: packet-pkcs1-ett.c ---*/
88 #line 1 "../../asn1/pkcs1/packet-pkcs1-ett.c"
89 static gint ett_pkcs1_RSAPublicKey = -1;
90 static gint ett_pkcs1_RSAPrivateKey = -1;
91 static gint ett_pkcs1_DigestInfo = -1;
92 static gint ett_pkcs1_DSA_Params = -1;
93 static gint ett_pkcs1_DomainParameters = -1;
94 static gint ett_pkcs1_ValidationParams = -1;
95 static gint ett_pkcs1_ECParameters = -1;
96 static gint ett_pkcs1_DSA_Sig_Value = -1;
97 static gint ett_pkcs1_ECDSA_Sig_Value = -1;
99 /*--- End of included file: packet-pkcs1-ett.c ---*/
100 #line 49 "../../asn1/pkcs1/packet-pkcs1-template.c"
103 /*--- Included file: packet-pkcs1-fn.c ---*/
104 #line 1 "../../asn1/pkcs1/packet-pkcs1-fn.c"
108 dissect_pkcs1_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
109 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
116 static const ber_sequence_t RSAPublicKey_sequence[] = {
117 { &hf_pkcs1_modulus , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
118 { &hf_pkcs1_publicExponent, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
119 { NULL, 0, 0, 0, NULL }
123 dissect_pkcs1_RSAPublicKey(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
124 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
125 RSAPublicKey_sequence, hf_index, ett_pkcs1_RSAPublicKey);
133 dissect_pkcs1_Version(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
134 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
141 static const ber_sequence_t RSAPrivateKey_sequence[] = {
142 { &hf_pkcs1_version , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_Version },
143 { &hf_pkcs1_modulus , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
144 { &hf_pkcs1_publicExponent, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
145 { &hf_pkcs1_privateExponent, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
146 { &hf_pkcs1_prime1 , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
147 { &hf_pkcs1_prime2 , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
148 { &hf_pkcs1_exponent1 , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
149 { &hf_pkcs1_exponent2 , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
150 { &hf_pkcs1_coefficient , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
151 { NULL, 0, 0, 0, NULL }
155 dissect_pkcs1_RSAPrivateKey(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
156 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
157 RSAPrivateKey_sequence, hf_index, ett_pkcs1_RSAPrivateKey);
165 dissect_pkcs1_DigestAlgorithmIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
166 offset = dissect_x509af_AlgorithmIdentifier(implicit_tag, tvb, offset, actx, tree, hf_index);
174 dissect_pkcs1_Digest(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
175 offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
182 static const ber_sequence_t DigestInfo_sequence[] = {
183 { &hf_pkcs1_digestAlgorithm, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_pkcs1_DigestAlgorithmIdentifier },
184 { &hf_pkcs1_digest , BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_pkcs1_Digest },
185 { NULL, 0, 0, 0, NULL }
189 dissect_pkcs1_DigestInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
190 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
191 DigestInfo_sequence, hf_index, ett_pkcs1_DigestInfo);
197 static const ber_sequence_t DSA_Params_sequence[] = {
198 { &hf_pkcs1_p , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
199 { &hf_pkcs1_q , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
200 { &hf_pkcs1_g , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
201 { NULL, 0, 0, 0, NULL }
205 dissect_pkcs1_DSA_Params(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
206 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
207 DSA_Params_sequence, hf_index, ett_pkcs1_DSA_Params);
216 dissect_pkcs1_BIT_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
217 offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
225 static const ber_sequence_t ValidationParams_sequence[] = {
226 { &hf_pkcs1_seed , BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_pkcs1_BIT_STRING },
227 { &hf_pkcs1_pgenCounter , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
228 { NULL, 0, 0, 0, NULL }
232 dissect_pkcs1_ValidationParams(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
233 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
234 ValidationParams_sequence, hf_index, ett_pkcs1_ValidationParams);
240 static const ber_sequence_t DomainParameters_sequence[] = {
241 { &hf_pkcs1_p , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
242 { &hf_pkcs1_g , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
243 { &hf_pkcs1_q , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
244 { &hf_pkcs1_j , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_pkcs1_INTEGER },
245 { &hf_pkcs1_validationParams, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_pkcs1_ValidationParams },
246 { NULL, 0, 0, 0, NULL }
250 dissect_pkcs1_DomainParameters(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
251 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
252 DomainParameters_sequence, hf_index, ett_pkcs1_DomainParameters);
261 dissect_pkcs1_KEA_Params_Id(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
262 offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
272 dissect_pkcs1_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
273 offset = dissect_ber_object_identifier(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
279 static const value_string pkcs1_ECParameters_vals[] = {
284 static const ber_choice_t ECParameters_choice[] = {
285 { 0, &hf_pkcs1_namedCurve , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_pkcs1_OBJECT_IDENTIFIER },
286 { 0, NULL, 0, 0, 0, NULL }
290 dissect_pkcs1_ECParameters(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
291 offset = dissect_ber_choice(actx, tree, tvb, offset,
292 ECParameters_choice, hf_index, ett_pkcs1_ECParameters,
302 static void dissect_DSA_Params_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
304 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
305 dissect_pkcs1_DSA_Params(FALSE, tvb, 0, &asn1_ctx, tree, hf_pkcs1_DSA_Params_PDU);
307 static void dissect_DomainParameters_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
309 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
310 dissect_pkcs1_DomainParameters(FALSE, tvb, 0, &asn1_ctx, tree, hf_pkcs1_DomainParameters_PDU);
312 static void dissect_KEA_Params_Id_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
314 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
315 dissect_pkcs1_KEA_Params_Id(FALSE, tvb, 0, &asn1_ctx, tree, hf_pkcs1_KEA_Params_Id_PDU);
317 static void dissect_ECParameters_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
319 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
320 dissect_pkcs1_ECParameters(FALSE, tvb, 0, &asn1_ctx, tree, hf_pkcs1_ECParameters_PDU);
324 /*--- End of included file: packet-pkcs1-fn.c ---*/
325 #line 51 "../../asn1/pkcs1/packet-pkcs1-template.c"
327 /*--- proto_register_pkcs1 ----------------------------------------------*/
328 void proto_register_pkcs1(void) {
331 static hf_register_info hf[] = {
333 /*--- Included file: packet-pkcs1-hfarr.c ---*/
334 #line 1 "../../asn1/pkcs1/packet-pkcs1-hfarr.c"
335 { &hf_pkcs1_DSA_Params_PDU,
336 { "DSA-Params", "pkcs1.DSA_Params",
337 FT_NONE, BASE_NONE, NULL, 0,
339 { &hf_pkcs1_DomainParameters_PDU,
340 { "DomainParameters", "pkcs1.DomainParameters",
341 FT_NONE, BASE_NONE, NULL, 0,
343 { &hf_pkcs1_KEA_Params_Id_PDU,
344 { "KEA-Params-Id", "pkcs1.KEA_Params_Id",
345 FT_BYTES, BASE_NONE, NULL, 0,
347 { &hf_pkcs1_ECParameters_PDU,
348 { "ECParameters", "pkcs1.ECParameters",
349 FT_UINT32, BASE_DEC, VALS(pkcs1_ECParameters_vals), 0,
352 { "modulus", "pkcs1.modulus",
353 FT_INT32, BASE_DEC, NULL, 0,
355 { &hf_pkcs1_publicExponent,
356 { "publicExponent", "pkcs1.publicExponent",
357 FT_INT32, BASE_DEC, NULL, 0,
360 { "version", "pkcs1.version",
361 FT_INT32, BASE_DEC, NULL, 0,
363 { &hf_pkcs1_privateExponent,
364 { "privateExponent", "pkcs1.privateExponent",
365 FT_INT32, BASE_DEC, NULL, 0,
368 { "prime1", "pkcs1.prime1",
369 FT_INT32, BASE_DEC, NULL, 0,
372 { "prime2", "pkcs1.prime2",
373 FT_INT32, BASE_DEC, NULL, 0,
375 { &hf_pkcs1_exponent1,
376 { "exponent1", "pkcs1.exponent1",
377 FT_INT32, BASE_DEC, NULL, 0,
379 { &hf_pkcs1_exponent2,
380 { "exponent2", "pkcs1.exponent2",
381 FT_INT32, BASE_DEC, NULL, 0,
383 { &hf_pkcs1_coefficient,
384 { "coefficient", "pkcs1.coefficient",
385 FT_INT32, BASE_DEC, NULL, 0,
387 { &hf_pkcs1_digestAlgorithm,
388 { "digestAlgorithm", "pkcs1.digestAlgorithm",
389 FT_NONE, BASE_NONE, NULL, 0,
390 "DigestAlgorithmIdentifier", HFILL }},
392 { "digest", "pkcs1.digest",
393 FT_BYTES, BASE_NONE, NULL, 0,
397 FT_INT32, BASE_DEC, NULL, 0,
401 FT_INT32, BASE_DEC, NULL, 0,
405 FT_INT32, BASE_DEC, NULL, 0,
409 FT_INT32, BASE_DEC, NULL, 0,
411 { &hf_pkcs1_validationParams,
412 { "validationParams", "pkcs1.validationParams",
413 FT_NONE, BASE_NONE, NULL, 0,
416 { "seed", "pkcs1.seed",
417 FT_BYTES, BASE_NONE, NULL, 0,
418 "BIT_STRING", HFILL }},
419 { &hf_pkcs1_pgenCounter,
420 { "pgenCounter", "pkcs1.pgenCounter",
421 FT_INT32, BASE_DEC, NULL, 0,
423 { &hf_pkcs1_namedCurve,
424 { "namedCurve", "pkcs1.namedCurve",
425 FT_OID, BASE_NONE, NULL, 0,
426 "OBJECT_IDENTIFIER", HFILL }},
429 FT_INT32, BASE_DEC, NULL, 0,
433 FT_INT32, BASE_DEC, NULL, 0,
436 /*--- End of included file: packet-pkcs1-hfarr.c ---*/
437 #line 58 "../../asn1/pkcs1/packet-pkcs1-template.c"
440 /* List of subtrees */
441 static gint *ett[] = {
443 /*--- Included file: packet-pkcs1-ettarr.c ---*/
444 #line 1 "../../asn1/pkcs1/packet-pkcs1-ettarr.c"
445 &ett_pkcs1_RSAPublicKey,
446 &ett_pkcs1_RSAPrivateKey,
447 &ett_pkcs1_DigestInfo,
448 &ett_pkcs1_DSA_Params,
449 &ett_pkcs1_DomainParameters,
450 &ett_pkcs1_ValidationParams,
451 &ett_pkcs1_ECParameters,
452 &ett_pkcs1_DSA_Sig_Value,
453 &ett_pkcs1_ECDSA_Sig_Value,
455 /*--- End of included file: packet-pkcs1-ettarr.c ---*/
456 #line 63 "../../asn1/pkcs1/packet-pkcs1-template.c"
459 /* Register protocol */
460 proto_pkcs1 = proto_register_protocol(PNAME, PSNAME, PFNAME);
462 /* Register fields and subtrees */
463 proto_register_field_array(proto_pkcs1, hf, array_length(hf));
464 proto_register_subtree_array(ett, array_length(ett));
469 /*--- proto_reg_handoff_pkcs1 -------------------------------------------*/
470 void proto_reg_handoff_pkcs1(void) {
472 /*--- Included file: packet-pkcs1-dis-tab.c ---*/
473 #line 1 "../../asn1/pkcs1/packet-pkcs1-dis-tab.c"
474 register_ber_oid_dissector("1.2.840.10040.4.1", dissect_DSA_Params_PDU, proto_pkcs1, "id-dsa");
475 register_ber_oid_dissector("1.2.840.10046.2.1", dissect_DomainParameters_PDU, proto_pkcs1, "dhpublicnumber");
476 register_ber_oid_dissector("2.16.840.1.101.2.1.1.22", dissect_KEA_Params_Id_PDU, proto_pkcs1, "id-keyExchangeAlgorithm");
477 register_ber_oid_dissector("1.2.840.10045.2.1", dissect_ECParameters_PDU, proto_pkcs1, "id-ecPublicKey");
478 register_ber_oid_dissector("1.3.132.1.12", dissect_ECParameters_PDU, proto_pkcs1, "id-ecDH");
479 register_ber_oid_dissector("1.2.840.10045.2.13", dissect_ECParameters_PDU, proto_pkcs1, "id-ecMQV");
482 /*--- End of included file: packet-pkcs1-dis-tab.c ---*/
483 #line 78 "../../asn1/pkcs1/packet-pkcs1-template.c"
485 register_ber_oid_dissector("1.2.840.113549.2.2", dissect_ber_oid_NULL_callback, proto_pkcs1, "md2");
486 register_ber_oid_dissector("1.2.840.113549.2.4", dissect_ber_oid_NULL_callback, proto_pkcs1, "md4");
487 register_ber_oid_dissector("1.2.840.113549.2.5", dissect_ber_oid_NULL_callback, proto_pkcs1, "md5");
489 register_ber_oid_dissector("1.2.840.113549.1.1.1", dissect_ber_oid_NULL_callback, proto_pkcs1, "rsaEncryption");
490 register_ber_oid_dissector("1.2.840.113549.1.1.2", dissect_ber_oid_NULL_callback, proto_pkcs1, "md2WithRSAEncryption");
491 register_ber_oid_dissector("1.2.840.113549.1.1.3", dissect_ber_oid_NULL_callback, proto_pkcs1, "md4WithRSAEncryption");
492 register_ber_oid_dissector("1.2.840.113549.1.1.4", dissect_ber_oid_NULL_callback, proto_pkcs1, "md5WithRSAEncryption");
495 /* these two are not from RFC2313 but pulled in from
496 http://www.alvestrand.no/objectid/1.2.840.113549.1.1.html
498 register_ber_oid_dissector("1.2.840.113549.1.1.5", dissect_ber_oid_NULL_callback, proto_pkcs1, "shaWithRSAEncryption");
499 register_ber_oid_dissector("1.2.840.113549.1.1.6", dissect_ber_oid_NULL_callback, proto_pkcs1, "rsaOAEPEncryptionSET");
501 oid_add_from_string("secp192r1","1.2.840.10045.3.1.1");
502 oid_add_from_string("sect163k1","1.3.132.0.1");
503 oid_add_from_string("sect163r2","1.3.132.0.15");
504 oid_add_from_string("secp224r1","1.3.132.0.33");
505 oid_add_from_string("sect233k1","1.3.132.0.26");
506 oid_add_from_string("sect233r1","1.3.132.0.27");
507 oid_add_from_string("secp256r1","1.2.840.10045.3.1.7");
508 oid_add_from_string("sect283k1","1.3.132.0.16");
509 oid_add_from_string("sect283r1","1.3.132.0.17");
510 oid_add_from_string("secp384r1","1.3.132.0.34");
511 oid_add_from_string("sect409k1","1.3.132.0.36");
512 oid_add_from_string("sect409r1","1.3.132.0.37");
513 oid_add_from_string("sect521r1","1.3.132.0.35")
514 ; oid_add_from_string("sect571k1","1.3.132.0.38");
515 oid_add_from_string("sect571r1","1.3.132.0.39");