NXP Reader Library  v17.1.0.2535
phalMfDuoX_Sw_DataParams_t Struct Reference

Data structure for MIFARE DUOX Software layer implementation
More...

Data Fields

uint16_t wId
 Layer ID for this component, NEVER MODIFY!
 
void * pPalMifareDataParams
 Pointer to the parameter structure of the palMifare component.
 
void * pKeyStoreDataParams
 Pointer to the parameter structure of the KeyStore layer.
 
void * pCryptoDataParamsASym
 Pointer to the parameter structure of the ASymmetric Crypto component.
 
void * pCryptoDataParamsEnc
 Pointer to the parameter structure of the Symmetric Crypto layer for encryption.
 
void * pCryptoDataParamsMac
 Pointer to the parameter structure of the Symmetric Crypto layer for MACing.
 
void * pCryptoRngDataParams
 Pointer to the parameter structure of the Crypto layer for Random number generation.
 
void * pTMIDataParams
 Pointer to the parameter structure for collecting TMI.
 
void * pVCADataParams
 Pointer to the parameter structure for Virtual Card.
 
uint8_tpCmdBuf
 Pointer to global buffer for processing the command.
 
uint16_t wCmdBufSize
 Size of global command buffer.
 
uint16_t wCmdBufLen
 Length of bytes available in command buffer (pCmdBuf) for processing.
 
uint16_t wCmdBufOffset
 Command Buffer offset while performing crypto or exchange operations.
 
uint8_tpPrsBuf
 Pointer to global buffer for processing the response / secure messaging information.
 
uint16_t wPrsBufSize
 Size of global response / secure messaging information buffer.
 
uint16_t wPrsBufLen
 Length of bytes available in response / secure messaging information buffer (pPrsBuf) for processing.
 
uint16_t wPrsBufOffset
 Processing Buffer offset while performing crypto or exchange operations.
 
uint8_t aAid [3]
 Aid of the currently selected application.
 
uint8_t aSesAuthENCKey [PH_CRYPTOSYM_AES128_KEY_SIZE *2]
 Authentication Encryption key for the session.
 
uint8_t aSesAuthMACKey [PH_CRYPTOSYM_AES128_KEY_SIZE *2]
 Authentication MAC key for the session.
 
uint8_t aTi [PHAL_MFDUOX_SIZE_TI]
 Transaction Identifier of the current transaction.
 
uint16_t wCmdCtr
 Command count within transaction.
 
uint16_t wAdditionalInfo
 Specific error codes for MIFARE DUOX generic errors or To get the response length of some commands.
 
uint8_t bWrappedMode
 Wrapped APDU mode. More...
 
uint8_t bShortLenApdu
 One of the following,. More...
 
uint8_t bCmdCode
 Command code. More...
 
uint8_t bAuthState
 Authenticate Command used. More...
 
uint8_t bKeyNo
 Key number against which this authentication is done.
 
uint16_t wKeyType
 Key Type being used for Authentication.
 
uint8_t bPICCDataComplete
 Flag to Indicate PICC data Status. More...
 
uint8_t bHasMACProcessed
 Flag to indicate if MAC verification is complete for response or MAC computation is complete for Command. More...
 
uint8_t bIsENCPending
 Flag to indicate if Encryption of Data is complete or still pending.
 

Detailed Description

Data structure for MIFARE DUOX Software layer implementation

Field Documentation

◆ bWrappedMode

uint8_t phalMfDuoX_Sw_DataParams_t::bWrappedMode

Wrapped APDU mode.

All native commands need to be sent wrapped in ISO 7816 APDUs.

◆ bShortLenApdu

uint8_t phalMfDuoX_Sw_DataParams_t::bShortLenApdu

One of the following,.

  • Force Short Length APDU in case of BIG ISO read.
  • Exchange Native commands in Short Length APDU format.

◆ bCmdCode

uint8_t phalMfDuoX_Sw_DataParams_t::bCmdCode

Command code.

This will be used for differentiating the same error codes for different commands.

◆ bAuthState

uint8_t phalMfDuoX_Sw_DataParams_t::bAuthState

Authenticate Command used.

One of the below values will be updated

◆ bPICCDataComplete

uint8_t phalMfDuoX_Sw_DataParams_t::bPICCDataComplete

Flag to Indicate PICC data Status.

Indicates the following.

  • PICC Data is complete but there is still more data that needs to be provided to user.
  • PICC Data is complete and there is no data to be given to user, but last encrypted chunk needs to be verified.

◆ bHasMACProcessed

uint8_t phalMfDuoX_Sw_DataParams_t::bHasMACProcessed

Flag to indicate if MAC verification is complete for response or MAC computation is complete for Command.

This flag will also be used to indicate the status of initial MAC processing.


The documentation for this struct was generated from the following file: