NXP Reader Library  v17.1.0.2535

SAM commands used for OriginalityCheck communication in S-Mode and X-Mode. More...

Collaboration diagram for 18_OriginalityCheck:

Modules

 Defines
 Definitions for Originality Check commands.
 

Functions

phStatus_t phhalHw_Sam_Cmd_SAM_ISOInternalAuthenticate (phhalHw_Sam_DataParams_t *pDataParams, uint8_t bOption, uint8_t *pOptsA, uint8_t bOptsALen, uint8_t *pRndA, uint8_t *pRndALen, uint8_t **ppResponse, uint16_t *pRespLen)
 Performs Originality Check of SAM . More...
 

Detailed Description

SAM commands used for OriginalityCheck communication in S-Mode and X-Mode.

Function Documentation

◆ phhalHw_Sam_Cmd_SAM_ISOInternalAuthenticate()

phStatus_t phhalHw_Sam_Cmd_SAM_ISOInternalAuthenticate ( phhalHw_Sam_DataParams_t pDataParams,
uint8_t  bOption,
uint8_t pOptsA,
uint8_t  bOptsALen,
uint8_t pRndA,
uint8_t pRndALen,
uint8_t **  ppResponse,
uint16_t pRespLen 
)

Performs Originality Check of SAM .

The authentication is initiated by ISOInternalAuthenticate.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
PH_ERR_INVALID_DATA_PARAMSpDataParams is NULL.
PH_ERR_INVALID_PARAMETERpOptsA, pRndA, pRndALen and pRespLen are NULL.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bOption[In] Challenge usage (RndA)
[in]pOptsA[In] PCD Option.
  • Will be exchanged if bOptsALen has a value other than zero
  • User should provide Value field only. Tag and Length will be included internally.
[in]bOptsALen[In] Length of bytes available in pOptsA buffer.
[in,out]pRndA[In, Out] Authentication Data Object: random challenge from PCD.
  • Empty buffer if Generate Challenge internally is provided in bOption parameter. Will be updated with Random Challenge generated internally. The buffer size should be equal to the RndA size that is expected.
  • Random Challenge if Challenge provided by user is provided in bOption parameter. User should provide Value field only. AuthDOHdr (Tag and Length) will be included internally.
[in,out]pRndALen[In, Out] Length of bytes available in pRndA buffer.
[out]ppResponse[Out] RndB and Signature returned by SAM.
[out]pRespLen[Out] Length pf bytes available in ppResponse parameter.