lib/sw_apps/zynqmp_fsbl/src/xfsbl_rsa_sha.c
void XFsbl_ShaDigest(const u8 *In, const u32 Size, u8 *Out, u32 HashLen)
{

	if(XFSBL_HASH_TYPE_SHA3 == HashLen)
	{
		(void)XSecure_Sha3Initialize(&SecureSha3, &CsuDma);
		XSecure_Sha3Digest(&SecureSha3, In, Size, Out);
	}
}
/*****************************************************************************
 * This function calculates SHA3 hash for the given input data.
 *
 * @param       In      Pointer to the input data provided for hashing
 * @param       Size    Size of the input data provided for hashing
 * @param       Out     Pointer to the location where the resulting hash will
 *                      be written
 * @param       HashLen Length of the hash that is used to determine the sha3
 *                      hashing
 *
 * @return      None
 *
 ******************************************************************************/
This function calculates SHA3 hash for the given input data.
@param       In      Pointer to the input data provided for hashing
@param       Size    Size of the input data provided for hashing
@param       Out     Pointer to the location where the resulting hash will
be written
@param       HashLen Length of the hash that is used to determine the sha3
hashing

@return      None
This function calculates SHA3 hash for the given input data . @param In Pointer to the input data provided for hashing @param Size Size of the input data provided for hashing @param Out Pointer to the location where the resulting hash will be written @param HashLen Length of the hash that is used to determine the sha3 hashing @return None
void XFsbl_ShaDigest(const u8 *In, const u32 Size, u8 *Out, u32 HashLen)
{
	if(XFSBL_HASH_TYPE_SHA3 == HashLen)
	{
		(void)XSecure_Sha3Initialize(&SecureSha3, &CsuDma);
		XSecure_Sha3Digest(&SecureSha3, In, Size, Out);
	}
}
void XFsbl_ShaDigest ( const u8 * In , const u32 Size , u8 * Out , u32 HashLen ) { if ( XFSBL_HASH_TYPE_SHA3 == HashLen ) { ( void ) XSecure_Sha3Initialize ( & SecureSha3 , & CsuDma ) ; XSecure_Sha3Digest ( & SecureSha3 , In , Size , Out ) ; } }
This function calculates SHA3 hash for the given input data.
This function calculates SHA3 hash for the given input data .