lib/sw_services/xilnvm/examples/xilnvm_efuse_versal_client_example.c
static int XilNvm_PrepareRevokeIdsForWrite(const char *RevokeIdStr,
	u32 *Dst, u32 Len)
{
	int Status = XST_INVALID_PARAM;

	if(RevokeIdStr != NULL) {
		if (strnlen(RevokeIdStr, XNVM_EFUSE_ROW_STRING_LEN) ==
			XNVM_EFUSE_ROW_STRING_LEN) {
			Status = Xil_ConvertStringToHex(RevokeIdStr, Dst, Len);
		}
	}

	return Status;
}
/******************************************************************************/
/**
 * This function is validate the input string contains valid Revoke Id String
 *
 * @param	RevokeIdStr - Pointer to Revocation ID/OffChip_Revoke ID String
 *
 * @param 	Dst	Destination to store the converted Revocation ID/
 * 			OffChip ID in Hex
 *
 * @param	Len	Length of the Revocation ID/OffChip ID in bits
 *
 * @return
 *	- XST_SUCCESS - On valid input Revoke Id string
 *	- XST_INVALID_PARAM - On invalid length of the input string
 *
 ******************************************************************************/
This function is validate the input string contains valid Revoke Id String
@param       RevokeIdStr - Pointer to Revocation ID/OffChip_Revoke ID String

@param       Dst     Destination to store the converted Revocation ID
OffChip ID in Hex

@param       Len     Length of the Revocation ID/OffChip ID in bits

@return
- XST_SUCCESS - On valid input Revoke Id string
- XST_INVALID_PARAM - On invalid length of the input string
This function is validate the input string contains valid Revoke Id String @param RevokeIdStr - Pointer to Revocation ID / OffChip_Revoke ID String @param Dst Destination to store the converted Revocation ID OffChip ID in Hex @param Len Length of the Revocation ID / OffChip ID in bits @return - XST_SUCCESS - On valid input Revoke Id string - XST_INVALID_PARAM - On invalid length of the input string
static int XilNvm_PrepareRevokeIdsForWrite(const char *RevokeIdStr,
	u32 *Dst, u32 Len)
{
	int Status = XST_INVALID_PARAM;
	if(RevokeIdStr != NULL) {
		if (strnlen(RevokeIdStr, XNVM_EFUSE_ROW_STRING_LEN) ==
			XNVM_EFUSE_ROW_STRING_LEN) {
			Status = Xil_ConvertStringToHex(RevokeIdStr, Dst, Len);
		}
	}
	return Status;
}
static int XilNvm_PrepareRevokeIdsForWrite ( const char * RevokeIdStr , u32 * Dst , u32 Len ) { int Status = XST_INVALID_PARAM ; if ( RevokeIdStr != NULL ) { if ( strnlen ( RevokeIdStr , XNVM_EFUSE_ROW_STRING_LEN ) == XNVM_EFUSE_ROW_STRING_LEN ) { Status = Xil_ConvertStringToHex ( RevokeIdStr , Dst , Len ) ; } } return Status ; }
This function is validate the input string contains valid Revoke Id String
 @param       RevokeIdStr - Pointer to Revocation ID/OffChip_Revoke ID String
This function is validate the input string contains valid Revoke Id String @param RevokeIdStr - Pointer to Revocation ID / OffChip_Revoke ID String