C
void TCPSSLInPlaceMACEncrypt( TCP_SOCKET hTCP, ARCFOUR_CTX* ctx, BYTE* MACSecret, WORD len );
Description
This function encrypts data in the TCP buffer while calcuating a MAC. When encryption is finished, the MAC is appended to the buffer and the record will be ready to transmit.
Preconditions
TCP is initialized, hTCP is connected, and ctx's Sbox is loaded.
Parameters
Parameters |
Description |
hTCP |
TCP connection to encrypt in |
ctx |
ARCFOUR encryption context to use |
MACSecret |
MAC encryption secret to use |
len |
Number of bytes to crypt |
Returns
None
Remarks
This function should never be called by an application. It is used only by the SSL module itself.