C API for BALTECH SDK

§ brp_Mif_LoadKey()

brp_errcode brp_Mif_LoadKey ( brp_protocol  protocol,
unsigned  KeyIdx,
brp_buf  Key 
)

This command writes a MIFARE Classic key to the reader's secure key memory. The reader can store 32 different keys so the key index must not exceed 31. These keys will be used for the authentication of certain sectors.

Parameters
[in]protocolused to execute the command
[in]KeyIdxKey memory index: address in memory at which to store the key.
[in]KeyThe key itself.