C API for BALTECH SDK

§ brp_Mif_ChangeAESKey()

brp_errcode brp_Mif_ChangeAESKey ( brp_protocol  protocol,
bool  KeyHasExtIdx,
unsigned  NoMacOnResp,
unsigned  Block,
unsigned  KeyIdx,
unsigned  KeyExtIdx,
brp_buf  DivData,
size_t  DivData_len 
)

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

Parameters
[in]protocolused to execute the command
[in]KeyHasExtIdxSet this flag if extended crypto memory is used (using KeyExtIdx parameter).
[in]NoMacOnResp
[in]BlockKey block number.
[in]KeyIdxCrypto Memory Index of secure reader chip key * SAM: 0-7F * CrMem: 80-FC
[in]KeyExtIdxCrypto Memory Index (SAM or CryptoMemory) of authentication key * SAM: SAM: Key version (0..0xFF) * Crypto Memory: Page (0..15)
[in]DivDataKey diversification according to NXP AN10922 will be done if diversification data bytes are specified.
[in]DivData_len