XilinxProcessorIPLib/drivers/hdcp22_rx_dp/src/xhdcp22_rx.c
static void XHdcp22Rx_ResetParams(XHdcp22_Rx *InstancePtr)
{
	/* Verify arguments */
	Xil_AssertVoid(InstancePtr != NULL);

	/* Clear stored parameters */
	memset(InstancePtr->Params.Km,           0, sizeof(InstancePtr->Params.Km));
	memset(InstancePtr->Params.Ks,           0, sizeof(InstancePtr->Params.Ks));
	memset(InstancePtr->Params.Rn,           0, sizeof(InstancePtr->Params.Rn));
	memset(InstancePtr->Params.EKh,          0, sizeof(InstancePtr->Params.EKh));
	memset(InstancePtr->Params.Riv,          0, sizeof(InstancePtr->Params.Riv));
	memset(InstancePtr->Params.Rrx,          0, sizeof(InstancePtr->Params.Rrx));
	memset(InstancePtr->Params.Rtx,          0, sizeof(InstancePtr->Params.Rtx));
	memset(InstancePtr->Params.RxCaps,       0, sizeof(InstancePtr->Params.RxCaps));
	memset(InstancePtr->Params.TxCaps,       0, sizeof(InstancePtr->Params.TxCaps));
	memset(InstancePtr->Params.HPrime,       0, sizeof(InstancePtr->Params.HPrime));
	memset(InstancePtr->Params.LPrime,       0, sizeof(InstancePtr->Params.LPrime));
	memset(InstancePtr->Params.VPrime,       0, sizeof(InstancePtr->Params.VPrime));
	memset(InstancePtr->Params.SeqNumM,      0, sizeof(InstancePtr->Params.SeqNumM));
	memset(InstancePtr->Params.StreamIdType, 0, sizeof(InstancePtr->Params.StreamIdType));
	memset(InstancePtr->Params.MPrime,       0, sizeof(InstancePtr->Params.MPrime));
}
/*****************************************************************************/
/**
* This function resets the HDCP22-RX parameters stored in memory during the
* authentication process.
*
* @param	InstancePtr is a pointer to the XHdcp22_Rx core instance.
*
* @return	None.
*
* @note		This function is called each time an AKE_Init message is
*			received.
******************************************************************************/
This function resets the HDCP22-RX parameters stored in memory during the
authentication process.
This function resets the HDCP22 - RX parameters stored in memory during the authentication process .
static void XHdcp22Rx_ResetParams(XHdcp22_Rx *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	memset(InstancePtr->Params.Km,           0, sizeof(InstancePtr->Params.Km));
	memset(InstancePtr->Params.Ks,           0, sizeof(InstancePtr->Params.Ks));
	memset(InstancePtr->Params.Rn,           0, sizeof(InstancePtr->Params.Rn));
	memset(InstancePtr->Params.EKh,          0, sizeof(InstancePtr->Params.EKh));
	memset(InstancePtr->Params.Riv,          0, sizeof(InstancePtr->Params.Riv));
	memset(InstancePtr->Params.Rrx,          0, sizeof(InstancePtr->Params.Rrx));
	memset(InstancePtr->Params.Rtx,          0, sizeof(InstancePtr->Params.Rtx));
	memset(InstancePtr->Params.RxCaps,       0, sizeof(InstancePtr->Params.RxCaps));
	memset(InstancePtr->Params.TxCaps,       0, sizeof(InstancePtr->Params.TxCaps));
	memset(InstancePtr->Params.HPrime,       0, sizeof(InstancePtr->Params.HPrime));
	memset(InstancePtr->Params.LPrime,       0, sizeof(InstancePtr->Params.LPrime));
	memset(InstancePtr->Params.VPrime,       0, sizeof(InstancePtr->Params.VPrime));
	memset(InstancePtr->Params.SeqNumM,      0, sizeof(InstancePtr->Params.SeqNumM));
	memset(InstancePtr->Params.StreamIdType, 0, sizeof(InstancePtr->Params.StreamIdType));
	memset(InstancePtr->Params.MPrime,       0, sizeof(InstancePtr->Params.MPrime));
}
static void XHdcp22Rx_ResetParams ( XHdcp22_Rx * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; memset ( InstancePtr -> Params . Km , 0 , sizeof ( InstancePtr -> Params . Km ) ) ; memset ( InstancePtr -> Params . Ks , 0 , sizeof ( InstancePtr -> Params . Ks ) ) ; memset ( InstancePtr -> Params . Rn , 0 , sizeof ( InstancePtr -> Params . Rn ) ) ; memset ( InstancePtr -> Params . EKh , 0 , sizeof ( InstancePtr -> Params . EKh ) ) ; memset ( InstancePtr -> Params . Riv , 0 , sizeof ( InstancePtr -> Params . Riv ) ) ; memset ( InstancePtr -> Params . Rrx , 0 , sizeof ( InstancePtr -> Params . Rrx ) ) ; memset ( InstancePtr -> Params . Rtx , 0 , sizeof ( InstancePtr -> Params . Rtx ) ) ; memset ( InstancePtr -> Params . RxCaps , 0 , sizeof ( InstancePtr -> Params . RxCaps ) ) ; memset ( InstancePtr -> Params . TxCaps , 0 , sizeof ( InstancePtr -> Params . TxCaps ) ) ; memset ( InstancePtr -> Params . HPrime , 0 , sizeof ( InstancePtr -> Params . HPrime ) ) ; memset ( InstancePtr -> Params . LPrime , 0 , sizeof ( InstancePtr -> Params . LPrime ) ) ; memset ( InstancePtr -> Params . VPrime , 0 , sizeof ( InstancePtr -> Params . VPrime ) ) ; memset ( InstancePtr -> Params . SeqNumM , 0 , sizeof ( InstancePtr -> Params . SeqNumM ) ) ; memset ( InstancePtr -> Params . StreamIdType , 0 , sizeof ( InstancePtr -> Params . StreamIdType ) ) ; memset ( InstancePtr -> Params . MPrime , 0 , sizeof ( InstancePtr -> Params . MPrime ) ) ; }
This function resets the HDCP22-RX parameters stored in memory during the
authentication process.
This function resets the HDCP22 - RX parameters stored in memory during the authentication process .
/* Verify arguments */ /* Clear stored parameters */