store aes key len as full not /4 value

This commit is contained in:
Muaz Ahmad 2023-09-23 16:37:31 +05:00
parent 074222e8ac
commit 9d7a57745f

View file

@ -316,7 +316,7 @@ func parse_hs_cif(cif *HandshakeCIF, buffer []byte) (error) {
case 3:
content := new(KMMSG)
content.key_type = extensions[7] & 0x3
content.key_len = extensions[19]
content.key_len = extensions[19] * 4
for i := 0; i < 4; i++ {
content.salt[i] = extensions[20 + i]
}