lib/sw_apps/zynqmp_fsbl/src/xfsbl_partition_load.c
static void XFsbl_CalculateSHA(const XFsblPs * FsblInstancePtr,
	PTRSIZE LoadAddress, u32 PartitionNum, u8* PartitionHash)
{
	u32 Length;
	const XFsblPs_PartitionHeader * PartitionHeader;

	PartitionHeader =
	    &FsblInstancePtr->ImageHeader.PartitionHeader[PartitionNum];
	Length = PartitionHeader->TotalDataWordLength * 4U;

	/* Calculate SHA hash */
	XFsbl_ShaDigest((u8*)LoadAddress, Length, PartitionHash,
		XFSBL_HASH_TYPE_SHA3);
}
/*****************************************************************************/
/**
 * This function calculates SHA3 digest of the partition.
 *
 * @param	FsblInstancePtr is pointer to the XFsbl Instance
 * @param	LoadAddress Load address of partition
 * @param	PartitionNum is the partition number to calculate checksum
 * @param	Partition Hash points to the SHA3 digest of the partition
 *
 * @return	None
 *
 *****************************************************************************/
This function calculates SHA3 digest of the partition.
@param       FsblInstancePtr is pointer to the XFsbl Instance
@param       LoadAddress Load address of partition
@param       PartitionNum is the partition number to calculate checksum
@param       Partition Hash points to the SHA3 digest of the partition

@return      None
This function calculates SHA3 digest of the partition . @param FsblInstancePtr is pointer to the XFsbl Instance @param LoadAddress Load address of partition @param PartitionNum is the partition number to calculate checksum @param Partition Hash points to the SHA3 digest of the partition @return None
static void XFsbl_CalculateSHA(const XFsblPs * FsblInstancePtr,
	PTRSIZE LoadAddress, u32 PartitionNum, u8* PartitionHash)
{
	u32 Length;
	const XFsblPs_PartitionHeader * PartitionHeader;
	PartitionHeader =
	    &FsblInstancePtr->ImageHeader.PartitionHeader[PartitionNum];
	Length = PartitionHeader->TotalDataWordLength * 4U;
	XFsbl_ShaDigest((u8*)LoadAddress, Length, PartitionHash,
		XFSBL_HASH_TYPE_SHA3);
}
static void XFsbl_CalculateSHA ( const XFsblPs * FsblInstancePtr , PTRSIZE LoadAddress , u32 PartitionNum , u8 * PartitionHash ) { u32 Length ; const XFsblPs_PartitionHeader * PartitionHeader ; PartitionHeader = & FsblInstancePtr -> ImageHeader . PartitionHeader [ PartitionNum ] ; Length = PartitionHeader -> TotalDataWordLength * 4U ; XFsbl_ShaDigest ( ( u8 * ) LoadAddress , Length , PartitionHash , XFSBL_HASH_TYPE_SHA3 ) ; }
This function calculates SHA3 digest of the partition.
This function calculates SHA3 digest of the partition .
/* Calculate SHA hash */