diff options
author | Uwe Heuert <uwe.heuert@exceeding-solutions.de> | 2022-12-09 12:25:20 +0100 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2023-01-03 07:44:19 +0000 |
commit | eb05f77b71f9bdc3798afd39159003179eeb15d4 (patch) | |
tree | c55c0195503f99bb3590bb49fe4dfcb29cd74a65 /epan/dissectors/packet-cms.c | |
parent | e60dc74d9015112e58e8240de5e1617e62a39762 (diff) |
BSI TR-03109 required extensions
Diffstat (limited to 'epan/dissectors/packet-cms.c')
-rw-r--r-- | epan/dissectors/packet-cms.c | 219 |
1 files changed, 218 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cms.c b/epan/dissectors/packet-cms.c index c6a9da78fe..ec95eedc1a 100644 --- a/epan/dissectors/packet-cms.c +++ b/epan/dissectors/packet-cms.c @@ -7,6 +7,7 @@ * Routines for RFC5652 Cryptographic Message Syntax packet dissection * Ronnie Sahlberg 2004 * Stig Bjorlykke 2010 + * Uwe Heuert 2022 * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> @@ -45,9 +46,11 @@ static int hf_cms_ContentInfo_PDU = -1; /* ContentInfo */ static int hf_cms_ContentType_PDU = -1; /* ContentType */ static int hf_cms_SignedData_PDU = -1; /* SignedData */ static int hf_cms_EnvelopedData_PDU = -1; /* EnvelopedData */ +static int hf_cms_EncryptedContentInfo_PDU = -1; /* EncryptedContentInfo */ static int hf_cms_DigestedData_PDU = -1; /* DigestedData */ static int hf_cms_EncryptedData_PDU = -1; /* EncryptedData */ static int hf_cms_AuthenticatedData_PDU = -1; /* AuthenticatedData */ +static int hf_cms_KeyEncryptionAlgorithmIdentifier_PDU = -1; /* KeyEncryptionAlgorithmIdentifier */ static int hf_cms_IssuerAndSerialNumber_PDU = -1; /* IssuerAndSerialNumber */ static int hf_cms_MessageDigest_PDU = -1; /* MessageDigest */ static int hf_cms_SigningTime_PDU = -1; /* SigningTime */ @@ -58,6 +61,8 @@ static int hf_cms_IV_PDU = -1; /* IV */ static int hf_cms_SMIMECapabilities_PDU = -1; /* SMIMECapabilities */ static int hf_cms_SMIMEEncryptionKeyPreference_PDU = -1; /* SMIMEEncryptionKeyPreference */ static int hf_cms_RC2CBCParameters_PDU = -1; /* RC2CBCParameters */ +static int hf_cms_AuthEnvelopedData_PDU = -1; /* AuthEnvelopedData */ +static int hf_cms_GCMParameters_PDU = -1; /* GCMParameters */ static int hf_cms_FirmwarePkgData_PDU = -1; /* FirmwarePkgData */ static int hf_cms_FirmwarePackageIdentifier_PDU = -1; /* FirmwarePackageIdentifier */ static int hf_cms_TargetHardwareIdentifiers_PDU = -1; /* TargetHardwareIdentifiers */ @@ -165,6 +170,11 @@ static int hf_cms_recipientKeyId = -1; /* RecipientKeyIdentifier */ static int hf_cms_subjectAltKeyIdentifier = -1; /* SubjectKeyIdentifier */ static int hf_cms_rc2WrapParameter = -1; /* RC2WrapParameter */ static int hf_cms_rc2CBCParameter = -1; /* RC2CBCParameter */ +static int hf_cms_authEncryptedContentInfo = -1; /* EncryptedContentInfo */ +static int hf_cms_aes_nonce = -1; /* OCTET_STRING_SIZE_7_13 */ +static int hf_cms_aes_ICVlen = -1; /* AES_CCM_ICVlen */ +static int hf_cms_aes_nonce_01 = -1; /* OCTET_STRING */ +static int hf_cms_aes_ICVlen_01 = -1; /* AES_GCM_ICVlen */ static int hf_cms_acInfo = -1; /* AttributeCertificateInfoV1 */ static int hf_cms_signatureAlgorithm_v1 = -1; /* AlgorithmIdentifier */ static int hf_cms_signatureValue_v1 = -1; /* BIT_STRING */ @@ -217,6 +227,7 @@ static int hf_cms_config_item = -1; /* CurrentFWConfig */ static int hf_cms_msgDigest = -1; /* OCTET_STRING */ /* Initialize the subtree pointers */ +static gint ett_cms = -1; static gint ett_cms_ContentInfo = -1; static gint ett_cms_SignedData = -1; static gint ett_cms_DigestAlgorithmIdentifiers = -1; @@ -268,6 +279,9 @@ static gint ett_cms_SMIMECapabilities = -1; static gint ett_cms_SMIMECapability = -1; static gint ett_cms_SMIMEEncryptionKeyPreference = -1; static gint ett_cms_RC2CBCParameters = -1; +static gint ett_cms_AuthEnvelopedData = -1; +static gint ett_cms_CCMParameters = -1; +static gint ett_cms_GCMParameters = -1; static gint ett_cms_AttributeCertificateV1 = -1; static gint ett_cms_AttributeCertificateInfoV1 = -1; static gint ett_cms_T_subject = -1; @@ -294,6 +308,8 @@ static gint ett_cms_CurrentFWConfig = -1; static gint ett_cms_HardwareModuleName = -1; static gint ett_cms_FirmwarePackageMessageDigest = -1; +static dissector_handle_t cms_handle = NULL; + static int dissect_cms_OCTET_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) ; /* XXX kill a compiler warning until asn2wrs stops generating these silly wrappers */ struct cms_private_data { @@ -317,6 +333,31 @@ static proto_tree *cap_tree=NULL; unsigned char digest_buf[MAX(HASH_SHA1_LENGTH, HASH_MD5_LENGTH)]; +/* +* Dissect CMS PDUs inside a PPDU. +*/ +static int +dissect_cms(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) +{ + int offset = 0; + proto_item *item=NULL; + proto_tree *tree=NULL; + asn1_ctx_t asn1_ctx; + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); + + if(parent_tree){ + item = proto_tree_add_item(parent_tree, proto_cms, tvb, 0, -1, ENC_NA); + tree = proto_item_add_subtree(item, ett_cms); + } + col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMS"); + col_clear(pinfo->cinfo, COL_INFO); + + while (tvb_reported_length_remaining(tvb, offset) > 0){ + offset=dissect_cms_ContentInfo(FALSE, tvb, offset, &asn1_ctx , tree, -1); + } + return tvb_captured_length(tvb); +} + static struct cms_private_data* cms_get_private_data(packet_info *pinfo) { @@ -1809,6 +1850,86 @@ dissect_cms_RC2CBCParameters(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int o } +static const ber_sequence_t AuthEnvelopedData_sequence[] = { + { &hf_cms_version , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_cms_CMSVersion }, + { &hf_cms_originatorInfo , BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_cms_OriginatorInfo }, + { &hf_cms_recipientInfos , BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_cms_RecipientInfos }, + { &hf_cms_authEncryptedContentInfo, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_cms_EncryptedContentInfo }, + { &hf_cms_authAttrs , BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_cms_AuthAttributes }, + { &hf_cms_mac , BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_cms_MessageAuthenticationCode }, + { &hf_cms_unauthAttrs , BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_cms_UnauthAttributes }, + { NULL, 0, 0, 0, NULL } +}; + +int +dissect_cms_AuthEnvelopedData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { + offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, + AuthEnvelopedData_sequence, hf_index, ett_cms_AuthEnvelopedData); + + return offset; +} + + + +static int +dissect_cms_OCTET_STRING_SIZE_7_13(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { + offset = dissect_ber_constrained_octet_string(implicit_tag, actx, tree, tvb, offset, + 7, 13, hf_index, NULL); + + return offset; +} + + + +static int +dissect_cms_AES_CCM_ICVlen(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { + offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset, + 4U, 16U, hf_index, NULL); + + return offset; +} + + +static const ber_sequence_t CCMParameters_sequence[] = { + { &hf_cms_aes_nonce , BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_cms_OCTET_STRING_SIZE_7_13 }, + { &hf_cms_aes_ICVlen , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_cms_AES_CCM_ICVlen }, + { NULL, 0, 0, 0, NULL } +}; + +static int +dissect_cms_CCMParameters(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { + offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, + CCMParameters_sequence, hf_index, ett_cms_CCMParameters); + + return offset; +} + + + +static int +dissect_cms_AES_GCM_ICVlen(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { + offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset, + 12U, 16U, hf_index, NULL); + + return offset; +} + + +static const ber_sequence_t GCMParameters_sequence[] = { + { &hf_cms_aes_nonce_01 , BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_cms_OCTET_STRING }, + { &hf_cms_aes_ICVlen_01 , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_cms_AES_GCM_ICVlen }, + { NULL, 0, 0, 0, NULL } +}; + +static int +dissect_cms_GCMParameters(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { + offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, + GCMParameters_sequence, hf_index, ett_cms_GCMParameters); + + return offset; +} + + static int dissect_cms_FirmwarePkgData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { @@ -2326,6 +2447,13 @@ static int dissect_EnvelopedData_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, offset = dissect_cms_EnvelopedData(FALSE, tvb, offset, &asn1_ctx, tree, hf_cms_EnvelopedData_PDU); return offset; } +static int dissect_EncryptedContentInfo_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { + int offset = 0; + asn1_ctx_t asn1_ctx; + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); + offset = dissect_cms_EncryptedContentInfo(FALSE, tvb, offset, &asn1_ctx, tree, hf_cms_EncryptedContentInfo_PDU); + return offset; +} static int dissect_DigestedData_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; @@ -2347,6 +2475,13 @@ static int dissect_AuthenticatedData_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _ offset = dissect_cms_AuthenticatedData(FALSE, tvb, offset, &asn1_ctx, tree, hf_cms_AuthenticatedData_PDU); return offset; } +static int dissect_KeyEncryptionAlgorithmIdentifier_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { + int offset = 0; + asn1_ctx_t asn1_ctx; + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); + offset = dissect_cms_KeyEncryptionAlgorithmIdentifier(FALSE, tvb, offset, &asn1_ctx, tree, hf_cms_KeyEncryptionAlgorithmIdentifier_PDU); + return offset; +} static int dissect_IssuerAndSerialNumber_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; @@ -2417,6 +2552,20 @@ static int dissect_RC2CBCParameters_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U offset = dissect_cms_RC2CBCParameters(FALSE, tvb, offset, &asn1_ctx, tree, hf_cms_RC2CBCParameters_PDU); return offset; } +static int dissect_AuthEnvelopedData_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { + int offset = 0; + asn1_ctx_t asn1_ctx; + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); + offset = dissect_cms_AuthEnvelopedData(FALSE, tvb, offset, &asn1_ctx, tree, hf_cms_AuthEnvelopedData_PDU); + return offset; +} +static int dissect_GCMParameters_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { + int offset = 0; + asn1_ctx_t asn1_ctx; + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); + offset = dissect_cms_GCMParameters(FALSE, tvb, offset, &asn1_ctx, tree, hf_cms_GCMParameters_PDU); + return offset; +} static int dissect_FirmwarePkgData_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; @@ -2535,6 +2684,10 @@ void proto_register_cms(void) { { "EnvelopedData", "cms.EnvelopedData_element", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }}, + { &hf_cms_EncryptedContentInfo_PDU, + { "EncryptedContentInfo", "cms.EncryptedContentInfo_element", + FT_NONE, BASE_NONE, NULL, 0, + NULL, HFILL }}, { &hf_cms_DigestedData_PDU, { "DigestedData", "cms.DigestedData_element", FT_NONE, BASE_NONE, NULL, 0, @@ -2547,6 +2700,10 @@ void proto_register_cms(void) { { "AuthenticatedData", "cms.AuthenticatedData_element", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }}, + { &hf_cms_KeyEncryptionAlgorithmIdentifier_PDU, + { "KeyEncryptionAlgorithmIdentifier", "cms.KeyEncryptionAlgorithmIdentifier_element", + FT_NONE, BASE_NONE, NULL, 0, + NULL, HFILL }}, { &hf_cms_IssuerAndSerialNumber_PDU, { "IssuerAndSerialNumber", "cms.IssuerAndSerialNumber_element", FT_NONE, BASE_NONE, NULL, 0, @@ -2587,6 +2744,14 @@ void proto_register_cms(void) { { "RC2CBCParameters", "cms.RC2CBCParameters", FT_UINT32, BASE_DEC, VALS(cms_RC2CBCParameters_vals), 0, NULL, HFILL }}, + { &hf_cms_AuthEnvelopedData_PDU, + { "AuthEnvelopedData", "cms.AuthEnvelopedData_element", + FT_NONE, BASE_NONE, NULL, 0, + NULL, HFILL }}, + { &hf_cms_GCMParameters_PDU, + { "GCMParameters", "cms.GCMParameters_element", + FT_NONE, BASE_NONE, NULL, 0, + NULL, HFILL }}, { &hf_cms_FirmwarePkgData_PDU, { "FirmwarePkgData", "cms.FirmwarePkgData", FT_BYTES, BASE_NONE, NULL, 0, @@ -3015,6 +3180,26 @@ void proto_register_cms(void) { { "rc2CBCParameter", "cms.rc2CBCParameter_element", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }}, + { &hf_cms_authEncryptedContentInfo, + { "authEncryptedContentInfo", "cms.authEncryptedContentInfo_element", + FT_NONE, BASE_NONE, NULL, 0, + "EncryptedContentInfo", HFILL }}, + { &hf_cms_aes_nonce, + { "aes-nonce", "cms.aes_nonce", + FT_BYTES, BASE_NONE, NULL, 0, + "OCTET_STRING_SIZE_7_13", HFILL }}, + { &hf_cms_aes_ICVlen, + { "aes-ICVlen", "cms.aes_ICVlen", + FT_UINT32, BASE_DEC, NULL, 0, + "AES_CCM_ICVlen", HFILL }}, + { &hf_cms_aes_nonce_01, + { "aes-nonce", "cms.aes_nonce", + FT_BYTES, BASE_NONE, NULL, 0, + "OCTET_STRING", HFILL }}, + { &hf_cms_aes_ICVlen_01, + { "aes-ICVlen", "cms.aes_ICVlen", + FT_UINT32, BASE_DEC, NULL, 0, + "AES_GCM_ICVlen", HFILL }}, { &hf_cms_acInfo, { "acInfo", "cms.acInfo_element", FT_NONE, BASE_NONE, NULL, 0, @@ -3219,6 +3404,7 @@ void proto_register_cms(void) { /* List of subtrees */ static gint *ett[] = { + &ett_cms, &ett_cms_ContentInfo, &ett_cms_SignedData, &ett_cms_DigestAlgorithmIdentifiers, @@ -3270,6 +3456,9 @@ void proto_register_cms(void) { &ett_cms_SMIMECapability, &ett_cms_SMIMEEncryptionKeyPreference, &ett_cms_RC2CBCParameters, + &ett_cms_AuthEnvelopedData, + &ett_cms_CCMParameters, + &ett_cms_GCMParameters, &ett_cms_AttributeCertificateV1, &ett_cms_AttributeCertificateInfoV1, &ett_cms_T_subject, @@ -3300,6 +3489,8 @@ void proto_register_cms(void) { /* Register protocol */ proto_cms = proto_register_protocol(PNAME, PSNAME, PFNAME); + cms_handle = register_dissector(PFNAME, dissect_cms, proto_cms); + /* Register fields and subtrees */ proto_register_field_array(proto_cms, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); @@ -3323,6 +3514,8 @@ void proto_reg_handoff_cms(void) { register_ber_oid_dissector("1.2.840.113549.1.7.5", dissect_DigestedData_PDU, proto_cms, "id-digestedData"); register_ber_oid_dissector("1.2.840.113549.1.7.6", dissect_EncryptedData_PDU, proto_cms, "id-encryptedData"); register_ber_oid_dissector("1.2.840.113549.1.9.16.1.2", dissect_AuthenticatedData_PDU, proto_cms, "id-ct-authenticatedData"); + register_ber_oid_dissector("1.2.840.113549.1.9.16.1.9", dissect_EncryptedContentInfo_PDU, proto_cms, "id-ct-compressedData"); + register_ber_oid_dissector("1.2.840.113549.1.9.16.1.23", dissect_AuthEnvelopedData_PDU, proto_cms, "id-ct-authEnvelopedData"); register_ber_oid_dissector("1.2.840.113549.1.9.3", dissect_ContentType_PDU, proto_cms, "id-contentType"); register_ber_oid_dissector("1.2.840.113549.1.9.4", dissect_MessageDigest_PDU, proto_cms, "id-messageDigest"); register_ber_oid_dissector("1.2.840.113549.1.9.5", dissect_SigningTime_PDU, proto_cms, "id-signingTime"); @@ -3332,6 +3525,15 @@ void proto_reg_handoff_cms(void) { register_ber_oid_dissector("1.2.840.113549.1.9.15", dissect_SMIMECapabilities_PDU, proto_cms, "id-smime-capabilities"); register_ber_oid_dissector("1.2.840.113549.1.9.16.2.11", dissect_SMIMEEncryptionKeyPreference_PDU, proto_cms, "id-encryption-key-preference"); register_ber_oid_dissector("1.2.840.113549.3.4", dissect_RC2CBCParameters_PDU, proto_cms, "id-alg-rc4"); + register_ber_oid_dissector("0.4.0.127.0.7.1.1.5.1.1.3", dissect_KeyEncryptionAlgorithmIdentifier_PDU, proto_cms, "ecka-eg-X963KDF-SHA256"); + register_ber_oid_dissector("0.4.0.127.0.7.1.1.5.1.1.4", dissect_KeyEncryptionAlgorithmIdentifier_PDU, proto_cms, "ecka-eg-X963KDF-SHA384"); + register_ber_oid_dissector("0.4.0.127.0.7.1.1.5.1.1.5", dissect_KeyEncryptionAlgorithmIdentifier_PDU, proto_cms, "ecka-eg-X963KDF-SHA512"); + register_ber_oid_dissector("2.16.840.1.101.3.4.1.5", dissect_KeyEncryptionAlgorithmIdentifier_PDU, proto_cms, "id-aes128-wrap"); + register_ber_oid_dissector("2.16.840.1.101.3.4.1.25", dissect_KeyEncryptionAlgorithmIdentifier_PDU, proto_cms, "id-aes192-wrap"); + register_ber_oid_dissector("2.16.840.1.101.3.4.1.45", dissect_KeyEncryptionAlgorithmIdentifier_PDU, proto_cms, "id-aes256-wrap"); + register_ber_oid_dissector("2.16.840.1.101.3.4.1.6", dissect_GCMParameters_PDU, proto_cms, "id-aes128-GCM"); + register_ber_oid_dissector("2.16.840.1.101.3.4.1.26", dissect_GCMParameters_PDU, proto_cms, "id-aes192-GCM"); + register_ber_oid_dissector("2.16.840.1.101.3.4.1.46", dissect_GCMParameters_PDU, proto_cms, "id-aes256-GCM"); register_ber_oid_dissector("1.3.133.16.840.63.0.2", dissect_KeyWrapAlgorithm_PDU, proto_cms, "dhSinglePass-stdDH-sha1kdf-scheme"); register_ber_oid_dissector("1.3.132.1.11.0", dissect_KeyWrapAlgorithm_PDU, proto_cms, "dhSinglePass-stdDH-sha224kdf-scheme"); register_ber_oid_dissector("1.3.132.1.11.1", dissect_KeyWrapAlgorithm_PDU, proto_cms, "dhSinglePass-stdDH-sha256kdf-scheme"); @@ -3370,10 +3572,25 @@ void proto_reg_handoff_cms(void) { register_ber_oid_dissector("1.2.840.113549.1.9.16.3.6", dissect_ber_oid_NULL_callback, proto_cms, "id-alg-CMS3DESwrap"); oid_add_from_string("id-data","1.2.840.113549.1.7.1"); + oid_add_from_string("id-alg-des-ede3-cbc","1.2.840.113549.3.7"); oid_add_from_string("id-alg-des-cbc","1.3.14.3.2.7"); + oid_add_from_string("id-ct-authEnvelopedData","1.2.840.113549.1.9.16.1.23"); + oid_add_from_string("id-aes-CBC-CMAC-128","0.4.0.127.0.7.1.3.1.1.2"); + oid_add_from_string("id-aes-CBC-CMAC-192","0.4.0.127.0.7.1.3.1.1.3"); + oid_add_from_string("id-aes-CBC-CMAC-256","0.4.0.127.0.7.1.3.1.1.4"); + oid_add_from_string("ecdsaWithSHA256","1.2.840.10045.4.3.2"); + oid_add_from_string("ecdsaWithSHA384","1.2.840.10045.4.3.3"); + oid_add_from_string("ecdsaWithSHA512","1.2.840.10045.4.3.4"); + content_info_handle = create_dissector_handle (dissect_ContentInfo_PDU, proto_cms); + dissector_add_string("media_type", "application/pkcs7-mime", content_info_handle); dissector_add_string("media_type", "application/pkcs7-signature", content_info_handle); - dissector_add_string("rfc7468.preeb_label", "CMS", content_info_handle); + + dissector_add_string("media_type", "application/vnd.de-dke-k461-ic1+xml", content_info_handle); + dissector_add_string("media_type", "application/vnd.de-dke-k461-ic1+xml; encap=cms-tr03109", content_info_handle); + dissector_add_string("media_type", "application/vnd.de-dke-k461-ic1+xml; encap=cms-tr03109-zlib", content_info_handle); + dissector_add_string("media_type", "application/hgp;encap=cms", content_info_handle); } + |