Diffie-Hellman key agreement with both Server Authentication and Perfect Forward Secrecy You're leaving out of the description many important details that are relevant to the protocol security, such as how the message length is sent. Is it encrypted? How? Is is sent in clear text? How is padding specified? It's specified by the AE method used or by any other means?