5.31. MIFARE DESFire EV2 : Prepare SE050

5.31.1. Prerequisites

5.31.2. About the Example

This is an example project for provisioning the SE050 for running other SE050 MIFARE DESFire EV2 examples. This example Creates and sets 2 SE050 secure objects for further use by other examples.

It uses the following APIs and data types:

5.31.3. The two AES key storage for NFC application n SE050

We create two AES Keys in SE050

This example calls the - InitialSetupSe050(): which inits, allocates and sets 2 AES keys.

The keyIDs are as below

#define MFDFEV2_KEYID (EX_SSS_OBJID_DEMO_MFDF_START)
#define MFDFEV2_CHANGED_KEYID (EX_SSS_OBJID_DEMO_MFDF_START +1)
#define EX_SSS_OBJID_DEMO_MFDF_START                0x7D5DF000u

5.31.3.1. Key values

The key that is provisioned into SE050 is called the oldKey and newKey and it takes the values as below.

const uint8_t oldKeyValue[KEY_BIT_LEN / 8] = {  0x00, 0x00, 0x00, 0x00,
                                                0x00, 0x00, 0x00, 0x00,
                                                0x00, 0x00, 0x00, 0x00,
                                                0x00, 0x00, 0x00, 0x00 };

const uint8_t newKeyValue[KEY_BIT_LEN / 8] = {  0x00, 0x00, 0x00, 0x00,
                                                0x00, 0x00, 0x00, 0x00,
                                                0x00, 0x00, 0x00, 0x00,
                                                0x00, 0x00, 0x00, 0x01 };

5.31.4. Running the Demo

  1. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo

If everything is setup correctly the output would be as follows:

sss:INFO :atr (Len=35)
    00 A0 00 00     03 96 04 03     E8 00 FE 02     0B 03 E8 08
    01 00 00 00     00 64 00 00     0A 4A 43 4F     50 34 20 41
    54 50 4F
sss:WARN :Communication channel is Plain.
sss:WARN :!!!Not recommended for production use.!!!
App:INFO :SE050 prepared successfully for MIFARE DESFire EV2 examples
App:INFO :ex_sss Finished