From 9d7a57745f529a93c4a6f1304d7049baeae2f352 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Sat, 23 Sep 2023 16:37:31 +0500 Subject: [PATCH] store aes key len as full not /4 value --- srt/packet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srt/packet.go b/srt/packet.go index 296ef99..1290a8a 100644 --- a/srt/packet.go +++ b/srt/packet.go @@ -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] }