aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorJérôme HAMM <jerome.hamm@planete-sciences.org>2022-02-11 21:24:11 +0100
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-05-12 09:43:57 +0000
commit3e81d98499a0fc181c431fdb9d762012fa05590d (patch)
tree010a4f1eab1d3ed2ee2efd199296596e0d2547f3 /epan/dissectors
parenta036c4dd096fd234478bd726439f985df73396a8 (diff)
ssh: fixing MAC IV derivation.
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-ssh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ssh.c b/epan/dissectors/packet-ssh.c
index 04175814be..88ec5465f8 100644
--- a/epan/dissectors/packet-ssh.c
+++ b/epan/dissectors/packet-ssh.c
@@ -2554,6 +2554,12 @@ static void ssh_derive_symmetric_keys(ssh_bignum *secret, gchar *exchange_hash,
ssh_debug_printf("ssh: cipher (%d) is unknown or not set\n", peer_data->cipher_id);
ssh_debug_flush();
}
+ if(peer_data->mac_id == CIPHER_MAC_SHA2_256){
+ need = 32;
+ }else{
+ ssh_debug_printf("ssh: MAC (%d) is unknown or not set\n", peer_data->mac_id);
+ ssh_debug_flush();
+ }
if (we_need<need) {
we_need = need;
}