C API for BALTECH SDK

§ brp_Desfire_ProxCheck()

brp_errcode brp_Desfire_ProxCheck ( brp_protocol  protocol,
unsigned  M,
bool  UseExtProxKey,
bool  DiversifyProxKey,
bool  UseProxKey,
unsigned  ProxKeyIdx,
brp_buf  DivData,
size_t  DivData_len,
brp_buf  ProxKey,
size_t  ProxKey_len 
)

This command executes a proximity check of the card.

Parameters
[in]protocolused to execute the command
[in]MNumber of random bytes which are send within one procimity check round.
[in]UseExtProxKeyUse (external) Proximity key given as command parameter. If the card is already authenticated (Card Authentication), do not activate this option.
[in]DiversifyProxKeyKey diversification of the proximity key defined in Crypto Memory or SAM will be done according to NXP AN10922.
[in]UseProxKeyProximity key is defined in Crypto Memory or SAM. If the card is already authenticated (VC Selection or Card Authentication), do not activate this option.
[in]ProxKeyIdxCrypto 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]DivDataKey diversification according to NXP AN10922.
[in]DivData_len
[in]ProxKeyProximity check key
[in]ProxKey_len