taal/taal.c
/***************************************************************************
 * Function	:	taal_calc_img_hash
 * Arguments	:	ta - Trust ARCH Type enum
 * Return	:	ERROR or SUCCESS
 * Description	:	Calculate Image Hash Required for Signature
 ***************************************************************************/
Function     :       taal_calc_img_hash
Arguments    :       ta - Trust ARCH Type enum
Return       :       ERROR or SUCCESS
Description  :       Calculate Image Hash Required for Signature
Function : taal_calc_img_hash Arguments : ta - Trust ARCH Type enum Return : ERROR or SUCCESS Description : Calculate Image Hash Required for Signature
int taal_calc_img_hash(enum cfg_taal ta)
{
	if (taal[ta].calc_img_hash)
		return (*taal[ta].calc_img_hash)();
	printf("\n TA Abstraction Layer Error.. Missing Function Definition");
	return FAILURE;
}
int taal_calc_img_hash ( enum cfg_taal ta ) { if ( taal [ ta ] . calc_img_hash ) return ( * taal [ ta ] . calc_img_hash ) ( ) ; printf ( " \n " ) ; return FAILURE ; }
Function     :       taal_calc_img_hash
 Arguments    :       ta - Trust ARCH Type enum
 Return       :       ERROR or SUCCESS
 Description  :       Calculate Image Hash Required for Signature
Function : taal_calc_img_hash Arguments : ta - Trust ARCH Type enum Return : ERROR or SUCCESS Description : Calculate Image Hash Required for Signature