C API for BALTECH SDK

§ brp_Ultralight_AuthE2()

brp_errcode brp_Ultralight_AuthE2 ( brp_protocol  protocol,
brp_Ultralight_AuthE2_DivMode  DivMode,
bool  HasExtIdx,
unsigned  KeyIdx,
brp_buf  DivData,
size_t  DivData_len,
unsigned  KeyExtIdx 
)

Authenticates to a Ultralight-c card.

The key used for authentication is specified in the Device / CryptoKey key of the reader's configuration. Key has to be of type 3DES (16 bytes).

Parameters
[in]protocolused to execute the command
[in]DivModeSpecifies diversification algorithm.
[in]HasExtIdx
[in]KeyIdxIndex
[in]DivDataDiversification data.
[in]DivData_len
[in]KeyExtIdxCrypto memory index (SAM or crypto memory) of authentication key * SAM: key version (0..0xFF) * Crypto memory: page (0..15)