SAM commands used for Virtual Card communication in X-Mode.
More...
|
| phStatus_t | phhalHw_SamAV3_Cmd_VCA_Select (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t bOption, uint8_t bEncKeyNo, uint8_t bEncKeyVer, uint8_t bMacKeyNo, uint8_t bMacKeyVer, uint8_t *pIID, uint8_t bIIDLen, uint8_t *pDivInput, uint8_t bDivInputLen, uint8_t **pResponse, uint16_t *pRespLen, uint16_t *pPiccRetCode) |
| | Performs Virtual card selection in X-Mode. More...
|
| |
| phStatus_t | phhalHw_SamAV3_Cmd_VCA_ProximityCheck (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t bOption, uint8_t bKeyNo, uint8_t bKeyVer, uint8_t bNumOfRand, uint8_t *pDivInput, uint8_t bDivInputLen, uint8_t **ppResponse, uint16_t *pRespLen) |
| | Performs Proximity Check command execution in X-Mode. More...
|
| |
SAM commands used for Virtual Card communication in X-Mode.
◆ phhalHw_SamAV3_Cmd_VCA_Select()
| phStatus_t phhalHw_SamAV3_Cmd_VCA_Select |
( |
phhalHw_SamAV3_DataParams_t * |
pDataParams, |
|
|
uint8_t |
bOption, |
|
|
uint8_t |
bEncKeyNo, |
|
|
uint8_t |
bEncKeyVer, |
|
|
uint8_t |
bMacKeyNo, |
|
|
uint8_t |
bMacKeyVer, |
|
|
uint8_t * |
pIID, |
|
|
uint8_t |
bIIDLen, |
|
|
uint8_t * |
pDivInput, |
|
|
uint8_t |
bDivInputLen, |
|
|
uint8_t ** |
pResponse, |
|
|
uint16_t * |
pRespLen, |
|
|
uint16_t * |
pPiccRetCode |
|
) |
| |
Performs Virtual card selection in X-Mode.
- 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] | bOption | [In] Option to indicate diversification options for VCSelectMAC key.
Option to indicate diversification options for VcSelectENC key.
Option to disable the diversification for VcSelect MAC and ENC keys.
VC selection can be done in 1-part of 2-parts.
|
| [in] | bEncKeyNo | [In] Reference key number to be used in hardware keystore for VCSelectENC key. |
| [in] | bEncKeyVer | [In] Reference key version to be used in hardware keystore for VCSelectENC key. |
| [in] | bMacKeyNo | [In] Reference key number to be used in hardware keystore for VCSelectMAC key. |
| [in] | bMacKeyVer | [In] Reference key version to be used in hardware keystore for VCSelectMAC key. |
| [in] | pIID | [In] The Installation Identifier (IID) to be selected. |
| [in] | bIIDLen | [In] Length of the IID. |
| [in] | pDivInput | [In] Diversification Input used to diversify the key. |
| [in] | bDivInputLen | [In] Length of diversification input used to diversify the key. |
| [out] | pResponse | [Out] Response received from SAM based on the variants and AuthVCMandatory settings
AuthVC Not Mandatory & Variant 1 : Conf0 (1byte), FCI (N bytes)
AuthVC Mandatory & Variant 1 : Conf1 (1byte), VC Data (16 bytes)
AuthVC Mandatory & Variant 2 : VC Data (16 bytes) |
| [out] | pRespLen | [Out] Length bytes available in response buffer. |
| [out] | pPiccRetCode | [Out] The status code returned from the PICC. This will be applicable for both the variants. |
◆ phhalHw_SamAV3_Cmd_VCA_ProximityCheck()
Performs Proximity Check command execution in X-Mode.
- 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] | bOption | [In] Option to indicate diversification options.
Option to indicate Cmd.VerifyPC processing.
The command format to be used to communicated to PICC.
|
| [in] | bKeyNo | [In] Reference key number to be used in hardware keystore. |
| [in] | bKeyVer | [In] Reference key version to be used in hardware keystore. |
| [in] | bNumOfRand | [In] Maximum number of random bytes sent in one Cmd.ProxmityCheck |
| [in] | pDivInput | [In] Diversification Input used to diversify the key. |
| [in] | bDivInputLen | [In] Length of diversification input used to diversify the key. |
| [out] | ppResponse | [Out] Response received from SAM.
For PICC Error : The PICC error code will be returned.
For PICC Success: The PPCDataLen and PPCData will be returned. |
| [out] | pRespLen | [Out] Length bytes available in response buffer. |