BALTECH SDK wrapper functions reference

§ brp_Mif_ProxCheck()

brp_errcode brp_Mif_ProxCheck ( brp_Mif_ProxCheck_t  params)

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]paramsStruct with the following fields:
  • protocol used to execute the command
  • M (in) Number of random bytes which are sent within one proximity check round.
  • DisableIsoWrapping (in)
  • UseExtProxKey (in) Use (external) Proximity key given as command parameter. If the card is already authenticated (VC Selection or Card Authentication), do not activate this option.
  • DiversifyProxKey (in) Key diversification of the proximity key defined in Crypto Memory or SAM will be done according to NXP AN10922.
  • UseProxKey (in) Proximity key is defined in Crypto Memory or SAM. If the card is already authenticated (Card Authentication), do not activate this option.
  • ProxKeyIdx (in) 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)
  • DivData (in) Key diversification according to NXP AN10922.
  • DivData_len (in) Length of DivData (in bytes).
  • ProxKey (in) Proximity Check Key
  • ProxKey_len (in) Length of ProxKey (in bytes).