Skip to content

Establish an AES-authenticated and encrypted connection

Try the app note

The app note appnotes\secure_communication in the SDK gives you a working example of the implementation (learn more about app notes).

To establish an AES-authenticated and encrypted connection run the following commands in your protocol stack before connecting to the reader with brp_open():

int security_level = 1; // 
brp_sec_key key = { 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, }; // 
int security_mode = BRP_SECMODE_STD; // 
errcode = brp_set_crypto(dev, brp_create_secure_channel(security_level, key, security_mode)); // 
Title