This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How does wireshark get keyblock from Master Secret with 96 Bytes

0

I have the Client Random and Master Secret. It was written by FF like stated here. So I have the Master Secret in a 96 Bytes Hexvalue. Can someone tell where in the Source Code of wireshark I can find the function that takes this value and calculates the 128 or 256 bit AES Key for calculating the KeyBlock (where can find that function too?) which is needed to decrypt the SSL data.

Thanks!

asked 24 Mar '16, 05:02

monkey521's gravatar image

monkey521
31337
accept rate: 0%


One Answer:

1

If you would like to know how keys are derived from this master secret, have a look at RFC 5246 section 6.3 (TLS 1.2, Key Calculation).

As for the Wireshark source code, have a look at epan/dissectors/packet-ssl-utils.c, function ssl_generate_keyring_material. You can also enable the SSL debug log at the SSL protocol preferences and read the generated file for better understanding.

answered 24 Mar '16, 07:40

Lekensteyn's gravatar image

Lekensteyn
2.2k3724
accept rate: 30%

thank you this looks like what i have been looking for. now i need to learn some c to translate it into java ;)

(24 Mar '16, 08:52) monkey521