Describes about the MIFARE DUOX Symmetric Key Management commands. More...

Modules | |
| Defines | |
| Macro Definitions for Symmetric Key Management commands. | |
Functions | |
| phStatus_t | phalMfDuoX_ChangeKey (void *pDataParams, uint16_t wOption, uint16_t wCurrKeyNo, uint16_t wCurrKeyVer, uint16_t wNewKeyNo, uint16_t wNewKeyVer, uint8_t bKeyNoCard, uint8_t *pDivInput, uint8_t bDivLen) |
| Depending on the currently selected AID, this command update a key of the PICC or of an application AKS (Active Key Set). More... | |
| phStatus_t | phalMfDuoX_ChangeKeyEv2 (void *pDataParams, uint16_t wOption, uint16_t wCurrKeyNo, uint16_t wCurrKeyVer, uint16_t wNewKeyNo, uint16_t wNewKeyVer, uint8_t bKeySetNo, uint8_t bKeyNoCard, uint8_t *pDivInput, uint8_t bDivLen) |
| Depending on the currently selected AID, this command update a key of the PICC or of an specified application key set. More... | |
| phStatus_t | phalMfDuoX_InitializeKeySet (void *pDataParams, uint8_t bKeySetNo, uint8_t bKeyType) |
| Depending on the currently selected application, initialize the key set with specific index. More... | |
| phStatus_t | phalMfDuoX_FinalizeKeySet (void *pDataParams, uint8_t bKeySetNo, uint8_t bKeySetVersion) |
| Finalizes KeySet targeted by specified KeySet number. More... | |
| phStatus_t | phalMfDuoX_RollKeySet (void *pDataParams, uint8_t bKeySetNo) |
| RollKeySet changes the ActiveKeySet to key set currently targeted with bKeySetNumber. More... | |
| phStatus_t | phalMfDuoX_GetKeySettings (void *pDataParams, uint8_t bOption, uint8_t **ppResponse, uint16_t *pRspLen) |
| Gets PICC Key Settings of the PICC or Application Key Setting for the application. More... | |
| phStatus_t | phalMfDuoX_ChangeKeySettings (void *pDataParams, uint8_t bKeySettings) |
| Changes the PICC Key settings of the PICC or Application Key Settings of the Application. More... | |
| phStatus_t | phalMfDuoX_GetKeyVersion (void *pDataParams, uint8_t bKeyNo, uint8_t bKeySetNo, uint8_t **ppResponse, uint16_t *pRspLen) |
| Reads out the current key version of any key stored on the PICC. More... | |
Describes about the MIFARE DUOX Symmetric Key Management commands.
| phStatus_t phalMfDuoX_ChangeKey | ( | void * | pDataParams, |
| uint16_t | wOption, | ||
| uint16_t | wCurrKeyNo, | ||
| uint16_t | wCurrKeyVer, | ||
| uint16_t | wNewKeyNo, | ||
| uint16_t | wNewKeyVer, | ||
| uint8_t | bKeyNoCard, | ||
| uint8_t * | pDivInput, | ||
| uint8_t | bDivLen | ||
| ) |
Depending on the currently selected AID, this command update a key of the PICC or of an application AKS (Active Key Set).
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER |
|
| PH_ERR_KEY | KeyType not supported. |
| PH_ERR_AUTH_ERROR | If command is called without prior authentication. |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option to be used for diversifying the Current and New key.
|
| [in] | wCurrKeyNo | [In] Current key number in KeyStore of software. |
| [in] | wCurrKeyVer | [In] Current key version in KeyStore of software. |
| [in] | wNewKeyNo | [In] New key number in KeyStore of software. |
| [in] | wNewKeyVer | [In] New key version in KeyStore of software. |
| [in] | bKeyNoCard | [In] Key number of the key to be changed. To be ORed with
|
| [in] | pDivInput | [In] Diversification input to be used for diversifying the key. Can be NULL. |
| [in] | bDivLen | [In] Length of bytes available in pDivInput buffer. |
| phStatus_t phalMfDuoX_ChangeKeyEv2 | ( | void * | pDataParams, |
| uint16_t | wOption, | ||
| uint16_t | wCurrKeyNo, | ||
| uint16_t | wCurrKeyVer, | ||
| uint16_t | wNewKeyNo, | ||
| uint16_t | wNewKeyVer, | ||
| uint8_t | bKeySetNo, | ||
| uint8_t | bKeyNoCard, | ||
| uint8_t * | pDivInput, | ||
| uint8_t | bDivLen | ||
| ) |
Depending on the currently selected AID, this command update a key of the PICC or of an specified application key set.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER |
|
| PH_ERR_KEY | KeyType not supported. |
| PH_ERR_AUTH_ERROR | If command is called without prior authentication. |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option to be used for diversifying the Current and New key.
|
| [in] | wCurrKeyNo | [In] Current key number in KeyStore of software. |
| [in] | wCurrKeyVer | [In] Current key version in KeyStore of software. |
| [in] | wNewKeyNo | [In] New key number in KeyStore of software. |
| [in] | wNewKeyVer | [In] New key version in KeyStore of software. |
| [in] | bKeySetNo | [In] Key set number within targeted application. |
| [in] | bKeyNoCard | [In] Key number of the key to be changed. To be ORed with
|
| [in] | pDivInput | [In] Diversification input to be used for diversifying the key. Can be NULL. |
| [in] | bDivLen | [In] Length of bytes available in pDivInput buffer. |
| phStatus_t phalMfDuoX_InitializeKeySet | ( | void * | pDataParams, |
| uint8_t | bKeySetNo, | ||
| uint8_t | bKeyType | ||
| ) |
Depending on the currently selected application, initialize the key set with specific index.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER |
|
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bKeySetNo | [In] Key set number within targeted application. ORed with Secondary Application indicator. |
| [in] | bKeyType | [In] One of the below mentioned options. |
| phStatus_t phalMfDuoX_FinalizeKeySet | ( | void * | pDataParams, |
| uint8_t | bKeySetNo, | ||
| uint8_t | bKeySetVersion | ||
| ) |
Finalizes KeySet targeted by specified KeySet number.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER | For invalid KeySet number (bKeySetNo). |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bKeySetNo | [In] Key set number within targeted application. ORed with Secondary Application indicator. |
| [in] | bKeySetVersion | [In] KeySet version of the key set to be finalized. |
| phStatus_t phalMfDuoX_RollKeySet | ( | void * | pDataParams, |
| uint8_t | bKeySetNo | ||
| ) |
RollKeySet changes the ActiveKeySet to key set currently targeted with bKeySetNumber.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER | For invalid KeySet number (bKeySetNo). |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bKeySetNo | [In] Key set number within targeted application. ORed with Secondary Application indicator. |
| phStatus_t phalMfDuoX_GetKeySettings | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t ** | ppResponse, | ||
| uint16_t * | pRspLen | ||
| ) |
Gets PICC Key Settings of the PICC or Application Key Setting for the application.
In addition it returns the number of keys which are configured for the selected application and if applicable the AppKeySetSettings.
Note: The Option information will not be exchanged to PICC in case of PICC / Application Key Settings.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] Option to be used for information retrieval. One of the below values. |
| [out] | ppResponse | [Out] Returns the key settings. |
| [out] | pRspLen | [Out] Length bytes available in ppKeySettings buffer. |
| phStatus_t phalMfDuoX_ChangeKeySettings | ( | void * | pDataParams, |
| uint8_t | bKeySettings | ||
| ) |
Changes the PICC Key settings of the PICC or Application Key Settings of the Application.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bKeySettings | [In] New key settings to be updated. |
| phStatus_t phalMfDuoX_GetKeyVersion | ( | void * | pDataParams, |
| uint8_t | bKeyNo, | ||
| uint8_t | bKeySetNo, | ||
| uint8_t ** | ppResponse, | ||
| uint16_t * | pRspLen | ||
| ) |
Reads out the current key version of any key stored on the PICC.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bKeyNo | [In] Key number of the targeted key. |
| [in] | bKeySetNo | [In] Key set number to be used for retrieval. |
| [out] | ppResponse | [Out] Key set versions of the selected application ordered by ascending key set number, i.e. starting with the AKS. |
| [out] | pRspLen | [Out] Length of bytes available in ppResponse buffer. |