uFCoder 2.58
|
Functions | |
UFR_STATUS DL_API | nt4h_set_global_parametersM (UFR_HANDLE hndUFR, uint8_t file_no, uint8_t key_no, uint8_t communication_mode) |
UFR_STATUS DL_API | nt4h_change_standard_file_settings_pkM (UFR_HANDLE hndUFR, IN uint8_t *aes_key_ext, uint8_t file_no, uint8_t key_no, uint8_t curr_communication_mode, uint8_t new_communication_mode, uint8_t read_key_no, uint8_t write_key_no, uint8_t read_write_key_no, uint8_t change_key_no) |
UFR_STATUS DL_API | nt4h_change_standard_file_settingsM (UFR_HANDLE hndUFR, uint8_t aes_key_no, uint8_t file_no, uint8_t key_no, uint8_t curr_communication_mode, uint8_t new_communication_mode, uint8_t read_key_no, uint8_t write_key_no, uint8_t read_write_key_no, uint8_t change_key_no) |
UFR_STATUS DL_API | nt4h_change_sdm_file_settings_pkM (UFR_HANDLE hndUFR, IN uint8_t *aes_key_ext, uint8_t file_no, uint8_t key_no, uint8_t curr_communication_mode, uint8_t new_communication_mode, uint8_t read_key_no, uint8_t write_key_no, uint8_t read_write_key_no, uint8_t change_key_no, uint8_t uid_enable, uint8_t read_ctr_enable, uint8_t read_ctr_limit_enable, uint8_t enc_file_data_enable, uint8_t meta_data_key_no, uint8_t file_data_read_key_no, uint8_t read_ctr_key_no, uint32_t uid_offset, uint32_t read_ctr_offset, uint32_t picc_data_offset, uint32_t mac_input_offset, uint32_t enc_offset, uint32_t enc_length, uint32_t mac_offset, uint32_t read_ctr_limit) |
UFR_STATUS DL_API | nt4h_change_sdm_file_settingsM (UFR_HANDLE hndUFR, uint8_t aes_key_no, uint8_t file_no, uint8_t key_no, uint8_t curr_communication_mode, uint8_t new_communication_mode, uint8_t read_key_no, uint8_t write_key_no, uint8_t read_write_key_no, uint8_t change_key_no, uint8_t uid_enable, uint8_t read_ctr_enable, uint8_t read_ctr_limit_enable, uint8_t enc_file_data_enable, uint8_t meta_data_key_no, uint8_t file_data_read_key_no, uint8_t read_ctr_key_no, uint32_t uid_offset, uint32_t read_ctr_offset, uint32_t picc_data_offset, uint32_t mac_input_offset, uint32_t enc_offset, uint32_t enc_length, uint32_t mac_offset, uint32_t read_ctr_limit) |
UFR_STATUS DL_API | nt4h_get_file_settingsM (UFR_HANDLE hndUFR, uint8_t file_no, VAR uint8_t *file_type, VAR uint8_t *communication_mode, VAR uint8_t *sdm_enable, VAR uint32_t *file_size, VAR uint8_t *read_key_no, VAR uint8_t *write_key_no, VAR uint8_t *read_write_key_no, VAR uint8_t *change_key_no, VAR uint8_t *uid_enable, VAR uint8_t *read_ctr_enable, VAR uint8_t *read_ctr_limit_enable, VAR uint8_t *enc_file_data_enable, VAR uint8_t *meta_data_key_no, VAR uint8_t *file_data_read_key_no, VAR uint8_t *read_ctr_key_no, VAR uint32_t *uid_offset, VAR uint32_t *read_ctr_offset, VAR uint32_t *picc_data_offset, VAR uint32_t *mac_input_offset, VAR uint32_t *enc_offset, VAR uint32_t *enc_length, VAR uint32_t *mac_offset, VAR uint32_t *read_ctr_limit) |
UFR_STATUS DL_API | nt4h_set_rid_pkM (UFR_HANDLE hndUFR, IN uint8_t *aes_key_ext) |
UFR_STATUS DL_API | nt4h_set_ridM (UFR_HANDLE hndUFR, uint8_t aes_key_no) |
UFR_STATUS DL_API | nt4h_get_uid_pkM (UFR_HANDLE hndUFR, IN uint8_t *auth_key, uint8_t key_no, OUT uint8_t *uid) |
UFR_STATUS DL_API | nt4h_get_uidM (UFR_HANDLE hndUFR, uint8_t auth_key_no, uint8_t key_no, OUT uint8_t *uid) |
UFR_STATUS DL_API | nt4h_change_key_pkM (UFR_HANDLE hndUFR, IN uint8_t *auth_key, uint8_t key_no, IN uint8_t *new_key, IN uint8_t *old_key) |
UFR_STATUS DL_API | nt4h_change_keyM (UFR_HANDLE hndUFR, uint8_t auth_key_no, uint8_t key_no, IN uint8_t *new_key, IN uint8_t *old_key) |
UFR_STATUS DL_API | nt4h_get_sdm_ctr_pkM (UFR_HANDLE hndUFR, IN uint8_t *auth_key, uint8_t file_no, uint8_t key_no, VAR uint32_t *sdm_read_ctr) |
UFR_STATUS DL_API | nt4h_get_sdm_ctrM (UFR_HANDLE hndUFR, uint8_t auth_key_no, uint8_t file_no, uint8_t key_no, VAR uint32_t *sdm_read_ctr) |
UFR_STATUS DL_API | nt4h_get_sdm_ctr_no_authM (UFR_HANDLE hndUFR, uint8_t file_no, VAR uint32_t *sdm_read_ctr) |
UFR_STATUS DL_API | nt4h_tt_change_sdm_file_settings_pkM (UFR_HANDLE hndUFR, IN uint8_t *aes_key_ext, uint8_t file_no, uint8_t key_no, uint8_t curr_communication_mode, uint8_t new_communication_mode, uint8_t read_key_no, uint8_t write_key_no, uint8_t read_write_key_no, uint8_t change_key_no, uint8_t uid_enable, uint8_t read_ctr_enable, uint8_t read_ctr_limit_enable, uint8_t enc_file_data_enable, uint8_t meta_data_key_no, uint8_t file_data_read_key_no, uint8_t read_ctr_key_no, uint32_t uid_offset, uint32_t read_ctr_offset, uint32_t picc_data_offset, uint32_t mac_input_offset, uint32_t enc_offset, uint32_t enc_length, uint32_t mac_offset, uint32_t read_ctr_limit, uint8_t tt_status_enable, uint32_t tt_status_offset) |
UFR_STATUS DL_API | nt4h_tt_change_sdm_file_settingsM (UFR_HANDLE hndUFR, uint8_t aes_key_no, uint8_t file_no, uint8_t key_no, uint8_t curr_communication_mode, uint8_t new_communication_mode, uint8_t read_key_no, uint8_t write_key_no, uint8_t read_write_key_no, uint8_t change_key_no, uint8_t uid_enable, uint8_t read_ctr_enable, uint8_t read_ctr_limit_enable, uint8_t enc_file_data_enable, uint8_t meta_data_key_no, uint8_t file_data_read_key_no, uint8_t read_ctr_key_no, uint32_t uid_offset, uint32_t read_ctr_offset, uint32_t picc_data_offset, uint32_t mac_input_offset, uint32_t enc_offset, uint32_t enc_length, uint32_t mac_offset, uint32_t read_ctr_limit, uint8_t tt_status_enable, uint32_t tt_status_offset) |
UFR_STATUS DL_API | nt4h_tt_get_file_settingsM (UFR_HANDLE hndUFR, uint8_t file_no, VAR uint8_t *file_type, VAR uint8_t *communication_mode, VAR uint8_t *sdm_enable, VAR uint32_t *file_size, VAR uint8_t *read_key_no, VAR uint8_t *write_key_no, VAR uint8_t *read_write_key_no, VAR uint8_t *change_key_no, VAR uint8_t *uid_enable, VAR uint8_t *read_ctr_enable, VAR uint8_t *read_ctr_limit_enable, VAR uint8_t *enc_file_data_enable, VAR uint8_t *meta_data_key_no, VAR uint8_t *file_data_read_key_no, VAR uint8_t *read_ctr_key_no, VAR uint32_t *uid_offset, VAR uint32_t *read_ctr_offset, VAR uint32_t *picc_data_offset, VAR uint32_t *mac_input_offset, VAR uint32_t *enc_offset, VAR uint32_t *enc_length, VAR uint32_t *mac_offset, VAR uint32_t *read_ctr_limit, VAR uint8_t *tt_status_enable, VAR uint32_t *tt_status_offset) |
UFR_STATUS DL_API | nt4h_rid_read_ecc_signature_pkM (UFR_HANDLE hndUFR, IN uint8_t *auth_key, uint8_t key_no, OUT uint8_t *uid, OUT uint8_t *ecc_signature, VAR uint8_t *dlogic_card_type) |
UFR_STATUS DL_API | nt4h_rid_read_ecc_signatureM (UFR_HANDLE hndUFR, uint8_t auth_key_nr, uint8_t key_no, OUT uint8_t *uid, OUT uint8_t *ecc_signature, OUT uint8_t *dlogic_card_type) |
UFR_STATUS DL_API | nt4h_get_tt_status_pkM (UFR_HANDLE hndUFR, IN uint8_t *aes_key_ext, uint8_t key_no, VAR uint8_t *tt_perm_status, VAR uint8_t *tt_curr_status) |
UFR_STATUS DL_API | nt4h_get_tt_statusM (UFR_HANDLE hndUFR, uint8_t aes_key_nr, uint8_t key_no, VAR uint8_t *tt_perm_status, VAR uint8_t *tt_curr_status) |
UFR_STATUS DL_API | nt4h_get_tt_status_no_authM (UFR_HANDLE hndUFR, VAR uint8_t *tt_perm_status, VAR uint8_t *tt_curr_status) |
UFR_STATUS DL_API | nt4h_enable_tt_pkM (UFR_HANDLE hndUFR, IN uint8_t *aes_key_ext, uint8_t tt_status_key_no) |
UFR_STATUS DL_API | nt4h_enable_ttM (UFR_HANDLE hndUFR, uint8_t aes_key_no, uint8_t tt_status_key_no) |
UFR_STATUS DL_API nt4h_set_global_parametersM | ( | UFR_HANDLE | hndUFR, |
uint8_t | file_no, | ||
uint8_t | key_no, | ||
uint8_t | communication_mode ) |
Multi reader support. Function sets file number, key number, and communication mode, before the using functions for reading and writing data into cards which are used for NTAG 2xx cards. This makes it possible to use existing functions for the block and linear reading and writing.
hndUFR | handle of the uFR device |
file_no | NTAG 413 - 1 or 2 NTAG 424 and NTAG 424 TT - 1 to 3 |
key_no | NTAG 413 - 0 to 2 NTAG 424 and NTAG 424 TT - 0 to 4 |
communication_mode | 0 - plain, 1 - MACed, 3 - enciphered |
UFR_STATUS DL_API nt4h_change_standard_file_settings_pkM | ( | UFR_HANDLE | hndUFR, |
IN uint8_t * | aes_key_ext, | ||
uint8_t | file_no, | ||
uint8_t | key_no, | ||
uint8_t | curr_communication_mode, | ||
uint8_t | new_communication_mode, | ||
uint8_t | read_key_no, | ||
uint8_t | write_key_no, | ||
uint8_t | read_write_key_no, | ||
uint8_t | change_key_no ) |
Multi reader support. Provided Key mode (PK) The function changes the access parameters of an existing standard data file. The communication mode can be either plain or enciphered based on current access rights of the file, so current communication mode must be entered. Access rights are similar for Desfire cards.
hndUFR | handle of the uFR device |
aes_key_ext | pointer to array contained AES key aes_key_no ordinal number of AES key into reader (0 - 15) |
file_no | NTAG 413 - 1 or 2 NTAG 424 and NTAG 424 TT - 1 to 3 |
key_no | current change key number NTAG 413 - 0 to 2 NTAG 424 and NTAG 424 TT - 0 to 4 |
curr_communication_mode | current communication mode 0 - plain, 1 - MACed, 3 - enciphered |
new_communication_mode | new communication mode 0 - plain, 1 - MACed, 3 - enciphered |
read_key_no | reading key number |
write_key_no | writing key number |
read_write_key_no | reading and writing key number |
change_key_no | new change key number |
UFR_STATUS DL_API nt4h_change_standard_file_settingsM | ( | UFR_HANDLE | hndUFR, |
uint8_t | aes_key_no, | ||
uint8_t | file_no, | ||
uint8_t | key_no, | ||
uint8_t | curr_communication_mode, | ||
uint8_t | new_communication_mode, | ||
uint8_t | read_key_no, | ||
uint8_t | write_key_no, | ||
uint8_t | read_write_key_no, | ||
uint8_t | change_key_no ) |
Multi reader support. The function changes the access parameters of an existing standard data file. The communication mode can be either plain or enciphered based on current access rights of the file, so current communication mode must be entered. Access rights are similar for Desfire cards.
hndUFR | handle of the uFR device |
aes_key_no | ordinal number of AES key into reader (0 - 15) |
file_no | NTAG 413 - 1 or 2 NTAG 424 and NTAG 424 TT - 1 to 3 |
key_no | current change key number NTAG 413 - 0 to 2 NTAG 424 and NTAG 424 TT - 0 to 4 |
curr_communication_mode | current communication mode 0 - plain, 1 - MACed, 3 - enciphered |
new_communication_mode | new communication mode 0 - plain, 1 - MACed, 3 - enciphered |
read_key_no | reading key number |
write_key_no | writing key number |
read_write_key_no | reading and writing key number |
change_key_no | new change key number |
UFR_STATUS DL_API nt4h_change_sdm_file_settings_pkM | ( | UFR_HANDLE | hndUFR, |
IN uint8_t * | aes_key_ext, | ||
uint8_t | file_no, | ||
uint8_t | key_no, | ||
uint8_t | curr_communication_mode, | ||
uint8_t | new_communication_mode, | ||
uint8_t | read_key_no, | ||
uint8_t | write_key_no, | ||
uint8_t | read_write_key_no, | ||
uint8_t | change_key_no, | ||
uint8_t | uid_enable, | ||
uint8_t | read_ctr_enable, | ||
uint8_t | read_ctr_limit_enable, | ||
uint8_t | enc_file_data_enable, | ||
uint8_t | meta_data_key_no, | ||
uint8_t | file_data_read_key_no, | ||
uint8_t | read_ctr_key_no, | ||
uint32_t | uid_offset, | ||
uint32_t | read_ctr_offset, | ||
uint32_t | picc_data_offset, | ||
uint32_t | mac_input_offset, | ||
uint32_t | enc_offset, | ||
uint32_t | enc_length, | ||
uint32_t | mac_offset, | ||
uint32_t | read_ctr_limit ) |
Multi reader support. Provided Key mode (PK) Function allows change parameters for secure dynamic messaging file, or change file type from standard data file to secure dynamic messaging file. Due to the large number of parameters, the function is separated from the function for creating a standard data file.
hndUFR | handle of the uFR device |
aes_key_ext | pointer to array contained AES key aes_key_no ordinal number of AES key into reader (0 - 15) |
file_no | NTAG 413 - 1 or 2 NTAG 424 - 1 to 3 |
key_no | current change key number NTAG 413 - 0 to 2 NTAG 424 - 0 to 4 |
curr_communication_mode | current communication mode 0 - plain, 1 - MACed, 3 - enciphered |
new_communication_mode | new communication mode 0 - plain |
read_key_no | reading key number (14 free access) |
write_key_no | writing key number |
read_write_key_no | reading and writing key number |
change_key_no | new change key number |
uid_enable | UID mirroring (0 - disabled, 1 - enabled) |
read_ctr_enable | SDM reading counter (0 - disabled, 1 - enabled) |
read_ctr_limit_enable | SDM reading counter limit (0 - disabled, 1 - enabled) |
enc_file_data_enable | using encrypted part of file data (NTAG 424 only) (0 - disabled, 1 - enabled) |
meta_data_key_no | key number for PICC data (UID and SDM read ctr) encryption 0 - 4 (NTAG 424 only), 14 no encryption, 15 no PICC data |
file_data_read_key_no | key number for MAC and encrypted part of file data (NTAG 424 only) 0 - 2 or 0 - 4, 15 no MAC |
read_ctr_key_no | key number for SDM reading counter retrieving 0 - 2 or 0 - 4, 14 free, 15 no access |
uid_offset | mirror position of UID if PICC data aren’t encrypted |
read_ctr_offset | mirror position of SDM reading counter if PICC data aren’t encrypted |
picc_data_offset | mirror position of encrypted PICC data (NTAG 424 only) |
mac_input_offset | offset in the file where the SDM MAC computation starts |
enc_offset | mirror position of encrypted part of file data (NTAG 424 only) |
enc_length | length of encrypted part of file data (NTAG 424 only) |
mac_offset | mirror position of SDM MAC read_crt_limit value of SDM reading counter limit |
read_ctr_limit | value of SDM reading counter limit |
UFR_STATUS DL_API nt4h_change_sdm_file_settingsM | ( | UFR_HANDLE | hndUFR, |
uint8_t | aes_key_no, | ||
uint8_t | file_no, | ||
uint8_t | key_no, | ||
uint8_t | curr_communication_mode, | ||
uint8_t | new_communication_mode, | ||
uint8_t | read_key_no, | ||
uint8_t | write_key_no, | ||
uint8_t | read_write_key_no, | ||
uint8_t | change_key_no, | ||
uint8_t | uid_enable, | ||
uint8_t | read_ctr_enable, | ||
uint8_t | read_ctr_limit_enable, | ||
uint8_t | enc_file_data_enable, | ||
uint8_t | meta_data_key_no, | ||
uint8_t | file_data_read_key_no, | ||
uint8_t | read_ctr_key_no, | ||
uint32_t | uid_offset, | ||
uint32_t | read_ctr_offset, | ||
uint32_t | picc_data_offset, | ||
uint32_t | mac_input_offset, | ||
uint32_t | enc_offset, | ||
uint32_t | enc_length, | ||
uint32_t | mac_offset, | ||
uint32_t | read_ctr_limit ) |
Multi reader support. Function allows change parameters for secure dynamic messaging file, or change file type from standard data file to secure dynamic messaging file. Due to the large number of parameters, the function is separated from the function for creating a standard data file.
hndUFR | handle of the uFR device |
aes_key_no | ordinal number of AES key into reader (0 - 15) |
file_no | NTAG 413 - 1 or 2 NTAG 424 - 1 to 3 |
key_no | current change key number NTAG 413 - 0 to 2 NTAG 424 - 0 to 4 |
curr_communication_mode | current communication mode 0 - plain, 1 - MACed, 3 - enciphered |
new_communication_mode | new communication mode 0 - plain |
read_key_no | reading key number (14 free access) |
write_key_no | writing key number |
read_write_key_no | reading and writing key number |
change_key_no | new change key number |
uid_enable | UID mirroring (0 - disabled, 1 - enabled) |
read_ctr_enable | SDM reading counter (0 - disabled, 1 - enabled) |
read_ctr_limit_enable | SDM reading counter limit (0 - disabled, 1 - enabled) |
enc_file_data_enable | using encrypted part of file data (NTAG 424 only) (0 - disabled, 1 - enabled) |
meta_data_key_no | key number for PICC data (UID and SDM read ctr) encryption 0 - 4 (NTAG 424 only), 14 no encryption, 15 no PICC data |
file_data_read_key_no | key number for MAC and encrypted part of file data (NTAG 424 only) 0 - 2 or 0 - 4, 15 no MAC |
read_ctr_key_no | key number for SDM reading counter retrieving 0 - 2 or 0 - 4, 14 free, 15 no access |
uid_offset | mirror position of UID if PICC data aren’t encrypted |
read_ctr_offset | mirror position of SDM reading counter if PICC data aren’t encrypted |
picc_data_offset | mirror position of encrypted PICC data (NTAG 424 only) |
mac_input_offset | offset in the file where the SDM MAC computation starts |
enc_offset | mirror position of encrypted part of file data (NTAG 424 only) |
enc_length | length of encrypted part of file data (NTAG 424 only) |
mac_offset | mirror position of SDM MAC read_crt_limit value of SDM reading counter limit |
read_ctr_limit | value of SDM reading counter limit |
UFR_STATUS DL_API nt4h_get_file_settingsM | ( | UFR_HANDLE | hndUFR, |
uint8_t | file_no, | ||
VAR uint8_t * | file_type, | ||
VAR uint8_t * | communication_mode, | ||
VAR uint8_t * | sdm_enable, | ||
VAR uint32_t * | file_size, | ||
VAR uint8_t * | read_key_no, | ||
VAR uint8_t * | write_key_no, | ||
VAR uint8_t * | read_write_key_no, | ||
VAR uint8_t * | change_key_no, | ||
VAR uint8_t * | uid_enable, | ||
VAR uint8_t * | read_ctr_enable, | ||
VAR uint8_t * | read_ctr_limit_enable, | ||
VAR uint8_t * | enc_file_data_enable, | ||
VAR uint8_t * | meta_data_key_no, | ||
VAR uint8_t * | file_data_read_key_no, | ||
VAR uint8_t * | read_ctr_key_no, | ||
VAR uint32_t * | uid_offset, | ||
VAR uint32_t * | read_ctr_offset, | ||
VAR uint32_t * | picc_data_offset, | ||
VAR uint32_t * | mac_input_offset, | ||
VAR uint32_t * | enc_offset, | ||
VAR uint32_t * | enc_length, | ||
VAR uint32_t * | mac_offset, | ||
VAR uint32_t * | read_ctr_limit ) |
Multi reader support. Function returns file settings.
hndUFR | handle of the uFR device |
file_no | NTAG 413 - 1 or 2, NTAG 424 - 1 to 3 |
file_type | 0 - standard data file |
communication_mode | communication mode, 0 - plain, 1 - MACed, 3 - enciphered |
sdm_enable | 0 - SDM disabled, 1 - SDM enabled |
file_size | file size in bytes |
read_key_no | reading key number |
write_key_no | writing key number |
read_write_key_no | reading and writing key number |
change_key_no | new change key number |
uid_enable | UID mirroring (0 - disabled, 1 - enabled) |
read_ctr_enable | SDM reading counter (0 - disabled, 1 - enabled) |
read_ctr_limit_enable | SDM reading counter limit (0 - disabled, 1 - enabled) |
enc_file_data_enable | using encrypted part of file data (NTAG 424 only) (0 - disabled, 1 - enabled) |
meta_data_key_no | key number for PICC data (UID and SDM read ctr) encryption 0 - 4 (NTAG 424 only), 14 no encryption, 15 no PICC data |
file_data_read_key_no | key number for MAC and encrypted part of file data (NTAG424 only) 0 - 2 or 0 - 4, 15 no MAC |
read_ctr_key_no | key number for SDM reading counter retrieving 0 - 2 or 0 - 4, 14 free, 15 no access |
uid_offset | mirror position of UID if PICC data aren’t encrypted |
read_ctr_offset | mirror position of SDM reading counter if PICC data aren’t encrypted |
picc_data_offset | mirror position of encrypted PICC data (NTAG 424 only) |
mac_input_offset | offset in the file where the SDM MAC computation starts |
enc_offset | mirror position of encrypted part of file data (NTAG 424 only) |
enc_length | length of encrypted part of file data (NTAG 424 only) |
mac_offset | mirror position of SDM MAC |
read_ctr_limit | value of SDM reading counter limit |
UFR_STATUS DL_API nt4h_set_rid_pkM | ( | UFR_HANDLE | hndUFR, |
IN uint8_t * | aes_key_ext ) |
Multi reader support. Provided Key mode (PK) Function enables card Random ID. Authentication with application master key (key number 0) required. Warning. This operation is ireversibile.
hndUFR | handle of the uFR device |
aes_key_ext | pointer to array contained AES key |
UFR_STATUS DL_API nt4h_set_ridM | ( | UFR_HANDLE | hndUFR, |
uint8_t | aes_key_no ) |
Multi reader support. Function enables card Random ID. Authentication with application master key (key number 0) required. Warning. This operation is ireversibile.
hndUFR | handle of the uFR device |
aes_key_no | ordinal number of AES key into reader (0 - 15) |
UFR_STATUS DL_API nt4h_get_uid_pkM | ( | UFR_HANDLE | hndUFR, |
IN uint8_t * | auth_key, | ||
uint8_t | key_no, | ||
OUT uint8_t * | uid ) |
Multi reader support. Provided Key mode (PK) Function returns card UID if Random ID activated. Valid authentication is required.
hndUFR | handle of the uFR device |
auth_key | pointer to array contained AES key |
key_no | card key no used for authentication |
uid | pointer to array contained UID |
UFR_STATUS DL_API nt4h_get_uidM | ( | UFR_HANDLE | hndUFR, |
uint8_t | auth_key_no, | ||
uint8_t | key_no, | ||
OUT uint8_t * | uid ) |
Multi reader support. Function returns card UID if Random ID activated. Valid authentication is required.
hndUFR | handle of the uFR device |
auth_key_no | ordinal number of AES key into reader (0 - 15) |
key_no | card key no used for authentication |
uid | pointer to array contained UID |
UFR_STATUS DL_API nt4h_change_key_pkM | ( | UFR_HANDLE | hndUFR, |
IN uint8_t * | auth_key, | ||
uint8_t | key_no, | ||
IN uint8_t * | new_key, | ||
IN uint8_t * | old_key ) |
Multi reader support. Provided Key mode (PK) Function changes AES key. Authentication with the application master key is required.
hndUFR | handle of the uFR device |
auth_key | pointer to array contained AES key |
key_no | key number 0 - 2 or 0 - 4 |
new_key | pointer to array contained new AES key |
old_key | pointer to array contained current AES key |
UFR_STATUS DL_API nt4h_change_keyM | ( | UFR_HANDLE | hndUFR, |
uint8_t | auth_key_no, | ||
uint8_t | key_no, | ||
IN uint8_t * | new_key, | ||
IN uint8_t * | old_key ) |
Multi reader support. Function changes AES key. Authentication with the application master key is required.
hndUFR | handle of the uFR device |
auth_key_no | ordinal number of AES key into reader (0 - 15) |
key_no | key number 0 - 2 or 0 - 4 |
new_key | pointer to array contained new AES key |
old_key | pointer to array contained current AES key |
UFR_STATUS DL_API nt4h_get_sdm_ctr_pkM | ( | UFR_HANDLE | hndUFR, |
IN uint8_t * | auth_key, | ||
uint8_t | file_no, | ||
uint8_t | key_no, | ||
VAR uint32_t * | sdm_read_ctr ) |
Multi reader support. Provided Key mode (PK) Function supports retrieving of the current values of SDM reading counter.
hndUFR | handle of the uFR device |
auth_key | pointer to array contained AES key |
file_no | file number of SDM file (2) |
key_no | key number 0 - 2 or 0 - 4 |
sdm_read_ctr | pointer to value of SDM reading counter |
UFR_STATUS DL_API nt4h_get_sdm_ctrM | ( | UFR_HANDLE | hndUFR, |
uint8_t | auth_key_no, | ||
uint8_t | file_no, | ||
uint8_t | key_no, | ||
VAR uint32_t * | sdm_read_ctr ) |
Multi reader support. Function supports retrieving of the current values of SDM reading counter.
hndUFR | handle of the uFR device |
auth_key_no | ordinal number of AES key into reader (0 - 15) |
file_no | file number of SDM file (2) |
key_no | key number 0 - 2 or 0 - 4 |
sdm_read_ctr | pointer to value of SDM reading counter |
UFR_STATUS DL_API nt4h_get_sdm_ctr_no_authM | ( | UFR_HANDLE | hndUFR, |
uint8_t | file_no, | ||
VAR uint32_t * | sdm_read_ctr ) |
Multi reader support. No authentication Function supports retrieving of the current values of SDM reading counter.
hndUFR | handle of the uFR device |
file_no | file number of SDM file (2) |
sdm_read_ctr | pointer to value of SDM reading counter |
UFR_STATUS DL_API nt4h_tt_change_sdm_file_settings_pkM | ( | UFR_HANDLE | hndUFR, |
IN uint8_t * | aes_key_ext, | ||
uint8_t | file_no, | ||
uint8_t | key_no, | ||
uint8_t | curr_communication_mode, | ||
uint8_t | new_communication_mode, | ||
uint8_t | read_key_no, | ||
uint8_t | write_key_no, | ||
uint8_t | read_write_key_no, | ||
uint8_t | change_key_no, | ||
uint8_t | uid_enable, | ||
uint8_t | read_ctr_enable, | ||
uint8_t | read_ctr_limit_enable, | ||
uint8_t | enc_file_data_enable, | ||
uint8_t | meta_data_key_no, | ||
uint8_t | file_data_read_key_no, | ||
uint8_t | read_ctr_key_no, | ||
uint32_t | uid_offset, | ||
uint32_t | read_ctr_offset, | ||
uint32_t | picc_data_offset, | ||
uint32_t | mac_input_offset, | ||
uint32_t | enc_offset, | ||
uint32_t | enc_length, | ||
uint32_t | mac_offset, | ||
uint32_t | read_ctr_limit, | ||
uint8_t | tt_status_enable, | ||
uint32_t | tt_status_offset ) |
Multi reader support. Provided Key mode (PK) NTAG 424 TT only. From library version 5.0.43 and firmware version 5.0.43. Function allows change parameters for secure dynamic messaging file, or change file type from standard data file to secure dynamic messaging file. Due to the large number of parameters, the function is separated from the function for creating a standard data file.
hndUFR | handle of the uFR device |
aes_key_ext | pointer to array contained AES key aes_key_no ordinal number of AES key into reader (0 - 15) |
file_no | 1 - 3 |
key_no | current change key number 0 - 4 |
curr_communication_mode | current communication mode 0 - plain, 1 - MACed, 3 - enciphered |
new_communication_mode | new communication mode 0 - plain |
read_key_no | reading key number (14 free access) |
write_key_no | writing key number |
read_write_key_no | reading and writing key number |
change_key_no | new change key number |
uid_enable | UID mirroring (0 - disabled, 1 - enabled) |
read_ctr_enable | SDM reading counter (0 - disabled, 1 - enabled) |
read_ctr_limit_enable | SDM reading counter limit (0 - disabled, 1 - enabled) |
enc_file_data_enable | using encrypted part of file data (0 - disabled, 1 - enabled) |
meta_data_key_no | key number for PICC data (UID and SDM read ctr) encryption 0 - 4, 14 no encryption, 15 no PICC data |
file_data_read_key_no | key number for MAC and encrypted part of file data 0 - 4, 15 no MAC |
read_ctr_key_no | key number for SDM reading counter retrieving 0 - 4, 14 free, 15 no access |
uid_offset | mirror position of UID if PICC data aren’t encrypted |
read_ctr_offset | mirror position of SDM reading counter if PICC data aren’t encrypted |
picc_data_offset | mirror position of encrypted PICC data |
mac_input_offset | offset in the file where the SDM MAC computation starts |
enc_offset | mirror position of encrypted part of file data |
enc_length | length of encrypted part of file data |
mac_offset | mirror position of SDM MAC |
read_ctr_limit | value of SDM reading counter limit |
tt_status_enable | tag tamper status mirroring (0 - disabled, 1 - enabled) |
tt_status_offset | mirror position of tag tamper status |
UFR_STATUS DL_API nt4h_tt_change_sdm_file_settingsM | ( | UFR_HANDLE | hndUFR, |
uint8_t | aes_key_no, | ||
uint8_t | file_no, | ||
uint8_t | key_no, | ||
uint8_t | curr_communication_mode, | ||
uint8_t | new_communication_mode, | ||
uint8_t | read_key_no, | ||
uint8_t | write_key_no, | ||
uint8_t | read_write_key_no, | ||
uint8_t | change_key_no, | ||
uint8_t | uid_enable, | ||
uint8_t | read_ctr_enable, | ||
uint8_t | read_ctr_limit_enable, | ||
uint8_t | enc_file_data_enable, | ||
uint8_t | meta_data_key_no, | ||
uint8_t | file_data_read_key_no, | ||
uint8_t | read_ctr_key_no, | ||
uint32_t | uid_offset, | ||
uint32_t | read_ctr_offset, | ||
uint32_t | picc_data_offset, | ||
uint32_t | mac_input_offset, | ||
uint32_t | enc_offset, | ||
uint32_t | enc_length, | ||
uint32_t | mac_offset, | ||
uint32_t | read_ctr_limit, | ||
uint8_t | tt_status_enable, | ||
uint32_t | tt_status_offset ) |
Multi reader support. NTAG 424 TT only. From library version 5.0.43 and firmware version 5.0.43. Function allows change parameters for secure dynamic messaging file, or change file type from standard data file to secure dynamic messaging file. Due to the large number of parameters, the function is separated from the function for creating a standard data file.
hndUFR | handle of the uFR device |
aes_key_no | ordinal number of AES key into reader (0 - 15) |
file_no | 1 - 3 |
key_no | current change key number 0 - 4 |
curr_communication_mode | current communication mode 0 - plain, 1 - MACed, 3 - enciphered |
new_communication_mode | new communication mode 0 - plain |
read_key_no | reading key number (14 free access) |
write_key_no | writing key number |
read_write_key_no | reading and writing key number |
change_key_no | new change key number |
uid_enable | UID mirroring (0 - disabled, 1 - enabled) |
read_ctr_enable | SDM reading counter (0 - disabled, 1 - enabled) |
read_ctr_limit_enable | SDM reading counter limit (0 - disabled, 1 - enabled) |
enc_file_data_enable | using encrypted part of file data (0 - disabled, 1 - enabled) |
meta_data_key_no | key number for PICC data (UID and SDM read ctr) encryption 0 - 4, 14 no encryption, 15 no PICC data |
file_data_read_key_no | key number for MAC and encrypted part of file data 0 - 4, 15 no MAC |
read_ctr_key_no | key number for SDM reading counter retrieving 0 - 4, 14 free, 15 no access |
uid_offset | mirror position of UID if PICC data aren’t encrypted |
read_ctr_offset | mirror position of SDM reading counter if PICC data aren’t encrypted |
picc_data_offset | mirror position of encrypted PICC data |
mac_input_offset | offset in the file where the SDM MAC computation starts |
enc_offset | mirror position of encrypted part of file data |
enc_length | length of encrypted part of file data |
mac_offset | mirror position of SDM MAC |
read_ctr_limit | value of SDM reading counter limit |
tt_status_enable | tag tamper status mirroring (0 - disabled, 1 - enabled) |
tt_status_offset | mirror position of tag tamper status |
UFR_STATUS DL_API nt4h_tt_get_file_settingsM | ( | UFR_HANDLE | hndUFR, |
uint8_t | file_no, | ||
VAR uint8_t * | file_type, | ||
VAR uint8_t * | communication_mode, | ||
VAR uint8_t * | sdm_enable, | ||
VAR uint32_t * | file_size, | ||
VAR uint8_t * | read_key_no, | ||
VAR uint8_t * | write_key_no, | ||
VAR uint8_t * | read_write_key_no, | ||
VAR uint8_t * | change_key_no, | ||
VAR uint8_t * | uid_enable, | ||
VAR uint8_t * | read_ctr_enable, | ||
VAR uint8_t * | read_ctr_limit_enable, | ||
VAR uint8_t * | enc_file_data_enable, | ||
VAR uint8_t * | meta_data_key_no, | ||
VAR uint8_t * | file_data_read_key_no, | ||
VAR uint8_t * | read_ctr_key_no, | ||
VAR uint32_t * | uid_offset, | ||
VAR uint32_t * | read_ctr_offset, | ||
VAR uint32_t * | picc_data_offset, | ||
VAR uint32_t * | mac_input_offset, | ||
VAR uint32_t * | enc_offset, | ||
VAR uint32_t * | enc_length, | ||
VAR uint32_t * | mac_offset, | ||
VAR uint32_t * | read_ctr_limit, | ||
VAR uint8_t * | tt_status_enable, | ||
VAR uint32_t * | tt_status_offset ) |
Multi reader support. NTAG 424 TT only. From library version 5.0.43 and firmware version 5.0.43. Function returns file settings.
hndUFR | handle of the uFR device |
file_no | NTAG 413 - 1 or 2; NTAG 424 - 1 to 3 |
file_type | 0 - standard data file |
communication_mode | communication mode, 0 - plain, 1 - MACed, 3 - enciphered |
sdm_enable | 0 - SDM disabled, 1 - SDM enabled |
file_size | file size in bytes |
read_key_no | reading key number |
write_key_no | writing key number |
read_write_key_no | reading and writing key number |
change_key_no | new change key number |
uid_enable | UID mirroring (0 - disabled, 1 - enabled) |
read_ctr_enable | SDM reading counter (0 - disabled, 1 - enabled) |
read_ctr_limit_enable | SDM reading counter limit (0 - disabled, 1 - enabled) |
enc_file_data_enable | using encrypted part of file data (NTAG 424 only) (0 - disabled, 1 - enabled) |
meta_data_key_no | key number for PICC data (UID and SDM read ctr) encryption 0 - 4 (NTAG 424 only), 14 no encryption, 15 no PICC data |
file_data_read_key_no | key number for MAC and encrypted part of file data (NTAG424 only) 0 - 2 or 0 - 4, 15 no MAC |
read_ctr_key_no | key number for SDM reading counter retrieving 0 - 2 or 0 - 4, 14 free, 15 no access |
uid_offset | mirror position of UID if PICC data aren’t encrypted |
read_ctr_offset | mirror position of SDM reading counter if PICC data aren’t encrypted |
picc_data_offset | mirror position of encrypted PICC data (NTAG 424 only) |
mac_input_offset | offset in the file where the SDM MAC computation starts |
enc_offset | mirror position of encrypted part of file data (NTAG 424 only) |
enc_length | length of encrypted part of file data (NTAG 424 only) |
mac_offset | mirror position of SDM MAC |
read_ctr_limit | value of SDM reading counter limit |
tt_status_enable | tag tamper status (0 - disabled, 1 - enabled) |
tt_status_offset | mirror position of tag tamper status |
UFR_STATUS DL_API nt4h_rid_read_ecc_signature_pkM | ( | UFR_HANDLE | hndUFR, |
IN uint8_t * | auth_key, | ||
uint8_t | key_no, | ||
OUT uint8_t * | uid, | ||
OUT uint8_t * | ecc_signature, | ||
VAR uint8_t * | dlogic_card_type ) |
Multi reader support. Provided Key mode (PK) From library version 5.0.43 and firmware version 5.0.43. Function retrieves the asymmetric originality signature based on an asymmetric cryptographic algorithm Elliptic Curve Cryptography Digital Signature Algorithm (ECDSA) when the Random ID is activated. Authentication with valid key required.
hndUFR | handle of the uFR device |
auth_key | pointer to array contained AES key auth_key_nr ordinal number of AES key into reader (0 - 15) |
key_no | 0 - 4 |
uid | 7 bytes UID length |
ecc_signature | 56 bytes ECC signature |
dlogic_card_type | card type value based on DLogic CardType enumeration |
UFR_STATUS DL_API nt4h_rid_read_ecc_signatureM | ( | UFR_HANDLE | hndUFR, |
uint8_t | auth_key_nr, | ||
uint8_t | key_no, | ||
OUT uint8_t * | uid, | ||
OUT uint8_t * | ecc_signature, | ||
OUT uint8_t * | dlogic_card_type ) |
Multi reader support. From library version 5.0.43 and firmware version 5.0.43. Function retrieves the asymmetric originality signature based on an asymmetric cryptographic algorithm Elliptic Curve Cryptography Digital Signature Algorithm (ECDSA) when the Random ID is activated. Authentication with valid key required.
hndUFR | handle of the uFR device |
auth_key_nr | ordinal number of AES key into reader (0 - 15) |
key_no | 0 - 4 |
uid | 7 bytes UID length |
ecc_signature | 56 bytes ECC signature |
dlogic_card_type | card type value based on DLogic CardType enumeration |
UFR_STATUS DL_API nt4h_get_tt_status_pkM | ( | UFR_HANDLE | hndUFR, |
IN uint8_t * | aes_key_ext, | ||
uint8_t | key_no, | ||
VAR uint8_t * | tt_perm_status, | ||
VAR uint8_t * | tt_curr_status ) |
Multi reader support. Provided Key mode (PK) NTAG 424 TT only. From library version 5.0.43 and firmware version 5.0.43. Function supports retrieving of the permanent and current Tag Tamper Status.
hndUFR | handle of the uFR device |
aes_key_ext | pointer to array contained AES key |
key_no | 0 - 4 *uid 7 bytes UID length *ecc_signature 56 bytes ECC signature *dlogic_card_type |
tt_perm_status | tag tamper permanent status: I - invalid status, feature not activated; C - tamper seal closed; O - tamper seal opened |
tt_curr_status | tag tamper permanent status: I - invalid status, feature not activated; C - tamper seal closed; O - tamper seal opened |
UFR_STATUS DL_API nt4h_get_tt_statusM | ( | UFR_HANDLE | hndUFR, |
uint8_t | aes_key_nr, | ||
uint8_t | key_no, | ||
VAR uint8_t * | tt_perm_status, | ||
VAR uint8_t * | tt_curr_status ) |
Multi reader support. NTAG 424 TT only. From library version 5.0.43 and firmware version 5.0.43. Function supports retrieving of the permanent and current Tag Tamper Status.
hndUFR | handle of the uFR device |
aes_key_nr | ordinal number of AES key into reader (0 - 15) |
key_no | 0 - 4 *uid 7 bytes UID length *ecc_signature 56 bytes ECC signature *dlogic_card_type |
tt_perm_status | tag tamper permanent status: I - invalid status, feature not activated; C - tamper seal closed; O - tamper seal opened |
tt_curr_status | tag tamper permanent status: I - invalid status, feature not activated; C - tamper seal closed; O - tamper seal opened |
UFR_STATUS DL_API nt4h_get_tt_status_no_authM | ( | UFR_HANDLE | hndUFR, |
VAR uint8_t * | tt_perm_status, | ||
VAR uint8_t * | tt_curr_status ) |
Multi reader support. No authentication NTAG 424 TT only. From library version 5.0.43 and firmware version 5.0.43. Function supports retrieving of the permanent and current Tag Tamper Status.
hndUFR | handle of the uFR device |
tt_perm_status | tag tamper permanent status: I - invalid status, feature not activated; C - tamper seal closed; O - tamper seal opened |
tt_curr_status | tag tamper permanent status: I - invalid status, feature not activated; C - tamper seal closed; O - tamper seal opened |
UFR_STATUS DL_API nt4h_enable_tt_pkM | ( | UFR_HANDLE | hndUFR, |
IN uint8_t * | aes_key_ext, | ||
uint8_t | tt_status_key_no ) |
Multi reader support. Provided Key mode (PK) NTAG 424 TT only. From library version 5.0.43 and firmware version 5.0.43. Function enabling tag tamper feature. Authentication with application master key (key number 0) required. Warning. Enabling the Tag Tamper feature is permanent, it cannot be disabled once enabled.
hndUFR | handle of the uFR device |
aes_key_ext | pointer to array contained AES key |
tt_status_key_no | 0 - 4, 14 free access |
UFR_STATUS DL_API nt4h_enable_ttM | ( | UFR_HANDLE | hndUFR, |
uint8_t | aes_key_no, | ||
uint8_t | tt_status_key_no ) |
Multi reader support. NTAG 424 TT only. From library version 5.0.43 and firmware version 5.0.43. Function enabling tag tamper feature. Authentication with application master key (key number 0) required. Warning. Enabling the Tag Tamper feature is permanent, it cannot be disabled once enabled.
hndUFR | handle of the uFR device |
aes_key_no | ordinal number of AES key into reader (0 - 15) |
tt_status_key_no | 0 - 4, 14 free access |