SHA1HashBlock Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
SHA1HashBlock Function
C
static void SHA1HashBlock(
    BYTE* data, 
    DWORD* h0, 
    DWORD* h1, 
    DWORD* h2, 
    DWORD* h3, 
    DWORD* h4
);
Description

This function calculates the SHA-1 hash sum over a block and updates the values of h0-h3 with the next context.

Preconditions

The data pointer must be WORD aligned on 16-bit parts and DWORD aligned on 32-bit PICs. If alignment is not correct, a memory alignment exception will occur.

Parameters
Parameters 
Description 
data 
The block of 64 bytes to hash 
h0 
the current hash context h0 value 
h1 
the current hash context h1 value 
h2 
the current hash context h2 value 
h3 
the current hash context h3 value 
h4 
the current hash context h4 value 
Returns

None

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