XilinxProcessorIPLib/drivers/hdcp22_common/src/sha2.c
static void Sha256Init(Sha256Type *Ctx)
{
   Ctx->datalen = 0;
   Ctx->bitlen[0] = 0;
   Ctx->bitlen[1] = 0;
   Ctx->state[0] = 0x6a09e667;
   Ctx->state[1] = 0xbb67ae85;
   Ctx->state[2] = 0x3c6ef372;
   Ctx->state[3] = 0xa54ff53a;
   Ctx->state[4] = 0x510e527f;
   Ctx->state[5] = 0x9b05688c;
   Ctx->state[6] = 0x1f83d9ab;
   Ctx->state[7] = 0x5be0cd19;
}
/*****************************************************************************/
/**
* This function initializes the context data for a SHA 256 hash calculation.
*
* @param  Ctx is the context data for SHA256.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function initializes the context data for a SHA 256 hash calculation.
This function initializes the context data for a SHA 256 hash calculation .
static void Sha256Init(Sha256Type *Ctx)
{
   Ctx->datalen = 0;
   Ctx->bitlen[0] = 0;
   Ctx->bitlen[1] = 0;
   Ctx->state[0] = 0x6a09e667;
   Ctx->state[1] = 0xbb67ae85;
   Ctx->state[2] = 0x3c6ef372;
   Ctx->state[3] = 0xa54ff53a;
   Ctx->state[4] = 0x510e527f;
   Ctx->state[5] = 0x9b05688c;
   Ctx->state[6] = 0x1f83d9ab;
   Ctx->state[7] = 0x5be0cd19;
}
static void Sha256Init ( Sha256Type * Ctx ) { Ctx -> datalen = 0 ; Ctx -> bitlen [ 0 ] = 0 ; Ctx -> bitlen [ 1 ] = 0 ; Ctx -> state [ 0 ] = 0x6a09e667 ; Ctx -> state [ 1 ] = 0xbb67ae85 ; Ctx -> state [ 2 ] = 0x3c6ef372 ; Ctx -> state [ 3 ] = 0xa54ff53a ; Ctx -> state [ 4 ] = 0x510e527f ; Ctx -> state [ 5 ] = 0x9b05688c ; Ctx -> state [ 6 ] = 0x1f83d9ab ; Ctx -> state [ 7 ] = 0x5be0cd19 ; }
This function initializes the context data for a SHA 256 hash calculation.
This function initializes the context data for a SHA 256 hash calculation .