forked from osmocom/wireshark
ssh: fixing MAC IV derivation.
This commit is contained in:
parent
a036c4dd09
commit
3e81d98499
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue