These Components implement the MIFARE DESFire Light Secure Messaging related commands.
More...
|
| phStatus_t | phalMfdfLight_AuthenticateEv2 (void *pDataParams, uint8_t bFirstAuth, uint16_t wOption, uint16_t wKeyNo, uint16_t wKeyVer, uint8_t bKeyNoCard, uint8_t *pDivInput, uint8_t bDivLen, uint8_t bLenPcdCapsIn, uint8_t *bPcdCapsIn, uint8_t *bPcdCapsOut, uint8_t *bPdCapsOut) |
| | Performs an Light First or Light Non First Authentication depending upon bFirstAuth Parameter. More...
|
| |
These Components implement the MIFARE DESFire Light Secure Messaging related commands.
◆ phalMfdfLight_AuthenticateEv2()
| phStatus_t phalMfdfLight_AuthenticateEv2 |
( |
void * |
pDataParams, |
|
|
uint8_t |
bFirstAuth, |
|
|
uint16_t |
wOption, |
|
|
uint16_t |
wKeyNo, |
|
|
uint16_t |
wKeyVer, |
|
|
uint8_t |
bKeyNoCard, |
|
|
uint8_t * |
pDivInput, |
|
|
uint8_t |
bDivLen, |
|
|
uint8_t |
bLenPcdCapsIn, |
|
|
uint8_t * |
bPcdCapsIn, |
|
|
uint8_t * |
bPcdCapsOut, |
|
|
uint8_t * |
bPdCapsOut |
|
) |
| |
Performs an Light First or Light Non First Authentication depending upon bFirstAuth Parameter.
This will be using the AES128 keys and will generate and verify the contents based on generic AES algorithm.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bFirstAuth | [In] One of the below options.
|
| [in] | wOption | [In] Diversification option can be one of
|
| [in] | wKeyNo | [In] Key number in keystore of software or SAM. |
| [in] | wKeyVer | [In] Key version in keystore of software or SAM. |
| [in] | bKeyNoCard | [In] Key number on card. |
| [in] | pDivInput | [In] Diversification input. Can be NULL. |
| [in] | bDivLen | [In] Length of diversification input max 31B. |
| [in] | bLenPcdCapsIn | [In] Length of PcdCapsIn. Always zero for following authentication |
| [in] | bPcdCapsIn | [In] PCD Capabilities. |
| [out] | bPcdCapsOut | [Out] PCD Capabilities. |
| [out] | bPdCapsOut | [Out] PD Capabilities. |