src/lib/sha1.c
int SHA1Init(SHA1Context *context)
{
    if (!context)
    {
        return shaNull;
    }

    context->Length_Low             = 0;
    context->Length_High            = 0;
    context->Message_Block_Index    = 0;

    context->Intermediate_Hash[0]   = 0x67452301;
    context->Intermediate_Hash[1]   = 0xEFCDAB89;
    context->Intermediate_Hash[2]   = 0x98BADCFE;
    context->Intermediate_Hash[3]   = 0x10325476;
    context->Intermediate_Hash[4]   = 0xC3D2E1F0;

    context->Computed   = 0;
    context->Corrupted  = 0;

    return shaSuccess;
}
/*
 *  SHA1Init
 *
 *  Description:
 *      This function will initialize the SHA1Context in preparation
 *      for computing a new SHA1 message digest.
 *
 *  Parameters:
 *      context: [in/out]
 *          The context to reset.
 *
 *  Returns:
 *      sha Error Code.
 *
 */
SHA1Init
Description:
This function will initialize the SHA1Context in preparation
for computing a new SHA1 message digest.

[in/out]
The context to reset.

sha Error Code.
SHA1Init Description : This function will initialize the SHA1Context in preparation for computing a new SHA1 message digest . [ in / out ] The context to reset . sha Error Code .
int SHA1Init(SHA1Context *context)
{
    if (!context)
    {
        return shaNull;
    }
    context->Length_Low             = 0;
    context->Length_High            = 0;
    context->Message_Block_Index    = 0;
    context->Intermediate_Hash[0]   = 0x67452301;
    context->Intermediate_Hash[1]   = 0xEFCDAB89;
    context->Intermediate_Hash[2]   = 0x98BADCFE;
    context->Intermediate_Hash[3]   = 0x10325476;
    context->Intermediate_Hash[4]   = 0xC3D2E1F0;
    context->Computed   = 0;
    context->Corrupted  = 0;
    return shaSuccess;
}
int SHA1Init ( SHA1Context * context ) { if ( ! context ) { return shaNull ; } context -> Length_Low = 0 ; context -> Length_High = 0 ; context -> Message_Block_Index = 0 ; context -> Intermediate_Hash [ 0 ] = 0x67452301 ; context -> Intermediate_Hash [ 1 ] = 0xEFCDAB89 ; context -> Intermediate_Hash [ 2 ] = 0x98BADCFE ; context -> Intermediate_Hash [ 3 ] = 0x10325476 ; context -> Intermediate_Hash [ 4 ] = 0xC3D2E1F0 ; context -> Computed = 0 ; context -> Corrupted = 0 ; return shaSuccess ; }
SHA1Init
  Description:
      This function will initialize the SHA1Context in preparation
      for computing a new SHA1 message digest.
SHA1Init Description : This function will initialize the SHA1Context in preparation for computing a new SHA1 message digest .