NXP Reader Library  v17.1.0.2535
Component : Software
Collaboration diagram for Component : Software:

Data Structures

struct  phalMfdfEVx_Sw_DataParams_t
 Data structure for MIFARE DESFire EVx Software layer implementation
More...
 

Macros

#define PHAL_MFDFEVX_SW_ID   0x01U
 ID for Software MF DesFire layer.
 

Functions

phStatus_t phalMfdfEVx_Sw_Init (phalMfdfEVx_Sw_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, void *pPalMifareDataParams, void *pKeyStoreDataParams, void *pCryptoDataParamsEnc, void *pCryptoDataParamsMac, void *pCryptoRngDataParams, void *pTMIDataParams, void *pVCADataParams, void *pHalDataParams)
 Initialization API for MIFARE DESFire EVx software component. More...
 
phStatus_t phalMfdfEVx_Sw_SetVCAParams (phalMfdfEVx_Sw_DataParams_t *pDataParams, void *pAlVCADataParams)
 Assign the DataParams of VCA AL for VCA / PC command executions. More...
 

Sizes

#define PHAL_MFDFEVX_SIZE_TI   4U
 Size of Transaction Identifier.
 
#define PHAL_MFDFEVX_SIZE_MAC   16U
 Size of (un-truncated) MAC.
 
#define PHAL_MFDFEVX_BLOCK_SIZE   16U
 Block Size.
 
#define PHAL_MFDFEVX_MAX_WRITE_SIZE   0xFFFDU
 Max size in a Write function.
 

Detailed Description

Function Documentation

◆ phalMfdfEVx_Sw_Init()

phStatus_t phalMfdfEVx_Sw_Init ( phalMfdfEVx_Sw_DataParams_t pDataParams,
uint16_t  wSizeOfDataParams,
void *  pPalMifareDataParams,
void *  pKeyStoreDataParams,
void *  pCryptoDataParamsEnc,
void *  pCryptoDataParamsMac,
void *  pCryptoRngDataParams,
void *  pTMIDataParams,
void *  pVCADataParams,
void *  pHalDataParams 
)

Initialization API for MIFARE DESFire EVx software component.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wSizeOfDataParams[In] Specifies the size of the data parameter structure
[in]pPalMifareDataParams[In] Pointer to a palMifare component context.
[in]pKeyStoreDataParams[In] Pointer to Key Store data parameters.
[in]pCryptoDataParamsEnc[In] Pointer to a Crypto component context for encryption.
[in]pCryptoDataParamsMac[In] Pointer to a CryptoMAC component context.
[in]pCryptoRngDataParams[In] Pointer to a CryptoRng component context.
[in]pTMIDataParams[In] Pointer to a TMI component.
[in]pVCADataParams[In] Pointer to a VCA component.
[in]pHalDataParams[In] Pointer to the HAL parameters structure.

◆ phalMfdfEVx_Sw_SetVCAParams()

phStatus_t phalMfdfEVx_Sw_SetVCAParams ( phalMfdfEVx_Sw_DataParams_t pDataParams,
void *  pAlVCADataParams 
)

Assign the DataParams of VCA AL for VCA / PC command executions.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]pAlVCADataParams[In] Pointer to VCA AL parameter structure.