diff options
author | Piotr Winiarczyk <wino45@gmail.com> | 2019-05-07 00:36:34 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-05-07 15:28:35 +0000 |
commit | 5ad40e0cd07b6dd46ed76d79dff63e4923b52e5f (patch) | |
tree | eeb2eb8c364fc2b4c147f0f8a7da23e6dc59533b /epan/dissectors/packet-btmesh-proxy.c | |
parent | 48d7ceceddfe7c3db30b7aca25048acb86851f01 (diff) |
BTMESH: Add access layer decryption
Add access layer Application Key decryption
Add access layer Device Key decryption
Add Label UUID authentication
Add list of all opcodes
Bug: 15761
Change-Id: I290c6a4f2f990ccfa58701b7183a41afcc6e92c8
Reviewed-on: https://code.wireshark.org/review/33093
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-btmesh-proxy.c')
-rw-r--r-- | epan/dissectors/packet-btmesh-proxy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/dissectors/packet-btmesh-proxy.c b/epan/dissectors/packet-btmesh-proxy.c index 135cce204a..476463efcf 100644 --- a/epan/dissectors/packet-btmesh-proxy.c +++ b/epan/dissectors/packet-btmesh-proxy.c @@ -167,10 +167,14 @@ dissect_btmesh_proxy_configuration_msg(tvbuff_t *tvb, packet_info *pinfo, proto_ guint32 filter_type, list_size; guint32 offset = 0; guint32 decry_off = 0; + network_decryption_ctx_t *dec_ctx; proto_tree_add_item(tree, hf_btmesh_proxy_data, tvb, 0, tvb_reported_length(tvb), ENC_NA); - de_obf_tvb = btmesh_network_find_key_and_decrypt(tvb, pinfo, &decrypted_data, &enc_data_len, MESH_NONCE_TYPE_PROXY); + dec_ctx = (network_decryption_ctx_t *)wmem_alloc(wmem_packet_scope(), sizeof(network_decryption_ctx_t)); + dec_ctx->net_nonce_type = BTMESH_NONCE_TYPE_PROXY; + + de_obf_tvb = btmesh_network_find_key_and_decrypt(tvb, pinfo, &decrypted_data, &enc_data_len, dec_ctx); if (de_obf_tvb) { sub_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_btmesh_proxy_network_pdu, NULL, "Proxy Network PDU"); |