lib/sw_services/xilsecure/src/zynqmp/xsecure_cryptochk.c
u32 XSecure_CryptoCheck(void)
{
	u32 Status = XST_FAILURE;
	u32 ExportValue;

	ExportValue = XSecure_ReadReg(XSECURE_IPDISABLE_EFUSE_BASE,
			XSECURE_IPDISABLE_EFUSE_OFFSET);
	if ((ExportValue & XSECURE_EXPORT_CONTROL_BIT_MASK) == 0U) {
		Status = XST_SUCCESS;
	}
	else {
		Status = XSECURE_CRYPTO_DISABLED_ERROR;
	}

	return Status;
}
/***************************************************************************/
/**
 * @brief	This function checks if the EXPORT control eFuse is
 * 		programmed
 *
 * @return	XST_SUCCESS - When EXPORT control eFUSE is not programmed
 *		XSECURE_CRYPTO_DISABLED_ERROR - When EXPORT control eFUSE is
 * 				programmed
 *
 ******************************************************************************/
@brief       This function checks if the EXPORT control eFuse is
programmed

@return      XST_SUCCESS - When EXPORT control eFUSE is not programmed
XSECURE_CRYPTO_DISABLED_ERROR - When EXPORT control eFUSE is
programmed
@brief This function checks if the EXPORT control eFuse is programmed @return XST_SUCCESS - When EXPORT control eFUSE is not programmed XSECURE_CRYPTO_DISABLED_ERROR - When EXPORT control eFUSE is programmed
u32 XSecure_CryptoCheck(void)
{
	u32 Status = XST_FAILURE;
	u32 ExportValue;
	ExportValue = XSecure_ReadReg(XSECURE_IPDISABLE_EFUSE_BASE,
			XSECURE_IPDISABLE_EFUSE_OFFSET);
	if ((ExportValue & XSECURE_EXPORT_CONTROL_BIT_MASK) == 0U) {
		Status = XST_SUCCESS;
	}
	else {
		Status = XSECURE_CRYPTO_DISABLED_ERROR;
	}
	return Status;
}
u32 XSecure_CryptoCheck ( void ) { u32 Status = XST_FAILURE ; u32 ExportValue ; ExportValue = XSecure_ReadReg ( XSECURE_IPDISABLE_EFUSE_BASE , XSECURE_IPDISABLE_EFUSE_OFFSET ) ; if ( ( ExportValue & XSECURE_EXPORT_CONTROL_BIT_MASK ) == 0U ) { Status = XST_SUCCESS ; } else { Status = XSECURE_CRYPTO_DISABLED_ERROR ; } return Status ; }
@brief       This function checks if the EXPORT control eFuse is
              programmed
@brief This function checks if the EXPORT control eFuse is programmed