GenerateHashRounds Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
GenerateHashRounds Function
C
static void GenerateHashRounds(
    BYTE num, 
    BYTE* rand1, 
    BYTE* rand2
);
Description

Generates hash rounds to find either the Master Secret or the Key Block.

Preconditions

The SSL buffer is allocated for temporary usage and the data to run rounds on is in sslSession.masterSecret

Parameters
Parameters 
Description 
num 
how many rounds to compute 
rand1 
the first random data block to use 
rand2 
the second random data block to use 
Returns

None

Side Effects

Destroys the SSL Buffer space

Remarks

This function will overflow the buffer after 7 rounds, but in practice num = 3 or num = 4.

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