![]() |
BALTECH Docs |
C API for BALTECH SDK
|
| brp_errcode brp_Mif_AuthUser | ( | brp_protocol | protocol, |
| unsigned | AuthMode, | ||
| unsigned | Block, | ||
| brp_buf | Key | ||
| ) |
This command authenticates a certain sector of a card using the key specified in the Key variable.
Depending on the value of the AuthMode variable, either key A or key B of the sector specified by the Block variable will be compared to the key specified in KeyIdx.
It is only possible to authenticate one sector at a time.
| [in] | protocol | used to execute the command |
| [in] | AuthMode | Authentication Mode. 0x60: Key A, 0x61: Key B. |
| [in] | Block | Block to authenticate. |
| [in] | Key | Key to use for authentication. |