BALTECH SDK wrapper functions reference

§ brp_Mif_ChangeAESKey()

brp_errcode brp_Mif_ChangeAESKey ( brp_Mif_ChangeAESKey_t  params)

This command changes an AES key on a MIFARE Plus card.

Parameters
[in]paramsStruct with the following fields:
  • protocol used to execute the command
  • KeyHasExtIdx (in) Set this flag if extended crypto memory is used (using KeyExtIdx parameter).
  • NoMacOnResp (in)
  • Block (in) Key block number.
  • KeyIdx (in) Crypto Memory Index of secure reader chip key * SAM: 0-7F * CrMem: 80-FC
  • KeyExtIdx (in) Crypto Memory Index (SAM or CryptoMemory) of authentication key * SAM: SAM: Key version (0..0xFF) * Crypto Memory: Page (0..15)
  • DivData (in) Key diversification according to NXP AN10922 will be done if diversification data bytes are specified.
  • DivData_len (in) Length of DivData (in bytes).