TCPSSLDecryptMAC Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCPSSLDecryptMAC Function
C
void TCPSSLDecryptMAC(
    TCP_SOCKET hTCP, 
    ARCFOUR_CTX* ctx, 
    WORD len
);
Description

This function decrypts data in the TCP buffer and calculates the MAC over the data. All data is left in the exact same location in the TCP buffer. It is called to help process incoming SSL records.

Preconditions

TCP is initialized, hTCP is connected, and ctx's Sbox is loaded.

Parameters
Parameters 
Description 
hTCP 
TCP connection to decrypt in 
ctx 
ARCFOUR encryption context to use 
len 
Number of bytes to crypt 
inPlace 
TRUE to write back in place, FALSE to write at end of currently visible data. 
Returns

None

Remarks

This function should never be called by an application. It is used only by the SSL module itself.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.