SAM commands used for DESFire and ULC card communication in X-Mode.
More...
|
| phStatus_t | phhalHw_SamAV2_Cmd_DESFireAuthenticatePICC (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t bAuthMode, uint8_t bISOMode, uint8_t bDFKeyNo, uint8_t bKeyNo, uint8_t bKeyV, uint8_t *pDivInput, uint8_t bDivInputLength) |
| | Perform an authentication procedure between SAM and DESFire. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Cmd_DESFireChangeKeyPICC (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t bKeyCompMeth, uint8_t bCfg, uint8_t bKeyNoCurrent, uint8_t bKeyVCurrent, uint8_t bKeyNoNew, uint8_t bKeyVNew, uint8_t *pDivInput, uint8_t bDivInputLength) |
| | Change a key of a DESFire PICC. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Cmd_DESFireWriteX (phhalHw_SamAV2_DataParams_t *pDataParams, uint16_t wOption, uint8_t bCrypto, uint8_t *pData, uint8_t bDataLength) |
| | Write data to a DESFire encrypted or MACed. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Cmd_DESFireReadX (phhalHw_SamAV2_DataParams_t *pDataParams, uint16_t wOption, uint8_t bCrypto, uint8_t *pData, uint8_t bDataLength, uint8_t **ppRxBuffer, uint16_t *pRxLength) |
| | Read data from a DESFire encrypted or MACed. More...
|
| |
| phStatus_t | phhalHw_SamAV2_Cmd_ULCAuthenticatePICC (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t bKeyNo, uint8_t bKeyV, uint8_t *pDivInput, uint8_t bDivInputLength) |
| | Perform an authentication procedure between SAM and ULC. More...
|
| |
SAM commands used for DESFire and ULC card communication in X-Mode.
◆ phhalHw_SamAV2_Cmd_DESFireAuthenticatePICC()
Perform an authentication procedure between SAM and DESFire.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bAuthMode | [In] Authentication mode to be used. |
| [in] | bISOMode | [In] ISO mode to be used. |
| [in] | bDFKeyNo | [In] DESFire key number. |
| [in] | bKeyNo | [In] Key reference number. |
| [in] | bKeyV | [In] Key version. |
| [in] | pDivInput | [In] Diversification data. This buffer has to be bDivInputLength bytes long. |
| [in] | bDivInputLength | [In] Diversification data length. If set to 00h no diversification is used. |
◆ phhalHw_SamAV2_Cmd_DESFireChangeKeyPICC()
Change a key of a DESFire PICC.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bKeyCompMeth | [In] Bit mask defining the key compilation method. |
| [in] | bCfg | [In] Bit mask defining the change key configuration. |
| [in] | bKeyNoCurrent | [In] Current Key Number. |
| [in] | bKeyVCurrent | [In] Current Key Version. |
| [in] | bKeyNoNew | [In] New Key Number. |
| [in] | bKeyVNew | [In] New Key Version. |
| [in] | pDivInput | [In] Diversification data. This buffer has to be bDivInputLength bytes long. |
| [in] | bDivInputLength | [In] Diversification data length. If set to 00h no diversification is used. |
◆ phhalHw_SamAV2_Cmd_DESFireWriteX()
Write data to a DESFire encrypted or MACed.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option parameter:
|
| [in] | bCrypto | [In] Crypto mode. |
| [in] | pData | [In] Data to be written. This buffer has to be bDataLen bytes long. |
| [in] | bDataLength | [In] Data length. |
◆ phhalHw_SamAV2_Cmd_DESFireReadX()
Read data from a DESFire encrypted or MACed.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option parameter:
|
| [in] | bCrypto | [In] Crypto mode. |
| [in] | pData | [In] Data to send to DESFire. |
| [in] | bDataLength | [In] Data length. |
| [out] | ppRxBuffer | [Out] Pointer to the received data. |
| [out] | pRxLength | [Out] Amount of valid bytes in the received data buffer. |
◆ phhalHw_SamAV2_Cmd_ULCAuthenticatePICC()
Perform an authentication procedure between SAM and ULC.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bKeyNo | [In] Key reference number to be used in authentication. |
| [in] | bKeyV | [In] Key version to be used in authentication. |
| [in] | pDivInput | [In] Diversification data. This buffer has to be bDivInputLength bytes long. |
| [in] | bDivInputLength | [In] Diversification data length. If set to 00h no diversification is used. |