C API for BALTECH SDK

§ brp_Mif_ProxCheck()

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.

Parameters
[in]protocolused to execute the command
[in]MNumber of random bytes which are sent within one proximity check round.
[in]DisableIsoWrapping
[in]UseExtProxKeyUse (external) Proximity key given as command parameter. If the card is already authenticated (VC Selection or 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 (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