store aes key len as full not /4 value
This commit is contained in:
parent
074222e8ac
commit
9d7a57745f
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ func parse_hs_cif(cif *HandshakeCIF, buffer []byte) (error) {
|
||||||
case 3:
|
case 3:
|
||||||
content := new(KMMSG)
|
content := new(KMMSG)
|
||||||
content.key_type = extensions[7] & 0x3
|
content.key_type = extensions[7] & 0x3
|
||||||
content.key_len = extensions[19]
|
content.key_len = extensions[19] * 4
|
||||||
for i := 0; i < 4; i++ {
|
for i := 0; i < 4; i++ {
|
||||||
content.salt[i] = extensions[20 + i]
|
content.salt[i] = extensions[20 + i]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue