Describes about the MIFARE DUOX Application Management commands.
More...
|
| | Defines |
| | Macro Definitions for Application Management commands.
|
| |
|
| phStatus_t | phalMfDuoX_CreateApplication (void *pDataParams, uint8_t bOption, uint8_t *pAid, uint8_t bKeySettings1, uint8_t bKeySettings2, uint8_t bKeySettings3, uint8_t *pKeySetValues, uint8_t bKeySetValuesLen, uint8_t *pISOFileId, uint8_t *pISODFName, uint8_t bISODFNameLen) |
| | Creates a New Application on the PICC. More...
|
| |
| phStatus_t | phalMfDuoX_DeleteApplication (void *pDataParams, uint8_t *pAid, uint8_t *pDAMMAC, uint8_t bDAMMAC_Len) |
| | Permanently deletes the applications on the PICC. More...
|
| |
| phStatus_t | phalMfDuoX_SelectApplication (void *pDataParams, uint8_t bOption, uint8_t *pAid1, uint8_t *pAid2) |
| | Selects one particular application on the PICC for further access. More...
|
| |
| phStatus_t | phalMfDuoX_GetApplicationIDs (void *pDataParams, uint8_t bOption, uint8_t **ppAidBuff, uint16_t *pAidLen) |
| | Returns application identifiers of all applications on the PICC. More...
|
| |
| phStatus_t | phalMfDuoX_GetDFNames (void *pDataParams, uint8_t bOption, uint8_t **ppDFBuffer, uint16_t *pDFBufLen) |
| | Returns the Application IDentifiers together with a File ID and (optionally) a DF Name of all active applications with ISO/IEC 7816-4 support. More...
|
| |
Describes about the MIFARE DUOX Application Management commands.
◆ phalMfDuoX_CreateApplication()
| phStatus_t phalMfDuoX_CreateApplication |
( |
void * |
pDataParams, |
|
|
uint8_t |
bOption, |
|
|
uint8_t * |
pAid, |
|
|
uint8_t |
bKeySettings1, |
|
|
uint8_t |
bKeySettings2, |
|
|
uint8_t |
bKeySettings3, |
|
|
uint8_t * |
pKeySetValues, |
|
|
uint8_t |
bKeySetValuesLen, |
|
|
uint8_t * |
pISOFileId, |
|
|
uint8_t * |
pISODFName, |
|
|
uint8_t |
bISODFNameLen |
|
) |
| |
Creates a New Application on the PICC.
The application is initialized according to the given settings. The application key of the active key set are initialized with the Default Application Key.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] Option to represent the present of ISO information.
|
| [in] | pAid | [In] The application identifier to be used. Will be of 3 bytes with LSB first. If application 01 need to be created, then the Aid will be 01 00 00. |
| [in] | bKeySettings1 | [In] Application Key settings. Refer Application Key Settings from DataSheet. |
| [in] | bKeySettings2 | [In] Several other key settings.
- Bit[7 - 6]: KeyType of the application keys of the initial AKS
- 00: Reserved
- 01: Reserved
- 10: AES128 KeyType
- 11: AES256 KeyType
- Bit[5] : Use of 2 byte ISO/IEC 7816-4 File Identifiers
- 0: No 2 byte File Identifiers for files within the application
- 1: 2 byte File Identifiers for files within the application required
- Bit[4] : KeySett3 presence
- Bit[3 - 0]: Number of application keys (n)
- 0x00 - 0x0E: Maximum 14 Keys
- 0x0F : Enable Application Master Temp Key
|
| [in] | bKeySettings3 | [In] Additional optional key settings.
- Bit[7 - 5]: RFU
- Bit[4] : Application Deletion with Application Master Key
- 0: Depending on PICC Master Key
- 1: Always Enabled
- Bit[3] : Reserved
- Bit[2] : Application specific Capability data
- Bit[1] : Application Specific VC Proximity Key
- Bit[0] : Application KeySet
|
| [in] | pKeySetValues | [In] The Key set values for the application. Should as mentioned below.
- Byte0 = Application Key Set Version (ASKVersion)
- Byte1 = Number of Key Sets (NoKeySets)
- Byte2 = Maximum Key Size (MaxKeySize)
- 0x10: Only AES128 Key Type is allowed (upto 16 bytes).
- 0x20: Both AES128 and AES256 Key Types are allowed (upto 32 bytes).
- Byte3 = Application KeySet Settings (AppKeySetSett)
- Bit[7 - 4]: RFU
- Bit[3 - 0]: Roll Key Access Rights.
- 0x00 - 0x(n - 1): Active Authentication with specified Application Roll Key. (n: number of keys in Active KeySet)
- 0x(n) - 0x0F : RFU
|
| [in] | bKeySetValuesLen | [In] Length of bytes available in pKeySetValues buffer. |
| [in] | pISOFileId | [In] ISO File ID to be used. Will be two bytes. |
| [in] | pISODFName | [In] ISO DF Name to be used. Should one of the following
|
| [in] | bISODFNameLen | [In] Length of bytes available in pISODFName buffer. |
◆ phalMfDuoX_DeleteApplication()
Permanently deletes the applications on the PICC.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | pAid | [In] The application identifier to be used. Will be of 3 bytes with LSB first. If application 01 need to be deleted, then the Aid will be 01 00 00. |
| [in] | pDAMMAC | [In] [Optional, present if PICCDAMAuthKey or NXPDAMAuthKey is used for authentication]
- The MAC calculated by the card issuer to allow delegated application deletion.
- NULL if not targeting a PICCDAMAuthKey.
|
| [in] | bDAMMAC_Len | [In] Length of bytes available in pDAMMAC buffer. |
◆ phalMfDuoX_SelectApplication()
Selects one particular application on the PICC for further access.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] One of the below options.
|
| [in] | pAid1 | [In] The primary application identifier to be used. Will be of 3 bytes with LSB first. If application 01 need to be selected, then the Aid will be 01 00 00. |
| [in] | pAid2 | [In] The secondary application identifier to be used. Will be of 3 bytes with LSB first. If application 01 need to be selected, then the Aid will be 01 00 00. |
◆ phalMfDuoX_GetApplicationIDs()
Returns application identifiers of all applications on the PICC.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] One of the below options.
|
| [out] | ppAidBuff | [Out] The available identifiers of the application(s). |
| [out] | pAidLen | [Out] Length of bytes available in ppAidBuff buffer. |
◆ phalMfDuoX_GetDFNames()
Returns the Application IDentifiers together with a File ID and (optionally) a DF Name of all active applications with ISO/IEC 7816-4 support.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] One of the below options.
|
| [out] | ppDFBuffer | [Out] The ISO information about the application. |
| [out] | pDFBufLen | [Out] Length of bytes available in pDFBuffer buffer. |