XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
u8 XHdcp22Tx_IsDeviceRevoked(XHdcp22_Tx *InstancePtr, u8 *RecvIdPtr)
{
	int Result;
	u32 i;
	XHdcp22_Tx_RevocationList* RevocationListPtr = NULL;

	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(RecvIdPtr != NULL);

	RevocationListPtr = XHdcp22Tx_GetRevocationReceiverIdList(InstancePtr);

	/* Loop over the revocation list */
	for (i = 0; i < RevocationListPtr->NumDevices; i++) {
		Result = memcmp(RecvIdPtr, RevocationListPtr->ReceiverId[i], XHDCP22_TX_SRM_RCVID_SIZE);
		if (Result == 0)
			return TRUE;
	}
	return FALSE;
}
/*****************************************************************************/
/**
*
* This function searches for the specified ReceiverID in the revocation list.
*
* @param    InstancePtr is a pointer to the XHdcp22_Tx core instance.
* @param    RecvIdPtr is a pointer to the ReceiverID to lookup
*
* @return
*    - TRUE if Receiver ID was found in the revocation list
*    - FALSE if Receiver ID was not found in the revocation list
*
* @note     None.
*
******************************************************************************/
This function searches for the specified ReceiverID in the revocation list.
This function searches for the specified ReceiverID in the revocation list .
u8 XHdcp22Tx_IsDeviceRevoked(XHdcp22_Tx *InstancePtr, u8 *RecvIdPtr)
{
	int Result;
	u32 i;
	XHdcp22_Tx_RevocationList* RevocationListPtr = NULL;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(RecvIdPtr != NULL);
	RevocationListPtr = XHdcp22Tx_GetRevocationReceiverIdList(InstancePtr);
	for (i = 0; i < RevocationListPtr->NumDevices; i++) {
		Result = memcmp(RecvIdPtr, RevocationListPtr->ReceiverId[i], XHDCP22_TX_SRM_RCVID_SIZE);
		if (Result == 0)
			return TRUE;
	}
	return FALSE;
}
u8 XHdcp22Tx_IsDeviceRevoked ( XHdcp22_Tx * InstancePtr , u8 * RecvIdPtr ) { int Result ; u32 i ; XHdcp22_Tx_RevocationList * RevocationListPtr = NULL ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( RecvIdPtr != NULL ) ; RevocationListPtr = XHdcp22Tx_GetRevocationReceiverIdList ( InstancePtr ) ; for ( i = 0 ; i < RevocationListPtr -> NumDevices ; i ++ ) { Result = memcmp ( RecvIdPtr , RevocationListPtr -> ReceiverId [ i ] , XHDCP22_TX_SRM_RCVID_SIZE ) ; if ( Result == 0 ) return TRUE ; } return FALSE ; }
This function searches for the specified ReceiverID in the revocation list.
This function searches for the specified ReceiverID in the revocation list .
/* Verify arguments */ /* Loop over the revocation list */