3.1.5.2.3 Compress_Encrypt_Send Method

This method takes the inner authentication method or the EAP expanded type packets as input and processes it as follows:

  1. Compress the input data as specified in section 3.1.5.6, then encrypt the compressed data by passing it to the TLS layer using the EncryptMessage method.

  2. Prepare a PEAP packet by saving the encrypted data returned by the EncryptMessage method as the Data field of the PEAP packet and return the prepared PEAP packet as the Received PEAP Request (section 3.2.5.4.2) or Received PEAP Response (section 3.3.5.4.2) higher-layer triggered event.