BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_Mif_ProxCheck | ( | brp_protocol | protocol, |
unsigned | M, | ||
unsigned | DisableIsoWrapping, | ||
bool | UseExtProxKey, | ||
bool | DiversifyProxKey, | ||
bool | UseProxKey, | ||
unsigned | ProxKeyIdx, | ||
brp_buf | DivData, | ||
size_t | DivData_len, | ||
brp_buf | ProxKey, | ||
size_t | ProxKey_len | ||
) |
This command performs a proximity check.
The key-related parameters are only used if no authentication has been performed before this command is called.
[in] | protocol | used to execute the command |
[in] | M | Number of random bytes which are sent within one proximity check round. |
[in] | DisableIsoWrapping | |
[in] | UseExtProxKey | Use (external) Proximity key given as command parameter. If the card is already authenticated (VC Selection or Card Authentication), do not activate this option. |
[in] | DiversifyProxKey | Key diversification of the proximity key defined in Crypto Memory or SAM will be done according to NXP AN10922. |
[in] | UseProxKey | Proximity key is defined in Crypto Memory or SAM. If the card is already authenticated (Card Authentication), do not activate this option. |
[in] | ProxKeyIdx | Crypto Memory Index (SAM or CryptoMemory) of Proximity Check Key * SAM: MSByte: Key version / LSByte: KeyIdx * Crypto Memory: MSByte: Page (0..15) / LSByte: KeyIdx (0x80-0xBF) |
[in] | DivData | Key diversification according to NXP AN10922. |
[in] | DivData_len | |
[in] | ProxKey | Proximity Check Key |
[in] | ProxKey_len |