XilinxProcessorIPLib/drivers/hdcp22_common/src/sha2.c
void XHdcp22Cmn_Sha256Hash(const u8 *Data, u32 DataSize, u8 *HashedData)
{
	Sha256Type Ctx;

	Sha256Init(&Ctx);

	Sha256Update(&Ctx, Data, DataSize);
	Sha256Final(&Ctx, HashedData);
}
/*****************************************************************************/
/**
*
* This function computes a SHA256 hash on a array of data.
*
* @param  Data is the data on which a hash is calculated.
* @param  DataSize is the size of the data array..
* @param  HashedData is a 256-bits size hash.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function computes a SHA256 hash on a array of data.
This function computes a SHA256 hash on a array of data .
void XHdcp22Cmn_Sha256Hash(const u8 *Data, u32 DataSize, u8 *HashedData)
{
	Sha256Type Ctx;
	Sha256Init(&Ctx);
	Sha256Update(&Ctx, Data, DataSize);
	Sha256Final(&Ctx, HashedData);
}
void XHdcp22Cmn_Sha256Hash ( const u8 * Data , u32 DataSize , u8 * HashedData ) { Sha256Type Ctx ; Sha256Init ( & Ctx ) ; Sha256Update ( & Ctx , Data , DataSize ) ; Sha256Final ( & Ctx , HashedData ) ; }
This function computes a SHA256 hash on a array of data.
This function computes a SHA256 hash on a array of data .