I'm implementing a TLS
-like prototype (for academical pruposes), and I've several problems in the handshake.
After the ClientHello
, the server sends 3 frames in a row (ServerHello
, ServerKeyExchange
and ServerHelloDone
), and the client can't catch every one of them.
I also saw in the Wikipedia page of TLS that server handshake messages (these 3 frames) can be combined in a single "record".
The first question that comes to my mind is : Why combinig them ? To make bigger frames ?
Let's say in my case I automatically concatenate the 3 frames in 1, to ease the reception of all these messages. In my case, that would lead to a frame of ~700 bytes.
My second question is : Could this "combining" bring security breaches ? Could someone take advantage of having all the information in one frame ? We agree that the system is secure when the frames are separated, the question is just on the concatenation of the frames.