lib/sw_apps/rsa_auth_app/src/rsa_auth_app.c
static void SetPpk(u8 *CertStart)
{
	u8 *PpkPtr;

	/*
	 * Set PpkPtr to PPK start address provided by user
	 */
	PpkPtr = (u8 *)(CertStart);

	/*
	 * Increment the pointer by authentication Header size
	 */
	PpkPtr += RSA_HEADER_SIZE;

	/*
	 * Increment the pointer by Magic word size
	 */
	PpkPtr += RSA_MAGIC_WORD_SIZE;

	/*
	 * Set pointer to PPK
	 */
	PpkModular = (u8 *)PpkPtr;
	PpkPtr += RSA_PPK_MODULAR_SIZE;
	PpkModularEx = (u8 *)PpkPtr;
	PpkPtr += RSA_PPK_MODULAR_EXT_SIZE;
	PpkExp = *((u32 *)PpkPtr);

	return;
}
/*****************************************************************************/
/**
*
* This function is used to set ppk pointer to ppk in OCM
*
* @param	CertStart Pointer to buffer which holds the starting address of
*                     authentication certificate provided by user
*
* @return   None
*
* @note		None
*
******************************************************************************/
This function is used to set ppk pointer to ppk in OCM
This function is used to set ppk pointer to ppk in OCM
static void SetPpk(u8 *CertStart)
{
	u8 *PpkPtr;
	PpkPtr = (u8 *)(CertStart);
	PpkPtr += RSA_HEADER_SIZE;
	PpkPtr += RSA_MAGIC_WORD_SIZE;
	PpkModular = (u8 *)PpkPtr;
	PpkPtr += RSA_PPK_MODULAR_SIZE;
	PpkModularEx = (u8 *)PpkPtr;
	PpkPtr += RSA_PPK_MODULAR_EXT_SIZE;
	PpkExp = *((u32 *)PpkPtr);
	return;
}
static void SetPpk ( u8 * CertStart ) { u8 * PpkPtr ; PpkPtr = ( u8 * ) ( CertStart ) ; PpkPtr += RSA_HEADER_SIZE ; PpkPtr += RSA_MAGIC_WORD_SIZE ; PpkModular = ( u8 * ) PpkPtr ; PpkPtr += RSA_PPK_MODULAR_SIZE ; PpkModularEx = ( u8 * ) PpkPtr ; PpkPtr += RSA_PPK_MODULAR_EXT_SIZE ; PpkExp = * ( ( u32 * ) PpkPtr ) ; return ; }
This function is used to set ppk pointer to ppk in OCM
This function is used to set ppk pointer to ppk in OCM
/*
	 * Set PpkPtr to PPK start address provided by user
	 */ /*
	 * Increment the pointer by authentication Header size
	 */ /*
	 * Increment the pointer by Magic word size
	 */ /*
	 * Set pointer to PPK
	 */