XilinxProcessorIPLib/drivers/hdcp22_rx_dp/src/xhdcp22_rx.c
static int XHdcp22Rx_GenerateRrx(XHdcp22_Rx *InstancePtr, u8 *RrxPtr)
{
	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(RrxPtr != NULL);

	XHdcp22Rx_GenerateRandom(InstancePtr, XHDCP22_RX_RRX_SIZE, RrxPtr);

#ifdef _XHDCP22_RX_TEST_
	/* In test mode copy the test vector */
	XHdcp22Rx_TestGenerateRrx(InstancePtr, RrxPtr);
#endif

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
* This function is used to get a random value Rrx of 64bits for AKEInit.
* When the test mode is set to XHDCP22_RX_TESTMODE_NO_TX a preloaded test
* value is copied into the array with pointer RrxPtr. Otherwise, a
* random value is generated and copied.
*
* @param	InstancePtr is a pointer to the XHdcp22_Rx core instance.
* @param	RrxPtr is a pointer to an array where the 64bit Rrx is
* 			to be copied.
*
* @return	XST_SUCCESS or XST_FAILURE.
*
* @note		None.
******************************************************************************/
This function is used to get a random value Rrx of 64bits for AKEInit.
When the test mode is set to XHDCP22_RX_TESTMODE_NO_TX a preloaded test
value is copied into the array with pointer RrxPtr. Otherwise, a
random value is generated and copied.
This function is used to get a random value Rrx of 64bits for AKEInit . When the test mode is set to XHDCP22_RX_TESTMODE_NO_TX a preloaded test value is copied into the array with pointer RrxPtr . Otherwise a random value is generated and copied .
static int XHdcp22Rx_GenerateRrx(XHdcp22_Rx *InstancePtr, u8 *RrxPtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(RrxPtr != NULL);
	XHdcp22Rx_GenerateRandom(InstancePtr, XHDCP22_RX_RRX_SIZE, RrxPtr);
#ifdef _XHDCP22_RX_TEST_
	XHdcp22Rx_TestGenerateRrx(InstancePtr, RrxPtr);
#endif
	return XST_SUCCESS;
}
static int XHdcp22Rx_GenerateRrx ( XHdcp22_Rx * InstancePtr , u8 * RrxPtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( RrxPtr != NULL ) ; XHdcp22Rx_GenerateRandom ( InstancePtr , XHDCP22_RX_RRX_SIZE , RrxPtr ) ; #ifdef _XHDCP22_RX_TEST_ XHdcp22Rx_TestGenerateRrx ( InstancePtr , RrxPtr ) ; #endif return XST_SUCCESS ; }
This function is used to get a random value Rrx of 64bits for AKEInit.
This function is used to get a random value Rrx of 64bits for AKEInit .
/* Verify arguments */ /* In test mode copy the test vector */