BALTECH SDK wrapper functions reference

§ brp_Desfire_AuthExtKey()

brp_errcode brp_Desfire_AuthExtKey ( brp_Desfire_AuthExtKey_t  params)

This command authenticates a card with the reader, similarly to the brp_Desfire_Authenticate() command, but uses an external authentication key provided as a parameter.

Allowed are keys with a length of 8, 16 and 24 Byte.

  • 8 Byte keys are always DES keys.
  • 16 Byte keys can be DES and AES keys.
  • 24 Byte keys are only used for 3K3DES encryption.
Parameters
[in]paramsStruct with the following fields:
  • protocol used to execute the command
  • SecureMessaging (in) Sets the secure messaging mode.
  • DesKeyNr (in) DESFire key number (0-13).
  • CryptoMode (in) Sets the encryption algorithm.
  • Key (in) Key to use for authentication
  • Key_len (in) Length of Key (in bytes).