NXP Reader Library  v17.1.0.2535

These are common diversification definitions for ChangeKey and Authenticate. More...

Collaboration diagram for Defines:

Diversification options to be used with ChangeKey

#define PHAL_MFDF_NO_DIVERSIFICATION   0xFFFFU
 No diversification.
 
#define PHAL_MFDF_CHGKEY_DIV_NEW_KEY   0x0002U
 Bit 1. More...
 
#define PHAL_MFDF_CHGKEY_DIV_OLD_KEY   0x0004U
 Bit 2 indicating old key was diversified.
 
#define PHAL_MFDF_CHGKEY_DIV_NEW_KEY_ONERND   0x0008U
 Bit 3 indicating new key diversification using one rnd. More...
 
#define PHAL_MFDF_CHGKEY_DIV_OLD_KEY_ONERND   0x0010U
 Bit 4 indicating old key diversification using one rnd. More...
 
#define PHAL_MFDF_CHGKEY_DIV_METHOD_CMAC   0x0020U
 Bit 5 indicating key diversification method based on CMAC. More...
 

Diversification options to be used with Authenticate

#define PHAL_MFDF_DIV_METHOD_ENCR   PH_CRYPTOSYM_DIV_MODE_DESFIRE
 Encryption based method of diversification.
 
#define PHAL_MFDF_DIV_METHOD_CMAC   PH_CRYPTOSYM_DIV_MODE_MIFARE_PLUS
 CMAC based method of diversification.
 
#define PHAL_MFDF_DIV_OPTION_2K3DES_FULL   PH_CRYPTOSYM_DIV_OPTION_2K3DES_FULL
 Encryption based method, full key diversification.
 
#define PHAL_MFDF_DIV_OPTION_2K3DES_HALF   PH_CRYPTOSYM_DIV_OPTION_2K3DES_HALF
 Encryption based method, half key diversification.
 

Detailed Description

These are common diversification definitions for ChangeKey and Authenticate.

Macro Definition Documentation

◆ PHAL_MFDF_CHGKEY_DIV_NEW_KEY

#define PHAL_MFDF_CHGKEY_DIV_NEW_KEY   0x0002U

Bit 1.

Indicating diversification of new key requred.

◆ PHAL_MFDF_CHGKEY_DIV_NEW_KEY_ONERND

#define PHAL_MFDF_CHGKEY_DIV_NEW_KEY_ONERND   0x0008U

Bit 3 indicating new key diversification using one rnd.

Default is two rounds.

◆ PHAL_MFDF_CHGKEY_DIV_OLD_KEY_ONERND

#define PHAL_MFDF_CHGKEY_DIV_OLD_KEY_ONERND   0x0010U

Bit 4 indicating old key diversification using one rnd.

Default is two rounds.

◆ PHAL_MFDF_CHGKEY_DIV_METHOD_CMAC

#define PHAL_MFDF_CHGKEY_DIV_METHOD_CMAC   0x0020U

Bit 5 indicating key diversification method based on CMAC.

Default is Encryption method