ssh: fixing MAC IV derivation.

This commit is contained in:
Jérôme HAMM 2022-02-11 21:24:11 +01:00 committed by A Wireshark GitLab Utility
parent a036c4dd09
commit 3e81d98499
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}